Fuzed

Modification: Advanced Forum Index

Version:
3.1.1

Author:
Meth0d (aka J Love) & Shedrock

Support:
Fuzed Themes

Introduction

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+ (6.01.13 is assumed supported) as well as a walkthrough for applying this mod pre-modified versions of these files.

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.

IF UPGRADING: Do not run the Custom Pages preview code below if you already have this mod installed. Simply replace your current forum files with the new ones and adjust the core as needed. You also do not need to modify your locale file again unless you absolutely feel necessary.

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:

  • its just an index file, both logged in and not logged in users can see changes to the top and bottom of the forums.
  • in this version, you will notice the new forum category collapse feature, as well as a cleaned up HTML source and an advanced search.
  • you will notice a hefty statistics area at the bottom of the forums, modeled after vBulletin and SMF statistics.
  • many features can be disabled and enabled at the top of the forum/forum_core.php file, so be sure to open forum_core.php and disable and enable various features necessary.

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:

php-files
images
forum_cats
default.png
index.php
forum
images
fsearch.png
fstats.png
icon_lpost.gif
users.png
forum_core.php
header.php
index.php
subfooter.php
includes
boxover.js
forum.js
pre-modded files
locale
English
forum
main.php
 
Mod & Installation Instructions

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
 

SKIP THIS STEP IF UPGRADING FROM 3.03 to 3.1.1
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 2: Upload the contents of the php-files directory to the appropriate directories on your site. Follow the directory hierarchy as you did when installing PHP-Fusion in the first place.

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...

// Navbar in Forum Index file - Shedrock
$locale['413'] = "User Control Panel";
$locale['414'] = "View Profile";
$locale['415'] = "Edit Profile";
$locale['416'] = "Register";
$locale['417'] = "Private Messages";
$locale['418'] = "Members";
$locale['419'] = "Forum FAQ";
$locale['420'] = "Logout";

// Mark Threads Read Mod
$locale['MTR_000'] = "Mark Read";
$locale['MTR_001'] = "Mark Unread";

//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.&nbsp;&nbsp;";
$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&#39;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.

Looking for Support?

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