Page 5 of 7

Re: [2.0.19] Users viewing forum on Index

Posted: Tue Mar 20, 2007 9:04 am
by abdulbasit
The download link is dead!

Re: [2.0.19] Users viewing forum on Index

Posted: Tue Mar 20, 2007 12:13 pm
by Paul
abdulbasit wrote: The download link is dead!

Please read the forum announcments :)

Re: [2.0.19] Users viewing forum on Index

Posted: Sun Apr 08, 2007 1:20 am
by lolnix
For some reason rigth next to how many users are viewing the forum, it says Ê Ê.
Has anyone else experienced this problem themselves?

Re: [2.0.19] HELP PLEASE, Users viewing forum on Index

Posted: Sun Jun 03, 2007 6:47 am
by linc_06
Sorry for my english

i Have installed this nice mod......but there is a error:
Parse error: syntax error, unexpected ';' in /site/phpBB2/index.php on line 469


In line 469 there is:

$users_viewing = $forum_view_count[$forum_data[$j]['forum_id']];

Please, someone can help me???

Re: [2.0.19] Users viewing forum on Index

Posted: Wed Jun 06, 2007 2:51 pm
by linc_06
Hello everone:
I have installed [BETA] Today-Yesterday Relative Time, its really nice, cool and very useful. Thanks for doing it.

Also I have installed MOD [2.0.19] Users viewing forum on Index.

http://www.phpbb.com/community/viewtopi ... 6&t=502832

I have tested it in two forums:

The first have your mod installed. The second doesn't have.

In the first only appears, without number: viewing

In the second appears: (NUMBER) viewing

example: 2 viewing, 8viewing


Could you say what can I do to fix this problem, please?

Thanks a lot for your time and knowledge....

Re: [2.0.19] Users viewing forum on Index

Posted: Sat Jun 16, 2007 9:31 pm
by terminatoronly
Great Mod will install it ASAP :D

Re: [2.0.19] Users viewing forum on Index

Posted: Mon Oct 01, 2007 4:46 pm
by momoftwo
Can one use easy mod with this?

if so ..where is the text file for it??

Re: [2.0.19] Users viewing forum on Index

Posted: Mon Oct 01, 2007 4:54 pm
by will_hough
momoftwo wrote:Can one use easy mod with this?

if so ..where is the text file for it??
The mod file does not state that it works with easyMOD.
The file: vbstyle_users_viewing_index.mod is the text file. Open it using a program like Windows notepad or NotePad++ text editor.

Re: [2.0.19] Users viewing forum on Index

Posted: Mon Oct 01, 2007 7:04 pm
by momoftwo
I installed this but i have the following error
Parse error: parse error, unexpected T_DOUBLE_ARROW, expecting ')' in /home/muslimmo/public_html/phpBB/index.php on line 461

here is the line or lines they are referring to:

Code: Select all

'L_FORUM' => $lang['Forum'],
		'L_TOPICS' => $lang['Topics'],
		'L_REPLIES' => $lang['Replies'],
		'L_VIEWS' => $lang['Views'],
		'L_POSTS' => $lang['Posts'],
		'L_LASTPOST' => $lang['Last_Post'], 
		'L_NO_NEW_POSTS' => $lang['No_new_posts'],
		'L_NEW_POSTS' => $lang['New_posts'],
		'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'], 
		'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'], 
		'L_ONLINE_EXPLAIN' => 'L_USERS_VIEWING' => $lang['users_viewing_forum'],
 $lang['Online_explain'], 

		'L_MODERATOR' => $lang['Moderators'], 
		'L_FORUM_LOCKED' => $lang['Forum_is_locked'],
		'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'], 

		'U_MARK_READ' => append_sid("index.$phpEx?mark=forums"))
	);
$sql = "SELECT * FROM " . STATS_CONFIG_TABLE;
	if ( !($result = $db->sql_query($sql)) )
	{
		message_die(GENERAL_ERROR, 'Could not query statistics config table', '', __LINE__, __FILE__, $sql);
	}
	$stats_config = array();
	while ($row = $db->sql_fetchrow($result))
	{
		$stats_config[$row['config_name']] = trim($row['config_value']);
	}
	if (intval($stats_config['stat_index']) != 0)
	{
		include_once("statistics_index.$phpEx");
	}
	//
	// Let's decide which categories we should display

Re: [2.0.19] Users viewing forum on Index

Posted: Mon Oct 01, 2007 7:19 pm
by will_hough
You added the lines incorrectly.

The term AFTER, ADD means to add the code on to the next line underneith, not beside it on the same line.

Re: [2.0.19] Users viewing forum on Index

Posted: Mon Oct 01, 2007 8:54 pm
by momoftwo
Ok i went and fixed all that....but i still get this error:
Parse error: parse error, unexpected T_DOUBLE_ARROW, expecting ')' in /home/muslimmo/public_html/copies/phpBB1/index.php on line 462

Here is my code:

