PDA

View Full Version : Mini Mods - Shows country Flag for Users and Guests in, Who is Online


New Joe
01-13-2012, 11:00 PM
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/showthread.php?p=2287624#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:
... 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
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
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
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
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
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
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
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
@ 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/showthread.php?p=2287624#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
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
Installed in 4.1.10 and working fine. Many thanks!!!
Cool

New Joe
01-15-2012, 06:13 AM
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
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:

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
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
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/showthread.php?p=2287624#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.

DAMINK
01-16-2012, 08:14 AM
Thanks for your help Boofo.
As for the internal link. How did you do it?
Just create your own database?

New Joe
01-16-2012, 08:24 AM
Glad you got it working. ;)

Here is a modified version, without an outside link I did for my site.
That's looking good Boofo.

Boofo
01-16-2012, 08:29 AM
Thanks for your help Boofo.
As for the internal link. How did you do it?
Just create your own database?

I uploaded a new pic in that last post that shows a flag that is not just US. I found a place that gets updates from one of their IP sites and separates it into separate files. The file system will be faster and not have to depend on an outside site in case it goes down or gets overloaded, or what not. I haven't had an IP shows up yet that didn't have a flag for it and it seems to be accurate. The only downside is you have to keep the db files up-to-date but the site I got it from updates them every month. The latest update was today. I'm working on adding the flags to the profile and postbit but that is going to take some doing. ;)

@Joe - Thank you, sir. ;)

UPDATE: Finally finished the mod. I got the flags to show in the Who's Online as well as the Postbit and Member Profile. ;)

New Joe
01-19-2012, 06:34 AM
*Up-Date*
Advanced Version Now available!

There is now a paid advanced version of this mod available with no outside links. It also shows the Flags in 3 places:

1) Who's Online
2) Postbit
3) User's Profile page

About the paid advanced Version
This will fetch the flags directly from you site and is accurate.
If you hover over the Flag is also tells you the country name.
It has options for usergroups and userids for who is allowed to view the flags.
A monthly update of the included files to keep the flags accurate is added to the paid version at no charge.

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

doctorsexy
01-19-2012, 08:55 AM
is there a demo of it

New Joe
01-19-2012, 09:03 AM
is there a demo of it
Please PM Boofo- https://vborg.vbsupport.ru/member.php?u=9948
And he will show you the demo, screen shots and all the necessary info for it.

I've tried it out and it is really good.

TheSupportForum
01-19-2012, 10:00 AM
*Up-Date*
Advanced Version Now available!

There is now a paid advanced version of this mod available with no outside links. It also shows the Flags in 3 places:

1) Who's Online
2) Postbit
3) User's Profile page

About the paid advanced Version
This will fetch the flags directly from you site and is accurate.
If you hover over the Flag is also tells you the country name.
It has options for usergroups and userids for who is allowed to view the flags.
A monthly update of the included files to keep the flags accurate is added to the paid version at no charge.

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

we need a demo
plus there 3 options shown above where discussed in multiple posts via yourself and boofo on how to do this, making it easy to copy and convert to a advanced version
all that is nesesary to do it copy the same code in the above 3 places as a plugin
or using TMS

i'd need to know what features it provides not just standard template edits
for example can i can font face via admincp for postbit, footer, and user profile field
and i can colour of font for individual areas

can i hide this from certian groups

i think people need to have a full list to know this is a advanced version

---------------------------------------------------------------------
suggestions to make this an advanced version please

1. able to change font face (postbit legacy)(profile)(whos online)
2. able to change colour for each section (postbit legacy)(profile)(whos online)
3. hide from certian usergroups
must provide as tick boxes not standard text entert to deny usergroup 2 viewing for example
ans W3C complaint ( the code itself would have to be W3C complaint) please dont get confused with vbulletin already being w3c complaint

TheSupportForum
01-19-2012, 10:07 AM
Please PM Boofo- https://vborg.vbsupport.ru/member.php?u=9948
And he will show you the demo, screen shots and all the necessary info for it.

I've tried it out and it is really good.

saying that you tried it out must also mean you have this yourself
please provide screenshots

Boofo
01-19-2012, 02:06 PM
The advanced version of this mod will not be discussed in this thread. The necessary info has been supplied in the first post. Thank you.

GhostHunter2010
01-19-2012, 05:33 PM
i installed this on vb 4.1.9 but not showin up flags at all any idea boofo :)

Boofo
01-19-2012, 05:44 PM
i installed this on vb 4.1.9 but not showin up flags at all any idea boofo :)

If you are using a custom style, that might explain it as this is set up for the default style.

GhostHunter2010
01-19-2012, 05:52 PM
yes m8 im usin costum style anyways thanks good work like always from u :)

New Joe
01-20-2012, 02:41 AM
I've just found it has a bug in Fire Fox Version 9.0.1
Will be looking for a fix as soon as, maybe this is why it isn't showing for some of you guys.

DAMINK
01-27-2012, 10:48 PM
Spewing this has become a paid mod.
I was hoping the "free" version might have been updated a bit to have flags packed with it and what not.
It seemed to be the direction it was going in the early posts but then bang PAID.

Contemplates uninstall........

Boofo
01-27-2012, 10:52 PM
They are 2 totally different versions and there is no way to add locally hosted flags to an outside link easily. There was a lot of work and time put into the Advanced version, along with the ongoing support.

New Joe
01-29-2012, 09:34 AM
The Advanced version from Boofo has just been updated on the first page;

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

Fready
01-29-2012, 10:02 AM
I have the Advanced version, just waiting for the updates for the new 3 places it shows.
It's a great vserion, you can see who is online and postbit as attached, it also great with the mouse hover over the flag.

