vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - CountryFlag (https://vborg.vbsupport.ru/showthread.php?t=97664)

perfphysio 08-04-2007 07:47 AM

Quote:

Originally Posted by tnguy3n (Post 789649)
okie, this add-on is written as requested by bofo.

#------------------

Addon to show countryflag in Memberlist

Open memberlist_resultbit template,

FIND:
HTML Code:

                <a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>
BELOW, ADD:
HTML Code:

                <if condition="$userinfo[fieldX] != ''"> <img src="images/flags/$userinfo[fieldX].gif" title="$userinfo[fieldX]" align="center"></if>


How about an edit in the members signature that appears next to the actual post? Where to you make this change. This flag thing is great but really the most impt place to put is is with the users signature, not just on their profile page

Nordraserei 08-15-2007 11:12 PM

Any way to make it appear with the country name in it too? For example, instead of just the Danish flag, if it could be [Flag] Denmark?

Stifmeister2 08-16-2007 06:25 PM

Quote:

Originally Posted by Nordraserei (Post 1318511)
Any way to make it appear with the country name in it too? For example, instead of just the Danish flag, if it could be [Flag] Denmark?

Yes.


Instead of
HTML Code:

                                <if condition="$userinfo[fieldX] != ''"><div>
                                        Country: <img src="images/flags/$userinfo[fieldX].gif" title="$userinfo[fieldX]" align="center">
                                </div></if>


Use this:
HTML Code:

                                <if condition="$userinfo[fieldX] != ''"><div>
                                        <img src="images/flags/$userinfo[fieldX].gif" title="$userinfo[fieldX]" align="center"> $userinfo[fieldX]
                                </div></if>

Hope that helps. :)

B_Pages 11-07-2007 11:44 PM

if anyone(programmer with lots of VB experience) is interested in dong this hack for my forums shoot me an email or pm!


All times are GMT. The time now is 04:17 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.01076 seconds
  • Memory Usage 1,727KB
  • 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
  • (4)bbcode_html_printable
  • (2)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
  • (4)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