https://www.icyphoenix.com/viewtopic.php?f=30&t=2279 ----------------------------------- KugeLSichA Mon 11 Jun, 2007 21:05 [OUTDATED] CMS - How To Integrate Global Blocks In Another Page ----------------------------------- [code linenumbers=false] ############################################################## ## 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 ]------------------------------------------ # {L_AUTH_VIEW_CUSTOM_PAGES} {S_AUTH_VIEW_CUSTOM_PAGES}   # #-----[ AFTER, ADD ]------------------------------------------ # {L_AUTH_VIEW_ACTIVITY} {S_AUTH_VIEW_ACTIVITY}   # #-----[ 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 [/code] Not tested with this example, but it should work. ----------------------------------- moreteavicar Tue 12 Jun, 2007 00:28 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 , 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. ----------------------------------- pepi Tue 12 Jun, 2007 14:58 Re: How To Integrate Global Blocks In Another Page ----------------------------------- @ KugeLSichA Thanks it work but ony have a little problem with this look [img]http://www.icyphoenix.com/files/images/247/aktivity.gif[/img] i miss reg all usw. but i use Arcarde Mod 2.1.8 Please help Pepi ----------------------------------- Lattenknaller Tue 12 Jun, 2007 17:42 Re: How To Integrate Global Blocks In Another Page ----------------------------------- thx a lot. little mistake in your post: [code linenumbers=false] {L_AUTH_VIEW_ACTIVITY} {S_AUTH_VIEW_ACTIVITY}   [color=#ff003f][/color] [/code] delete the [color=#ff0019]red[/color] arrows, or the option YES/NO is no displayed ----------------------------------- KugeLSichA Tue 12 Jun, 2007 18:10 Re: How To Integrate Global Blocks In Another Page ----------------------------------- [quote user="pepi" post="16447"]@ KugeLSichA Thanks it work but ony have a little problem with this look [img]http://www.icyphoenix.com/files/images/247/aktivity.gif[/img] i miss reg all usw. but i use Arcarde Mod 2.1.8 Please help Pepi[/quote] oops sorry... just remove the uncomment tags like lattenknaller posted one post before this. ----------------------------------- pepi Tue 12 Jun, 2007 19:42 Re: How To Integrate Global Blocks In Another Page ----------------------------------- [quote user="KugeLSichA" post="16452"][quote user="pepi" post="16447"]@ KugeLSichA Thanks it work but ony have a little problem with this look [img]http://www.icyphoenix.com/files/images/247/aktivity.gif[/img] i miss reg all usw. but i use Arcarde Mod 2.1.8 Please help Pepi[/quote] oops sorry... just remove the uncomment tags like lattenknaller posted one post before this.[/quote] sorry [solved] my mistake have one edit forget in cms_auth.php pepi