Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Country Display for Who's Online Details »»
Country Display for Who's Online
Version: 1.00, by mfyvie mfyvie is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.7 Rating:
Released: 07-06-2007 Last Update: 07-07-2007 Installs: 282
Uses Plugins
 
No support by the author.

*** Staff note: The author of this modification has passed away in a diving accident. We wish his family all strength in dealing with this traggic issue. ***

Country Display for Who's Online

What does this do?

It adds another column to your Who's Online display, with the country where the user is logging on from. You can choose either the name, the flag or both. You can also decide which users can see this information.

How about a quick summary of features?

Country display can be admin/moderator only, or available for everyone to see
You can display the country name, a flag, or both. You can use alternative flag sets if you want
Adds minimal overhead, no additional queries
Works on 3.6.6, 3.6.7 and should work for future versions as well. Will not work on versions prior to this. There is a manual file hack for previous versions here (unsupported).
Country information is provided by the GLA (Geographic Location Awareness) mod. Therefore updates to GLA will automatically provide improvements to any mod using GLA.

How do I install?

1. Install GLA first. You can find it here. It's easy and takes a minute.
2. Download and install the enclosed .xml file via adminCP -> Plugins & Products -> Manage Products -> Add/Import Product -> Import.

How do I configure it?

By default it will display only the country name to admin, super moderators and moderators. You can change this under vBulletin Options -> Who's Online Options. Be sure to check these options and click "save", even if you haven't changed anything. See attached screenshots.

Before posting on this thread:

If your issue concerns questions about country detection, the accuracy of the database, etc - please post your question on the GLA thread instead. Please only post issues here concerning the Who's Online display itself.

Please click install. Support requests from people who have not clicked install may not be answered.

Version history:
V1.0 - (07.07.07) Initial release

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 07-24-2007, 07:52 PM
Madmp3zz Madmp3zz is offline
 
Join Date: Aug 2005
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance of getting the US state flags woking on this?
Reply With Quote
  #103  
Old 07-24-2007, 10:06 PM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Madmp3zz View Post
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.
Reply With Quote
  #104  
Old 07-24-2007, 11:16 PM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you mfyvie

Works a treat just what I have been looking for

Install
Reply With Quote
  #105  
Old 07-29-2007, 07:31 PM
VoBe VoBe is offline
 
Join Date: Feb 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #106  
Old 07-29-2007, 07:44 PM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #107  
Old 07-29-2007, 08:10 PM
VoBe VoBe is offline
 
Join Date: Feb 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #108  
Old 07-29-2007, 08:17 PM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #109  
Old 07-30-2007, 07:17 AM
VoBe VoBe is offline
 
Join Date: Feb 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #110  
Old 07-30-2007, 07:24 AM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #111  
Old 07-30-2007, 11:45 PM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04720 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete