The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Country Display for Who's Online Details »» | |||||||||||||||||||||||||
*** 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
|
Comments |
#102
|
|||
|
|||
Any chance of getting the US state flags woking on this?
|
#103
|
|||
|
|||
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.
|
#104
|
||||
|
||||
Thank you mfyvie
Works a treat just what I have been looking for Install |
#105
|
|||
|
|||
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> not have a valuable result. What?s wrong ? Help please. Regards Volker |
#106
|
|||
|
|||
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. |
#107
|
|||
|
|||
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. regards Volker |
#108
|
|||
|
|||
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. |
#109
|
|||
|
|||
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 |
#110
|
|||
|
|||
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... |
#111
|
||||
|
||||
So no queries right?
and regarding to PostBit, I have seen a few boards with the Flag on it |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|