PDA

View Full Version : Miscellaneous Hacks - vB Importance


Adrian.
21 Sep 2006, 21:09
vB Important
Formely vB Privacy
By Adrian at Development Chat.com

vB Importance is a easy way to add a privacy policy, tos, rules and Disclaimer page to your forum.
It's easy to install, and rather useful. :)

Installation

Import product-importance.xml
Go to vBulletin Options > vB Importance > and configure.
Upload privacy.php/tos.php/disclaimer.php and rules.php to your forums root directoy.

Template Edits

Open footer...

Find:
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>

Add below:
<if condition="$vboptions['importance_privacy_footer'] == 1"><a href="$vboptions[bburl]/privacy.php" rel="nofollow">Privacy Policy</a> -</if>

<if condition="$vboptions['importance_tos_footer'] == 1"><a href="$vboptions[bburl]/tos.php" rel="nofollow">TOS</a> -</if>

<if condition="$vboptions['importance_rules_footer'] == 1"><a href="$vboptions[bburl]/rules.php" rel="nofollow">Forum Rules</a> -</if>

<if condition="$vboptions['importance_disclaimer_footer'] == 1"><a href="$vboptions[bburl]/disclaimer.php" rel="nofollow">Disclaimer</a> -</if>

Save.

Upgrading
If you are upgrading from vB Privacy.

Reupload privacy.php, and upload the other 3 .php files.
Import product-importance.xml.

If it asks you to overwrite vB Privacy, do so.

Open Footer.
Find:
<if condition="$vboptions['privacy_footer'] == 1"><a href="$vboptions[bburl]/privacy.php" rel="nofollow">Privacy Policy</a> -</if>

Replace with:
<if condition="$vboptions['importance_privacy_footer'] == 1"><a href="$vboptions[bburl]/privacy.php" rel="nofollow">Privacy Policy</a> -</if>

<if condition="$vboptions['importance_tos_footer'] == 1"><a href="$vboptions[bburl]/tos.php" rel="nofollow">TOS</a> -</if>

<if condition="$vboptions['importance_rules_footer'] == 1"><a href="$vboptions[bburl]/rules.php" rel="nofollow">Forum Rules</a> -</if>

<if condition="$vboptions['importance_disclaimer_footer'] == 1"><a href="$vboptions[bburl]/disclaimer.php" rel="nofollow">Disclaimer</a> -</if>

Done. :)

You can find the privacy page at http://yoururl.com/privacy.php
Disclaimer - /disclaimer.php
Rules - /rules.php
Tos - /tos.php

If you do use this, please click install (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=127206).

Thanks. :)

Adrian

Get Shorty
21 Sep 2006, 21:53
Great hack. :)

installed

apdcanari
21 Sep 2006, 21:53
Good ! 3.5 please ? :rolleyes:

Adyum
21 Sep 2006, 22:06
Installing as we speak.

magnus
21 Sep 2006, 22:56
For those who don't know, something similar could be accomplished without the need for a hack. By creating a custom template named CUSTOM_PRIVACY and then calling it using: MISC.PHP?DO=PAGE&TEMPLATE=PRIVACY

The advantage this hack does have, however, is it will list the member's location in the WOL. Either way, a privacy page is definately a good idea. Keep your users informed. :)

Hornstar
22 Sep 2006, 00:36
Yeah this makes it alot easier then other ways mentioned in other threads.

Thanks.


edit


What files should i edit if I want to upload this again under another name multiple times, eg. I want to have it so I can have a disclaimer, tos, privacy etc.

Adrian.
22 Sep 2006, 10:26
Yeah this makes it alot easier then other ways mentioned in other threads.

Thanks.


edit


What files should i edit if I want to upload this again under another name multiple times, eg. I want to have it so I can have a disclaimer, tos, privacy etc.

Well,

To do that, and be able to add and enable like the privacy policy, it would mean making a similar page to privacy.php, and making another template and more phrases in the options.

If you like, i could quickly make you one?

Adrian

Adrian.
22 Sep 2006, 13:00
Updated
vB Privacy is now vB Importance.

You can now have a Disclaimer, TOS and rules page aswell. :)

Remember, to click install if you use it, for updates.

Adrian

Hornstar
22 Sep 2006, 13:37
Updated
vB Privacy is now vB Importance.

You can now have a Disclaimer, TOS and rules page aswell. :)

Remember, to click install if you use it, for updates.

Adrian

Thankyou for the update, exactly what I was after :)

edit:
you may want to add in the next update some others like AUP (Acceptal use policy) or a manual on how to add more as well.

Thanks again.

Snake
22 Sep 2006, 14:05
Thanks! Works great. ;)

Slave
22 Sep 2006, 14:48
How about some "About" & "Copyright" links?

Or allow us to change the names of the links depending on what we want :)

Ntfu2
23 Sep 2006, 03:01
Anyone have a generic privacy policy we could use :D

somedevil
23 Sep 2006, 03:06
Love this mod, thanks for creating it!

Installs

Ntfu2
23 Sep 2006, 03:30
Found this it maybe of some use for everyone:

http://www.the-dma.org/privacy/creating.shtml

rasp187
23 Sep 2006, 04:43
Great addon! Been looking for something like this. Thanks!

kushal
23 Sep 2006, 13:02
Very nice , thank you.
Does somebody have the ready made policies for all so that I make my own based upon that. I was able to do the disclaimer one.

Mr.D
02 Oct 2006, 06:55
Thanks for this great hack and smart one to.

vbreal
13 Nov 2006, 23:46
thanks

thepub
14 Nov 2006, 15:40
I feel like an idiot for even asking but I am a total novice at this...where is my root directory? I have an FTP something or other but there is nothing called root directory in it so I'm totally lost.

Adrian.
14 Nov 2006, 17:06
I feel like an idiot for even asking but I am a total novice at this...where is my root directory? I have an FTP something or other but there is nothing called root directory in it so I'm totally lost.

You root directory is the main directory where your vB files are in.

Eg, index.php, showthread.php etc... :)

JohnGBSA
16 Nov 2006, 18:41
Very useful mod. Does this work on 3.6.3?

/John

VBUsers
16 Nov 2006, 19:56
this looks like what i need and thanks for the mod.

clicks install!

iardon
17 Nov 2006, 15:22
Nice mod but I only need a rules link and I'd like it in the header links (next to faq). Is that possible with this mod (with some editing) or does anybody know a different mod for that?

Thanks.

thepub
17 Nov 2006, 15:38
Nice mod but I only need a rules link and I'd like it in the header links (next to faq). Is that possible with this mod (with some editing) or does anybody know a different mod for that?

Thanks.

good idea!

Ronak
17 Nov 2006, 16:56
superb hack !!! Installed !!**

bandare
17 Nov 2006, 19:13
excellent hack - great job - and great variables in the CP too...

bandare
17 Nov 2006, 19:19
Nice mod but I only need a rules link and I'd like it in the header links (next to faq). Is that possible with this mod (with some editing) or does anybody know a different mod for that?

Thanks.

that's easy.

Just go in to your navbar template and add this line to there:

look for this in the navbar template:

<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>

and add this underneath it.

<td class="vbmenu_control"><a href="rules.php$session[sessionurl_q]">Rules</a></td>

Should still work fine.......

Ski-Whiz
19 Nov 2006, 02:16
Does anyone know if this works for 3.5.x?

JohnGBSA
23 Nov 2006, 00:25
You may wan to edit your 'tos' template, as it lists the title as "Terms of Servicre".

Otherwise seems to be working well on vB 3.6.3

/John

pplc
08 Dec 2006, 01:46
Very nice! Installed.

Kadi
02 Mar 2007, 08:45
Great mod. Would it work with 3.6.5?

s25
02 Mar 2007, 23:57
Works fine for me in 3.6.5

airborneCAL
24 Apr 2008, 05:31
No workie on 3.7.0 RC4

Hornstar
08 May 2008, 08:58
Any chance for this to be updated to 3.7 so it auto inserts into the templates, so there are no template edits?

Glynn58
08 May 2008, 10:34
installed on 3.6.8 working nice , thanks :up:

PossumX
09 May 2008, 01:36
Bummer. Looks like some manual html or php pages for this moving forward into 3.7

:(