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)

mfyvie 07-07-2007 11:56 PM

Quote:

Originally Posted by mktrilogy (Post 1285465)
can this be integrated to postbit? that would be really cool

That's nothing to do with the Who's Online display, but you can read my answer to the same question on the GLA thread.

tanyeri24 07-07-2007 11:59 PM

Quote:

Originally Posted by mfyvie (Post 1285364)
Disappointing. I offered to support you in your native language, but you never sent me a PM. Your loss.



As the saying goes my friend, those who can read have an advantage. You should try it.

I'm also from Switzerland. I had many plugins from here, but I followed your instructions.. And clicked then installed maybe a little late sorry for that.
Not all plugins working on all users, if there users they get it work maybe there is something wrong with my forum. It's possible, I'm not right a prof. Anyways thanks for your kind messaging and trying to help me.
Gute nacht.

Hornstar 07-08-2007 12:35 AM

Hey very nice stuff! this looks well done.

JD45 07-08-2007 02:33 AM

Quote:

Originally Posted by mfyvie (Post 1285455)

Does your database have a table called ip2country, and is this table populated with data? (This means GLA is installed)
Look at your session table (in the database) - there should be three extra columns on it for country information. They should be populated, at least partially (unless you installed in only a few seconds before checking).

Manually hack in $session[country] somewhere into one of your templates. If GLA is running, this will show YOUR country when you load the page (then remove it again). Best way is to confirm via the session table. If the data is being written to the session table, then you should at least get it in $session[country]

Ok, I do have the table called ip2country and it is populated with data. There are the three extra columns in the session table and they do have data.

Now here's the odd part. I put in $session[country] in templates like the navbar, footer, forumhome etc and it never once showed up.

Any further ideas?

SocialNetworkBuzz 07-08-2007 04:49 AM

Would love to see this coded to show flags on the forum home, who's online box inside of whats going on.

TomasDR 07-08-2007 06:22 AM

Hopefully you can help with my issue though I have read your concerns of using 3.6.6 or higher.

GLA seems to be working but something is wrong with the display of Who's online.

My last full install was 3.6.4, I patched it when the exploit was found and 3.6.5 came out.
http://www.vbulletin.com/forum/showthread.php?t=221905
Patch: A second option is to download the patch files discussed in this thread and upload them to your web server, overwriting the existing files. The patch is available from the Members' Area patch page or you can find it attached to this thread.

Then I was out of town in May and came back when 3.6.7 was released. I saw 3.6.6 was out but didn't upgrade. Instead I just used the plugin patch of 3.6.7.

http://www.vbulletin.com/forum/showthread.php?t=229950
Plugin: The plugin system built into vBulletin 3.6 allows the problem to be fixed with a simple plugin. The install file for this plugin is also attached to this thread and is the easiest way to fix the problem, as it does not require you to upload any files via FTP. The plugin will be automatically removed when you perform your next full upgrade. You can install the plugin by following the instructions here.
Plugin File: vb_calendar366_xss_fix_plugin.xml

Now I know in the perfect world a full upgrade to 3.6.7 would be best but with the number of hacks I have that is a 5+ hour project! Either way I am protected from the exploits found by the vBulletin team.

Now on to my problem with this hack.

First I checked the session table and the three additional fields country_iso2/3 & country are being populated!

Secondly I added $session[country] to a template and it did return my country properly.

Clearly the GLA product is working with a patched 3.6.4 vBulletin.

My problem is the display of Who's Online as I mentioned above.

Please see the attached screenshot. The column is being added but there is no column title nor any country information. Also note if someone does have IM information it's being placed in the new title-less column, not the IM column.

I have only one hack that modifies the WHOSONLINE template and that is a spider hack which divides up guests & spiders.

Other plugins working with any other related online.php hooks are either online_location_process or ..._unknown only.

Thanks in advance.

mfyvie 07-08-2007 06:25 AM

Quote:

Originally Posted by Stabatha (Post 1285560)
Would love to see this coded to show flags on the forum home, who's online box inside of whats going on.

That could create a huge amount of clutter. That area is designed to take text - imagine what it would look like with 300 flags in there?

Quote:

Originally Posted by JD45 (Post 1285515)
Ok, I do have the table called ip2country and it is populated with data. There are the three extra columns in the session table and they do have data.

Now here's the odd part. I put in $session[country] in templates like the navbar, footer, forumhome etc and it never once showed up.

Any further ideas?

Ok, that's odd. If you have the session columns and they are populated, then it's working. Once that table is extended, those values are loaded automatically by vb. You may be putting it in a part of the template that doesn't display?

I just went to footer, and inserted $session[host] as the very first line. This displays the IP address and should work for you - it worked for me and has nothing at all to do with this mod.

Of course there's a remote possibility that your own session has the country field blank if it couldn't look up your address. Maybe you should double check the session table to find your own entry and check.

mfyvie 07-08-2007 06:30 AM

@TomasDR - Just because you've installed some plugins which fix security issues, this is NOT the same as running 3.6.6 or higher. As I said in that information the problem is that you are missing a hook, and this won't be fixed by security patches!

I also said that GLA will work fine (which you've just confirmed), but that Who's online won't work properly.

Because the hook is missing, the mod then has no way to add those extra fields into the query which is pulling the info from the database.

I'm going to update the .xml file so that it will refuse to install on anything less than 3.6.6. I doubt that will eliminate people complaining though.

I'm afraid you'll have to bite the bullet and upgrade. 3.6.6 contains around 20 new hooks and is the only version that will support the new blog and project tools products.

Playa82 07-08-2007 06:54 AM

thanks , works fine

Magnumutz 07-08-2007 07:44 AM

Hey, very nice mod man... I love it... and will *Installed* it right now.


All times are GMT. The time now is 07:33 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.01134 seconds
  • Memory Usage 1,752KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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