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)

Jncocontrol 01-13-2012 08:41 AM

Quote:

Originally Posted by Fready (Post 2287196)

You just linked me to the same Mod.

Fready 01-13-2012 08:44 AM

Quote:

Originally Posted by Jncocontrol (Post 2287209)
You just linked me to the same Mod.

lol

So i did, sorry I meant:
https://vborg.vbsupport.ru/showthrea...ighlight=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).

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.

Fready 01-13-2012 11:55 PM

Quote:

Originally Posted by Boofo (Post 2287398)
I'm running 4.1.10 and the flags show fine for me.

Same as me.

Merjawy 01-14-2012 01:22 AM

Quote:

Originally Posted by Boofo (Post 2287398)
I'm running 4.1.10 and the flags show fine for me.

No problem here

Merjawy 01-14-2012 01:26 AM

Quote:

Originally Posted by New Joe (Post 2287475)
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

Boofo 01-14-2012 08:52 AM

Quote:

Originally Posted by New Joe (Post 2286792)
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.ph...ge=1&styleid=1

user : vBulletin
pass: 123456


All times are GMT. The time now is 04:11 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.01099 seconds
  • Memory Usage 1,760KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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