[Help]Flag in postbit not showing

Ben10

New Member
hi all there iss a problem with me .i have installed Flag system hack on my board ..

here the manual for installation

1. Create Flags Profile Fields:

Go to AdminCP > Profile Fields > Add new Profile field > Single Select Menu
Title - Country Flag
Description - Select your Country Flag
Options - [copy and paste list of countries in country_flags_list.txt to this option field]
Set Default: None
Editable By User: Yes
Display Page: Edit Profile

Write down your field number, ie field8


2. Edit the postbit_legacy template:

Go to AdminCP > Styles & Templates > Style Manager
In your template list on the right select Edit Templates from the dropdown menu of the desired template
Double click Postbit Templates
Double click postbit_legacy

FIND:

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

BELOW, ADD:

<!-- / flags start -->
<div>
<if condition="$post[fieldX]"><img src="images/flags/$post[fieldX].gif"></if>
</div>
<!-- / flags end -->


Change X to the field id for your country flag.
ie, if your country flag is field8 the code will look like this:
<!-- / flags start -->
<div>
<if condition="$post[field8]"><img src="images/flags/$post[field8].gif"></if>
</div>
<!-- / flags end -->


3. Upload the folder flags to the images directory of your forum.

i have done this 3 times 110% ok as pr these steps but there is nothing change :( no flag image showing ..i uploaded thease all iamges of flag in images folder ..:(:(:(:(:( plzzzzzzzzzzz help me to solve this thanks in advance :(:(
 

Ben10

New Member
and same problem with Gender in postbit :(

here gender modifaction

**************************************************
** ADD GENDER ICON TO POSTBIT v1.04 **
** By peterska2 08 June 2006 **
** For release at vBulletin.org peterska2.co.uk **
** and vBhacks-germany.com only **
** **
**************************************************


STEP ONE

Create the following new profile field.
Type: Single-Selection Menu
Title: Gender
Description: Select your gender
Options: Male
Female
Set Default: None

Allow user to input own value: No

Display page: Edit Profile


***********************************

STEP TWO

Note the field number (shown in the profile field manager), eg field5

***********************************

STEP THREE

ADD PHRASE

type: global
varname: gender
Text: Gender

************************************



STEP FOUR

POSTBIT TEMPLATE EDIT

-----------

POSTBIT OR POSTBIT_LEGACY
-------

FIND

<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

ADD BELOW

<if condition="$post[fieldx]">$vbphrase[gender]: <img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if>

CHANGE X TO THE FIELD NUMBER NOTED IN STEP 2


SAVE


********************************

STEP FIVE

MEMBERS LIST TEMPLATE EDIT

In Template memberlist_resultsbit

FIND

<if condition="$show['usertitlecol']"><div class="smallfont">$userinfo[usertitle]</div></if>

AFTER ADD

<if condition="$userinfo[fieldx]"><div class="smallfont">$vbphrase[gender]<img src="$stylevar[imgdir_misc]/$userinfo[fieldx].gif" alt="$userinfo[fieldx]" /></div></if>


******************************

STEP SIX

Choose your image set (either male & female or male2 and female2)
Rename to male and female. They MUST match exactly the way it is typed
in the profile field, otherwise they will not work!

Upload Male.gif, Female.gif and undisclosed.gif to /images/misc

*********************************

YOU ARE DONE! ALL YOU NEED TO DO IS SET YOUR GENDER IN YOUR USERCP

DON'T FORGET TO CLICK INSTALL! THANKS.

hepl tu solve tihs problem too :(:(:(:(
 

bluescorpion

New Member
Check your page source and see if the flag images are pointing where you think they should be... or if the code is even there to display them.

Did you enable the gender in the usercp?

HTH
 

Hoxxy

New Member
If you are getting the same error with 2 mods you probably have the field number wrong

Goto:
Admincp>>User Profile Fields>>User Profile Field Manager

QUICK EDIT:
take note of what the fieild id number is for each mod not working and compare to what you have added in the template.

Sorry i ment field id not display number.
 

cinneke

New Member
Hoxxy said:
If you are getting the same error with 2 mods you probably have the field number wrong

Goto:
Admincp>>User Profile Fields>>User Profile Field Manager

take note of what the Display Order number is for each mod not working and compare to what you have added in the template.


display order for flags 5
and Sexual Orientation 6
but dont see the things showing up but if you register users can add the options but nothing shows up
 

Ben10

New Member
Yahoooooooooooo i solved this ..Just paste these codes in postbit not in postbit_legacy ......Now you can also solve this by doing this cinneke :):):):):)
 

cinneke

New Member
thx ben but i have another mods like this and they not
showing up in the forum only when you register the forum
then users can add this option but not showing in the forums :
the icons you can see on the screens can i fix this 2 mods ?

Code:
http://www.vbulletin.org/forum/showthread.php?t=145507



User Profile Field: Country Flag (id: 5 - select)
User Profile Field: Sexual Orientation (id: 6 - select)

screens :
naamloosvi3.jpg
 

cinneke

New Member
Ben10 said:
Yahoooooooooooo i solved this ..Just paste these codes in postbit not in postbit_legacy ......Now you can also solve this by doing this cinneke :):):):):)


not working any help ?
 
Top