PDA

View Full Version : Miscellaneous Hacks - vB Importance


Adrian.
09-20-2006, 10:00 PM
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=127206).

Thanks. :)

Adrian

Get Shorty
09-21-2006, 07:53 PM
Great hack. :)

installed

apdcanari
09-21-2006, 07:53 PM
Good ! 3.5 please ? :rolleyes:

Adyum
09-21-2006, 08:06 PM
Installing as we speak.

magnus
09-21-2006, 08:56 PM
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
09-21-2006, 10:36 PM
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.
09-22-2006, 08:26 AM
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.
09-22-2006, 11:00 AM
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
09-22-2006, 11:37 AM
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
09-22-2006, 12:05 PM
Thanks! Works great. ;)

Slave
09-22-2006, 12:48 PM
How about some "About" & "Copyright" links?

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

Ntfu2
09-23-2006, 01:01 AM
Anyone have a generic privacy policy we could use :D

somedevil
09-23-2006, 01:06 AM
Love this mod, thanks for creating it!

Installs

Ntfu2
09-23-2006, 01:30 AM
Found this it maybe of some use for everyone:

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

rasp187
09-23-2006, 02:43 AM
Great addon! Been looking for something like this. Thanks!

kushal
09-23-2006, 11:02 AM
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
10-02-2006, 04:55 AM
Thanks for this great hack and smart one to.

vbreal
11-13-2006, 09:46 PM
thanks

thepub
11-14-2006, 01:40 PM
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.
11-14-2006, 03:06 PM
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
11-16-2006, 04:41 PM
Very useful mod. Does this work on 3.6.3?

/John

VBUsers
11-16-2006, 05:56 PM
this looks like what i need and thanks for the mod.

clicks install!

iardon
11-17-2006, 01:22 PM
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
11-17-2006, 01:38 PM
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
11-17-2006, 02:56 PM
superb hack !!! Installed !!**

bandare
11-17-2006, 05:13 PM
excellent hack - great job - and great variables in the CP too...

bandare
11-17-2006, 05:19 PM
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
11-19-2006, 12:16 AM
Does anyone know if this works for 3.5.x?

JohnGBSA
11-22-2006, 10:25 PM
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
12-07-2006, 11:46 PM
Very nice! Installed.

Kadi
03-02-2007, 06:45 AM
Great mod. Would it work with 3.6.5?

s25
03-02-2007, 09:57 PM
Works fine for me in 3.6.5

airborneCAL
04-24-2008, 03:31 AM
No workie on 3.7.0 RC4

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

Glynn58
05-08-2008, 08:34 AM
installed on 3.6.8 working nice , thanks :up:

PossumX
05-08-2008, 11:36 PM
Bummer. Looks like some manual html or php pages for this moving forward into 3.7

:(