[2.0.19] Users viewing forum on Index

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
14
64%
Very Good
3
14%
Good
4
18%
Fair
1
5%
Poor
0
No votes
 
Total votes: 22

abdulbasit
Registered User
Posts: 37
Joined: Tue Nov 14, 2006 9:16 am
Contact:

Re: [2.0.19] Users viewing forum on Index

Post by abdulbasit » Tue Mar 20, 2007 9:04 am

The download link is dead!

User avatar
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 24811
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [2.0.19] Users viewing forum on Index

Post by Paul » Tue Mar 20, 2007 12:13 pm

abdulbasit wrote: The download link is dead!

Please read the forum announcments :)
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

lolnix
Registered User
Posts: 2
Joined: Sat Apr 07, 2007 10:26 pm

Re: [2.0.19] Users viewing forum on Index

Post by lolnix » Sun Apr 08, 2007 1:20 am

For some reason rigth next to how many users are viewing the forum, it says Ê Ê.
Has anyone else experienced this problem themselves?

linc_06
Registered User
Posts: 3
Joined: Sun Jun 03, 2007 6:40 am

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

Post by linc_06 » Sun Jun 03, 2007 6:47 am

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

linc_06
Registered User
Posts: 3
Joined: Sun Jun 03, 2007 6:40 am

Re: [2.0.19] Users viewing forum on Index

Post by linc_06 » Wed Jun 06, 2007 2:51 pm

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

terminatoronly
Registered User
Posts: 93
Joined: Wed Jun 13, 2007 7:55 pm

Re: [2.0.19] Users viewing forum on Index

Post by terminatoronly » Sat Jun 16, 2007 9:31 pm

Great Mod will install it ASAP :D

momoftwo
Registered User
Posts: 188
Joined: Mon Mar 05, 2007 4:07 pm

Re: [2.0.19] Users viewing forum on Index

Post by momoftwo » Mon Oct 01, 2007 4:46 pm

Can one use easy mod with this?

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

User avatar
will_hough
Former Team Member
Posts: 1952
Joined: Mon Feb 06, 2006 8:47 pm
Location: Michigan
Name: Will Hough
Contact:

Re: [2.0.19] Users viewing forum on Index

Post by will_hough » Mon Oct 01, 2007 4:54 pm

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.

momoftwo
Registered User
Posts: 188
Joined: Mon Mar 05, 2007 4:07 pm

Re: [2.0.19] Users viewing forum on Index

Post by momoftwo » Mon Oct 01, 2007 7:04 pm

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

User avatar
will_hough
Former Team Member
Posts: 1952
Joined: Mon Feb 06, 2006 8:47 pm
Location: Michigan
Name: Will Hough
Contact:

Re: [2.0.19] Users viewing forum on Index

Post by will_hough » Mon Oct 01, 2007 7:19 pm

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.

momoftwo
Registered User
Posts: 188
Joined: Mon Mar 05, 2007 4:07 pm

Re: [2.0.19] Users viewing forum on Index

Post by momoftwo » Mon Oct 01, 2007 8:54 pm

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;
		}
	}

User avatar
will_hough
Former Team Member
Posts: 1952
Joined: Mon Feb 06, 2006 8:47 pm
Location: Michigan
Name: Will Hough
Contact:

Re: [2.0.19] Users viewing forum on Index

Post by will_hough » Mon Oct 01, 2007 9:30 pm

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'], 

momoftwo
Registered User
Posts: 188
Joined: Mon Mar 05, 2007 4:07 pm

Re: [2.0.19] Users viewing forum on Index

Post by momoftwo » Tue Oct 02, 2007 12:32 am

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,

User avatar
will_hough
Former Team Member
Posts: 1952
Joined: Mon Feb 06, 2006 8:47 pm
Location: Michigan
Name: Will Hough
Contact:

Re: [2.0.19] Users viewing forum on Index

Post by will_hough » Tue Oct 02, 2007 12:59 am

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

momoftwo
Registered User
Posts: 188
Joined: Mon Mar 05, 2007 4:07 pm

Re: [2.0.19] Users viewing forum on Index

Post by momoftwo » Tue Oct 02, 2007 1:43 am

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,

Post Reply

Return to “[2.0.x] MOD Database Releases”

Who is online

Users browsing this forum: No registered users and 22 guests