akulion
01-28-2007, 10:00 PM
Demo can be seen here, just look at my post bit (http://path-to-peace.com/community/showthread.php?t=4913)
1. Go to AdminCP => Profile Fields => Add new Profile field => Single Select Menu >
Title > Way of Life
Description > Tell people what religion you are.
Options:
[copy and paste list of religions in religion_list.txt to this option field from the zip file]
Set Default: Yes, Include a First Blank Option
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>
Religion: <img src="images/religion/$post[fieldX].png" title="$post[fieldX]" align="center">
</div></if>
Change X to the field id.
3. Upload folder /religion to images/ to your forum dir.
A preview of all the icons inside this mod:
A preview of all the icons inside this mod:
http://path-to-peace.net/misc/newreligiontabs/islam.png http://path-to-peace.net/misc/newreligiontabs/christianity.png http://path-to-peace.net/misc/newreligiontabs/judaism.png http://path-to-peace.net/misc/newreligiontabs/sikhism.png http://path-to-peace.net/misc/newreligiontabs/bahai.png http://path-to-peace.net/misc/newreligiontabs/janism.png http://path-to-peace.net/misc/newreligiontabs/shinto.png http://path-to-peace.net/misc/newreligiontabs/atheism.png http://path-to-peace.net/misc/newreligiontabs/zoroast.png http://path-to-peace.net/misc/newreligiontabs/pagan.png http://path-to-peace.net/misc/newreligiontabs/satanism.png http://path-to-peace.net/misc/newreligiontabs/humanism.png http://path-to-peace.net/misc/newreligiontabs/undisclosed.png http://path-to-peace.net/misc/newreligiontabs/undecided.png http://path-to-peace.net/misc/newreligiontabs/secular.png http://path-to-peace.net/misc/newreligiontabs/scientology.png http://path-to-peace.net/misc/newreligiontabs/confucianism.png http://path-to-peace.net/misc/newreligiontabs/taoism.png http://path-to-peace.net/misc/newreligiontabs/wicca.png http://path-to-peace.net/misc/newreligiontabs/unitarian.png http://path-to-peace.net/misc/newreligiontabs/spiritism.png http://path-to-peace.net/misc/newreligiontabs/agnostic.png http://path-to-peace.net/misc/newreligiontabs/juche.png http://path-to-peace.net/misc/newreligiontabs/hinduism.png
And thats all really.
Now your users can select religion tabs via their profile edit screen and it will be displayed on the postbit
PS: my apologies if this is posted in the wrong section, but I didnt know if this ws to be called a hack or template or what
1. Go to AdminCP => Profile Fields => Add new Profile field => Single Select Menu >
Title > Way of Life
Description > Tell people what religion you are.
Options:
[copy and paste list of religions in religion_list.txt to this option field from the zip file]
Set Default: Yes, Include a First Blank Option
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>
Religion: <img src="images/religion/$post[fieldX].png" title="$post[fieldX]" align="center">
</div></if>
Change X to the field id.
3. Upload folder /religion to images/ to your forum dir.
A preview of all the icons inside this mod:
A preview of all the icons inside this mod:
http://path-to-peace.net/misc/newreligiontabs/islam.png http://path-to-peace.net/misc/newreligiontabs/christianity.png http://path-to-peace.net/misc/newreligiontabs/judaism.png http://path-to-peace.net/misc/newreligiontabs/sikhism.png http://path-to-peace.net/misc/newreligiontabs/bahai.png http://path-to-peace.net/misc/newreligiontabs/janism.png http://path-to-peace.net/misc/newreligiontabs/shinto.png http://path-to-peace.net/misc/newreligiontabs/atheism.png http://path-to-peace.net/misc/newreligiontabs/zoroast.png http://path-to-peace.net/misc/newreligiontabs/pagan.png http://path-to-peace.net/misc/newreligiontabs/satanism.png http://path-to-peace.net/misc/newreligiontabs/humanism.png http://path-to-peace.net/misc/newreligiontabs/undisclosed.png http://path-to-peace.net/misc/newreligiontabs/undecided.png http://path-to-peace.net/misc/newreligiontabs/secular.png http://path-to-peace.net/misc/newreligiontabs/scientology.png http://path-to-peace.net/misc/newreligiontabs/confucianism.png http://path-to-peace.net/misc/newreligiontabs/taoism.png http://path-to-peace.net/misc/newreligiontabs/wicca.png http://path-to-peace.net/misc/newreligiontabs/unitarian.png http://path-to-peace.net/misc/newreligiontabs/spiritism.png http://path-to-peace.net/misc/newreligiontabs/agnostic.png http://path-to-peace.net/misc/newreligiontabs/juche.png http://path-to-peace.net/misc/newreligiontabs/hinduism.png
And thats all really.
Now your users can select religion tabs via their profile edit screen and it will be displayed on the postbit
PS: my apologies if this is posted in the wrong section, but I didnt know if this ws to be called a hack or template or what