vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Statements System (https://vborg.vbsupport.ru/showthread.php?t=37653)

Floris 08-12-2002 03:38 AM

Since they are stand alone pages, and that it works perfectly on my 2.2.6 forum, yeah. I think with 2.2.7 and 2.2.8 etc too :) Maybe it needs to be modified when 3.x comes out, but we will see.

curley 08-21-2002 01:14 PM

This is a great system and I want to install several docs but am having trouble with the install instructions.

Can someone help?

I setup the following:

template_statements_privacy.txt
......_mission.txt
......_supporters.txt
......_guidelines.txt

I had it working before with Privacy Policy but I didn't want the URL to be ....statements.php?s=$session[sessionhash]

Am I missing something? Why would for instance a statement for Contact Us be ....[sessionhash]&action=contact then?

Sorry but I am going to launch in a week or two and I am going to have VERY skeptical members. I need to complete these in the most effective fashion.

A step through for one statement creation would be great. I have all the content ready to go.

Great System Xiphoid!!

:)

Floris 08-21-2002 01:24 PM

The sessionhash in the link is kind of required, when one clicks on it it will be as with EVERY other vB url ?s=&action=blahblah .. don't worry about it.

those .txt files are the text files for the template, ofcourse .. don't name the template ending with .txt .. kind of obvious ..

I think I included install & example on how to make a policy for one thing, so it would be easy to make another. I see no reason to repeat myself, when its already in the install files.

Just read it again and maybe it comes to you.

curley 08-21-2002 02:11 PM

Kind of obvious to some, but not for a newbie like me.

Pardon the ignorance. I have understood most other hacks...

Perhaps someone else could add some further instruction.

Again, I'm a newbie. :).

I have actually installed successfully two others' of yours and they are working great. Thanks.

Floris 08-21-2002 03:16 PM

### Adding a statement
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
If everything is set up and you think 'Cool, but I am missing a statement', then these are the instructions for you to follow in order to add a statement.

In the following example we will add a 'Piracy Statement' where we will explain our users that the forum does not accept warez.

## Step 1: Adding the action
Open up statements.php in your favorite text editor and search for:
?>
Before that add:
// display statement - piracy
if ($action=="statements") {
eval("dooutput(\"".gettemplate("statements_piracy" )."\");");
}
Safe and upload the file.

## Step 2: Addin the template
In your Admin Control Panel, make a new template:
- statements_piracy (template_statements_new.txt)

Now edit the template statements_piracy and find all the:
#title#
Replace them with:
Piracy
And add your html/text for the statement where it says:
Put your Piracy Statement html/text here!

Done!
(And as you can see, you can do that for any new statement that you want to add)

### Removing a statement
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
If you want to remove a statement, you can follow these steps:
(please note, that it is a bit different for the 'contact us' link!)

## Step 1: Removing the action
Open up statements.php in your favorite text editor and search for the statement that you want to remove, in our example we want to remove the mission statementm, so remove:
// display statement - mission
if ($action=="statements") {
eval("dooutput(\"".gettemplate("statements_mission ")."\");");
}
Safe and upload the file.

## Step 2: Removing the template
In your Admin Control Panel, goto "Templates" > "Modify" and search for the statement_mission template.
Click on "[remove]" to delete it.

Done!

Floris 08-21-2002 03:17 PM

Sorry .. I can not be much clearer then this, maybe the hack is just too difficult for you.

curley 08-21-2002 04:40 PM

I felt bad about my last post...I am feelin' a little stressed and apologize for the tone.

I am going ahead and just posting under my main url an .htm page for the few docs I have.

It is easier for me to do at this stage...

I just wanted to say that my other hacks from Xiphoid have been excellent and the support here is great!!

All the best...see you online!

:).

JulianD 11-24-2002 03:36 PM

I think this is great for my new forums! Thanks!

Floris 11-24-2002 04:03 PM

Quote:

Originally posted by JulianD
I think this is great for my new forums! Thanks!
Glad to hear :)

Ember 01-11-2003 05:29 PM

Excellent hack, very useful.


All times are GMT. The time now is 06:58 PM.

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.02233 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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