Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Shows country flag next to IP in, who is online Details »»
Shows country flag next to IP in, who is online
Version: 1.01, by New Joe New Joe is offline
Developer Last Online: Oct 2015 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.1.x Rating:
Released: 01-10-2012 Last Update: Never Installs: 69
Template Edits
Re-useable Code Translations  
No support by the author.

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:

Code:
{vb:rawphrase resolve_ip_address}">{vb:raw userinfo.host}</a>
Below it add:

Code:
<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***

Screenshots

File Type: jpg Screenshot.jpg (59.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
sodasusu

Comments
  #22  
Old 01-13-2012, 08:41 AM
Jncocontrol's Avatar
Jncocontrol Jncocontrol is offline
 
Join Date: Mar 2009
Location: St.louis
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fready View Post
You just linked me to the same Mod.
Reply With Quote
  #23  
Old 01-13-2012, 08:44 AM
Fready Fready is offline
 
Join Date: Nov 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jncocontrol View Post
You just linked me to the same Mod.
lol

So i did, sorry I meant:
https://vborg.vbsupport.ru/showthrea...ighlight=Flags
Reply With Quote
  #24  
Old 01-13-2012, 03:03 PM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

هthank you bro
installed
but with 4.1.10 no flags show
Reply With Quote
  #25  
Old 01-13-2012, 06:58 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm running 4.1.10 and the flags show fine for me.
Reply With Quote
  #26  
Old 01-13-2012, 11:53 PM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).

Code:
<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&amp;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.
Reply With Quote
  #27  
Old 01-13-2012, 11:55 PM
Fready Fready is offline
 
Join Date: Nov 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
I'm running 4.1.10 and the flags show fine for me.
Same as me.
Reply With Quote
  #28  
Old 01-14-2012, 01:22 AM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
I'm running 4.1.10 and the flags show fine for me.
No problem here
Reply With Quote
  #29  
Old 01-14-2012, 01:26 AM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by New Joe View Post
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).

Code:
<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&amp;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
Reply With Quote
  #30  
Old 01-14-2012, 08:52 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by New Joe View Post
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.
Reply With Quote
  #31  
Old 01-14-2012, 09:37 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

same same both codes

try it here plzz
http://www.alra7ba.info/vb/online.ph...ge=1&styleid=1

user : vBulletin
pass: 123456
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:50 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09281 seconds
  • Memory Usage 2,353KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete