vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Country Display for Who's Online (https://vborg.vbsupport.ru/showthread.php?t=151600)

mfyvie 07-11-2007 06:13 AM

winpro19, based on what you've told me and the screenshots you've provided, it sounds to me like you've disabled the product "Country display for who's online.". Please go to the products list and confirm that this product is not disabled. Then go to the plugin lists and scroll down until you see the plugins for this product - there should be three of them, and they all should be enabled.

The automatic template changes that are done are very simple, so simple in fact that I didn't think it was necessary to post the manual template changes. However, the string that it is trying to match in the WHOSONLINE and whosonlinebit templates is as follows:

Code:

<if condition="$vboptions['showimicons']">
Please confirm that this exact text is in both those templates. Even people with heavily modified templates should have that text, and these templates haven't changed since v3.6.0. If that text is there, the automatic template changes should match it and replace it, then a column should appear (providing all the options are set to yes, as your screenshot shows)

keyness 07-11-2007 12:32 PM

That's great! Thanks and Congrats!

winpro19 07-11-2007 04:02 PM

Hmm, I verified that the product is enabled and <if condition="$vboptions['showimicons']"> does exist in both those templates. Also in plugin manager there are three plugins for this product. I'm a bit confused regarding this....I tried default vb style as well and still no luck...

Any suggestions?

Edit: I'm running vb 3.6.7

bongwater 07-11-2007 04:16 PM

Im running 3.6.7, installed this after installing GLA. Still I dont see the column of flags....

apiasto 07-11-2007 04:57 PM

very nice thnx

mfyvie 07-12-2007 12:24 PM

Quote:

Originally Posted by winpro19 (Post 1288429)
Hmm, I verified that the product is enabled and <if condition="$vboptions['showimicons']"> does exist in both those templates. Also in plugin manager there are three plugins for this product. I'm a bit confused regarding this....I tried default vb style as well and still no luck...

I believe that this post on the GLA thread will solve your issue.

Quote:

Originally Posted by bongwater (Post 1288439)
Im running 3.6.7, installed this after installing GLA. Still I dont see the column of flags....

By flags I take it you mean flags AND country names (rather than just flags). In any case, if your own IP address isn't being found in the database, you may have the same issue as winpro19 - so I strongly suggest you check out the same post I linked for him above.

TrIn@dOr 07-12-2007 12:27 PM

Hooah!, can we have the same idea but in postbit?, display in every post the flag of the ip wich the user has posted? :D

mfyvie 07-12-2007 12:35 PM

Quote:

Originally Posted by TrIn@dOr (Post 1289141)
Hooah!, can we have the same idea but in postbit?, display in every post the flag of the ip wich the user has posted? :D

That's a little trickier (to do properly), but the idea is that now any developer can easily do this (you might have seen me saying exactly the same thing earlier in the thread). That's the whole point of GLA - to enable others to easily build country-aware applications.

msalman 07-12-2007 01:27 PM

Quote:

Originally Posted by tanyeri24 (Post 1285267)
oke you've right.
country table is there but no flag no country name on WOL.
In admincp is set the show... again there is created "COUNTRY" in WOL
but no FLAG no COUNTRYNAME.
installed exact like .txt.

I've the same problem. I checked, the table ip2country exists in database and it is populated/installed correctly but for some reasons in WOL the column "Country" is created but no flag or country name. I suppose it is getting null values when it go and look for in table and hence no value is displayed in "country" column in WOL.

I just checked session table in database and noticed that for some sessionhash it doesn't have country_iso2, country_iso3, and country. so i guess this is the reason why it gets null values

Is there a way to fix this problem? Thanking in advance!

mfyvie 07-12-2007 01:36 PM

Quote:

Originally Posted by msalman (Post 1289174)
I've the same problem. I checked, the table ip2country exists in database and it is populated/installed correctly but for some reasons in WOL the column "Country" is created but no flag or country name. I suppose it is getting null values when it go and look for in table and hence no value is displayed in "country" column in WOL.

I just checked session table in database and noticed that for some sessionhash it doesn't have country_iso2, country_iso3, and country. so i guess this is the reason why it gets null values

Is there a way to fix this problem? Thanking in advance!

It takes some time after you first install it for new sessions to be established (like 15-30 minutes). Not every IP will be recognised, but there should be around 98%. If you have some sessions in the session table coming up with the country name, then it should work. You should have at least some countries showing up in the who's online list? Have you checked all the pages? Or are you saying that you have a country column, but it is totally empty? I presume you also checked your WOL settings in adminCP and clicked on save (even if you didn't need to, this is a bug in VB)

Mark

msalman 07-12-2007 02:25 PM