Code: Select all

	      'QUOTE' => $zitate[rand(0,$i)], 
	      'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
		'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
		'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'), 

		'FORUM_IMG' => $images['forum'],
		'FORUM_NEW_IMG' => $images['forum_new'],
		'FORUM_LOCKED_IMG' => $images['forum_locked'],

		'L_FORUM' => $lang['Forum'],
		'L_TOPICS' => $lang['Topics'],
		'L_REPLIES' => $lang['Replies'],
		'L_VIEWS' => $lang['Views'],
		'L_POSTS' => $lang['Posts'],
		'L_LASTPOST' => $lang['Last_Post'], 
		'L_NO_NEW_POSTS' => $lang['No_new_posts'],
		'L_NEW_POSTS' => $lang['New_posts'],
		'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'], 
		'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'], 
		'L_ONLINE_EXPLAIN' => 
		'L_USERS_VIEWING' => $lang['users_viewing_forum'],
 $lang['Online_explain'], 

		'L_MODERATOR' => $lang['Moderators'], 
		'L_FORUM_LOCKED' => $lang['Forum_is_locked'],
		'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'], 

		'U_MARK_READ' => append_sid("index.$phpEx?mark=forums"))
	);
$sql = "SELECT * FROM " . STATS_CONFIG_TABLE;
	if ( !($result = $db->sql_query($sql)) )
	{
		message_die(GENERAL_ERROR, 'Could not query statistics config table', '', __LINE__, __FILE__, $sql);
	}
	$stats_config = array();
	while ($row = $db->sql_fetchrow($result))
	{
		$stats_config[$row['config_name']] = trim($row['config_value']);
	}
	if (intval($stats_config['stat_index']) != 0)
	{
		include_once("statistics_index.$phpEx");
	}
	//
	// Let's decide which categories we should display
	//
	$display_categories = array();

	for ($i = 0; $i < $total_forums; $i++ )
	{
		if ($is_auth_ary[$forum_data[$i]['forum_id']]['auth_view'])
		{
			$display_categories[$forum_data[$i]['cat_id']] = true;
		}
	}

Re: [2.0.19] Users viewing forum on Index

Posted: Mon Oct 01, 2007 9:30 pm
by will_hough
These lines:

Code: Select all

      'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'],
      'L_ONLINE_EXPLAIN' =>
      'L_USERS_VIEWING' => $lang['users_viewing_forum'],
$lang['Online_explain'],
Should look like this:

Code: Select all

		'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'], 
		'L_ONLINE_EXPLAIN' => $lang['Online_explain'], 
		'L_USERS_VIEWING' => $lang['users_viewing_forum'],
There is an error in the mod file.

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
'L_ONLINE_EXPLAIN' =>
Should be

Code: Select all

#
#-----[ FIND ]------------------------------------------
# 
		'L_ONLINE_EXPLAIN' => $lang['Online_explain'], 

Re: [2.0.19] Users viewing forum on Index

Posted: Tue Oct 02, 2007 12:32 am
by momoftwo
thanks, but now i have this problem....
Parse error: parse error, unexpected ';' in /home/muslimmo/public_html/copies/phpBB1/index.php on line 648
here is the code

Code: Select all

								$l_moderators = '&nbsp;';
								$moderator_list = '&nbsp;';
							}

							$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
							$row_class = ( !($i % 2) ) ? 
							$users_viewing = $forum_view_count[$forum_data[$j]['forum_id']];
							 $theme['td_class1'] : $theme['td_class2'];

							$template->assign_block_vars('catrow.forumrow',	array(
								'ROW_COLOR' => '#' . $row_color,
								'ROW_CLASS' => $row_class,
								'FORUM_FOLDER_IMG' => $folder_image, 
								'FORUM_NAME' => $forum_data[$j]['forum_name'],
								'FORUM_DESC' => $forum_data[$j]['forum_desc'],
								'POSTS' => $forum_data[$j]['forum_posts'],
								'TOPICS' => $forum_data[$j]['forum_topics'],
								'LAST_POST' => $last_post,
								'MODERATORS' => 
								'USERS_VIEWING' => $users_viewing,
 $moderator_list,

Re: [2.0.19] Users viewing forum on Index

Posted: Tue Oct 02, 2007 12:59 am
by will_hough
These lines:

Code: Select all

                        'LAST_POST' => $last_post,
                        'MODERATORS' =>
                        'USERS_VIEWING' => $users_viewing,
$moderator_list,
Should look like this:

Code: Select all

                        'LAST_POST' => $last_post,
                        'MODERATORS' => $moderator_list,
                        'USERS_VIEWING' => $users_viewing,
Have a read through this tutorial on installing MODs - http://www.phpbb.com/community/viewtopi ... 16&t=61611

Re: [2.0.19] Users viewing forum on Index

Posted: Tue Oct 02, 2007 1:43 am
by momoftwo
thanks for the link, it was helpful, but it doesnt help with parse errors...

what you found was another error (that would have come up next for me)

i did fix it but i still have the same error message:
Parse error: parse error, unexpected ';' in /home/muslimmo/public_html/copies/phpBB1/index.php on line 648
it is referring to the following code only:

Code: Select all

$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
							$row_class = ( !($i % 2) ) ? 
							$users_viewing = $forum_view_count[$forum_data[$j]['forum_id']];
							 $theme['td_class1'] : $theme['td_class2'];

							$template->assign_block_vars('catrow.forumrow',	array(
								'ROW_COLOR' => '#' . $row_color,
								'ROW_CLASS' => $row_class,