vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Show Guest Location for Administrator (https://vborg.vbsupport.ru/showthread.php?t=44284)

exTracT 10-04-2002 04:48 PM

Show Guest Location for Administrator
 
I have guest access turned off on my board. and I don't show guests in "Who's Online". Is it possible to show a full who's online with guests and their location in the admin cp. I always see there are guests online and I am curious where they are on my website.

If anyone has some insite on this It would be greatly apreciated.

thanks

Logician 10-04-2002 07:29 PM

Quote:

Originally posted by exTracT
I don't show guests in "Who's Online". Is it possible to show a full who's online with guests and their location in the admin cp.
I dont understand. Why did you disable "Guest activity on Who's Online" setting while this is exactly what you want?

Just enable the setting via Admin CP and you should be fine.. ;)

exTracT 10-04-2002 08:46 PM

what I am looking for is it to show the guests only inside the admin cp and not the regular who's online.

Logician 10-04-2002 09:07 PM

Let me give you another solution:

Edit online.php, find:
PHP Code:

  default:
    
$userinfo[activity] = 'unknown';
  }

  return 
$userinfo;


After that add:
PHP Code:

if ($bbuserinfo[usergroupid]==6)
{
$WOLguests=1;} 

This will display the guests to only Site Admins in who is online..

Fits to you?

exTracT 10-04-2002 10:53 PM

I seem to get this error when i click on to see whos online

Parse error: parse error, unexpected '=' in /forums/online.php on line 622

Logician 10-05-2002 07:06 AM

sorry missing char.. Try now..

exTracT 10-05-2002 07:30 AM

still no goes.

Logician 10-05-2002 07:37 AM

Can you please post the lines between 618 to 630 and tell me which one is 622?

Also make sure you use Notepad to edit and IE or Netscape (not Opera) to copy paste from here

exTracT 10-05-2002 07:39 AM

618:
return $userinfo;
}

622: $allusers= $DB_site->query("SELECT user.username, session.location, session.lastactivity, user.userid, user.usergroupid, user.invisible, session.host, user.showemail, user.receivepm
FROM session
". iif($WOLguests, " LEFT JOIN user USING (userid) ", ",user") ."
WHERE session.lastactivity > $datecut
". iif(!$WOLguests, " AND session.userid = user.userid", "") ."
ORDER BY user.username
");

$moderators = $DB_site->query("SELECT DISTINCT userid FROM moderator");

Logician 10-05-2002 07:54 AM

And where is the hack code I told you to insert? :confused:

It seems that you are getting the error BEFORE applying the hack..

Quote:

Originally posted by exTracT
618:
return $userinfo;
}

622: $allusers= $DB_site->query("SELECT user.username, session.location, session.lastactivity, user.userid, user.usergroupid, user.invisible, session.host, user.showemail, user.receivepm
FROM session
". iif($WOLguests, " LEFT JOIN user USING (userid) ", ",user") ."
WHERE session.lastactivity > $datecut
". iif(!$WOLguests, " AND session.userid = user.userid", "") ."
ORDER BY user.username
");

$moderators = $DB_site->query("SELECT DISTINCT userid FROM moderator");


exTracT 10-05-2002 07:57 AM

this is the regular code, i stuck in your code right above line 622

Logician 10-05-2002 08:21 AM

Quote:

Originally posted by exTracT
this is the regular code, i stuck in your code right above line 622
I dont know what your problem is but I can say that there is nothing wrong with my code. Again:
1- make sure you dont use Opera to copy paste,
2- Make sure you use Notepad to insert the hack
3- Make sure you send the file as ASCII in your FTP program.

If you insert the code to the right place I mentioned it can not procude a "parse error".. Tested..


All times are GMT. The time now is 05:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01123 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete