vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Country flag hack? (https://vborg.vbsupport.ru/showthread.php?t=60538)

Roody 03-14-2004 04:55 PM

Quote:

Originally Posted by ChuanSE
Roody,

if you want the flags to appear in the new postbit style, you add the code to "postbit" & if ya want them in the old style, you will have to add the code to "postbit_legacy".

Works for me ;)

But what was the line you didn't found?

When I get back to my house I will check it out again and let you know if I have any issues.

:)

Diva 03-23-2004 04:33 PM

Yay! The flag hack is here! I am using vb3Gold. Are there any changes for this?

Also, if I want to replace the "Location:" with the flag, what do I need to do?

PS: I tried it and dont see where to enter the different flags in the profile.

ChuanSE 03-24-2004 05:14 AM

Quote:

Originally Posted by Diva
Yay! The flag hack is here! I am using vb3Gold. Are there any changes for this?

Also, if I want to replace the "Location:" with the flag, what do I need to do?

PS: I tried it and dont see where to enter the different flags in the profile.

That would be rather easy to do :)

replace this

PHP Code:

<if condition="$post[field2]">Location$post[field2]</if> 

with this

PHP Code:

<if condition="$post[field18]"><img src="images/flags/$post[field18].gif" border="0" alt="$post[field18]/></if> 

the field2 stands for the field location ppl fill in with registration, field 18 stands for the flag field i created for my board, so you'll have to check the fieldnumber in your admincp (registration options)...

Cheers

https://vborg.vbsupport.ru/external/2004/04/1.php

Diva 03-24-2004 12:14 PM

1 Attachment(s)
Hi ChuanSE! Will that show the flag then the location? EX:

[USA flag] California

Right now I cant seem to get the flag to show. In VB3G, Where is the options field ?

ChuanSE 03-25-2004 06:14 AM

I think you didn't really followed the install instructions...
Delete the user profile field and start over ;)

this is what it should look like in admincp:

http://puredj.net/forums/transfer/countryflag.jpg

Lemme know if it works out :)

Kohhal 03-25-2004 09:37 AM

Quote:

Originally Posted by Diva
...Where is the options field ?

You chose the wrong type of field, make sure you set it up as "Single-Selection Menu".

Diva 03-25-2004 04:51 PM

Oops! Thank you, TheMasterG. I selected the single text instead. It works now.

PS: Thanks to ChuanSE, too. :p ;)

ChuanSE 03-26-2004 06:30 AM

Hehe :p

Alien 03-26-2004 07:11 AM

Works great, thanks a bunch!

8472 03-26-2004 01:29 PM

1 Attachment(s)
attached the flags of all 50 US states and some 5 misc flags

great hack .. thanks a lot

my community loves it


All times are GMT. The time now is 06:59 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.01048 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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