^i just installed the hack so i guess it'll take some time before new sessions are added. I'll keep an eye on session table. Otherwise, i guess i'll contact you again, lol

bongwater 07-12-2007 02:54 PM

THAT WORKED!!! thanks I see the flags with the country names now :D:D


Quote:

Originally Posted by mfyvie (Post 1289139)
I believe that this post on the GLA thread will solve your issue.



By flags I take it you mean flags AND country names (rather than just flags). In any case, if your own IP address isn't being found in the database, you may have the same issue as winpro19 - so I strongly suggest you check out the same post I linked for him above.


winpro19 07-13-2007 12:40 AM

Yup worked! Once again I would like to say awesome support and an even better plug-in!

Thanks!!

ForYou 07-14-2007 06:35 PM

Hello ,

There is alot of User can't show country for they IP ,

Please look At attch , and what about the local host there is user have ip "Local Host" !!

Regards

mfyvie 07-14-2007 08:46 PM

I looked at your attachment, but most of it was blanked out.

I can't help it if there is a user that shows as localhost - this has nothing to do with this mod - it would have showed as localhost without this mod anyway.

Your users may not be showing up with a country because you've only just installed this mod and haven't given it enough time to populate the session table. Or maybe these addresses aren't found in the database (which is an issue for the database, rather than this hack).

Poppet 07-16-2007 07:12 AM

Installed both mods in about 5 minutes, working great... Thank you...

yaoren 07-17-2007 03:02 PM

Installed and working great... thanks

ForYou 07-24-2007 07:44 AM

Hello ,

there is alot of Ip's can't show the country name Like 62.135.100.?? this Ip in eygpt ,

there is alot of Ip's in eygpt can't listed in the Database ,

is there any help ,

REgards

mfyvie 07-24-2007 07:52 AM

Quote:

Originally Posted by ForYou (Post 1299884)
there is alot of Ip's in eygpt can't listed in the Database ,

Yes, how to manually add entries to the database was covered earlier in this thread. Please go back and read some of the earlier posts for help.

PixelFx 07-24-2007 08:18 AM

nice mod trying it out for our site :D

Madmp3zz 07-24-2007 07:52 PM

Any chance of getting the US state flags woking on this?

mfyvie 07-24-2007 10:06 PM

Quote:

Originally Posted by Madmp3zz (Post 1300503)
Any chance of getting the US state flags woking on this?

Even if the database supported it (which it doesn't), I think you'd have a huge problem getting accurate information since providers across the US may mix up their IP ranges. If you wanted to buy a commercial database you might be able to do it, but I'm not sure.

Nathan2006 07-24-2007 11:16 PM

Thank you mfyvie

Works a treat just what I have been looking for :D

Install

VoBe 07-29-2007 07:31 PM

Hallo ...
Installed everything like instructions told me. VBulletin Version 3.6.7.

Database is OK. GLA Test is OK. Session table populated.

No display in Whosonline. I only see a new column "country" - no values for members.

Checked templates "WHOSONLINE" and "whosonlinebit" -
there are no modifications made (should be there after INSTALL I think ?)

If I add manually following code in "whosonlinebit":

Code:

<if condition="$show['countryname'] OR $show['countryflag']">
  <td class="alt1">
  <img style="margin-right: 3px" src="$stylevar[imgdir_misc]/flags/$userinfo[country_iso2].png" alt="$userinfo[country]">$userinfo[country_iso2]
</td>
</if>

only a read cross is displayed. It seems that userinfo for "country_iso2" and "country" do
not have a valuable result. What?s wrong ?


Help please.

Regards
Volker

mfyvie 07-29-2007 07:44 PM

Hi Volker,

You said that the session table to populated? The GLA test (if I remember correcly) will tell you how many of the current users have had their country set, and how many have not. What do these numbers say?

If you can see a country column, then you don't need to do any template edits, they should be happening automatically. I'd say the most likely cause is you've installed it straight away and are expecting instant results - it could take up to 15 minutes. It could also be that the addresses you were looking at where not found in the database - use the test script and look some of them up and see what happens.

I'd say look more closely at your session table and at the GLA test script again.

VoBe 07-29-2007 08:10 PM

Hello again ...
I just checked the GLA test script again, it says:

Code:

vBulletin session checks
Testing to see of the our session variable, $vbulletin->session->vars['country'] is set: OK - set (Germany)
Testing to see of the our session variable, $vbulletin->session->vars['country_iso2'] is set: OK - set (de)
Testing to see of the our session variable, $vbulletin->session->vars['country_iso3'] is set: OK - set (deu)
Number of current sessions updated for GLA: OK - 12 of 12
Number of sessions checked by GLA where country was found: 12 of 12
Number of sessions checked by GLA where country was not found: 0 of 12


Flag checks
Flag files must be uploaded not only for the default style, but for all other styles installed. Now checking all styles:
Style: Default Style
Testing to see if the flag from country "ad" is present: OK - Flag file found in correct directory
Testing to see if the flag from country "zw" is present: OK - Flag file found in correct directory
Visual check - two flags should be visible: 


--------------------------------------------------------------------------------

Congratulations - all functions from GLA are working perfectly.

I installed the mod SOME HOURS ago ...

regards
Volker

mfyvie 07-29-2007 08:17 PM

OK, then according to that you have 12/12 sessions where the sessions were assigned to countries - if you look into the session table you should see that the country has been assigned to these sessions (please check this).

If the session table really does contain the country names, then you should not be seeing a blank column for the country in who's online. If you'd like to PM me an admin login I can take a look. But please reverse any manual template edits you did - they should not be needed. There were some issues right in the beginning with this mod, but I believe that they've all been worked out now, so I'm curious as to why you get this result.

VoBe 07-30-2007 07:17 AM

Hello Mark ...

after a complete system check ... it now finally WORKS GREAT.

Thank you for your support.

Why it did not work:
Some vbulletin files I found to be not updated at last software update.
They had version 3.6.5 ! I don“t know how that happened !
Replaced that files with 3.6.7 versions, modified templates and then ...

OK - THE MOD WORKS

Again many thanks for your help.
Good job

Volker

mfyvie 07-30-2007 07:24 AM

Hi Volker,

That's good news. In that case you were probably missing the hook online_query in online.php which appeared in 3.6.6, and that would explain why the necessary data wasn't there. Tricky one...

iogames 07-30-2007 11:45 PM

So no queries right?
and regarding to PostBit, I have seen a few boards with the Flag on it :(

mfyvie 07-31-2007 04:34 AM

Quote:

Originally Posted by iogames (Post 1305796)
So no queries right?
and regarding to PostBit, I have seen a few boards with the Flag on it :(

I'm sorry, I don't understand your post. Could you please be more specific? What do you mean by no queries? Which post is this a reference to? And you say you've seen other boards that have the flag on the postbit? vbulletin systems? Are you saying that this hack already exists? If so, can you post some links? I'm not quite sure what you are trying to say here...

iogames 08-01-2007 05:41 AM

Quote:

Originally Posted by mfyvie (Post 1305908)
I'm sorry, I don't understand your post. Could you please be more specific? What do you mean by no queries? Which post is this a reference to? And you say you've seen other boards that have the flag on the postbit? vbulletin systems? Are you saying that this hack already exists? If so, can you post some links? I'm not quite sure what you are trying to say here...

Uuuh! some humor :rolleyes:

-This hack adds additional queries or not?

- About the hack, sure I read in a vBulletin system about one hack, but many bad reviews made turn my head off... let me remember...

http://www.webmasters.cl/foro/showthread.php?t=1051

http://forums.mtgsalvation.com/showt...p?t=56801#flag

https://vborg.vbsupport.ru/showthread.php?t=54793

mfyvie 08-01-2007 05:49 AM

Quote:

Originally Posted by iogames (Post 1306762)
Uuuh what humor :rolleyes:

-This hack adds additional queries or not?

- About the hack, sure I read in a vBulletin system about one hack, but many bad reviews made turn my head off... let me remember...

Interesting idea about humour you have...

If you look at the feature list at the top of this page you'll see the words "no additional queries".

iogames 08-01-2007 06:01 AM

https://vborg.vbsupport.ru/showthread.php?t=27044

There was a hack, maybe this can give you an idea...

Told Ya!

http://www.vpforums.com/forum/showth...threadid=38109

P.S. I know is vB 2.x, my respects for him!

mfyvie 08-01-2007 06:16 AM

That hack you linked above is a totally different thing - it requires users to supply their country as part as their profile information. GLA operates on their IP address and performs its functions automatically.

UKbaby 08-01-2007 10:12 AM

doesnt seem to upload for me ;S

iogames 08-01-2007 04:02 PM

Quote:

Originally Posted by UKbaby (Post 1306963)
doesnt seem to upload for me ;S

9 months to talk!!! LOL

Ok, then I understand is very difficult to show in the postbit, altought I saw a new board with it, let me remember... Thanks **vie!

BigDog56 08-07-2007 12:04 PM

EDIT: Figured it out.

tekguru 08-08-2007 09:39 AM

Installed for me and working like a dream!

Now if anyone does come up with a Mod to display the data on the postbit I'm in 7th Heaven :)

Mrdby 08-27-2007 05:01 PM

Works Perfect!!!


All times are GMT. The time now is 03:33 AM.

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.01337 seconds
  • Memory Usage 1,841KB
  • 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
  • (3)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete