vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - CountryFlag (https://vborg.vbsupport.ru/showthread.php?t=97664)

gdwoods 12-31-2005 02:14 PM

Quote:

Originally Posted by jmc123
I can get the flags to show up in user profiles but how can i get the flags to show up in the forum threads? do i need to enable an option?

Don't worry, problem solved!

so how did you solve it?

tnguy3n 01-04-2006 08:17 PM

Quote:

Originally Posted by gdwoods
so how did you solve it?

modify the right template.
If you use Legacy Postbit Style, modify postbit_legacy template; otherwise, modify the postbit one.

Lpspider 01-07-2006 08:39 PM

couldn't get it to show up... :/ probably I have to many mods or something

ProjectTR 01-08-2006 11:45 AM

I have problems with 3.5.3 not working..

Chadi 01-15-2006 06:18 PM

Just curious, anyway to replace the gif flag images with actual text instead?
If not, what about making the flag appear in a new line (break)?

funinthesun 02-08-2006 09:44 AM

Please Delete This Post

blackpheonix 02-09-2006 05:11 PM

graet mod installed thanks works perfect on 3.5.3

OndaReal 02-17-2006 09:31 PM

works great on 3.5.3 cheers :)

Insert Username 03-02-2006 07:48 PM

A question (I don't think it has been covered yet). Got this working, set the field to display in the memberlist. There's now a column for Home Country in the column list, but is what I want. But it does has the text for the country name instead of the flag. Is there a way to have it just display the flag image?

Funboy 03-13-2006 10:50 AM

Hi guys,

Sorry to sound thick here but where is postbit(_legacy) within Version 3.5.4 as I can only find class_postbit.php & class_postbit_alt.php templates.

Also when looking for

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

all I can find is it within vbulletin-style.xml which was my old install folder which can not be right?

I know things have changed since this post first started so can this be installed on a fresh install of 3.5.. or only as an upgrade to 3.5..

Many thanks

I no under AdminCP you can change the Style & Language Settings as follows,

Quote:

Use Legacy (Vertical) Postbit Template
If you prefer the old-style postbit, using two vertical columns rather than the new horizontal layout, you can switch back to using that template with this switch.

Please note that if you enable this option and wish to customize the template, you should edit the 'postbit_legacy' template rather than the 'postbit'.
which then changes the layout but is 'postbit_legacy' now called postbit_alt ?

Funboy 03-13-2006 11:24 AM

OK being a MAJOR THICK O HERE!

Was looking in Dreamweaver at the templates instead of AdminCP as this was the way we did stuff on my old board.

Very sorry to all for taking up your time.

From one THICK Newbie to VB :)

rareclownfish 04-09-2006 03:39 PM

is this working on 3.5.4?

lamilein 04-09-2006 03:58 PM

Quote:

Originally Posted by rareclownfish
is this working on 3.5.4?

yes, perfectly

rareclownfish 04-09-2006 05:06 PM

Thanks working great after a few tweeks.
Now for the State Flags.