IchibanAccord
03-15-2012, 11:36 AM
Installed so far so good.

Steve-Hoog
03-16-2012, 03:58 PM
Could not get it to work on my 4.1.4, gave up after three tries and unistalled.

New Joe
03-16-2012, 04:17 PM
Could not get it to work on my 4.1.4, gave up after three tries and unistalled.

So you imported the xml and then when you checked the Who Is On Line no flags showed?
Do you have a link to your site so I can see the site, it might gives me a heads up to what the problem is.
Also which browser did you use to check with?
IE really has many problems with vB and products.
Did you check using another browser, say FF or Chromium?

Steve-Hoog
03-16-2012, 04:38 PM
IE 9, I have to use this browser for work related reasons; I'm at work by the way ;)

If it won't work with IE, then there is no point.

www.germanic-worlds.org

I'd really like to get it to work, and if so, might be inclined to get the paid version.

Steve-Hoog
03-16-2012, 04:45 PM
Installed again, nothing on IE or Firefox. No question marks, errors, flags, nothing. I also tried editing the template with just code, same thing.

I wouldn't worry too much about it; not that big a deal, but if you wanna suggest something else I'll try it.

New Joe
03-17-2012, 01:44 AM
I'd really like to get it to work, and if so, might be inclined to get the paid version.

The info for that is on the top of the page, so maybe give that a try.

Bankfodder
04-03-2012, 06:48 PM
Doesn't work for me either

Boofo
04-04-2012, 02:37 AM
Doesn't work for me either

You must be using a custom style then. It DOES work on the default style.

New Joe
04-04-2012, 03:09 AM
You must be using a custom style then. It DOES work on the default style.

Must be something like that Boofo, I have around 4 custom styles running and the default one and it works fine on them all.
Maybe if the users who say it doesn't work could give me a url to their site it might help to work this out.

Boofo
04-04-2012, 03:21 AM
Must be something like that Boofo, I have around 4 custom styles running and the default one and it works fine on them all.
Maybe if the users who say it doesn't work could give me a url to their site it might help to work this out.

Aren't you using the Advanced version?

New Joe
04-04-2012, 05:24 AM
Aren't you using the Advanced version?

I am yes, sorry, what I meant was that I have tested my version from here on around 4 custom skins and it worked fine.

Boofo
04-04-2012, 06:05 AM
I just retested it on the default style and it showed fine for me also.

New Joe
04-04-2012, 06:35 AM
Well if anyone can't get it to work, I'd be happy to take a look at why.
I'd need an Admin Log nic to look at things though.

Maybe even Boofo would be up for doing the same as well.

Bankfodder
04-04-2012, 06:58 AM
You must be using a custom style then. It DOES work on the default style.

No - very standard vB

New Joe
04-04-2012, 07:05 AM
No - very standard vB

Give us a link to your site?
Which version of vb are you using?

lapiervb
04-07-2012, 04:33 PM
Is it possible to show the name of the country instead of the flag?

Boofo
04-07-2012, 04:52 PM
The Advanced version does, but it is not possible with the linked version.

Fready
05-10-2012, 02:49 AM
Since I updated my site to 4.1.12 this has stopped working.
Any reasons why?
I use the default skin

Boofo
05-10-2012, 03:02 AM
Yes, the whosonlinebit template isn't there anymore. It will need to be redone for 4.1.12.

New Joe
05-10-2012, 06:27 AM
This was due to the Who Is Online Template no longer being in vB 4.1.12
In the next day or so i'll add the updated version for 4.1.12

Also the Advanced Version from Boofo is updated to 4.1.12

FTG LIQUID CL
05-21-2012, 08:00 PM
does this work on 4.1.12,i have it installed ,but does not show flags

Boofo
05-21-2012, 08:35 PM
To make it work for vb 4.1.12, you need to do the following:

In the xml file, change this line:

$vbulletin->templatecache['whosonlinebit'] = str_replace($find, $find . $add, $vbulletin->templatecache['whosonlinebit']);


to this:

$vbulletin->templatecache['whosonline'] = str_replace($find, $find . $add, $vbulletin->templatecache['whosonline']);


Let me know if that fixes it for you.

FTG LIQUID CL
05-21-2012, 09:06 PM
i changed the code in the xml file ,the re uploaded the file.I still dont see the fags.

Boofo
05-21-2012, 09:17 PM
I'll have to look at it later then.

FTG LIQUID CL
05-22-2012, 01:11 AM
ok thanks

Chadi
05-24-2012, 08:24 PM
I imported this, nothing shows up in who's online. Is there a 2nd step?

Thanks

Boofo
05-24-2012, 08:47 PM
No, this needs to be fixed for 4.1.12.

Chadi
05-24-2012, 08:48 PM
I have 4.2.0 actually. Thanks

Boofo
05-24-2012, 08:49 PM
Well, 4.1.12+ then. ;)

FTG LIQUID CL
05-31-2012, 06:53 PM
uninstalled till its updated for 4.1.12

WendM
06-03-2012, 10:29 AM
yes, doesn't appear to work on vB4.2 :(

nyenius
08-13-2012, 09:37 AM
To make it work for vb 4.1.12, you need to do the following:

In the xml file, change this line:

$vbulletin->templatecache['whosonlinebit'] = str_replace($find, $find . $add, $vbulletin->templatecache['whosonlinebit']);


to this:

$vbulletin->templatecache['whosonline'] = str_replace($find, $find . $add, $vbulletin->templatecache['whosonline']);


Let me know if that fixes it for you.


done this on 4.2, and still nothing happens... will wait for fixes :) :up:

New Joe
08-13-2012, 12:44 PM
Can a mod please graveyard this.
Boofo is no longer with us and it doesn't work that well for most.