vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Flags - Country and Region (https://vborg.vbsupport.ru/showthread.php?t=155223)

Digital Jedi 03-10-2008 08:59 AM

Make sure you uploaded the flag images to the directory your style uses. That can be different from your main images directory.

Magnusson2u 03-12-2008 03:48 PM

This has been a really cool add-on! Can I suggest a text-over position that will have the country name show? This way users can become graphically educated as to what flag represents which country.

Thanks

Digital Jedi 03-13-2008 07:24 AM

Quote:

Originally Posted by Magnusson2u (Post 1463097)
This has been a really cool add-on! Can I suggest a text-over position that will have the country name show? This way users can become graphically educated as to what flag represents which country.

Thanks

You can add that by putting alt="$post[fieldX]" inside each <img> tag.

Magnusson2u 03-13-2008 06:22 PM

Cool!

So you mean do this (I really know nothing)?
Code:

<if condition="$post[field26]"><img src="images/flags/$post[field26].gif"></if>

and make it:

<alt="$post[field26]"><img src="images/flags/$post[field26].gif"></if>

I know it's probably wrong, but it didn't work none the less.

Thanks DJ.

Digital Jedi 03-14-2008 08:14 AM

Quote:

Originally Posted by Magnusson2u (Post 1464027)
Cool!

So you mean do this (I really know nothing)?
Code:

<if condition="$post[field26]"><img src="images/flags/$post[field26].gif"></if>
 
and make it:
 
<alt="$post[field26]"><img src="images/flags/$post[field26].gif"></if>

I know it's probably wrong, but it didn't work none the less.

Thanks DJ.

Heheh, not exactly. You see alt is something that all <img> tags are supposed to have anyway, even if there's nothing in the quotation marks. It would look like this:

<img src="images/flags/$post[fieldXX].gif" alt="$post[fieldXX]" />

Magnusson2u 03-14-2008 01:26 PM

...don't laugh at me. http://www.s14.net/forums/images/smilies/giggleghey.gif Haha!

Thanks, it worked perfectly! Now I realize how incorrect I am about matching flags to countries.

aamirkhj 03-16-2008 09:49 PM

I installed and I am only getting the text of country name shows under the avatar no images i.e name of "usa" instead of the "usa flag", I checked all flags are uploaded correctly and fields are added according to the instructions but no idea why image of flag is not showing only name of the country displays.

Any idea what may be the reason?

aamirkhj 03-16-2008 10:37 PM

Quote:

Originally Posted by Boofo (Post 1448696)
Make sure you have <img src="images/flags/$post[fieldX1].gif"> instead of just $post[fieldX1]. I had the same thing happen as I was used to doing post fields all the same way, as text.

Well the entire coding is correct nothing seems to be working, I have spent already days on it.

Still could not figure out it does shows the text name of the country but no image,

here is the link

http://meraraabta.com/baithak/member.php?u=859

aamirkhj 03-16-2008 10:38 PM

Quote:

Originally Posted by Digital Jedi (Post 1448431)
Link?

http://meraraabta.com/baithak/member.php?u=859

Digital Jedi 03-20-2008 06:44 PM

Quote:

Originally Posted by aamirkhj (Post 1466549)

Oh, okay. Well that's the problem then. This doesn't put the flag image in your Member Profile. You put this in the postbit or postbit_legacy templates and the images will show in your posts. It will only show as text on your member info page.


All times are GMT. The time now is 09:00 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.01412 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
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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