vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - vB Importance (https://vborg.vbsupport.ru/showthread.php?t=127206)

Adrian. 09-20-2006 10:00 PM

vB Importance
 
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:
HTML Code:

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

<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:
HTML Code:

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

<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.

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

Quote:

Originally Posted by hornstar1337
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

Quote:

Originally Posted by Adrian.
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. ;)


All times are GMT. The time now is 04:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01075 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete