+ Reply to Thread
Results 1 to 4 of 4
Like Tree2Likes
  • 1 Post By XUnreal
  • 1 Post By lambada

Thread: Need help to install this mod on phpbb forum with Category Hierarchy mod installed

  1. #1
    kachon is offline x10Hosting Member kachon is an unknown quantity at this point
    Join Date
    Jun 2005
    Posts
    59

    Need help to install this mod on phpbb forum with Category Hierarchy mod installed

    Hi all,

    I got this mod from phpbb.com and it is a regular mod to install for normal phpbb forum, but my forum is with category hierarchy mod installed, so i can not figure out how to install this mod because all the codes require to install for this mod was probally changed by the category hierarchy mod, so i am loss, i need some one with experience on Category Hierarchy mod to install this mod for me

    Thanks

    Here is the mod
    Code:
    #################################################################
    ## MOD Title: Users viewing forum on Index
    ## MOD Author: Eminem_Fan < N/A > (Dean Oakes) N/A
    ## MOD Description: This modification will add the 'vBulletin Style' Users viewing this forum to the index.
    ## MOD Version: 1.1.0
    ##
    ## Installation Level: Easy
    ## Installation Time: 10 Minutes
    ## Files To Edit:	index.php
    ##					language/lang_english/lang_main.php
    ##					templates/subSilver/index_body.tpl
    ## Included Files:	N/A
    ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2 
    ##############################################################
    ## For security purposes, please check: http://www.phpbb.com/mods/
    ## for the latest version of this MOD. Although MODs are checked
    ## before being allowed in the MODs Database there is no guarantee
    ## that there are no security problems within the MOD. No support
    ## will be given for MODs not found within the MODs Database which
    ## can be found at http://www.phpbb.com/mods/ 
    ##############################################################
    ## Author Notes:
    ##	As requested by oo1985, This feature can be found in vBulletin.
    ##############################################################
    ## MOD History:
    ##
    ##	2005-26-12 - Version 0.1.0
    ##	-	Stable Release
    ##
    ##	2005-27-12 - Version 1.0.0
    ##	-	Submitted to the MOD-DB.
    ##
    ##	2006-07-01 - Version 1.1.0
    ##	-	Fixed up the mod template and resubmitted.
    ## 
    #################################################################
    ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
    #################################################################
    
    #
    #-----[ OPEN ]------------------------------------------
    #
    index.php
    
    #
    #-----[ FIND ]------------------------------------------
    #
    	$is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data);
    
    #
    #-----[ AFTER, ADD ]------------------------------------------
    #
    	//
    	// Get the user count viewing the forums.
    	//
    	$forum_view_count = array();
    	$sql = "SELECT u.user_id, s.session_page
    		FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
    			WHERE u.user_id = s.session_user_id
    				AND s.session_time >= ".( time() - 300 ); 
    	if(! $result = $db->sql_query($sql) )
    	{
    		message_die(GENERAL_ERROR, 'Unable to get current sessions for users viewing forum.', '', __LINE__, __FILE__, $sql);
    	}
    	while( $row = $db->sql_fetchrow($result) )
    	{
    		if(! isset($forum_view_count[ $row['session_page'] ]) )
    		{
    			$forum_view_count[ $row['session_page'] ] = 0;
    		}
    		$forum_view_count[ $row['session_page'] ]++;
    	}
    #
    #-----[ FIND ]------------------------------------------
    #
    'L_ONLINE_EXPLAIN' =>
    
    #
    #-----[ AFTER, ADD ]------------------------------------------
    #
    		'L_USERS_VIEWING' => $lang['users_viewing_forum'],
    
    #
    #-----[ FIND ]------------------------------------------
    #
    $row_class = ( !($i % 2) ) ?
    
    #
    #-----[ AFTER, ADD ]------------------------------------------
    #
    $users_viewing = $forum_view_count[$forum_data[$j]['forum_id']];
    
    #
    #-----[ FIND ]------------------------------------------
    #
    'MODERATORS' =>
    
    #
    #-----[ AFTER, ADD ]------------------------------------------
    #
    								'USERS_VIEWING' => $users_viewing,
    
    #
    #-----[ FIND ]------------------------------------------
    #
    								'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
    							);
    
    #
    #-----[ AFTER, ADD ]------------------------------------------
    #
    							if($users_viewing)
    							{
    								$template->assign_block_vars('catrow.forumrow.switch_users_viewing', array());
    							}
    
    #
    #-----[ OPEN ]------------------------------------------
    #
    language/lang_english/lang_main.php
    
    #
    #-----[ FIND ]------------------------------------------
    #
    ?>
    
    #
    #-----[ BEFORE, ADD ]------------------------------------------
    #
    $lang['users_viewing_forum'] = 'Viewing';
    
    #
    #-----[ OPEN ]------------------------------------------
    #
    templates/subSilver/index_body.tpl
    
    #
    #-----[ FIND ]------------------------------------------
    #
    	</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
    
    #
    #-----[ REPLACE WITH ]------------------------------------------
    #
    	</span><span class="gensmall">
    	<!-- BEGIN switch_users_viewing -->
    	({catrow.forumrow.USERS_VIEWING} {L_USERS_VIEWING})
    	<!-- END switch_users_viewing -->
    	</span> <span class="genmed"><br />{catrow.forumrow.FORUM_DESC}<br />
    
    #
    #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
    #
    # EoM
    Last edited by kachon; 03-31-2006 at 01:15 AM.

  2. #2
    XUnreal's Avatar
    XUnreal is offline x10 Sophmore XUnreal is an unknown quantity at this point
    Join Date
    Jun 2005
    Posts
    185

    Re: Need help to install this mod on phpbb forum with Category Hierarchy mod installe

    Use EasyMod, does all of it for you lol.
    http://area51.phpbb.com/
    karimirt47 likes this.


    www.MSN-Mess0rs.be
    We complete MSN's Elite!

  3. #3
    Jordan K is offline [B]tags dont work:([/B] Jordan K is an unknown quantity at this point
    Join Date
    May 2005
    Location
    Hamilton, Ontario, Canada
    Posts
    764

    Re: Need help to install this mod on phpbb forum with Category Hierarchy mod installe

    Quote Originally Posted by XUnreal
    Use EasyMod, does all of it for you lol.
    http://area51.phpbb.com/
    A PHP program can't do it for you, as it searches for the instructions. If the phpBB original files have been edited the instructions are useless. Therefore causing "EasyMod" to return a message stating something such as " 'texttoedit' not found! ".
    Last edited by Jordan K; 04-07-2006 at 03:02 PM.
    adcode // ToS // x10Free | x10Paid Hosting
    ------------------------------------------

  4. #4
    lambada's Avatar
    lambada is offline x10 Elder lambada is an unknown quantity at this point
    Join Date
    Mar 2006
    Location
    Caister, Gt Yarmouth, Norfolk, ENGLAND
    Posts
    1,222

    Re: Need help to install this mod on phpbb forum with Category Hierarchy mod installe

    Do NOT use EasyMod. I repeat, Do NOT use EasyMod. It is currently in BETA and it can cause serious errors.

    Best to code MOD's in by hand so if something doesn't work you are more likely to know what the problem is - CH is the exception as it is so complex - best to do a fresh install of phpBB and use the CH installed pack then.

    Also you will get more support for adapting MOD's over at ptifo.clanmckeen.com as that is the OFFICIAL Catagories Heirarchy Mod site.
    dinomirt96 likes this.
    Lambada - the former Account Manager (before I resigned)




+ Reply to Thread

Similar Threads

  1. phpbb - Forum templates?
    By Bobbah in forum Free Hosting
    Replies: 2
    Last Post: 08-17-2006, 09:14 PM
  2. phpBB: Fully Modded Forum
    By TheJeffsta in forum Free Hosting
    Replies: 5
    Last Post: 04-14-2006, 06:28 PM
  3. phpBB Forum Problems
    By nycdlmusckat in forum Free Hosting
    Replies: 3
    Last Post: 10-10-2005, 02:46 PM
  4. Adding ad's to phpbb forum
    By haqzombie in forum Free Hosting
    Replies: 7
    Last Post: 07-31-2005, 12:35 PM
  5. cannot install Phpbb
    By DotCom in forum Free Hosting
    Replies: 2
    Last Post: 07-14-2005, 09:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers