vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   State Flags (https://vborg.vbsupport.ru/showthread.php?t=103544)

Lamby1973 12-21-2005 10:00 PM

State Flags
 
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

mholtum 12-22-2005 07:31 PM

Installed.. Easy money. thank you!

Lamby1973 12-22-2005 08:01 PM

Your Welcome!

bashy 12-22-2005 08:51 PM

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

bashy 12-22-2005 09:06 PM

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

Lamby1973 12-22-2005 09:43 PM

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.

bashy 12-22-2005 09:49 PM

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! --->


Lamby1973 12-22-2005 09:50 PM

Yes i did ;)

Quote:

3. Upload /state to images/state to your forum dir.
Always read to the end ;)

bashy 12-22-2005 09:55 PM

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

Lamby1973 12-22-2005 09:59 PM

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 :)


All times are GMT. The time now is 07:14 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.03216 seconds
  • Memory Usage 1,737KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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