PDA

View Full Version : Miscellaneous Hacks - Religion Tabs


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

Cyricx
01-29-2007, 05:15 PM
I'm a little confused by the ankh for paganism, but regardless of that.

Great idea and nice little mod! :)

akulion
01-29-2007, 05:44 PM
Thanks
Thats for one of the Egyptian gods - belonging to the pagan beliefs in idols etc

Im also posting up the PSD for the file here so anyone who has photoshop can modify it to their liking

the file also contains the font used

Distance
01-29-2007, 07:29 PM
Religion is a drug

Kaleem
01-29-2007, 07:30 PM
Salam and thanks Akulion :)

akulion
01-29-2007, 07:51 PM
walikum salam :)

ur welcome

religion is a drug?
Well religion is defined as a way of life....
so in that case life becomes a drug :D
No matter what you believe in - becomes your religion :D
but thats way too philosophical for this thread lol

Distance
01-29-2007, 08:21 PM
lol yes

But religion is a drug.. what causes all these suicide bombers and shit.. religion

Cyricx
01-29-2007, 08:25 PM
Right on Akulion!

Thanks for the PSD! :)


Distance - Don't blame all for the actions of one ;) Regardless... perhaps it would be best to stick to topics about modifications to vbulletin ;)

Stoebi
01-29-2007, 08:51 PM
Thank you very much. *installed*


Like to find the instruction.txt in archive.

TheBlackPoet
01-29-2007, 08:56 PM
i was goin to ask for the psd.... thanks for posting this

installed

akulion
01-29-2007, 09:01 PM
ur welcome everyone :D glad u guys enjoying it

lol yes

But religion is a drug.. what causes all these suicide bombers and shit.. religion

same can be said about political idealogies
in fact more people killed in the name of nazi idealogy
more people killed in the name of monarchy
more people killed in the name of democracy


than any death count in the world!

not to mention WW I and WW II - totally political and nothing to do with religion ;)

Distance
01-29-2007, 09:09 PM
Religion is a drug :p

RvG2
01-30-2007, 03:10 PM
Salam Aku, as usual during the SMF times... THANKS! :)

I followed you here... LOL.

akulion
01-30-2007, 03:19 PM
walikum salam

lol roarinrow is that u?

RvG2
01-30-2007, 03:35 PM
No Master Aku... I am one of your fans in TP. hehehe

I just found out that vB is far beyond SMF. Cool...

akulion
01-30-2007, 03:48 PM
i always get confused between u and roarin lol

good to see familiar people around

if u need any help just pm - i just ported over myself last week, but im picking up pretty fast :D

apiasto
02-27-2007, 12:59 AM
nice mod. thnx

Dream
02-27-2007, 02:08 AM
Very interesting mod. Im trying this now, thanks :)

edit:

Theres an error in the religion list, Atheism and Christianity appear two times.

akulion
02-27-2007, 03:54 PM
thanks for pointing that out
ill also update it in the package
if u want to remove the duplicate entries, its pretty simple, just edit the profile feild u created and take out the duplicates from the list

pollon
03-14-2007, 11:19 PM
thankyou very much! i will use this mod for other profile fields! :D

insolentmuse
03-18-2007, 07:04 PM
Neat Mod! A shame people felt the need to bring their religious opinions into the thread.

pscyhosis
03-26-2007, 11:41 AM
Installed! Thanks!

kaptanblack
03-26-2007, 08:47 PM
Thanks very nice

mystic10
11-15-2007, 05:49 PM
this is awesome but have problem..when i go on my profile i see the option but when i go to any post i dont see it there i dont know what i am doing wrong

toonysnn
11-16-2007, 11:46 AM
You have not edited your postbit / postbit_legacy to have the following code:

<if condition="$post[fieldX] != ''"><div>
Religion: <img src="images/religion/$post[fieldX].png" title="$post[fieldX]" align="center">
</div></if>

You can find fieldX in your admin cp in the custom profile fields.

Lea Verou
11-16-2007, 12:14 PM
What does the image for atheism mean?
(I'm asking just out of curiosity, I don't need this mod)

thefullmaza
12-09-2007, 06:32 AM
clicks install plz

Megatr0n
01-12-2009, 07:37 PM
Anyone got it working for 3.8?

whitedd
03-19-2010, 11:35 PM
working with 4.0.2???

JAFRI
04-05-2010, 04:06 AM
pls update with 4.0.2