vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Display Enhancements - Shows country flag next to IP in, who is online (https://vborg.vbsupport.ru/showthread.php?t=276787)

New Joe 01-10-2012 11:00 PM

Shows country flag next to IP in, who is online
 
1 Attachment(s)
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***

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

Quote:

Originally Posted by simonhind (Post 2286454)
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

Quote:

Originally Posted by simonhind (Post 2286454)
wheres the flags ?

There aren't any to upload.

Quote:

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

1 Attachment(s)
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

Quote:

Originally Posted by simonhind (Post 2286454)
wheres the flags ?

Code:

src="http://api.hostip.info


All times are GMT. The time now is 08:07 AM.

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.01071 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_code_printable
  • (4)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
  • (10)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