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 Flags - Postbit & Postbit_Legacy. vB 4.0.x (Inc GO (https://vborg.vbsupport.ru/showthread.php?t=229511)

datoneer 12-09-2011 02:37 PM

Hi,
please can you help me with country flags. I have 4.1.8 version.

I added everything in postbit template to show me flag after posts, but image not showing only name of the country.

Thanks

POL_ED 12-09-2011 04:20 PM

@ Mariner1,
You have YOURFORUM_ADDRESS.com/forum/images/buttons/flags/UK.GIF

Mariner1 12-09-2011 11:42 PM

Ok where do i add forum address in this pls

<!-- Wy Country Flags Start -->
<vb:if condition="$post['field5']"><style="text-align:left"> Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field5}.GIF" align="middle" alt="{vb:raw post.field5}" border="" /></vb:if>
<!-- Wy Flags End -->

POL_ED 12-10-2011 12:00 AM

It's ok for vb4.1.8
img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF"

for vb4.0.7
img src="http://www.YOURFORUM ADDRESS.com/forum/images/buttons/flags/{vb:raw post.fieldX}.GIF"

Mariner1 12-10-2011 12:08 AM

Sorry about this,im totally confused now.

img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF"

This line of code is there already

<!-- Wy Country Flags Start -->
<vb:if condition="$post['field5']"><style="text-align:left"> Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field5}.GIF" align="middle" alt="{vb:raw post.field5}" border="" /></vb:if>
<!-- Wy Flags End -->

K!nG 12-10-2011 01:17 AM

Quote:

Originally Posted by Mariner1 (Post 2276414)
Sorry about this,im totally confused now.

img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF"

This line of code is there already

<!-- Wy Country Flags Start -->
<vb:if condition="$post['field5']"><style="text-align:left"> Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field5}.GIF" align="middle" alt="{vb:raw post.field5}" border="" /></vb:if>
<!-- Wy Flags End -->

Hi Mariner,
May b i am wrong but i have a feeling that you have wrong "user profile field" number just double check by going in your admincp and see if its the same field that you have created.

Mariner1 12-10-2011 01:25 AM

Just double checked and the field number is right.

POL_ED 12-10-2011 02:27 AM

@ Mariner1,
Give address YOURFORUM.

Welshy2008 12-10-2011 08:13 AM

Quote:

Originally Posted by datoneer (Post 2276217)
Hi,
please can you help me with country flags. I have 4.1.8 version.

I added everything in postbit template to show me flag after posts, but image not showing only name of the country.

Thanks


Hi,

You have the wrong route to your flags folder.

You have:

http://www.imspot.org/images/styles/ColorTheory/buttons/flags/{vb:raw post.field5}.GIF

It should be:

http://www.imspot.org/images/buttons/flags/{vb:raw post.field5}.GIF

Let me know how you get on.

Welshy2008 12-10-2011 08:24 AM

Please remember Guys and Girls,

It makes no difference if you have different styles.

You just need the one route to your flags.

For an example of this - please see the help for the member above. (How it was in Red bold text - and how it should be in green bold text).


All times are GMT. The time now is 08:10 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.01747 seconds
  • Memory Usage 1,740KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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