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)

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 :(


All times are GMT. The time now is 03:08 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.01131 seconds
  • Memory Usage 1,743KB
  • 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_code_printable
  • (1)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
  • (10)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