Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #41  
Old 09-10-2004, 02:57 AM
Roms's Avatar
Roms Roms is offline
 
Join Date: Jun 2004
Location: Witness ProtectionProgram
Posts: 1,841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WAAAHHHOOO! I've been wanting this forever!! works great!!
Reply With Quote
  #42  
Old 09-30-2004, 12:42 PM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great, thanks
Reply With Quote
  #43  
Old 10-01-2004, 12:44 PM
lanc3lot's Avatar
lanc3lot lanc3lot is offline
 
Join Date: Sep 2004
Location: Athens, Greece
Posts: 454
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this hack working for 3.0.3?
Reply With Quote
  #44  
Old 10-01-2004, 05:22 PM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lanc3lot
Is this hack working for 3.0.3?

yep
Reply With Quote
  #45  
Old 10-01-2004, 09:22 PM
lanc3lot's Avatar
lanc3lot lanc3lot is offline
 
Join Date: Sep 2004
Location: Athens, Greece
Posts: 454
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks mate
Reply With Quote
  #46  
Old 11-04-2004, 11:20 AM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Regards
Reply With Quote
  #47  
Old 11-05-2004, 09:50 AM
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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... 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
Reply With Quote
  #48  
Old 01-13-2005, 05:33 AM
gilbert gilbert is offline
 
Join Date: Jan 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #49  
Old 01-13-2005, 05:43 AM
gilbert gilbert is offline
 
Join Date: Jan 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Attached Images
File Type: gif country.GIF (115.3 KB, 0 views)
Reply With Quote
  #50  
Old 01-21-2005, 07:59 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04287 seconds
  • Memory Usage 2,275KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete