Modification: Advanced Forum Index
Version: 3.03
Author: Meth0d (aka J Love) & Shedrock
Support: Fuzed Themes
This will add the advanced forum index seen in action on Fuzed Themes. Included with this mod are pre-modded files for PHP-Fusion version 6.01.11 as well as a walkthrough for applying this mod pre-modified versions of these files.
Note: I am not the original author of the PHP or HTML involved with this mod, this credit goes to Shedrock. I put this mod together by taking the latest forum index file from PHP-Fusion main site and applying Shedrocks changes to it, as well as cleaning up a bit of PHP and HTML code. I am in no way shape or form trying to take credit for Shedrock's wonderful work.
If you have any problems with installing this mod to your site, please post at Fuzed Themes and let us know, myself or another Staff member will help you with your problem asap.
This mod is written to W3C XHTML 1.0 Transitional standards and validates as such. It is tested for both Firefox and Internet Explorer and everything looks and operates properly.
RECOMMENDED: image "whosonline.gif"; latest forum_threads_list_panel; advanced search by Wooya; advanced shoutbox v5 from Fuzed Themes; mark threads as read by Xandra. If you don't have these installed, its ok! You can disable the features that require them in the forum_core file.
Usage & Features:
Note: If you encounter the following error: "Failed to include mtr_functions_include.php...", upload the files in the extras folder to the corresponding directories on your site.
This package contains the following files:
The instructions below are for PHP-Fusion v6.01.11, but may work on other versions. If you have not modified any of the above core files on your site, you should be able to use the included files without any problems. Upload the contents of the pre-modded files folder to the appropriate directory(s) on your site. Otherwise, follow the mod instructions for the locale file modifications.
Files to be modified:
locale
English
forum
main.php
Step 1: Even if you don't want to use the forum images part of this mod, you must copy/paste the following code into your Custom Pages admin area, give the page a title and preview the page, do not save it!
<?php
$addImageField = dbquery("ALTER TABLE `".$db_prefix."forums` ADD
`forum_cat_image` VARCHAR(255) NOT NULL");
echo "<b>Success</b> altering your _forums table
and adding the forum_cat_image field.<br />";
?>
Step 3: Follow the mod instructions below; If you have never modified your forum locale file, just upload the one in the pre-modded files folder and you're good to go!
Note: Advanced Forum Index v3 does not include mod instructions for the index file as it is to heavily modified. This mod will be updated as the latest forum/index.php file is updated at the main PHP-Fusion site, so simply replace your copy with the one supplied in the php-files directory.
Open locale/English/forum/main.php
Find...
$locale['412'] = "Page: ";
Add after...
//Advanced Forum Search
$locale['sch_a1'] = "Advanced Search";
$locale['sch_a2'] = "Forum Search";
$locale['sch_002'] = "Search";
$locale['sch_003'] = "Advanced Forum Search";
$locale['sch_004'] = "Search for:";
$locale['sch_005'] = "search any of those words";
$locale['sch_006'] = "result have to contain all those words";
$locale['sch_007'] = "Options:";
$locale['sch_008'] = "Select forum: ";
$locale['sch_009'] = "Search last: ";
$locale['sch_010'] = "all";
$locale['sch_011'] = "1 day";
$locale['sch_012'] = "1 week";
$locale['sch_013'] = "2 weeks";
$locale['sch_014'] = "1 month";
$locale['sch_015'] = "3 months";
$locale['sch_016'] = "6 months";
$locale['sch_017'] = "title and message";
$locale['sch_018'] = "only message";
$locale['sch_019'] = "only title";
$locale['sch_020'] = "Sort by: ";
$locale['sch_021'] = "Add date";
$locale['sch_022'] = "Title";
$locale['sch_023'] = "Author";
$locale['sch_024'] = "descending";
$locale['sch_025'] = "ascending";
$locale['sch_026'] = "Show first: ";
$locale['sch_027'] = "characters in result";
//New forum locales
$locale['afi_001'] = "You have made no posts. this is 0% of the total ";
$locale['afi_002'] = " posts on this forum.";
$locale['afi_003'] = "Your posts: ";
$locale['afi_004'] = ", this is ";
$locale['afi_005'] = "% of the total ";
$locale['afi_006'] = "Welcome ";
$locale['afi_007'] = " - You have ";
$locale['afi_008'] = " message(s) in your inbox. ";
$locale['afi_009'] = "There have been ";
$locale['afi_010'] = " post(s) since your last visit on ";
$locale['afi_011'] = "My Recent Threads";
$locale['afi_012'] = "My Recent Posts";
$locale['afi_013'] = "New Posts";
$locale['afi_014'] = "The latest post was on the thread ";
$locale['afi_015'] = "Forum Jump";
$locale['afi_016'] = "Who's Online?";
$locale['afi_017'] = "Today is: ";
$locale['afi_018'] = "There are currently ";
$locale['afi_019'] = "Our forum has a total of ";
$locale['afi_020'] = " posts in <b>";
$locale['afi_020a'] = " post in <b>";
$locale['afi_021'] = "Registered Users: ";
//Forum Statistics
$locale['afi_100'] = "Information";
$locale['afi_101'] = "Statistics";
$locale['afi_102'] = $locale['afi_016'];
$locale['afi_103'] = "Members Online: ";
$locale['afi_104'] = "</b> threads by <b>";
$locale['afi_104a'] = "</b> thread by <b>";
$locale['afi_104b'] = "</b> users.";
$locale['afi_104c'] = "</b> user.";
$locale['afi_105'] = " guests online.";
$locale['afi_106'] = "View All Threads";
$locale['afi_107'] = "Top Poster: ";
$locale['afi_108'] = ", with a total of <b>";
$locale['afi_109'] = "</b> posts and <b>";
$locale['afi_110'] = "</b> posts per day.";
$locale['afi_111'] = "View the Top Forum Posters Profile";
$locale['afi_112'] = "No Posts";
$locale['afi_113'] = "There are currently no posts in this forum.";
$locale['afi_114'] = "Expand/Collapse Forum Category";
$locale['afi_115'] = "Click here (the forum category title bar) to expand or collapse the forums associated with it.
If cookies are enabled when closing the page or visiting another day your computer will remember which categories you have collapsed/expanded.";
$locale['afi_116'] = "Mark all Forums Read";
$locale['afi_117'] = "Click this button to mark all threads in each forum that you have access to as read. Does ".phpentities("<u>not</u>")." require page refresh.";
Save and close. Upload all modified files and enjoy.
Please visit us as Fuzed Themes and post your questions regarding this mod in the forum.
PHP-Fusion Copyright © 2002 - 2007 Nick Jones
Released under the terms & conditions of v2 of the GNU General Public License. For details refer to the included gpl.txt file or visit http://gnu.org