Lo-Fi mod

Who can make this mod work with integramod?
i have installed it succesvol and everything works (viewtopic, etc...) except the forum itself there are no forums showed in the lo-fi version
EDIT: email addresses [url=http]modified[/url] by Adrian
i have installed it succesvol and everything works (viewtopic, etc...) except the forum itself there are no forums showed in the lo-fi version
- Code: Select all
################################################################ MOD Title]http://www.phpbbxs.com#[/url]# MOD Author, secondary: CyberAlien <noATpubblic> (Vjacheslav Trushkin) [url=http://www.phpbbstyles.com#]http://www.phpbbstyles.com#[/url]# MOD Author, secondary: Justas <mjombleATgmail> (Justas) [url=http://www.beaverandsteve.com/forum#]http://www.beaverandsteve.com/forum#[/url]# MOD Description: This Mod will add a Textual/Low Graphic Layout to your## Board. It's Ideal for Google Bot and for all Search Engine that## spider your site, and also for printing in an easy way.## It requires eXtreme Styles mod 2 from CyberAlien, you can find it## here: [url=http://www.phpbbstyles.com/viewtopic.php?t=356#]http://www.phpbbstyles.com/viewtopic.php?t=356#[/url]# MOD Version: 1.0.0RC1## ## Installation Level: Easy## Installation Time: 24 minutes (< 1 min. with EasyMod)## Files To Edit: 11## common.php## posting.php## privmsg.php## viewforum.php## viewtopic.php## includes/page_tail.php## includes/sessions.php## includes/topic_review.php## language/lang_english/lang_main.php## templates/subSilver/overall_footer.tpl## templates/subSilver/posting_body.tpl## Included Files: 21## root/robots.txt## root/templates/subSilver/xs.cfg## root/templates/subSilver/lofi/bots/lofi_bots_footer.tpl## root/templates/subSilver/lofi/bots/lofi_bots_forum.tpl## root/templates/subSilver/lofi/bots/lofi_bots_header.tpl## root/templates/subSilver/lofi/bots/lofi_bots_index.tpl## root/templates/subSilver/lofi/bots/lofi_bots_topic.tpl## root/templates/subSilver/lofi/lofi.css## root/templates/subSilver/lofi/lofi_footer.tpl## root/templates/subSilver/lofi/lofi_forum.tpl## root/templates/subSilver/lofi/lofi_groupcp_info.tpl## root/templates/subSilver/lofi/lofi_groupcp_user.tpl## root/templates/subSilver/lofi/lofi_header.tpl## root/templates/subSilver/lofi/lofi_index.tpl## root/templates/subSilver/lofi/lofi_memberlist.tpl## root/templates/subSilver/lofi/lofi_pm.tpl## root/templates/subSilver/lofi/lofi_pm_read.tpl## root/templates/subSilver/lofi/lofi_profile.tpl## root/templates/subSilver/lofi/lofi_topic.tpl## root/templates/subSilver/lofi/lofi_topic_review.tpl## root/templates/subSilver/lofi/scripts.js## ################################################################ Author Notes: -Important:## If You're using any other template different form SubSilver take a look## at the contrib folder, where you can find detailed instruction.## ## ## 1. Copyright and special thanks!## -----------## This MOD try to fully emulate Lo-Fi Version like in Invision Power Board## A Special Thank goes to Cyber Alien who gives me the first rough code.## ## ## 2. EasyMOD## -----------## This MOD is compatible with EasyMOD of Nuttzy and can be## installed by it but is not yet certified EMC (EasyMOD Compliant)!## http://area51.phpbb.com/phpBB22/viewforum.php?sid=&f=15## ## However, on alpha releases of EM and meanwhile beta or ## final release some actions are NOT performed.## You'll have to do them manually !## ## 2.1 Translation are not managed## -----------## Moreover, EM can not already manage actions for any other## language than English (but language intructions are proceed## to all installed languages in order to prevent errors).## So the translations provided with this MOD must be installed## manually if you need them. Take a look in contrib directory.## ## 4. Official last version link## -----------## Meanwhile the phpBB group validation and as the MOD is not yet## in the phpBB MOD database, check this official link for updates...## http://www.vagito.net## ## 5. TO DO:## -----------## Make the mods compatible with Categories Hierarchy################################################################ MOD History:## #### 2005-09-11 - Version 1.0.0## ## - Fixed some small Glitches with poll###### 2005-06-02 - Version 0.0.4## ## - Removed all smilies and signature (credits go to Justas, who tell me how to do it ;))## - Added all buttons to viewtopic.php (idea and all credits go to Justas)## - Added an auto-update files that check for the last version of mod## - Added link to profile on poster name.## - Added a quick reply form (based on CyberAlien quick reply)## - Added moderation's control on viewtopic## ## 2005-05-30 - Version 0.0.3## ## - Small Updates to the css, now the lo-fi version looks cooler,added## support for code"e.## - Added robot.txt so search engines can spider your site in a better way.## - Added removal of SID for search engines.## - Added A Navigation Toolbar to the Lo-Fi version, now users can completely## browse the forum## ## 2005-05-25 - Version 0.0.2## ## - Added Support for bot of Major Search Engines## (Google, Alexa, Inktomi, Infoseek, Alta Vista, Lycos, FAST,## wisenut, MSN, Looksmart, Ask Jeeves, Gigablast,Baidu, Picsearch,## Become...)## - Added A Navigation Toolbar to the Lo-Fi version, now users can completely## browse the forum## - Added some css adjustment for a better Look## ## 2005-05-13 - Version 0.0.1## ## - Initial release## ################################################################ Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## ##-----[ COPY ]------------------------------------------#copy root/robots.txt to robots.txtcopy root/admin/xs_lo_fi_mod.cfg admin/xs_lo_fi_mod.cfgcopy root/templates/subSilver/xs.cfg to templates/subSilver/xs.cfgcopy root/templates/subSilver/lofi/bots/lofi_bots_footer.tpl to templates/subSilver/lofi/bots/lofi_bots_footer.tplcopy root/templates/subSilver/lofi/bots/lofi_bots_forum.tpl to templates/subSilver/lofi/bots/lofi_bots_forum.tplcopy root/templates/subSilver/lofi/bots/lofi_bots_header.tpl to templates/subSilver/lofi/bots/lofi_bots_header.tplcopy root/templates/subSilver/lofi/bots/lofi_bots_index.tpl to templates/subSilver/lofi/bots/lofi_bots_index.tplcopy root/templates/subSilver/lofi/bots/lofi_bots_topic.tpl to templates/subSilver/lofi/bots/lofi_bots_topic.tplcopy root/templates/subSilver/lofi/lofi.css to templates/subSilver/lofi/lofi.csscopy root/templates/subSilver/lofi/lofi_footer.tpl to templates/subSilver/lofi/lofi_footer.tplcopy root/templates/subSilver/lofi/lofi_forum.tpl to templates/subSilver/lofi/lofi_forum.tplcopy root/templates/subSilver/lofi/lofi_groupcp_info.tpl to templates/subSilver/lofi/lofi_groupcp_info.tplcopy root/templates/subSilver/lofi/lofi_groupcp_user.tpl to templates/subSilver/lofi/lofi_groupcp_user.tplcopy root/templates/subSilver/lofi/lofi_header.tpl to templates/subSilver/lofi/lofi_header.tplcopy root/templates/subSilver/lofi/lofi_index.tpl to templates/subSilver/lofi/lofi_index.tplcopy root/templates/subSilver/lofi/lofi_memberlist.tpl to templates/subSilver/lofi/lofi_memberlist.tplcopy root/templates/subSilver/lofi/lofi_pm.tpl to templates/subSilver/lofi/lofi_pm.tplcopy root/templates/subSilver/lofi/lofi_pm_read.tpl to templates/subSilver/lofi/lofi_pm_read.tplcopy root/templates/subSilver/lofi/lofi_profile.tpl to templates/subSilver/lofi/lofi_profile.tplcopy root/templates/subSilver/lofi/lofi_topic.tpl to templates/subSilver/lofi/lofi_topic.tplcopy root/templates/subSilver/lofi/lofi_topic_review.tpl to templates/subSilver/lofi/lofi_topic_review.tplcopy root/templates/subSilver/lofi/scripts.js to templates/subSilver/lofi/scripts.js##-----[ OPEN ]------------------------------------------#common.php ##-----[ FIND ]------------------------------------------#?>##-----[ BEFORE, ADD ]------------------------------------------#//Begin Lo-Fi Modif ($_GET['lofi'] || $_COOKIE['lofi']) $lofi = 1;//Begin Lo-Fi Mod##-----[ OPEN ]------------------------------------------#posting.php##-----[ FIND ]------------------------------------------# if( $smilies_on )##-----[ REPLACE WITH ]------------------------------------------# //Begin Lo-Fi Mod if( $smilies_on && !$lofi) //End Lo-Fi Mod##-----[ OPEN ]------------------------------------------#privmsg.php##-----[ FIND ]------------------------------------------#//// End session management//##-----[ AFTER, ADD ]------------------------------------------#//Begin Lo-Fi Modif ($lofi) {$lang['Post_new_pm'] = $lang['new_pm_lofi'];}//End Lo-Fi Mod##-----[ FIND ]------------------------------------------# if ( $board_config['allow_smilies'] && $privmsg['privmsgs_enable_smilies'] )##-----[ REPLACE WITH ]------------------------------------------#//Begin Lo-Fi Mod if ( $board_config['allow_smilies'] && $privmsg['privmsgs_enable_smilies'] && !$lofi)//End Lo-Fi Mod ##-----[ FIND ]------------------------------------------# if ( $smilies_on )##-----[ REPLACE WITH ]------------------------------------------#//Begin Lo-Fi Mod if ( $smilies_on && !$lofi )//End Lo-Fi Mod ##-----[ OPEN ]------------------------------------------#viewforum.php##-----[ FIND ]------------------------------------------#$page_title = $lang['View_forum'] . ' - ' . $forum_row['forum_name'];##-----[ REPLACE WITH ]------------------------------------------#//Begin Lo-Fi Mod $page_title = $forum_row['forum_name'];//End Lo-Fi Mod##-----[ OPEN ]------------------------------------------#viewtopic.php##-----[ FIND ]------------------------------------------#//// End session management//##-----[ AFTER, ADD ]------------------------------------------#//Begin Lo-Fi Mod if ($lofi) { $lang['Reply_with_quote'] = $lang['quote_lofi'] ; $lang['Edit_delete_post'] = $lang['edit_lofi']; $lang['View_IP'] = $lang['ip_lofi']; $lang['Delete_post'] = $lang['del_lofi']; $lang['Read_profile'] = $lang['profile_lofi']; $lang['Send_private_message'] = $lang['pm_lofi']; $lang['Send_email'] = $lang['email_lofi']; $lang['Visit_website'] = $lang['website_lofi']; $lang['ICQ'] = $lang['icq_lofi']; $lang['AIM'] = $lang['aim_lofi']; $lang['YIM'] = $lang['yim_lofi']; $lang['MSNM'] = $lang['msnm_lofi'];}//End Lo-Fi Mod##-----[ FIND ]------------------------------------------#$page_title = $lang['View_topic'] .' - ' . $topic_title;##-----[ REPLACE WITH ]------------------------------------------#//Begin Lo-Fi Mod$page_title = $topic_title;//End Lo-Fi Mod##-----[ FIND ]------------------------------------------#if ( $is_auth['auth_mod'] ){ $s_auth_can .= sprintf($lang['Rules_moderate'], "</a><img></a> '; $topic_mod .= "</a><img></a> ' : "</a><img></a> ';}##-----[ REPLACE WITH ]------------------------------------------#//Begin Lo-Fi Modif ( $is_auth['auth_mod'] ){ $s_auth_can .= sprintf($lang['Rules_moderate'], "</a>' . $lang['Delete_topic'] . '</a> :: '; $topic_mod .= "</a>' . $lang['Lock_topic'] . '</a> :: ' : "</a>' . $lang['Split_topic'] . '</a> '; } else { $topic_mod .= "</a><img></a> '; $topic_mod .= ( $forum_topic_data['topic_status'] == TOPIC_UNLOCKED ) ? "</a><img></a> '; $topic_mod .= "</a>set_filenames(array( 'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl'));##-----[ AFTER, ADD ]------------------------------------------# //Begin Lo-Fi Mod$path_parts = pathinfo($_SERVER['PHP_SELF']);$lofi = '<a>' . (empty($_COOKIE['lofi']) ? ($lang['Lofi']) : ($lang['Full_Version']) ) . '</a><br>';$template->assign_vars(array( 'L_LOFI' => $lang['Lofi'], 'LOFI' => $lofi, 'L_FULL_VERSION' => $lang['Full_Version']));//End Lo-Fi Mod ##-----[ OPEN ]------------------------------------------#includes/sessions.php##-----[ FIND ]------------------------------------------# $SID = 'sid=' . $session_id;##-----[ REPLACE WITH ]------------------------------------------#//Begin Lo-Fi Mod if ( $userdata['session_user_id'] != ANONYMOUS ){ $SID = 'sid=' . $session_id; } else { $SID = ''; }//End Lo-Fi Mod##-----[ OPEN ]------------------------------------------#includes/topic_review.php##-----[ FIND ]------------------------------------------# // // Okay, let's do the loop, yeah come on baby let's do the loop // and it goes like this ... // if ( $row = $db->sql_fetchrow($result) ) {##-----[ AFTER, ADD ]------------------------------------------# //Begin Lo-Fi Mod global $lofi; //End Lo-Fi Mod##-----[ FIND ]------------------------------------------# if ( $board_config['allow_smilies'] && $row['enable_smilies'] )##-----[ REPLACE WITH ]------------------------------------------# //Begin Lo-Fi Mod if ( $board_config['allow_smilies'] && $row['enable_smilies'] && !$lofi ) //End Lo-Fi Mod##-----[ OPEN ]------------------------------------------#language/lang_english/lang_main.php##-----[ FIND ]------------------------------------------#//// That's all, Folks!// ------------------------------------------------- ##-----[ BEFORE, ADD ]------------------------------------------#//Begin Lo-Fi Mod$lang['Lofi'] = 'Lo-Fi Version';$lang['Full_Version'] = 'Full Version';$lang['quote_lofi'] = 'Quote';$lang['edit_lofi'] = 'Edit';$lang['ip_lofi'] = 'IP';$lang['del_lofi'] = 'Delete';$lang['profile_lofi'] = 'Profile';$lang['pm_lofi'] = 'PM';$lang['email_lofi'] = 'E-mail';$lang['website_lofi'] = 'Website';$lang['icq_lofi'] = 'ICQ';$lang['aim_lofi'] = 'AIM';$lang['yim_lofi'] = 'YIM';$lang['msnm_lofi'] = 'MSN';$lang['quick_lofi'] = 'Quick Reply';$lang['new_pm_lofi'] = 'Send a PM';//End Lo-Fi Mod##-----[ OPEN ]------------------------------------------#templates/subSilver/overall_footer.tpl##-----[ FIND ]------------------------------------------#Powered by <a>phpBB</a> © 2001, 2005 phpBB Group<br>{TRANSLATION_INFO}</span></div>##-----[ BEFORE, ADD ]------------------------------------------#<Begin>{LOFI}<End>##-----[ OPEN ]------------------------------------------#templates/subSilver/posting_body.tpl##-----[ FIND ]------------------------------------------# <table> <tr> <td><b>{L_EMOTICONS}</b></td> </tr>##-----[ BEFORE, ADD ]------------------------------------------#<Begin> <php><End>##-----[ FIND ]------------------------------------------# <END> </table>##-----[ AFTER, ADD ]------------------------------------------#<Begin> <php> <End>##-----[ SAVE/CLOSE ALL FILES ]------------------------------------------## EoM
EDIT: email addresses [url=http]modified[/url] by Adrian