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)

Welshy2008 05-01-2010 08:26 PM

Ok, Thanks for the Update on your forgetting to do the "template edit".Lol


Regards,

Welshy2008. :D

raja811 05-03-2010 11:04 PM

how to forced user select this option ?

Welshy2008 05-04-2010 09:41 AM

Quote:

Originally Posted by raja811 (Post 2031392)
how to forced user select this option ?



Add New User Profile Field Single-Selection Menu:

Title = Country Flag
Description = Add your country flag to your profile:
Profile Field Category = (Uncategorized)
Options = Copy & Paste the Whole contents of the file attached below (OPTIONS)
Set Default = None
Display Order = You Select this (dependant on how many you already have)
Field Required = yes, at registration and profile updating
Field Editable by User = Yes
Private Field = No
Field Searchable on Members List = No
Show on Members List = Yes


My Bold red, Above.

RK KINGKONG 05-13-2010 01:52 PM

1 Attachment(s)
I have found it way better to use the following code the the one supplied. It made it look better and its in a better position. Also notice that when you hoover over the flag it will actually say the full name of the country.

Find:
Code:

{vb:raw template_hook.postbit_userinfo_right}
Add ABOVE:
Code:

<!-- Wy Country Flags Start -->
<vb:if condition="$post['fieldx']">
<a class="postuseravatar">
<dt>Country:</dt>
<img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldx}.GIF" alt="{vb:raw post.fieldx}" border="" />
</vb:if>
<!-- Wy Flags End -->

And of course X being your field id for the user profile field.

Welshy2008 05-13-2010 04:36 PM

1 Attachment(s)
Quote:

Originally Posted by RK KINGKONG (Post 2036373)
I have found it way better to use the following code the the one supplied. It made it look better and its in a better position. Also notice that when you hoover over the flag it will actually say the full name of the country.

Find:
Code:

{vb:raw template_hook.postbit_userinfo_right}
Add ABOVE:
Code:

<!-- Wy Country Flags Start -->
<vb:if condition="$post['fieldx']">
<a class="postuseravatar">
<dt>Country:</dt>
<img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldx}.GIF" alt="{vb:raw post.fieldx}" border="" />
</vb:if>
<!-- Wy Flags End -->

And of course X being your field id for the user profile field.


The following is the code that I use (I have put it on here in a post - But I should put it in my OP):


Code:

<!-- Wy Country Flags Start -->
<vb:if condition="$post['fieldX']"> <dt>Country:</dt> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="http://www.YOUR FORUMADDRESS.COM/images/buttons/{vb:raw post.fieldX}.GIF"  alt="{vb:raw post.username}'s Country Flag is:  {vb:raw post.fieldX}" border="0" />
</vb:if>
<!-- Wy Flags End -->

Gives me - what you see in the "Attachment".

It is a case of - adjusting the code to suit your needs. :)

robbiefritz 05-13-2010 08:06 PM

Thanks. Some of the mod tips were great and as such used a little of them too.

DeadRabbit 05-18-2010 09:46 AM

where is the FieldID.jpg ?

Welshy2008 05-18-2010 11:55 AM

Quote:

Originally Posted by DeadRabbit (Post 2039076)
where is the FieldID.jpg ?

Sorry, You have lost me. :confused:

fuffalo 06-10-2010 02:50 PM

This is not working for me, I can't see it after I put the code in. I can pm you the postbit_legacy.

Welshy2008 06-10-2010 03:58 PM

Quote:

Originally Posted by fuffalo (Post 2051584)
This is not working for me, I can't see it after I put the code in. I can pm you the postbit_legacy.


Go ahead Mate, PM it.


Note to anyone else. You don't need permission to PM, just PM me with your problem, suggestion(s) etc, and let me know which mod it is about and I will happily have a look for you.


Best Regards,
Welshy2008.


All times are GMT. The time now is 02:37 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.01581 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)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