Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications

Reply
 
Thread Tools
State Flags Details »»
State Flags
Version: 1.00, by Lamby1973 Lamby1973 is offline
Developer Last Online: Aug 2006 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-21-2005 Last Update: Never Installs: 41
Template Edits
 
No support by the author.

For this, its exactly the same as the Country Flag hack, however this shows where abouts you live.

IE....
Flag > England
State Flag > Yorkshire/Northumberland....etc etc

You dont need to have the Country Flag addon installed on your board to use this, this is totally seperate.

I have tested this an it worked on my 3.5.2 board. It should work on any version of 3.5

Any bugs or quieres then just let me know, ill try my best to help you out

Jon

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-22-2005, 07:31 PM
mholtum's Avatar
mholtum mholtum is offline
 
Join Date: May 2004
Location: Arizona
Posts: 697
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed.. Easy money. thank you!
Reply With Quote
  #3  
Old 12-22-2005, 08:01 PM
Lamby1973 Lamby1973 is offline
 
Join Date: Oct 2005
Location: Cramlington, England
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your Welcome!
Reply With Quote
  #4  
Old 12-22-2005, 08:51 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi

I cannot find
Code:
<div>
					$vbphrase[posts]: $post[posts]
				</div>
in either postbit nor postbit legacy, what do i do with this code now lol

I have searched all the way through, I have like 70 other modifications done to my board so this code may have been modded already!!

Bashy
Reply With Quote
  #5  
Old 12-22-2005, 09:06 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have just dumped the code anywhere in legacy and it sort of works...
the flags arnt showing though...
Theres not even any place holders for the pics to show that they are in the wrong place or out like that

Any thoughts?

Bashy
Reply With Quote
  #6  
Old 12-22-2005, 09:43 PM
Lamby1973 Lamby1973 is offline
 
Join Date: Oct 2005
Location: Cramlington, England
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your pictures should have been uploaded to your images file as stated in the install file....least i think i put it in there.

And i would have said if you cant find that then look for this:

Code:
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
And place it above it.
Reply With Quote
  #7  
Old 12-22-2005, 09:49 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

No ya didnt say that in the instructions

will try it though thanks

Code:
State Flag Mod for vb 3.5
This hack shows user's state flag (Where abouts in there country they come from) in postbit, below the user name or country flag (If installed).

As part of the Country Flag mod, State Flag mod created by Jonathan Thomas

1. Go to AdminCP => Profile Fields => Add new Profile field => Single Select Menu >

Title > Home County/State

Description > Tell people where abouts your from

Options:
[copy and paste list of countries in state_list.txt to this option field]

Set Default: Yes, none

Editable By User: Yes

Display Page: Edit Profile

Write down your field# . i.e field6

2. Open postbit(_legacy) template,

FIND:

				<div>
					$vbphrase[posts]: $post[posts]
				</div>

BELOW, ADD:

				<if condition="$post[fieldX] != ''"><div>
					State/County: <img src="images/state/$post[fieldX].gif" title="$post[fieldX]" align="center">
				</div></if>

 
<!-- Change X to the field id. -->


3. Upload /state to images/state to your forum dir.



<!--- That's it! --->
Reply With Quote
  #8  
Old 12-22-2005, 09:50 PM
Lamby1973 Lamby1973 is offline
 
Join Date: Oct 2005
Location: Cramlington, England
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes i did

Quote:
3. Upload /state to images/state to your forum dir.
Always read to the end
Reply With Quote
  #9  
Old 12-22-2005, 09:55 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was reffering to the
Code:
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
That was not in the instructions...

As for the images, this is where they are...
/forums/images/state/

Regards

Bashy
Reply With Quote
  #10  
Old 12-22-2005, 09:59 PM
Lamby1973 Lamby1973 is offline
 
Join Date: Oct 2005
Location: Cramlington, England
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ah right yeah i know, because i didnt think that would be gone from peoples postsbits! lol

So i was just suggesting another place for you to put them
Reply With Quote
Reply

Thread Tools

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 04:23 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.04762 seconds
  • Memory Usage 2,285KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete