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)

LordDB 11-27-2009 02:47 PM

Quote:

Originally Posted by bart6767 (Post 1921598)
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) -->


Go to ACP --> User Profile Fields --> User Profile Field Manager - then choose the flag profile name you used and EDIT then scroll down User Profile Field, then you set Field Required as: Yes, Always

this means all users will have to choose one!;)

bart6767 11-27-2009 06:47 PM

Quote:

Originally Posted by daPLAYBOY (Post 1921656)
Go to ACP --> User Profile Fields --> User Profile Field Manager - then choose the flag profile name you used and EDIT then scroll down User Profile Field, then you set Field Required as: Yes, Always

this means all users will have to choose one!;)

Thanks .

Vaupell 11-28-2009 11:45 AM

I really wish post 1 would be updated, reading through all of these solutions or ALMOST solutions is just a pain..

should make a java script selection, and just dump it in registration and profile edit templates.
and just save the selection <name> and call it when needed in postbit.
keep it local, instead of calling all those external links to run.


but a nice idead, that used to work on 3.x :D

Ranger375 11-28-2009 11:49 AM

Yeah, this is confusing. Someone should just make a new mod thread

Mo7mD.ZaYOnA 12-03-2009 08:18 PM

Thank you Welshy2008
The subject does not have to attach anything except example!!

Welshy2008 12-04-2009 02:31 PM

Cracked it.

I will post it as a mod later. (will be easier to read etc)

Works on vB4 Beta 4.

COL NIL SATIS 01-08-2010 05:28 PM

is this ready to go now!!!

princeedward 03-03-2010 06:22 PM

My Code For This

...IMHO the better way...and to show which country belong the flag image....coz i or we dont know them all...do you? :p

change the red one to your correct field number

Code:

<!-- Princeedwards Country Flags Show Start -->

<div  align="center">
<vb:if condition="$post['field10']">
<img src="{vb:stylevar imgdir_misc}/flags/{vb:raw post.field10}.png" alt="Country" title=" My Home Country: {vb:raw post.field10}" border="0" />
</vb:if>
</div>
<!-- / Princeedwards Country Flags Show  End -->

https://vborg.vbsupport.ru/external/2010/03/75.png

napy8gen 04-22-2010 03:20 AM

@Welshy2008 this mod like you posted in first page is not working because the generated name is full name of the country.GIF

BUT the animated gifs names are different.


All times are GMT. The time now is 11:01 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.01427 seconds
  • Memory Usage 1,735KB
  • 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
  • (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
  • (9)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