Welcome, Guest. Please Login or Register.
November 28, 2024, 03:51:18 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.x] Who's Online w/ Hidden Users w/ Flags « previous next »
Pages: 1 ... 11 12 [13] 14 15 Reply Ignore Print
Author Topic: [Done 1.5.x] Who's Online w/ Hidden Users w/ Flags  (Read 69821 times)
sensovision
Full Member
***
Posts: 100


WWW
Re:[Done 1.5.1] Who's Online w/ Hidden Users
« Reply #180 on: July 28, 2003, 01:21:25 AM »
Reply with quote

 Hi, and first of all thanks for great mod!
But I'm having problems with Who's Online after installing new URL system(similar to one used on this board) which was done to make URLs more search engine friendly. Here is the thread with the Mod.
Here is what I've get when click on Who's button:.
Quote
User Time Action
Phoenix (snipped) Today at 03:32:08 Viewing Who's Online.
CoastPC (snipped) Today at 03:30:32 Previewing a new post to New Member Area.
articutis (snipped) Today at 03:24:44 thread=850/15
greg (snipped) Today at 03:19:58 thread=848
Guest (snipped) Today at 03:19:40 Viewing the main index of Webmaster Key - Discussion Forums
Guest (Snipped) Today at 03:19:17 Registering for an account on the forum.
Guest (Snipped) Today at 03:22:21 Viewing the main index of Webmaster Key - Discussion Forums.
Quote
so is there anyway I can fix this? can you help me please since I and my members like this mod and I wish it to work correctly?
Logged

Denis

Are you good with the graphic? check out our design logo contest!
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[Done 1.5.1] Who's Online w/ Hidden Users w/ Flags
« Reply #181 on: August 02, 2003, 11:29:37 PM »
Reply with quote

I'm guessing it uses a different system to specify what a thread is... You would probably have to change the way Who.php parses the urls.

New version is out with minor fixes. I think the only noticable change is the addition of the printpage action.

I also added another enhancement that resolves IP addresses to country flags. See WhoFlags.mod for the details. Let me know how that installs if you try it.
Logged
Keng
Noobie
*
Posts: 19


Web Thai

ICQ - 11470350kengracing@msn.com WWW
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #182 on: August 16, 2003, 01:05:01 PM »
Reply with quote

edit file
WhoFlags.mod

search
<edit file>
Sources/Who.php
</edit file>


add after

<search for>
   global $settings, $username, $db_prefix, $color, $yytitle, $mbname, $modSettings, $txt, $scripturl;
</search for>

<add after>
   global $settings, $username, $db_prefix, $color, $yytitle, $mbname, $modSettings, $txt, $scripturl, $imagesdir;
</add after>



search
<add before>
      $query3 = 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($query3);
      if ($country_code2 != '')
         $flag = ' <img src="' . $imagesdir . '/Flags/' . strtolower($country_code2) . '.png" alt="' . $country_name . '" title="' . $country_name . '" />';
      else
         $flag = '';

</add before>


replace
<add before>
      $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="' . $imagesdir . '/Flags/' . strtolower($country_code2) . '.png" alt="' . $country_name . '" title="' . $country_name . '" />';
      else
         $flag = '';

</add before>
« Last Edit: August 16, 2003, 01:14:25 PM by Keng » Logged

visit our website at: RacingWeb.NET, Thai YaBB SE Thai Language, Forums test Mods
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #183 on: August 18, 2003, 07:11:36 AM »
Reply with quote


I have installed this Mod some months ago  ;)

It works fine  :D

How i can get the Flags into my Board?

Surfy
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #184 on: August 19, 2003, 03:21:24 AM »
Reply with quote

Download the mod again and look at the mod file for installing the flags extension.
Logged
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #185 on: August 21, 2003, 10:37:45 AM »
Reply with quote


A cool Addon, working fine, thank you  :-*

One missing thing: If someone use a Firewall, and has no correct IP, or Status unknown, there is no Pic  :-[

Could you make an Addon, that a Pic is shown like "Firewalled" or "unknown"?

This would be great!


Surfy
Logged
PoohBear
Jr. Member
**
Posts: 66


Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #186 on: August 24, 2003, 01:18:02 AM »
Reply with quote

Excellent Mod, the who's online portion works fine but but I have tried to add the "Flags" after creating the table when trying to run "ip2country.php", I just thousands of rows of the following error..

QuoteWarning: Wrong parameter count for fgets() in /home/httpd/vhosts/myserver.com/httpdocs/yabbse/ip2country.php on line 22

Any ideas......?
Logged
mrselnombre
Noobie
*
Posts: 37


I'm a llama!

Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #187 on: August 24, 2003, 07:42:59 PM »
Reply with quote

i just downloaded this file but there wasnt a read me with it, so what folders am i supposed to upload too to start it off,
Logged
Dimecross
Noobie
*
Posts: 3


I'm a llama!

Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #188 on: October 03, 2003, 10:47:49 AM »
Reply with quote

Okay, I've tried installing this manually, then with the new boardmod. Neither worked, the one I can say why is using boardmod. I got err12 on steps 8, 9, and 10.

I tried downloading a fresh version and did the same again. I am using 1.5.4, I'd really love to get this mod going, but being so new to this, I'm relying on you. What's the fix?
Logged
Dem0n
Full Member
***
Posts: 107


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

does this mod work with version 1.5.4 final?
Logged

Omar Bazavilvazo
YaBB SE Developer
YaBB God
*****
Posts: 2153


I never said I would stay to the end...

WWW
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #190 on: October 07, 2003, 09:11:37 PM »
Reply with quote

yes :)
Logged

Greetings from México!
http://omarbazavilvazo.com
Mi foro Español-Japonés
http://hablajapones.org
http://hablajapones.org/index.php/japones/tutoriales/b16.php

NO me manden IM para soporte o dudas
...Leo los foros como todos...
Cerberus
Full Member
***
Posts: 100


Who's a llama?!

WWW
Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #191 on: October 11, 2003, 09:12:26 PM »
Reply with quote

I've did all exactly as described, but flags aren't shown. ???
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 #192 on: October 11, 2003, 11:31:48 PM »
Reply with quote

For Surfy:

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


Just change the $flag = ''; line to an image of your choice.

Poohbear that probably means it can't location the ip2country.csv file.

mrselnombre the readme is in the .mod file.

Dimecross which .mod file are you getting the errors with?

Cerberus can you make it so guests can see the who's online page? I want to check it out to see what might have gone wrong.
Logged
Dimecross
Noobie
*
Posts: 3


I'm a llama!

Re:[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« Reply #193 on: October 12, 2003, 08:30:56 AM »
Reply with quote

The error I got was when using boardmod to install the who.mod. I am new at this stuff, had to learn how the add after stuff worked, but I got that.

Maybe I missed it while searching, but I never saw anything that said how to run a file, so I was using my FTP clients execute function, then I tried going to the file through a web browser, and it works fine now.

who.mod doesn't seem to work with boardmod though. Overall though, it's a nice mod, very useful to me. Thanks ;D
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 #194 on: October 14, 2003, 06:48:07 PM »
Reply with quote

thanks for your interest, Gobalopper.
Here's my Who's online.
The ip2country stuff is located in the /test dir.
You can download my who.php file from here.

Once again thanks.
Logged

Best Regards, Cerberus
Check out http://www.pocketpcrussia.com :)
Pages: 1 ... 11 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.053 seconds with 20 queries.