Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post [OUTDATED] CMS - How To Integrate Global Blocks In Another Page 
 
Code: [Download] [Hide] [Select]
##############################################################
## MOD Title: How to include Global Blocks in another side
## MOD Author: KugeLSichA < admin@caromonline.de > (HoLLe) http://www.caromonline.de
## MOD Description: Explains in a examble (here its ACTIVITY) what files you
##                  have to edit to get Global Blocks from Icy Phoenix
##                  working in a other page.
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 5-10min
## Files To Edit: 4
##                activity.php
##                cms_auth.php
##                language/lang_*.*/lang_admin.php
##                templates/cms_pages_auth_body.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MODs not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ SQL ]------------------------------------------
#
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('auth_view_activity', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('wide_blocks_activity', '1');

#
#-----[ OPEN ]------------------------------------------
#
cms_auth.php
#
#-----[ FIND ]------------------------------------------
#
$auth_view['custom_pages'] = auth_select($new['auth_view_custom_pages'], 'auth_view_custom_pages');
#
#-----[ AFTER, ADD ]------------------------------------------
#
$auth_view['activity'] = auth_select($new['auth_view_activity'], 'auth_view_activity');

#
#-----[ FIND ]------------------------------------------
#
$wide_blocks_custom_pages_yes = ( $new['wide_blocks_custom_pages'] ) ? "checked="checked"" : "";
$wide_blocks_custom_pages_no = ( !$new['wide_blocks_custom_pages'] ) ? "checked="checked"" : "";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$wide_blocks_activity_yes = ( $new['wide_blocks_activity'] ) ? "checked="checked"" : "";
$wide_blocks_activity_no = ( !$new['wide_blocks_activity'] ) ? "checked="checked"" : "";

#
#-----[ FIND ]------------------------------------------
#
    'L_AUTH_VIEW_CUSTOM_PAGES' => $lang['auth_view_custom_pages'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
    'L_AUTH_VIEW_ACTIVITY' => $lang['auth_view_activity'],

#
#-----[ FIND ]------------------------------------------
#
    'S_AUTH_VIEW_CUSTOM_PAGES' => $auth_view['custom_pages'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
    'S_AUTH_VIEW_ACTIVITY' => $auth_view['activity'],

#
#-----[ FIND ]------------------------------------------
#
    'WIDE_BLOCKS_CUSTOM_PAGES_YES' => $wide_blocks_custom_pages_yes,
#
#-----[ AFTER, ADD ]------------------------------------------
#
    'WIDE_BLOCKS_ACTIVITY_YES' => $wide_blocks_activity_yes,

#
#-----[ FIND ]------------------------------------------
#
    'WIDE_BLOCKS_CUSTOM_PAGES_NO' => $wide_blocks_custom_pages_no,
#
#-----[ AFTER, ADD ]------------------------------------------
#
    'WIDE_BLOCKS_ACTIVITY_NO' => $wide_blocks_activity_no,

#
#-----[ OPEN ]------------------------------------------
#
language/lang_*.*/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
$lang['auth_view_custom_pages'] = 'Benutzerdefinierte Seiten';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['auth_view_activity'] = 'Activity';

#
#-----[ OPEN ]------------------------------------------
#
templates/cms_pages_auth_body.tpl
#
#-----[ FIND ]------------------------------------------
#
        <tr>
            <td class="row1">{L_AUTH_VIEW_CUSTOM_PAGES}</td>
            <td class="row2 row-center">{S_AUTH_VIEW_CUSTOM_PAGES}</td>
            <td class="row2 row-center">&nbsp;
                <!--
                <input type="radio" name="wide_blocks_custom_pages" value="1" {WIDE_BLOCKS_CUSTOM_PAGES_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="wide_blocks_custom_pages" value="0" {WIDE_BLOCKS_CUSTOM_PAGES_NO} /> {L_NO}
                -->
            </td>
        </tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
        <tr>
            <td class="row1">{L_AUTH_VIEW_ACTIVITY}</td>
            <td class="row2 row-center">{S_AUTH_VIEW_ACTIVITY}</td>
            <td class="row2 row-center">&nbsp;
                <!--
                <input type="radio" name="wide_blocks_activity" value="1" {WIDE_BLOCKS_ACTIVITY_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="wide_blocks_activity" value="0" {WIDE_BLOCKS_ACTIVITY_NO} /> {L_NO}
                -->
            </td>
        </tr>

#
#-----[ OPEN ]------------------------------------------
#
activity.php
#
#-----[ FIND ]------------------------------------------
#
# Or something similar to this
#
// Start session management
$userdata = session_pagestart($user_ip, PAGE_ACTIVITY);
init_userprefs($userdata);
// End session management
#
#-----[ AFTER, ADD ]------------------------------------------
#
$importal_wide = ($board_config['wide_blocks_activity'] == 1) ? true : false;

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Not tested with this example, but it should work.
 




____________

Play Games at GamesCampus!
 
KugeLSichASend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: How To Integrate Global Blocks In Another Page 
 
Is there a body page for activity (or whatever you want to add) that also needs updating? Sometimes you need to be cautious about the body files of mods you're adding, especially if they don't contain everything in its own table. On their own (or straight phpbb), if the mod you're adding has a missing tag (say </td>, most browsers normally predict and correct (although firefox doesn't do as much of this as it did under original mozilla) - but with the IMportal style additional tags in header and footer, (now expanded in IP), browsers try and "mate" the wrong tags, giving a messy layout. (Put another way, the reason the old phpBBXS templates looked ok was because the browser corrected for a lot of missing tags, and the IMportal forum-wide (global) sidebar was disabled by Bicet - I suspect it took a bit of work to iron out those problems for IP forum-wide / global blocks to work without messing up the layout!)

I guess the moral of the story is... do a html markup validation on the mod running independently of IP before adding it, so you can look out for any missing tags and correct them before adding it, especially in regard of the global blocks scheme.
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How To Integrate Global Blocks In Another Page 
 
@ KugeLSichA

Thanks it work but ony have a little problem with this look
 aktivity
i miss reg all usw.

but i use Arcarde Mod 2.1.8
Please help

Pepi
 



 
pepiSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How To Integrate Global Blocks In Another Page 
 
thx a lot. little mistake in your post:

Code: [Download] [Hide] [Select]
<tr>
            <td class="row1">{L_AUTH_VIEW_ACTIVITY}</td>
            <td class="row2 row-center">{S_AUTH_VIEW_ACTIVITY}</td>
            <td class="row2 row-center">&nbsp;
                [color=#ff003f]<!--[/color]
                <input type="radio" name="wide_blocks_activity" value="1" {WIDE_BLOCKS_ACTIVITY_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="wide_blocks_activity" value="0" {WIDE_BLOCKS_ACTIVITY_NO} /> {L_NO}
                [color=#ff0059]-->[/color]
            </td>
        </tr>


delete the red arrows, or the option YES/NO is no displayed
 



 
Edited by Chaotic, Mon 13 Oct, 2008 21:16: Added code wrapper.
LattenknallerSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How To Integrate Global Blocks In Another Page 
 
pepi wrote: [View Post]
@ KugeLSichA

Thanks it work but ony have a little problem with this look
 aktivity
i miss reg all usw.

but i use Arcarde Mod 2.1.8
Please help

Pepi


oops sorry...

just remove the uncomment tags like lattenknaller posted one post before this.
 




____________

Play Games at GamesCampus!
 
KugeLSichASend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How To Integrate Global Blocks In Another Page 
 
KugeLSichA wrote: [View Post]
pepi wrote: [View Post]
@ KugeLSichA

Thanks it work but ony have a little problem with this look
 aktivity
i miss reg all usw.

but i use Arcarde Mod 2.1.8
Please help

Pepi


oops sorry...

just remove the uncomment tags like lattenknaller posted one post before this.


sorry [solved] my mistake
have one edit forget in cms_auth.php

pepi
 



 
pepiSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events