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
  #62  
Old 07-08-2007, 04:16 PM
JD45 JD45 is offline
 
Join Date: Feb 2006
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 1996 328ti View Post
What if you do add this to a template?

HTML Code:
<img src="$stylevar[imgdir_misc]/flags/$session[country_iso2].png" alt="$session[country]" />
Look at www.318ti.org/forum/
Do you see the US flag in the lower right of the header banner?
I did add that to mine and it didn't show up and I don't see it on yours either...
Reply With Quote
  #63  
Old 07-08-2007, 04:23 PM
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Location: Greenville, SC
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JD45 View Post
I did add that to mine and it didn't show up and I don't see it on yours either...
OK. I figured if it showed on my site the problem was with your installation.
The fact that it is not showing up then has more to do with your ip address as you both figured.
I was just trying to rule out the installation.
Reply With Quote
  #64  
Old 07-09-2007, 06:33 PM
Zagis Zagis is offline
 
Join Date: Jun 2006
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kaycee123 View Post
I've installed GLA and this program and everything is working fine except the flag pictures don't come up. I have them all installed under /images/misc/flags/ Is that where they're supposed to be??
I've got a similar problem here. It doesn't show flag pictures but only country names, even if I have selected the "Display Country Flag" option.
Quote:
Originally Posted by mfyvie View Post
Try manually typing in the full URL to one of the flags.
I did and I can see them.
Quote:
Originally Posted by mfyvie View Post
The other possibilities is the style variable that points to the misc directory is set somewhere else. If you are using multiple styles and have multiple "misc" directories, then you can put the flags directory in there (this allows you to show different sets of flags according to different styles).
I use only custom style. No others are installed.

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

Quote:
Originally Posted by Zagis View Post
I did and I can see them.I use only custom style. No others are installed.
If you have a custom style then your stylevar might be pointed to a different directory than images/misc - the previous person had the same problem.

Styles and Templates -> (for the right style) Style Vars -> Scroll down to Miscellaneous Images Folder.

On the default installation this is set to "images/misc", which is where you put your flags. If your style has a different location for this directory, then you must move your flags there instead.
Reply With Quote
  #66  
Old 07-09-2007, 07:15 PM
Zagis Zagis is offline
 
Join Date: Jun 2006
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"Miscellaneous Images Folder" is images/misc for the Default Style that I use.
Reply With Quote
  #67  
Old 07-09-2007, 07:24 PM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then the most likely possibility is that the automatic template edits were not able to work due to customisations you've made on WHOSONLINE or whosonlinebit templates (very likely if you have a heavily customised style).

However, if your country names are showing up, then it's obviously managed to make these changes.

The only thing you can do now to examine the source of the page (i.e. check the HTML output) for the who's online display. Each cell should contain something like this:
HTML Code:
<td class="alt1"><img title="Switzerland" style="margin-right: 3px;" src="images/misc/flags/ch.png" alt="Switzerland">Switzerland</td>
You should see the img tag in there, along with the relative path (relative to your forum directory) for the image. Is the problem that the img tag is missing from this cell, or that the path to the image is somehow wrong? If this doesn't resolve the problem, then please paste in just the cell (as I have done) for your page.
Reply With Quote
  #68  
Old 07-09-2007, 07:39 PM
Zagis Zagis is offline
 
Join Date: Jun 2006
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what I've got
PHP Code:
<td class="alt1"><img style="margin-right: 3px" src="images/misc/flags/gr.png" alt="Greece" /></td
Reply With Quote
  #69  
Old 07-09-2007, 07:49 PM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, then based on what you've written, I assembled a URL which *should* display your image directly -

http://www.malinoiscanary.gr/forum/i...c/flags/gr.png

However, it doesn't - this URL just brings up some more of your forum, not the image itself. You said when you put the URL in directly it worked? Which URL did you put in to make it work?
Reply With Quote
  #70  
Old 07-10-2007, 05:32 AM
tycity tycity is offline
 
Join Date: Dec 2006
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is awesome - thanks! Worked like a charm. Only tip is that if you are using a template other than the default VB skin, you have to upload the flags to the template's image directory.
Reply With Quote
  #71  
Old 07-10-2007, 07:19 AM
Zagis Zagis is offline
 
Join Date: Jun 2006
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok this is what happened...

The size of all the png files after bz.png in \forum\images\misc\flags dir was 0 bytes for some reason. So, I reupload the \images\misc\flags dir and the prob solved.
Quote:
Originally Posted by mfyvie View Post
You said when you put the URL in directly it worked? Which URL did you put in to make it work?
I was checking the first 5-6 files (ad.png, ae.png...) and that is why it was working for me.

Any way, thanks for the support :up:
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 11:47 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.06602 seconds
  • Memory Usage 2,327KB
  • 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_html
  • (1)bbcode_php
  • (7)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
  • (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