Welcome, Guest. Please Login or Register.
November 28, 2024, 11:51:48 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.x] Who's Online w/ Hidden Users w/ Flags « previous next »
Pages: 1 ... 4 5 [6] 7 8 ... 15 Reply Ignore Print
Author Topic: [Done 1.5.x] Who's Online w/ Hidden Users w/ Flags  (Read 69844 times)
babylonking
Full Member
***
Posts: 174


Proudly Canadian

WWW
Re:[Beta 1.4.1] Who's Online
« Reply #75 on: October 13, 2002, 09:56:16 PM »
Reply with quote

Gobalopper: I run who_dbmod.php and every thing is working fine.....thanks for this great mod. :)
Logged

Proudly Canadian          
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[Beta 1.4.1] Who's Online
« Reply #76 on: October 13, 2002, 10:31:29 PM »
Reply with quote

There is one thing wrong so far, that I've seen. I've added the correct mods and everything, but when I went to view the online page, I got a message of this:

Guest (XXX.XXX.XX.XXX)   Today at 04:22:06pm   Viewing the index page of .

I added all of the correct english.lng parts to my file, as well as going through in a different browser and looking at the main page of every forum I have, but I've never been able to dusplicate what that guest is viewing right now.

Any ideas? :-/ I've got one restricted board, but it shows up on the who's listing correctly, and my other 5 boards show up correctly as well.
Logged
Horseman
YaBB God
*****
Posts: 784


'MAS VALE CABALLO QUE CAUDAL!'

ICQ - 44729151 WWW
Re:[Beta 1.4.1] Who's Online
« Reply #77 on: October 13, 2002, 11:14:24 PM »
Reply with quote

Quote from: Gobalopper on October 13, 2002, 05:43:17 PMbabylonking did you run the who_dbmod.php file?

And Horseman are you sure about that? I'm pretty certain that will cause problems with the if statements.

yes in my download
the error is this:

Quote<option val[size=52]\[/size]
   ue="2" $who_viewGM>$txt[who98]
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[Beta 1.4.1] Who's Online
« Reply #78 on: October 14, 2002, 02:38:50 AM »
Reply with quote

You could get that error if the Guest was trying to view a board that didn't exist, like if they were just typing in random board numbers.

Horseman I'm confused what did you mean by that last post?
Logged
Horseman
YaBB God
*****
Posts: 784


'MAS VALE CABALLO QUE CAUDAL!'

ICQ - 44729151 WWW
Re:[Beta 1.4.1] Who's Online
« Reply #79 on: October 14, 2002, 06:30:12 AM »
Reply with quote

Quote from: Gobalopper on October 14, 2002, 02:38:50 AMYou could get that error if the Guest was trying to view a board that didn't exist, like if they were just typing in random board numbers.

Horseman I'm confused what did you mean by that last post?

@gobalopper

please, open your mode from the first message and search for line 119.

<td class="windowbg2" bgcolor="$color[windowbg2]"><select name="who_view">.............
at the end  look  tag <option value> it ist  <option val\
the line 120 is
ue="2" $who_viewGM>$txt[who98]</option></select></td>

value NOT val\ue
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[Beta 1.4.1] Who's Online
« Reply #80 on: October 14, 2002, 06:33:32 AM »
Reply with quote

Ah hehe, stupid emacs. Uploaded that fix to the actual download. Thanks Horseman. :)
Logged
DJTommyC
Jr. Member
**
Posts: 81


Passion for Music

Re:[Beta 1.4.1] Who's Online
« Reply #81 on: December 11, 2002, 07:48:32 PM »
Reply with quote

I've got a problem with this mod..
I've made all the changes (manual cause boardmod ain't that good..)
But 1 step won't work, the line to search for isn't there or can't be found..
This:
if($settings[7] == 'Administrator') { $yymenu = $yymenu.$menusep."<a href=\"$cgi;action=admin\">$img[admin]</a>"; }Should be found, and then this should be added after it:
   if( $modSettings['who_enable'] && ( ( $username == "Guest" && $modSettings['who_view'] == 0 ) || ( $username != "Guest" && $modSettings['who_view'] <= 1 ) || $settings[7] == "Global Moderator" || $settings[7] == "Administrator" ) ) { $yymenu .= "$menusep<a href=\"$cgi;action=who\">$img[who]</a>"; }I have a YaPP forum but I don't think that should make a diference..??
Help me please!
Grtzz
Tommy
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[Beta 1.4.1] Who's Online
« Reply #82 on: December 11, 2002, 11:51:47 PM »
Reply with quote

Does YaPP change the menu's at all? All that step does is add in a menu link to the Who's Online page so it will still work without it.
Logged
John R
PHP Challenged
Global Moderator
Sr. Member
*****
Posts: 387


Click, Click, Click, Bang!

