Welcome, Guest. Please Login or Register.
April 29, 2024, 02:01:54 AM
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 ... 12 13 [14] 15 Reply Ignore Print
Author Topic: [Done 1.5.x] Who's Online w/ Hidden Users w/ Flags  (Read 67340 times)
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #195 on: October 15, 2003, 09:24:35 AM »
Reply with quote

Let me know if this fixes it. Be sure to keep a backup of the current file just in case.

   global $settings, $username, $db_prefix, $color, $yytitle, $mbname, $modSettings, $txt, $scripturl;
   global $settings, $username, $db_prefix, $color, $yytitle, $mbname, $modSettings, $txt, $scripturl, $imagesdir;
to
   global $settings, $username, $db_prefix, $color, $yytitle, $mbname, $modSettings, $txt, $scripturl, $imagesdir;


   $query1 = mysql_query("SELECT identity, logTime, url, ip FROM {$db_prefix}log_online ORDER BY logTime DESC") or database_error(__FILE__, __LINE__);to
   $query1 = mysql_query("
      SELECT o.identity, o.logTime, o.url, o.ip, m.realName, m.memberName, m.memberGroup, m.showOnline
      FROM {$db_prefix}log_online AS o
         LEFT JOIN {$db_prefix}members AS m ON (o.identity = m.ID_MEMBER)
      ORDER BY logTime DESC") or database_error(__FILE__, __LINE__);



   while (list($memberName, $time, $actionInfo, $ip) = mysql_fetch_row($query1))to
   while (list($identity, $time, $actionInfo, $ip, $realName, $memberName, $memberGroup, $showOnline) = mysql_fetch_row($query1))


      $query2 = mysql_query("SELECT realName, memberName, memberGroup FROM {$db_prefix}members WHERE ID_MEMBER='$memberName' LIMIT 1") or database_error(__FILE__, __LINE__);
      list($realName, $memberName, $memberGroup) = mysql_fetch_row($query2);

      $query3 = mysql_query("SELECT COUNTRY_CODE2, COUNTRY_NAME FROM {$db_prefix}ip2country WHERE IP_FROM <= INET_ATON('$ip') AND IP_TO >= INET_ATON('$ip')");
      list($country_code2, $country_name) = mysql_fetch_row($query3);
      if ($country_code2 != '')
         $flag = ' <img src="http://www.pocketpcrussia.com/public/im/Flags/' . strtolower($country_code2) . '.png" alt="' . $country_name . '" title="' . $country_name . '" />';
      else
         $flag = '';
to
      $query = mysql_query("
         SELECT COUNTRY_CODE2, COUNTRY_NAME
         FROM ip2country
         WHERE IP_FROM <= INET_ATON('$ip') AND IP_TO >= INET_ATON('$ip')");
      list($country_code2, $country_name) = mysql_fetch_row($query);

      if ($country_code2 != '')
         $flag = ' <img src="' . $imagesdir . '/Flags/' . strtolower($country_code2) . '.png" alt="' . $country_name . '" title="' . $country_name . '" />';
      else
         $flag = '';



      echo '
      <tr>
         <td class="windowbg2"><font size="1">' . $realName . '</font></td>
to
      echo '
      <tr>
         <td class="windowbg2" width="25" align="center">' . $flag . '</td>
         <td class="windowbg2"><font size="1">' . $realName . '</font></td>
Logged
Cerberus
Full Member
***
Posts: 100


Who's a llama?!

WWW
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #196 on: October 15, 2003, 10:43:38 AM »
Reply with quote

I get this:

Parse error: parse error, unexpected T_VARIABLE in D:\Inetpub\webs\pocketpcrussiacom\test\Sources\Who.php on line 21
Fatal error: Call to undefined function: who() in D:\Inetpub\webs\pocketpcrussiacom\test\Index.php on line 354


btw: the whoflags.mod seems to be incomplete, boardmod says that there's <search for> tag missing.
Logged

Best Regards, Cerberus
Check out http://www.pocketpcrussia.com :)
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #197 on: October 15, 2003, 10:58:17 PM »
Reply with quote

After you've made those changes what is on line 21?
Logged
Cerberus
Full Member
***
Posts: 100


Who's a llama?!

WWW
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #198 on: October 17, 2003, 11:03:40 AM »
Reply with quote

   $query1 = mysql_query("SELECT identity, logTime, url, ip FROM {$db_prefix}log_online ORDER BY logTime DESC") or database_error(__FILE__, __LINE__);
Logged

Best Regards, Cerberus
Check out http://www.pocketpcrussia.com :)
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #199 on: October 17, 2003, 10:15:49 PM »
Reply with quote

I told you to change that line though...
Logged
BrandonMiller
Jr. Member
**
Posts: 52


I'm a llama!

Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #200 on: October 23, 2003, 06:27:07 PM »
Reply with quote

ha ha, bad day for mods for me  ;D

maybe it works, maybe it doesn't..

I can't find any settings? I got a button on my index I can click on and it shows where people are, but I have seen other boards where they list so and so browsing this board on the front index page, is that a setting I can't find or ? I double checked the modsettings.php changes, but there are no settings in the mod section?

he he, help!!

http://www.rivercityrockcrawlers.com/forum/index.php
Logged
Cerberus
Full Member
***
Posts: 100


Who's a llama?!

WWW
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #201 on: October 23, 2003, 06:40:56 PM »
Reply with quote

@Gobalopper: can you attach or send me the a who.php  (with flags) working file please?
Logged

Best Regards, Cerberus
Check out http://www.pocketpcrussia.com :)
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #202 on: October 23, 2003, 06:40:58 PM »
Reply with quote

That's not part of this mod.  You need to look for the "user browsing" mod by Spaceman Spiff.  It is an add-on for this mod.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
BrandonMiller
Jr. Member
**
Posts: 52


I'm a llama!

Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #203 on: October 23, 2003, 07:02:33 PM »
Reply with quote

oh, so no settings for this mod?
Logged
BrandonMiller
Jr. Member
**
Posts: 52


I'm a llama!

Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #204 on: October 23, 2003, 07:03:57 PM »
Reply with quote

got a link? ;)

still searchin..
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #205 on: October 23, 2003, 07:35:22 PM »
Reply with quote

http://www.yabbse.org/community/index.php?thread=22178
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
BrandonMiller
Jr. Member
**
Posts: 52


I'm a llama!

Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #206 on: October 24, 2003, 07:52:31 PM »
Reply with quote

thanks, had it working and then everything related just dissapeared. I have gone over the settings time and time again and everything seems right but there is no button in the modsettings file and it simply isn't working - no errors :(

Logged
Dennis_B
Noobie
*
Posts: 18


Its only impossible... Untill its not...

WWW
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #207 on: November 01, 2003, 11:22:33 AM »
Reply with quote

Im using who-mod and the coppermine gallery yabb bridge-mod and I want the who-mod to see who is using the gallery.

Can someone please point me to how to fix this?

Both are in the same database but the gallery has a own "log_online" table called "cpg11d_users"
The field which the who-mod has to query is called "user_name".

Im looking for just a few lines of code to insert into who.php and the txt which is displayed in who-mod may be hard-coded.

Logged
crash5456
Guest
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #208 on: November 06, 2003, 05:04:53 AM »
Reply with quote

I downloaded the mod today, when I go to apply it it says.........

Error Code 9

This mod seems to be incomplete, there is
a </ search for > tag missing!

If I missed a fix on here I appoligize now.

If anyone can help me out it would be greatly appreciated.
Logged
Thomas
Full Member
***
Posts: 203


WWW
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #209 on: November 28, 2003, 03:08:15 PM »
Reply with quote

Hi

Is it posible to let another usergroup see this Who's online feature. I do not want all of my users to see it - just Admin , Global Moderators + a membergroup.

How should I do that?

/Thomas
« Last Edit: January 12, 2004, 09:01:10 AM by Thomas » Logged
Pages: 1 ... 12 13 [14] 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.088 seconds with 20 queries.