vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - Shows country Flag for Users and Guests in, Who is Online (https://vborg.vbsupport.ru/showthread.php?t=276950)

New Joe 01-13-2012 11:00 PM

Shows country Flag for Users and Guests in, Who is Online
 
Shows the country flag next to the user or guest in Who Is Online

Which I originally made it a Template Edit here:
https://vborg.vbsupport.ru/showthrea...24#post2287624
If you have edited your Template with the above and wish to install this one please revert the Template you edited first.

but as many like myself , like the xml Import way better.

What does this product do?
This product will display the country flag of users and guests on Who's Online.

Credits:
A big thank you goes out to Boofo for helping put my Template edit Mod into this xml file Mod.
.................................................. .................................................. .................................................. .................
*Up-Date*
Advanced Version Now available!

There is now a paid advanced version of this mod available with no outside links.

It will show the Country Flags in 6 places:

1) Member List
2) Member Profile
3) Postbit
4) Private Messages
5) Show Groups
6) Who's Online


About the Advanced Version:

This will fetch the flags directly from your site using no outside link.
If you hover over the Flag, it will show you the country name.
There are separate settings available to disable the flags for each area they are shown in, as well as settings for usergroups and userids allowed to view the flags.

NOTE: Monthly updates needed to keep the flags locations current are included.

For all those who are interested in the paid advanced version, please PM Boofo directly and he will take it from there, providing you with and necessary info:

Boofo- https://vborg.vbsupport.ru/member.php?u=9948
.................................................. .................................................. ..................................................

Version Information:
Version 1.0.0 --Initial release for vB 4.X.XX (tested on all vB 4 versions right up to 4.1.10 and works fine)

Installation Instructions:

Go to your Admin CP
Scroll down to 'Plugins & Products'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the 'product-country_flag.xml' file on your computer
Click Import

Don't forget to Click Install:up:
No Click No Support;)

New Joe 01-14-2012 01:35 PM

**First Post Reserved**

Please Read:

About this Mod and the Flags:
This gets the flags from here: http://www.hostip.info
If you see a ? flag in Who is Online, this is as this site doesn't know your IP, you can go here:
http://www.hostip.info/use.html

And on the top right you will see:
.
Quote:

.. actually we haven't a clue.
IP found in 0.0003 seconds
Is this wrong? Make a correction
Click on Make a correction, submit your country and city and this will update your flag with them and then you.

Merjawy 01-14-2012 01:39 PM

Got it :) 1st install

Yeah I like to stay away from template edit as much.

Thanks


EDIT: Shows my IP flag for all users now and flags kinda bigger than other mod

New Joe 01-14-2012 01:45 PM

Quote:

Originally Posted by Merjawy (Post 2287651)
Got it :) 1st install

Yeah I like to stay away from template edit as much.

Thanks

That's why I worked with Boofo to make it an xml import Mod.

Glad you like it, it is cool to see and helps to know where you're users or guests are from with the flags

Merjawy 01-14-2012 01:52 PM

Yes I was using another one for vB 3 and loved it, was very helpful

This new one is showing same flag (mine) for everyone though.. I didn't have the problem with the template edit one !!!

New Joe 01-14-2012 01:55 PM

Quote:

Originally Posted by Merjawy (Post 2287651)

EDIT: Shows my IP flag for all users now and flags kinda bigger than other mod

Did you revert the Template from the Edits from the other one?
I'll take a look and also ask Boofo too.

Boofo 01-14-2012 01:57 PM

They didn't revert the template.

Merjawy 01-14-2012 01:59 PM

Yeah I reverted it before import..

Wait,, now its showing different flags (like it should), but some IPs get different flags when they are in same country !!!

I am going to keep an eye on it and see if it clears up a lil

Boofo 01-14-2012 02:00 PM

And the flags should all be the same height, just different widths, which is due to the flag files they are using.

Merjawy 01-14-2012 02:10 PM

It seems to be working ok now!!!

I see two sets of IPs from California but they show none US flag! (got facebook all over them when I checked whois)

Looks good to me.. ship it

Thanks both

New Joe 01-14-2012 02:13 PM

Quote:

Originally Posted by Merjawy (Post 2287673)
It seems to be working ok now!!!

Looks good to me.. ship it

Thanks both

Cool.
:cool::up:

BlueCheri 01-14-2012 02:34 PM

It's really a good idea.

This works fine

New Joe 01-14-2012 02:43 PM

Quote:

Originally Posted by BlueCheri (Post 2287685)
It's really a good idea.

This works fine

Happy you like it:D

oddmud 01-14-2012 02:54 PM

I love the idea however I'm getting a lot of broken images displayed.

New Joe 01-14-2012 03:15 PM

Quote:

Originally Posted by oddmud (Post 2287693)
I love the idea however I'm getting a lot of broken images displayed.

Could you show me in a screen shot please

Fready 01-14-2012 03:52 PM

Installed and working fine, no broken images, a few ? flags but not many.
Great Mod 5 stars

GhostHunter2010 01-14-2012 05:56 PM

unistalled not showin up

Dr.osamA 01-14-2012 08:43 PM

installed under test

thank tou bro

brb

DAMINK 01-15-2012 01:10 AM

Installed and working ok.
A few missing flags (one of which is mine).
I assume it has trouble geo locating some ips?
Which i actually find weird as a simple geo script seems to pick up my location just fine?
Any ideas why there is some missing?

Boofo 01-15-2012 01:41 AM