GrendelKhan{TSU 04-17-2006 01:40 PM

quick note:

Philipines flag wasn't showing... then I noticed:

image name is: Philippines.gif and yet the path pointed to "Philippine.gif"
(http://www.MYSITE.com/forums/images/...Philippine.gif)

(I don't know how to update the code, so I changed the image title to philippine.gif to get it to work.... but the proper name should be philippineS with an "s".)

saba 04-20-2006 05:51 PM

wat u mean by
<!-- Change X to the field id. -->

saba 04-20-2006 06:27 PM

it comes up as a text box where ya edit ya profile and no pics show

Dermo-MIO 04-20-2006 06:43 PM

^im getting same problem as him

sc4r3d 04-23-2006 01:08 AM

nice, thanks

saba 04-24-2006 06:53 PM

it dont show in next to my users names

monkeywarplane 05-02-2006 08:16 AM

Great mod, the user profile is working great and the flags are showing on the thread/post profile but I am getting an additional if condition=" != ''"> above the flag... for example...

Quote:

Join Date: Mar 2004
Location: Israel
Posts: 1,172
if condition="israel != ''">
Country:
http://forums.interbasket.net/showthread.php?t=113 (check second post)

I am running vb 3.5.4

Any ideas?

Stuart

monkeywarplane 05-02-2006 08:37 AM

Quote:

Originally Posted by monkeywarplane
Any ideas?

Forget it, silly mistake... silly question, it's 2:30 in the morning :)

Stuart

GNDI 05-04-2006 02:49 PM

If you just want the country name to show up, then you just add the following syntax

Find:
PHP Code:

<div class="info">$post[musernameis $post[onlinestatus] </div

ADD BELOW: where you find sweetable
PHP Code:

<if condition="$post['fieldX']"><div class="info">$vbphrase[location_perm]: $post[fieldX]</div></if> 

REMEMBER to replace the "X" whit the field number as describet in the original script

putergirl 06-10-2006 06:37 PM

Quote:

Originally Posted by tnguy3n
how about make chanage in both postbit and postbit_legacy templates. :)

hello, I tried making the changes to both postbit and postbit legacy and still no flag shows up. Here is what I did:


Step one completed as stated

Step two:
Code:

                                <div>
                                        $vbphrase[posts]: $post[posts]
                                <if condition="$post[field5] != ''"><div>
                                        Country: <img src="images/flags/$post[field5].gif" title="$post[field5]" align="center">
                                </div></if>

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

Am I supposed to change 3 X's?


flag folder added: Forum/images/flags

Help?

putergirl 06-13-2006 01:30 AM

anyone? :)

Muscolino 06-13-2006 03:59 PM

Do you get the bit that says 'Country:'? If so I'd guess you are either added the wrong fieldID or you put the flags in the wrong location.

If you haven't even got 'Country:' displayed then I suggest you start from the beginning and go through the installation again.

SHalliday 06-17-2006 07:12 PM

**Clicked Install **

Thank you. Just want I was looking for. Now all we need are state and province flags :)

sebbe 06-18-2006 09:57 PM

Thanks, installed! :)

leftie 07-02-2006 03:44 PM

I help run a forum that has a lot of ex pats and i have been asked if it possible to add a second flag to say where they are originally from.
Can the profile field be edited to have the option of a second flag.

Masala4india 07-03-2006 09:28 AM

Thankx its working very fine..

specmav 07-04-2006 08:03 PM

Flag won't show up after I edited postbit-legacy template?

Here is the code. field5 is the correct field #. I uploaded the flags directory to [forum root]/images/.

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

<if condition="$post[field5] != ' ' "><div>Country:<img src="images/flags/$post[field5].gif" title="$post[field5]" align="center">
</div></if>

I am using the Kirsch style if that makes a difference.

Thanks

nathanaus 07-05-2006 06:15 AM

Uh
Quote:

Options:
[copy and paste list of countries in flags_list.txt to this option field]
Where would that flags_list.txt file be exactly?

Pete C 07-06-2006 03:38 PM

Nice add-on :up: many thanks - *Installed*

nathanaus: It's in the zip file, together with the flag images and installation instructions ;)

Polo 07-06-2006 03:53 PM

will definetly install ;)

Masked Crusader 07-11-2006 07:45 PM

Too make this even cooler, I would love to see under the 'USA' flag, the ability to pick a state flag. Just a little suggestion.

leftie 07-12-2006 10:30 AM

Quote:

Originally Posted by shanejeffery86
Too make this even cooler, I would love to see under the 'USA' flag, the ability to pick a state flag. Just a little suggestion.

Yep, i've asked for something similar. The ability to choose a second flag.

hanna 07-12-2006 05:19 PM

anyone know how to incorporate this hack into the todays post section. For example, if a users posts, it will show the flag under the last poster section beside the username. Similar to the site like this:

http://www.gotfrag.com/portal/forums/

Thanks for your help!

sdebank 07-13-2006 08:10 AM

Tried editing postbit_legacy in templates and the flags don't show, might it work if you change postbit?

GNDI 07-13-2006 09:01 AM

Quote:

Originally Posted by sdebank
Tried editing postbit_legacy in templates and the flags don't show, might it work if you change postbit?

have you uploaded the flag images to the right location?

dcg 07-13-2006 12:48 PM

Quote:

Originally Posted by hanna
anyone know how to incorporate this hack into the todays post section. For example, if a users posts, it will show the flag under the last poster section beside the username. Similar to the site like this:

http://www.gotfrag.com/portal/forums/

Thanks for your help!

Excellent idea, anyone know how to do this?

I would be willing to pay for this as well.

-=DCG=-


All times are GMT. The time now is 04:17 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.01566 seconds
  • Memory Usage 1,823KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (11)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
  • (40)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