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)

monkeywarplane 05-02-2006 08:16 AM

Great mod, the user profile is working great and the flags are showing on the thread/post profile but I am getting an additional if condition=" != ''"> above the flag... for example...

Quote:

Join Date: Mar 2004
Location: Israel
Posts: 1,172
if condition="israel != ''">
Country:
http://forums.interbasket.net/showthread.php?t=113 (check second post)

I am running vb 3.5.4

Any ideas?

Stuart

monkeywarplane 05-02-2006 08:37 AM

Quote:

Originally Posted by monkeywarplane
Any ideas?

Forget it, silly mistake... silly question, it's 2:30 in the morning :)

Stuart

GNDI 05-04-2006 02:49 PM

If you just want the country name to show up, then you just add the following syntax

Find:
PHP Code:

<div class="info">$post[musernameis $post[onlinestatus] </div

ADD BELOW: where you find sweetable
PHP Code:

<if condition="$post['fieldX']"><div class="info">$vbphrase[location_perm]: $post[fieldX]</div></if> 

REMEMBER to replace the "X" whit the field number as describet in the original script

putergirl 06-10-2006 06:37 PM

Quote:

Originally Posted by tnguy3n
how about make chanage in both postbit and postbit_legacy templates. :)

hello, I tried making the changes to both postbit and postbit legacy and still no flag shows up. Here is what I did:


Step one completed as stated

Step two:
Code:

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

<!-- Change X to the field id. -->

Am I supposed to change 3 X's?


flag folder added: Forum/images/flags

Help?

putergirl 06-13-2006 01:30 AM

anyone? :)

Muscolino 06-13-2006 03:59 PM

Do you get the bit that says 'Country:'? If so I'd guess you are either added the wrong fieldID or you put the flags in the wrong location.

If you haven't even got 'Country:' displayed then I suggest you start from the beginning and go through the installation again.

SHalliday 06-17-2006 07:12 PM

**Clicked Install **

Thank you. Just want I was looking for. Now all we need are state and province flags :)

sebbe 06-18-2006 09:57 PM

Thanks, installed! :)

leftie 07-02-2006 03:44 PM

I help run a forum that has a lot of ex pats and i have been asked if it possible to add a second flag to say where they are originally from.
Can the profile field be edited to have the option of a second flag.

Masala4india 07-03-2006 09:28 AM

Thankx its working very fine..


All times are GMT. The time now is 03:10 PM.

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.02703 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)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