You can go up to the site and update their db with your location and it will start showing it properly. I had to do that myself.

http://www.hostip.info/

DAMINK 01-15-2012 01:46 AM

Thanks Boofo i will do that.
Also i noticed the page has stretched sideways by a mile.
There is a Search icon on the far right of screen about the equivalent of 20 pages wide lolz.

Boofo 01-15-2012 02:02 AM

Anytime you use an online IP lookup site, there are bound to be lapses in location info. Then you have to worry about what if their site goes down, for whatever reason. It's all part of the game, I guess. ;)

DAMINK 01-15-2012 02:12 AM

I have a database of my own for geo targeting on the same server i am using this mod.
I wonder how easy it would be to use my own database?
Edit the xml file i imagine?
Would be a better option for everyone to use there own servers rather than others?
Sure updates are a pain but still my database must be more accurate than theres as i can locate my long and lat coordinates etc.

Boofo 01-15-2012 02:31 AM

I use digitalpoint's usermap mod which utilizes the GeoIP db, but that isn't 100% accurate either. Take a look at his mod and see what it all entails. It isn't as easy as changing an xml like this one. I prefer to have it on my own server as opposed to using an outside link. But them you have to worry about keeping the db or files updated so they are current. I just finished a mod on my site that uses PHP files for the country code and has it's own set of flags. It is way faster than an outside link and so far seem to be fairly accurate. It doesn't use the vbulletin db at all so there are no queries. It hasn't missed a flag yet. ;)

New Joe 01-15-2012 04:46 AM

Quote:

Originally Posted by GhostHunter2010 (Post 2287781)
unistalled not showin up

Hard to help with such a post as that.
So you imported the xml file, and then nothing showed for Who is Online? No flags?
Do you have a link to your Forum for us?

New Joe 01-15-2012 04:48 AM

Quote:

Originally Posted by Dr.osamA (Post 2287842)
installed under test

thank tou bro

brb

Is it still not showing on your Arabic Forum Dr.o?

DAMINK 01-15-2012 04:54 AM

@ New Joe

I am getting some really weird side effects from this.
Its working ok but i am now getting a very stretched out forum sideways with an image images/buttons/search.png way over the right side?
Is this related to this mod perhaps?

New Joe 01-15-2012 05:18 AM

Quote:

Originally Posted by DAMINK (Post 2288022)
@ New Joe

I am getting some really weird side effects from this.
Its working ok but i am now getting a very stretched out forum sideways with an image images/buttons/search.png way over the right side?
Is this related to this mod perhaps?

Is this when you are on Who Is Online?

This should have no effect what so ever with the search button.
As a test, un-install it and try the Tempate edit one, see of you still get the same problem.

https://vborg.vbsupport.ru/showthrea...24#post2287624

Robert8 01-15-2012 06:07 AM

Installed in 4.1.10 and working fine. Many thanks!!!

fizzow 01-15-2012 06:08 AM

Quote:

Originally Posted by GhostHunter2010 (Post 2287781)
unistalled not showin up

Doesn't show up for me either. I'm using vB 4.1.5.

Will try template edit later and see how it goes.

New Joe 01-15-2012 06:11 AM

Quote:

Originally Posted by Robert8 (Post 2288039)
Installed in 4.1.10 and working fine. Many thanks!!!

Cool

New Joe 01-15-2012 06:13 AM

Quote:

Originally Posted by fizzow (Post 2288040)
Doesn't show up for me either. I'm using vB 4.1.5.

Will try template edit later and see how it goes.

Very strange, I also have it installed on 4.1.5 and tested it on 4.1.3 and works fine.
Let me know how the Template edit one goes.

oddmud 01-15-2012 03:20 PM

Quote:

Originally Posted by New Joe (Post 2287702)
Could you show me in a screen shot please

If I load the URL of the broken image in a new tab, it'll show the image, but it's broken on the who's online page.

Boofo 01-15-2012 03:43 PM

Try running this:

PHP Code:

http://api.hostip.info/flag.php?ip= 

with one of those ips at the end of it and see if the image shows up then.

oddmud 01-15-2012 05:19 PM

I've done that, that's what I meant by loading the URL in a new tab. They work that way.

Boofo 01-15-2012 05:34 PM

Then it almost has to be something going on with the site that is hosting the URL. Is it doing it all the time or sporadically?

oddmud 01-15-2012 05:52 PM

Quote:

Originally Posted by Boofo (Post 2288225)
Then it almost has to be something going on with the site that is hosting the URL. Is it doing it all the time or sporadically?

All the time.

Boofo 01-15-2012 06:00 PM

Well, you got me on that one, then as I haven't come across it, myself. That is why I don't personally use an outside link for my site. Too many things can happen like what you are going through.

DAMINK 01-16-2012 06:42 AM

Quote:

Originally Posted by New Joe (Post 2288030)
Is this when you are on Who Is Online?

This should have no effect what so ever with the search button.
As a test, un-install it and try the Tempate edit one, see of you still get the same problem.

https://vborg.vbsupport.ru/showthrea...24#post2287624

I believe it was another problem unrelated to this mod.
I ended up rolling back a database and then reinstalling and everything is fine so it must have been something i did.
Sorry about that.

Boofo 01-16-2012 08:09 AM

Glad you got it working. ;)

Here is a modified version, without an outside link I did for my site.


All times are GMT. The time now is 07:13 PM.

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.01338 seconds
  • Memory Usage 1,827KB
  • 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
  • (1)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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