vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Country Flag and simcard model and .. (https://vborg.vbsupport.ru/showthread.php?t=228371)

bart6767 11-26-2009 08:18 PM

Quote:

Originally Posted by Welshy2008 (Post 1921333)
FOR vB4 Beta - This code will add Alt Text to your Flag on mouseover.

Find:

Code:

</vb:if>
                                        <span class="usertitle">
                                                {vb:raw post.usertitle}

ADD Below:

Code:

<!-- Country Flags Start -->
<vb:if condition="$post['fieldX']">
        Country:<img src="http://www.yourforumaddress.com/images/buttons/$post[field1X].GIF" alt="Users Flag on yourforumnamehere!" border="" />
</vb:if>
<!--// Country Flags End -->


** SAVE TEMPLATE **


** Replace the ‘X’ with your FieldID number **


That should work for you?!

I tryed this and all i get is a red X

LordDB 11-26-2009 08:57 PM

Quote:

Originally Posted by Charlie98902 (Post 1921305)
But all the gif flags are labeled GIF?

check in your 'flags' folder and see if the flag images end in '.gif
', if they do, then change GIF to gif

not this:

flags/{vb:raw post.field5}.GIF

but:

flags/{vb:raw post.field5}.gif

make sure your root image path is correct, too!

Charlie98902 11-26-2009 09:14 PM

I will at a later time as I have this thread bookmarked. Doing some other things currently.

bart6767 11-26-2009 09:42 PM

Ok i got this code to work .

Code:

<!-- yahoomobil(yaghoub) -->
<img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field7}.GIF" alt="Users Flag!" border="" />
<!-- yahoomobil(yaghoub) -->

It works fine but how do i stop the red x showing up for members who have not picked a flag ?

Welshy2008 11-27-2009 08:40 AM

daPLAYBOY ALL the flags end in .GIF

Welshy2008 11-27-2009 08:40 AM

daPLAYBOY ALL the flags end in .GIF

Welshy2008 11-27-2009 08:43 AM

Quote:

Originally Posted by bart6767 (Post 1921393)
Ok i got this code to work .

Code:

<!-- yahoomobil(yaghoub) -->
<img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field7}.GIF" alt="Users Flag!" border="" />
<!-- yahoomobil(yaghoub) -->

It works fine but how do i stop the red x showing up for members who have not picked a flag ?

Have you got the 'Set Default' as "None"? OR make it compulsory?!

LordDB 11-27-2009 09:11 AM

uppercase or lowercase? you decide! :)

@Welshy2008 I'm using my own 3D flags which are smaller and have lowercase .gif...not what's posted!

here's a link to download 3D flags:

http://www.3dflags.com/world/

bart6767 11-27-2009 09:13 AM

Quote:

Originally Posted by Welshy2008 (Post 1921549)
Have you got the 'Set Default' as "None"? OR make it compulsory?!

Its set to none.

bart6767 11-27-2009 12:27 PM

Quote:

Originally Posted by Welshy2008 (Post 1921549)
Have you got the 'Set Default' as "None"? OR make it compulsory?!

How can i fix this so that flags dont show up a red x if a member has not picked a flag ?

This is the code that im useing . and i have done every thing in post 1 .

Code:

<!-- yahoomobil(yaghoub) -->
<img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field7}.GIF" alt="Users Flag!" border="" />
<!-- yahoomobil(yaghoub) -->



All times are GMT. The time now is 08:58 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.01200 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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