ICQ - 3166233codehammer@thevortex.com
Re:[Beta 1.4.1] Who's Online
« Reply #83 on: December 12, 2002, 04:22:34 AM »
Reply with quote

In YaPP, your menu is edited from the admincenter.  You need to look for 'menu management' and then create a link to who.php there.

Personally, I have my link in my 'usersonline' block and it can only be seen by admins/gmods.

Bottom line, you can add a link to your menu by following what I outlined in the first paragraph.

cheers...........
Logged

Be careful what you wish for, it might come true!

Note: I do not acknowledge support requests via PM, MSN or ICQ, please use the support boards.
DJTommyC
Jr. Member
**
Posts: 81


Passion for Music

Re:[Beta 1.4.1] Who's Online
« Reply #84 on: December 12, 2002, 06:20:47 AM »
Reply with quote

Can you give me the code for the Who's online in the online block and only seen my admi'n/mods ?
thx
Tommy
Logged
John R
PHP Challenged
Global Moderator
Sr. Member
*****
Posts: 387


Click, Click, Click, Bang!

ICQ - 3166233codehammer@thevortex.com
Re:[Beta 1.4.1] Who's Online
« Reply #85 on: December 12, 2002, 02:58:41 PM »
Reply with quote

Open up blocks.php and look for the function online() and replace the entire function with this code.  This will place a 'user actions' link at the bottom on the users online block that will link to who.php

cheers...........

function online() {
   global $numusersonline, $users, $guests, $db_prefix, $scripturl;

   $guests = 0;
   $tmpusers = array();
   $request3 = mysql_query("SELECT identity FROM {$db_prefix}log_online WHERE 1 ORDER BY logTime DESC");
   while ($tmp = mysql_fetch_array($request3))
   {
      $identity = $tmp[0];
      $euser=urlencode($identity);
      $request4 = mysql_query("SELECT realName, memberGroup FROM {$db_prefix}members WHERE (memberName='$identity') LIMIT 1");
      if (mysql_num_rows($request4) > 0){
         $tmp = mysql_fetch_row($request4);
            if ($tmp[1]=="Administrator")
              $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\">$tmp[0]<a>";
            elseif ($tmp[1]=="Global Moderator")
              $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\">$tmp[0]</a>";
            else
           $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\">$tmp[0]</a>";
      }
      else
         $guests ++;
   }
   $users = "<font size=1>".implode(", ",$tmpusers)."</font>";
   $numusersonline = sizeof($tmpusers);
   
}
Logged

Be careful what you wish for, it might come true!

Note: I do not acknowledge support requests via PM, MSN or ICQ, please use the support boards.
DJTommyC
Jr. Member
**
Posts: 81


Passion for Music

Re:[Beta 1.4.1] Who's Online
« Reply #86 on: December 12, 2002, 10:18:58 PM »
Reply with quote

I've mad the changes but I don't see the link??
Do I have do do something more?
thx
Logged
John R
PHP Challenged
Global Moderator
Sr. Member
*****
Posts: 387


Click, Click, Click, Bang!

ICQ - 3166233codehammer@thevortex.com
Re:[Beta 1.4.1] Who's Online
« Reply #87 on: December 13, 2002, 01:36:41 AM »
Reply with quote

Sorry about that there is one other little change you need to make.  In blocks.php, look for the following code -
         if ($block[type] == "uonline") {
            online();
            $block[contents] = "$guests $txt[141]<BR>$numusersonline $txt[142]<BR>$users";
            }

and change it to this code -
         if ($block[type] == "uonline") {
         online();
         if(($settings[7] == 'Administrator')||($settings[7] == 'Global Moderator')||($settings[7] == 'VGirl Member')){$stuff = "<br><br><a href='$scripturl?action=who'><center><b>User Actions</center></b></a>";}else{$stuff = "";}
         $block[contents] = "$guests $txt[141]<BR>$numusersonline Members<BR>$users$stuff";
         }

This should display the link for you.

cheers..........
Logged

Be careful what you wish for, it might come true!

Note: I do not acknowledge support requests via PM, MSN or ICQ, please use the support boards.
Symetrical
Jr. Member
**
Posts: 62


I'm a llama!

Re:[Beta 1.4.1] Who's Online
« Reply #88 on: December 28, 2002, 05:33:20 PM »
Reply with quote

Hi, I'm trying to use this mod, but all I ever get in the action is viewing the board index (and the IPs never display). Any ideas?
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[Beta 1.4.1] Who's Online
« Reply #89 on: December 28, 2002, 06:49:38 PM »
Reply with quote

Did you run the alter table queries to add fields to store the IP and users action?
Logged
Pages: 1 ... 4 5 [6] 7 8 ... 15 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.x] Who's Online w/ Hidden Users w/ Flags « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.073 seconds with 20 queries.