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
  #12  
Old 01-11-2012, 11:09 AM
Fready Fready is offline
 
Join Date: Nov 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

This is ticked as:
Quote:
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.
Reply With Quote
  #14  
Old 01-11-2012, 03:58 PM
Fready Fready is offline
 
Join Date: Nov 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #15  
Old 01-12-2012, 02:25 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 Fready View Post
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.
Reply With Quote
  #16  
Old 01-12-2012, 10:36 AM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All ok with 4.1.9 ..just getting ? with my ip.... thanks
Reply With Quote
  #17  
Old 01-12-2012, 10:54 AM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

missing loads of flags....
Reply With Quote
  #18  
Old 01-12-2012, 10:59 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 doctorsexy View Post
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
Reply With Quote
  #19  
Old 01-12-2012, 09:57 PM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could be wrong, but it seems by time more flags start to show up!!!
Reply With Quote
  #20  
Old 01-13-2012, 07:20 AM
Jncocontrol's Avatar
Jncocontrol Jncocontrol is offline
 
Join Date: Mar 2009
Location: St.louis
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this also addd their Flag in their Postbit?
Reply With Quote
  #21  
Old 01-13-2012, 07:37 AM
Fready Fready is offline
 
Join Date: Nov 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jncocontrol View Post
Does this also addd their Flag in their Postbit?
You'd be needing this Mod:
https://vborg.vbsupport.ru/showthrea...ighlight=Flags
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 07:05 PM.


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.08225 seconds
  • Memory Usage 2,336KB
  • 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
  • (5)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
  • (3)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