View Full Version : Forum Display Enhancements - Shows country flag next to IP in, who is online
New Joe
01-10-2012, 11:00 PM
This will show a country flag next to the IP of users and guest for:
Who is On-line
Go to your Style and open the Template; whosonlinebit
Search for this code:
{vb:rawphrase resolve_ip_address}">{vb:raw userinfo.host}</a>
Below it add:
<div style="float: right;"><img class="inlineimg" src="http://api.hostip.info/flag.php?ip={vb:raw userinfo.host}" border="0" width="25" height="18" /></a></div>
Then save.
**Note**
There are no files or Flags to upload, just add the code and it will do the rest for you.
If you don't see a flag and just a ? that is to do with the IP of the user or guest.
***Don't forget to Click Installed***
New Joe
01-11-2012, 09:17 AM
First post *Reserved *
Fready
01-11-2012, 09:20 AM
just gave it a try.
Worked fine in 4.1.5
and 4.1.9
Nice, thanks.
TheSupportForum
01-11-2012, 09:30 AM
wheres the flags ?
Fready
01-11-2012, 09:48 AM
wheres the flags ?
Install it, click on Who's Online and you will see them.
I thought the same but added the code anyway, and it worked fine
There are no flags to upload yourself.:cool:
New Joe
01-11-2012, 09:52 AM
wheres the flags ?
There aren't any to upload.
There are no files or Flags to upload, just add the code and it will do the rest for you.
Please don't forget to click Installed.
BlueCheri
01-11-2012, 10:03 AM
Nice idea, seems to have some bug.
The flags are going out of frame, using 4.1.9
Image attaching
snakedevil
01-11-2012, 10:07 AM
Very nice.
5 Stars
whitedd
01-11-2012, 10:08 AM
mising croatian flag ...it shows ?
Mr_Running
01-11-2012, 11:05 AM
wheres the flags ?
src="http://api.hostip.info
Fready
01-11-2012, 11:09 AM
Nice idea, seems to have some bug.
The flags are going out of frame, using 4.1.9
Image attaching
Looks ok to me from that screen shot.
New Joe
01-11-2012, 11:10 AM
This is ticked as:
Re-usable Code
I don't have a lot of knowledge with all codes so if anyone can help please do so and post it up here.
Fready
01-11-2012, 03:58 PM
I have been trying to play with this code to see if I could change where it brings the flags from, as there are many which show ?
This could be a great mod but needs work on it.
Something could be done from this i think, the last one shows a flag, which is also clickable
There is some code there, but all I can get it to do so far is add my flag to all/everyone who are online,;
http://www.infosniper.net/geolocate-visitor-gadget.php?
New Joe
01-12-2012, 02:25 AM
I have been trying to play with this code to see if I could change where it brings the flags from, as there are many which show ?
This could be a great mod but needs work on it.
Something could be done from this i think, the last one shows a flag, which is also clickable
There is some code there, but all I can get it to do so far is add my flag to all/everyone who are online,;
http://www.infosniper.net/geolocate-visitor-gadget.php?
Thanks fready.
I took a look at the code from your link for the Flags, I think that yes there would be less ? flags with that site.
But after trying to add that code to my code I could not get it to display the flags for all different users.
It gave the same flag to all users online and the Flag being the flag of my IP
If anyone can help with the code from the link fready gave so it could be used to do the same thing as my code does, please go for it and add it in a post.
doctorsexy
01-12-2012, 10:36 AM
All ok with 4.1.9 ..just getting ? with my ip.... thanks
doctorsexy
01-12-2012, 10:54 AM
missing loads of flags....
New Joe
01-12-2012, 10:59 AM
All ok with 4.1.9 ..just getting ? with my ip.... thanks
Yes I get the same with my IP
It's to do with where it is fetching the flags from.
fready has found one which could show more flags but I am finding it hard to code the code from his link into my code for it to work
Merjawy
01-12-2012, 09:57 PM
I could be wrong, but it seems by time more flags start to show up!!!
Jncocontrol
01-13-2012, 07:20 AM
Does this also addd their Flag in their Postbit?
Fready
01-13-2012, 07:37 AM
Does this also addd their Flag in their Postbit?
You'd be needing this Mod:
https://vborg.vbsupport.ru/showthread.php?t=276787&highlight=Flags
Jncocontrol
01-13-2012, 08:41 AM
You'd be needing this Mod:
https://vborg.vbsupport.ru/showthread.php?t=276787&highlight=Flags
You just linked me to the same Mod.
Fready
01-13-2012, 08:44 AM
You just linked me to the same Mod.
lol
So i did, sorry I meant:
https://vborg.vbsupport.ru/showthread.php?t=229511&highlight=Flags
Dr.osamA
01-13-2012, 03:03 PM
هthank you bro
installed
but with 4.1.10 no flags show
Boofo
01-13-2012, 06:58 PM
I'm running 4.1.10 and the flags show fine for me.
New Joe
01-13-2012, 11:53 PM
Anyone have problems with 4.1.10 this is a bit messy as I don't have 4.1.10 installed yet but try to replace all the code in the Template with this (make a buck up copy first).
<tr> <td class="whoinfo" width="32%"><vb:if condition="$show['loggedinuser']"> <a href="{vb:link member, {vb:raw userinfo}}">{vb:raw userinfo.musername}</a>{vb:raw userinfo.hidden}<vb:if condition="$show['buddy']">+</vb:if> <vb:else /> <vb:if condition="$show['spider']">{vb:raw spidertype}<vb:else />{vb:raw userinfo.musername}</vb:if> </vb:if></td><td class="whoinfo" width="8%" align="{vb:stylevar right}"><span class="smallfont time">{vb:raw userinfo.time}</span></td> <td class="whoinfo wholocation" width="35%"><span style="float:{vb:stylevar right}"> <vb:if condition="$show['lockedout']"><img src="{vb:stylevar imgdir_statusicon}/wol_lockedout.png" alt="{vb:rawphrase viewing_forum_closed}" /></vb:if> <vb:if condition="$show['nopermission']"><img src="{vb:stylevar imgdir_statusicon}/wol_nopermission.png" alt="{vb:rawphrase viewing_no_permission_message}" /></vb:if> <vb:if condition="$show['errormessage']"><img src="{vb:stylevar imgdir_statusicon}/wol_error.png" alt="{vb:rawphrase viewing_error_message}" /></vb:if> <vb:if condition="$show['reallocation']"><img src="{vb:stylevar imgdir_misc}/question_icon.gif" alt="{vb:raw userinfo.location}" /></vb:if> </span> {vb:raw userinfo.action} <vb:if condition="$show['where']"> <div class="smallfont" style="margin-top:1px"> <vb:if condition="$show['subscribed']"><img class="inlineimg" src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" /></vb:if> {vb:raw userinfo.where} </div> </vb:if> </td> <vb:if condition="$show['ip']"><td class="whoinfo"><vb:if condition="$show['ajax_resolve']"> <a href="online.php?{vb:raw session.sessionurl}do=resolveip&ipaddress={vb:raw userinfo.host_encoded}" id="resolveip_{vb:raw count}" title="{vb:rawphrase resolve_ip_address}">{vb:raw userinfo.host}</a><div style="float: right;"><img class="inlineimg" src="http://api.hostip.info/flag.php?ip={vb:raw userinfo.host}" border="0" width="25" height="18" /></a></div> <vb:else /> {vb:raw userinfo.host} </vb:if> <vb:if condition="$show['useragent']"><br />{vb:raw userinfo.useragent}</vb:if></td></vb:if> <vb:if condition="$vboptions[showimicons]"><td class="whoinfo"> {vb:raw userinfo.aimicon} {vb:raw userinfo.icqicon} {vb:raw userinfo.msnicon} {vb:raw userinfo.yahooicon} {vb:raw userinfo.skypeicon} </td></vb:if></tr>
Let me know if that works?
Then I'll update the mod if it does.
Fready
01-13-2012, 11:55 PM
I'm running 4.1.10 and the flags show fine for me.
Same as me.
Merjawy
01-14-2012, 01:22 AM
I'm running 4.1.10 and the flags show fine for me.
No problem here
Merjawy
01-14-2012, 01:26 AM
Anyone have problems with 4.1.10 this is a bit messy as I don't have 4.1.10 installed yet but try to replace all the code in the Template with this (make a buck up copy first).
<tr> <td class="whoinfo" width="32%"><vb:if condition="$show['loggedinuser']"> <a href="{vb:link member, {vb:raw userinfo}}">{vb:raw userinfo.musername}</a>{vb:raw userinfo.hidden}<vb:if condition="$show['buddy']">+</vb:if> <vb:else /> <vb:if condition="$show['spider']">{vb:raw spidertype}<vb:else />{vb:raw userinfo.musername}</vb:if> </vb:if></td><td class="whoinfo" width="8%" align="{vb:stylevar right}"><span class="smallfont time">{vb:raw userinfo.time}</span></td> <td class="whoinfo wholocation" width="35%"><span style="float:{vb:stylevar right}"> <vb:if condition="$show['lockedout']"><img src="{vb:stylevar imgdir_statusicon}/wol_lockedout.png" alt="{vb:rawphrase viewing_forum_closed}" /></vb:if> <vb:if condition="$show['nopermission']"><img src="{vb:stylevar imgdir_statusicon}/wol_nopermission.png" alt="{vb:rawphrase viewing_no_permission_message}" /></vb:if> <vb:if condition="$show['errormessage']"><img src="{vb:stylevar imgdir_statusicon}/wol_error.png" alt="{vb:rawphrase viewing_error_message}" /></vb:if> <vb:if condition="$show['reallocation']"><img src="{vb:stylevar imgdir_misc}/question_icon.gif" alt="{vb:raw userinfo.location}" /></vb:if> </span> {vb:raw userinfo.action} <vb:if condition="$show['where']"> <div class="smallfont" style="margin-top:1px"> <vb:if condition="$show['subscribed']"><img class="inlineimg" src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" /></vb:if> {vb:raw userinfo.where} </div> </vb:if> </td> <vb:if condition="$show['ip']"><td class="whoinfo"><vb:if condition="$show['ajax_resolve']"> <a href="online.php?{vb:raw session.sessionurl}do=resolveip&ipaddress={vb:raw userinfo.host_encoded}" id="resolveip_{vb:raw count}" title="{vb:rawphrase resolve_ip_address}">{vb:raw userinfo.host}</a><div style="float: right;"><img class="inlineimg" src="http://api.hostip.info/flag.php?ip={vb:raw userinfo.host}" border="0" width="25" height="18" /></a></div> <vb:else /> {vb:raw userinfo.host} </vb:if> <vb:if condition="$show['useragent']"><br />{vb:raw userinfo.useragent}</vb:if></td></vb:if> <vb:if condition="$vboptions[showimicons]"><td class="whoinfo"> {vb:raw userinfo.aimicon} {vb:raw userinfo.icqicon} {vb:raw userinfo.msnicon} {vb:raw userinfo.yahooicon} {vb:raw userinfo.skypeicon} </td></vb:if></tr>
Let me know if that works?
Then I'll update the mod if it does.
This one works too.. I just tested it though I didn't have a problem with original code
Boofo
01-14-2012, 08:52 AM
Thanks fready.
I took a look at the code from your link for the Flags, I think that yes there would be less ? flags with that site.
But after trying to add that code to my code I could not get it to display the flags for all different users.
It gave the same flag to all users online and the Flag being the flag of my IP
If anyone can help with the code from the link fready gave so it could be used to do the same thing as my code does, please go for it and add it in a post.
I looked at it and unless you subscribe and pay, there is no way to do what you are asking with that site.
Dr.osamA
01-14-2012, 09:37 AM
same same both codes
try it here plzz
http://www.alra7ba.info/vb/online.php?order=asc&sort=username&pp=25&page=1&styleid=1
user : vBulletin
pass: 123456
New Joe
01-14-2012, 12:13 PM
same same both codes
try it here plzz
http://www.alra7ba.info/vb/online.php?order=asc&sort=username&pp=25&page=1&styleid=1
user : vBulletin
pass: 123456
Took a look, as it's an Arabic Forum everything is the other way around so to speak.
The code here you add says right:
<div style="float: right;"><img class="inlineimg" src="http://api.hostip.info/flag.php?ip={vb:raw userinfo.host}" border="0" width="25" height="18" /></a></div>
So give it a go by changing it to say left.
<div style="float: left;"><img class="inlineimg" src="http://api.hostip.info/flag.php?ip={vb:raw userinfo.host}" border="0" width="25" height="18" /></a></div>
Please let me know if that works.
New Joe
01-14-2012, 01:40 PM
This is now a Modification xml Import Mod;
https://vborg.vbsupport.ru/showthread.php?t=276950
This Template edit still works but if you do install it as an xml file, you will need to revert the Template you edited from this one first.
Dr.osamA
01-14-2012, 08:11 PM
Took a look, as it's an Arabic Forum everything is the other way around so to speak.
The code here you add says right:
So give it a go by changing it to say left.
Please let me know if that works.
nothing showing i changed it as you sied but not show
and i tested the XML file from the:
https://vborg.vbsupport.ru/showthread.php?t=276950
and i changed it from right to left too and same result unfrontly
any help plzz
bperkins88
01-14-2012, 09:03 PM
where do you download this file at ? Do i download the 4.x.x file ?? Or are you working on putting one here
New Joe
01-15-2012, 04:47 AM
where do you download this file at ? Do i download the 4.x.x file ?? Or are you working on putting one here
Try here:
https://vborg.vbsupport.ru/showthread.php?p=2288018#post2288018
New Joe
01-15-2012, 04:50 AM
nothing showing i changed it as you sied but not show
and i tested the XML file from the:
https://vborg.vbsupport.ru/showthread.php?t=276950
and i changed it from right to left too and same result unfrontly
any help plzz
I'll see what I can do, it's strange as it should work really, as it is only that Arabic Forums are just left to right really, the codes should just be the same,
It would be nice to see your Template code for whosonline
Dr.osamA
01-15-2012, 09:04 AM
I'll see what I can do, it's strange as it should work really, as it is only that Arabic Forums are just left to right really, the codes should just be the same,
It would be nice to see your Template code for whosonline
here is temp;ate whosonline
<tr>
<td class="whoinfo" width="32%"><vb:if condition="$show['loggedinuser']">
<a href="{vb:link member, {vb:raw userinfo}}">{vb:raw userinfo.musername}</a>{vb:raw userinfo.hidden}<vb:if condition="$show['buddy']">+</vb:if>
<vb:else />
<vb:if condition="$show['spider']">{vb:raw spidertype}<vb:else />{vb:raw userinfo.musername}</vb:if>
</vb:if></td>
<td class="whoinfo" width="8%" align="{vb:stylevar right}"><span class="smallfont time">{vb:raw userinfo.time}</span></td>
<td class="whoinfo wholocation" width="35%"><span style="float:{vb:stylevar right}">
<vb:if condition="$show['lockedout']"><img src="{vb:stylevar imgdir_statusicon}/wol_lockedout.png" alt="{vb:rawphrase viewing_forum_closed}" /></vb:if>
<vb:if condition="$show['nopermission']"><img src="{vb:stylevar imgdir_statusicon}/wol_nopermission.png" alt="{vb:rawphrase viewing_no_permission_message}" /></vb:if>
<vb:if condition="$show['errormessage']"><img src="{vb:stylevar imgdir_statusicon}/wol_error.png" alt="{vb:rawphrase viewing_error_message}" /></vb:if>
<vb:if condition="$show['reallocation']"><img src="{vb:stylevar imgdir_misc}/question_icon.gif" alt="{vb:raw userinfo.location}" /></vb:if>
</span> {vb:raw userinfo.action}
<vb:if condition="$show['where']">
<div class="smallfont" style="margin-top:1px">
<vb:if condition="$show['subscribed']"><img class="inlineimg" src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" /></vb:if>
{vb:raw userinfo.where}
</div>
</vb:if>
</td>
<vb:if condition="$show['ip']"><td class="whoinfo"><vb:if condition="$show['ajax_resolve']">
<a href="online.php?{vb:raw session.sessionurl}do=resolveip&ipaddress={vb:raw userinfo.host_encoded}" id="resolveip_{vb:raw count}" title="{vb:rawphrase resolve_ip_address}">{vb:raw userinfo.host}</a>
<vb:else />
{vb:raw userinfo.host}
</vb:if>
<vb:if condition="$show['useragent']"><br />{vb:raw userinfo.useragent}</vb:if></td></vb:if>
<vb:if condition="$vboptions[showimicons]"><td class="whoinfo">
{vb:raw userinfo.aimicon}
{vb:raw userinfo.icqicon}
{vb:raw userinfo.msnicon}
{vb:raw userinfo.yahooicon}
{vb:raw userinfo.skypeicon}
</td></vb:if>
</tr>
it is defoult code
New Joe
01-19-2012, 06:46 AM
<removed>
TheSupportForum
01-19-2012, 10:15 AM
...
spamming posts to promote paid versions isnt aloud stop it
the rule is that you promote your own mod/template eidt for paid etc within the description of own mod
what you are basically saying is that the above mod/template edit doesnt belong to you and boofo designed it all
i am sure that you could liase with boofo after someone is interested and put yourself down as point of contact
Steve-Hoog
03-16-2012, 04:33 PM
I couldn't get this to work on my 4.1.4 as well as another flag hack; so there must be something funny going on with my code.
doctorsexy
08-29-2012, 11:43 AM
working on 4.2.0
yep same here
diysmps
12-19-2012, 06:32 PM
not working with me
VB 4.2
please help
fxdigi-cash
01-24-2013, 05:45 AM
I tried it, too, on vb4.2, but it seems that there is some sort of issue in the code...
any idea?
marccap
02-04-2013, 09:57 AM
Installed and works on 4.2 for me
goxy63
02-12-2013, 07:09 PM
nice, so it will show flag from any country or just some ?
acast
04-28-2013, 08:18 PM
There is a virus with the flags. Avast block me the flags when i try to see the who's online page, and tells that it is a virus.
DF031
04-29-2013, 05:41 AM
On our forum standard users can not see private information of others, including the IP.
Does this mean they will not sdee the flags, will see they see an error, . . . . or . . . ?
stevieb
07-29-2013, 05:53 PM
works fine in 4.2.0 - installed, thanks.
stevieb
07-29-2013, 05:54 PM
There is a virus with the flags. Avast block me the flags when i try to see the who's online page, and tells that it is a virus.
Are you quite certain of this? Its an image, with nothing embedded!!
--> http://api.hostip.info/images/flags/
ArcadeSyndicate
11-19-2015, 01:50 PM
works on 4.2.3 but no really good api. too many ips not recognized, so i deinstalled the addon.
stevieb
01-19-2016, 11:31 PM
No longer showing flags on vB 4.2. Reverted back.
RichieBoy67
01-20-2016, 01:11 AM
I like the concept but I wonder how much load time this adds to the page especially with many online users..
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.