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
  #12  
Old 07-07-2007, 06:51 PM
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
Location: Switzerland
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by tanyeri24 View Post
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.
That's a bit better. You've obviously confirmed that the table "ip2country" is in your database (I take it that's what you mean by country table). The next thing you should do is check your session table, and see if the country column has been added to the session table, and if it is populated.

On the other hand, you might be saying that country table is the column for "Country" on the who's online table itself (if this is what you meant the column rather than table is the word you wanted).

Although you've improved the amount of information you've supplied, please take the time to write clearly and in detail, and I might be able to help you more. In the meantime, I take it you noticed this part in the instructions:

Quote:
Please click install. Support requests from people who have not clicked install may not be answered.
Reply With Quote
  #14  
Old 07-07-2007, 07:17 PM
jderouen's Avatar
jderouen jderouen is offline
 
Join Date: Oct 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Am I correct in assuming that the displays don't update until someone changes what they're doing on the forums? ie: I just installed it, but only a smattering of the 100+ people listed in the Who's Online have a flag next to their name. But as I've reloaded over the last several minutes, I've noticed some of them filling in as they moved around the board.

Is that correct, or is something wrong?

Thanks!
Joe
Reply With Quote
  #15  
Old 07-07-2007, 07:23 PM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jderouen View Post
Am I correct in assuming that the displays don't update until someone changes what they're doing on the forums? ie: I just installed it, but only a smattering of the 100+ people listed in the Who's Online have a flag next to their name. But as I've reloaded over the last several minutes, I've noticed some of them filling in as they moved around the board.

Is that correct, or is something wrong?

Thanks!
Joe
Hi Joe, you are correct - someone has to actually load a page before the required code will fire up for the first time. You can't expect it to work for the sessions that have been inactive since before you installed it. Speaking of installed. [cough] forgotten to click install?
Reply With Quote
  #16  
Old 07-07-2007, 07:37 PM
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
Location: Switzerland
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mfyvie View Post
On the other hand, you might be saying that country table is the column for "Country" on the who's online table itself (if this is what you meant the column rather than table is the word you wanted).
yeah column is there on WOL but no FLAG no NAME. Thanks.
Reply With Quote
  #17  
Old 07-07-2007, 07:39 PM
alessai alessai is offline
 
Join Date: Feb 2006
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'll love this if it can show up in the postbit
Reply With Quote
  #18  
Old 07-07-2007, 07:42 PM
Xil Ze Xil Ze is offline
 
Join Date: Mar 2005
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'm using 3.6.4, so that may be the issue. the database is good and everything installed correctly as far as i can tell but there's no cell for the country data on the page:

Code:
	<td class="alt1"><div class="smallfont">
			
				<a href="online.php?do=resolveip&amp;ipaddress=" id="resolveip_1" title="Resolve IP Address"></a>
			
			
		</div></td>

Flag cell should be here.
	
	<td class="alt1"></td>
		<td class="alt2" align="center" nowrap="nowrap">
			<a href="#" onclick="imwindow('aim', '1', 400, 200); return false;"><img src="http://blogicology.com/images/misc/im_aim.gif" alt="Send a message via AIM " border="0" /></a>
		</td>
(i guess my issue is the same as the other guy's.)
Reply With Quote
  #19  
Old 07-07-2007, 07:53 PM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xil Ze View Post
i'm using 3.6.4, so that may be the issue. the database is good and everything installed correctly as far as i can tell but there's no cell for the country data on the page:
Xil Ze - Bonus points for realising that this is a 3.6.7 mod, but you are running on 3.6.4.

Ok, this is the string I am targetting in both WHOSONLINE and whosonlinebit:

Code:
<if condition="$vboptions['showimicons']">
It looks like you have shown your HTML output there. If you can find the equivalent text in your whosonlinebit template and copy it here (with a couple of lines either side), I'll see what I can do about making it detect 3.6.4 as well. Please check only the standard template (not one you may have modified!). I don't have 3.6.4 so you'll have to send me an email, so I can email you back a version for you to test.
Reply With Quote
  #20  
Old 07-07-2007, 08:44 PM
Xil Ze Xil Ze is offline
 
Join Date: Mar 2005
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

alright, i've determined that, on my board, $userinfo[country_iso2] $userinfo[country] are invariably returned as null. though they're correct in the session table.
Reply With Quote
  #21  
Old 07-07-2007, 08:52 PM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xil Ze View Post
alright, i've determined that, on my board, $userinfo[country_iso2] $userinfo[country] are invariably returned as null. though they're correct in the session table.
That sounds very strange. Try adding something to one of your templates just on a temporary basis: $session[country]. This should display YOUR country, for your own session (from GLA itself). The $userinfo variables belong to the who's online mod.

You can switch to PM's now if you like - that would help to keep all the boring stuff off the thread until we resolve this. If there's information that comes out that is useful, I'll update this thread.
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:35 PM.


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.05171 seconds
  • Memory Usage 2,321KB
  • 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
  • (6)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
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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