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)

Roms 09-10-2004 02:57 AM

WAAAHHHOOO! I've been wanting this forever!! works great!!

oldfan 09-30-2004 12:42 PM

works great, thanks :)

lanc3lot 10-01-2004 12:44 PM

Is this hack working for 3.0.3?

oldfan 10-01-2004 05:22 PM

Quote:

Originally Posted by lanc3lot
Is this hack working for 3.0.3?


yep :)

lanc3lot 10-01-2004 09:22 PM

Thanks mate

Neutral Singh 11-04-2004 11:20 AM

I think this thread should be renames as Country Flag Hack and placed in an appropriate section in this forum... :confused: took me a while to locate this hack...

Regards

ChuanSE 11-05-2004 09:50 AM

Quote:

Originally Posted by amanpartaps
I think this thread should be renames as Country Flag Hack and placed in an appropriate section in this forum... :confused: took me a while to locate this hack...

Regards


appropriate section == http://www.vbulletintemplates.com

This is a vB "Hack" board, you are referring to a template altering issue ;)

gilbert 01-13-2005 05:33 AM

This was a real mission for me with VB 3.03 using the instructions included but I finally got it working. Here are some quick instructions:

1. Download the hack
2. Upload the flags, we will use www.yourforum.com/flags/ as an example
3. Note: You do not have to create any new user profiles as there is already a profile for country. The user profile ID for country should be 6 by default.
4. Edit the postbit template,

find

Code:

<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
below add

Code:

<if condition="$post[field8]"><div>$vbphrase[location_perm]: <img src="http://www.yourforum.com/flags/$post[field6].gif" border="0" alt="[field6]" /><br /></if>
5. This should complete the install. You may have to play around with the
Code:

="$post[field8]">
, just keep changing the field# until you find a spot your are looking for when viewing a thread. For me, 8 worked perfect. Also note that the forum I installed this on did not show the location: in the postbit, if you want to show the location and the country, you will have to create a phrase called "country_12345" with the text "Country: " and then use this code in the postbit style instead:

Code:

<if condition="$post[field8]"><div>$vbphrase[country_12345]: <img src="http://www.yourforum.com/flags/$post[field6].gif" border="0" alt="[field6]" /><br /></if>
Or if you want to do it without creating a new phrase, just put:

Code:

<if condition="$post[field8]"><div>Country: <img src="http://www.yourforum.com/flags/$post[field6].gif" border="0" alt="[field6]" /><br /></if>
Hope this saves some people 2 hours as it would have saved me if I would have known this :)

gilbert 01-13-2005 05:43 AM

1 Attachment(s)
Scratch step number 3. Some people may not have the country list already there. If not, insert all the countries from the flag_list as VB3 allows to add them all. See attachment

T3MEDIA 01-21-2005 07:59 PM

What does this hack do? I saw a site that had country flags scrolling for online users... that is what I would love.
Is there a clear set up on how to do this hack? I really dont want to mess with my site more than it is...

or a screen shot or something! LOL.


All times are GMT. The time now is 10:12 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.01162 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
  • (5)bbcode_code_printable
  • (2)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