Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

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
  #32  
Old 01-14-2012, 12:13 PM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dr.osamA View Post
same same both codes

try it here plzz
http://www.alra7ba.info/vb/online.ph...ge=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:
Quote:
<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.

Quote:
<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.
Reply With Quote
Благодарность от:
Dr.osamA
  #33  
Old 01-14-2012, 01:40 PM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #34  
Old 01-14-2012, 08:11 PM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by New Joe View Post
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
Reply With Quote
  #35  
Old 01-14-2012, 09:03 PM
bperkins88 bperkins88 is offline
 
Join Date: Jan 2012
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where do you download this file at ? Do i download the 4.x.x file ?? Or are you working on putting one here
Reply With Quote
  #36  
Old 01-15-2012, 04:47 AM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bperkins88 View Post
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/showthrea...18#post2288018
Reply With Quote
  #37  
Old 01-15-2012, 04:50 AM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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

PHP 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>
        <
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
Reply With Quote
  #39  
Old 01-19-2012, 06:46 AM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<removed>
Reply With Quote
  #40  
Old 01-19-2012, 10:15 AM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by New Joe View Post
...
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
Reply With Quote
  #41  
Old 03-16-2012, 04:33 PM
Steve-Hoog Steve-Hoog is offline
 
Join Date: Sep 2010
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

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 06:03 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.05207 seconds
  • Memory Usage 2,362KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (8)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
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)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