View Full Version : vB Statements System
Floris
04-19-2002, 10:00 PM
__________________________________________________ __
__________ ? vB Statements System 1.0.1 ? __________
?????????? (Addon for vBulletin v. 2.2.5) ??????????
?????????????????????????????????????????????????? ??
? Author: Floris (xiphoid) [info@creations.nl]
? Copyrights: ? 2002 The 'open forum' @ creations.nl
? Status: Final (version 1.0.1)
? Last build: 27 April 2002 (00:30h)
? Support: Limited (I am a newbie, sigh)
? Example: http://statements.creations.nl/
? Screenshots: Included in statements.zip file
? Any of the files from this add-on may only be
distributed through vBulletin.org/creations.nl
? Modifications are allowed as long as this header
and the 'Powered by..'-line on the pages stay put
__________________________________________________ __
Changelog:
0.0.9 - First public (beta) release
1.0.0 - Type in if-statement fixed
1.0.1 - Added 'templatesused' for caching
Beta 1.0.1 is now Final 1.0.1 - released as full release now.
### Introduction
????????????????
This little 'Add-on' hack will let you use your privacy statement-link in the footer of your forum in a more dynamic way. Fully integrated with vBulletin, managed through (unlimited) templates and handled by a single file. And this makes you able to call it from any point on any page that you want, through a link; being a text link or a forum button. In this situation we will make a new link to the footer, and include the Contact Us-link!
Currently it is required for the Administrator of the forum to have some experience with the vBulletin template system, some basic html and it wouldn't hurt to understand how to edit the .php file in question (though it is fairly easy).
Expanding the statements is pretty easy. All you have to do is add another action to the .php file and add a new template which it should call. And add the link to the statements index page (template).
### To Do
?????????
You only have to upload one new file, add a few new templates and enable the Privacy URL (and Contact us)-option. There are no files or templates to edit and it takes about (approximatly) 10 minutes to install. Pretty simple, and upgrading to future vBulletin 2.x versions would not affect this hack.
Installation instructions and screenshots, .php file and the templates are included in the attached statements.zip file.
Please use this thread for discussing the development of this little addon-hack and all flaming/trolling/etc about it can be E-mailed to junkmail@creations.nl
I am releasing this, because it is pretty complete now, and several of my vBulletin forum friends have requested this.
Floris
04-20-2002, 12:35 PM
This is how it looks like after install:
Velocd
04-20-2002, 03:08 PM
neato ;)
Floris
04-20-2002, 05:00 PM
Thank you. Do you have it installed on your server?
Sorry I didn't get back to you yesterday, had trouble with IRC :(
Anyway, installed on my site and working :)
But, may I ask how you got your page split up with Privacy Statement and Mission Statement?
I can only work out how to make one page...
EDIT: never mind, I download this file instead of the other one you gave me and now i see :)
Floris
04-21-2002, 10:15 AM
When you quit irc yesterday, I was explaining that you (should) could download this one instead, since it was finished :)
Happy to hear that you have it working now :)
Originally posted by xiphoid
When you quit irc yesterday, I was explaining that you (should) could download this one instead, since it was finished :)yeah, dont know what happened, all my IRC programs stoped working :\
anyway, this is what it looks like atm on my site :)
http://www.consoleradar.com/forums/http://www.consoleradar.com/forums/statements.php?s=
:D
Floris
04-21-2002, 10:57 AM
Looking good :)
Integr. perfectly with the rest of your forum it seems. I hope to get more replies from others so I can release this as a full hack.
It works perfectly at my forums. Very easy to install.
Floris
04-21-2002, 11:47 AM
Seems to fit in with vBportal just fine :) nice work orca
Thnx :). Just need to put some better statements up. I'm not that good in that ;).
Floris
04-24-2002, 07:37 PM
Well, I can't help you with that :)
Floris
04-26-2002, 10:15 PM
New version: 1.0.1 (updates database/first post/attachment) - upgrading requires only one little file change. But might be worth it.
OK, installed the update no problems... But my question now is, what did it do?
lol
Floris
04-27-2002, 07:35 AM
I had the same question, and FireFly explained to me that the templatesused in the top would cache the template which wouldn't require it to be loaded with every pageview I think. Anyway, this is better, cleaner and would speed things up a bit.
More info: here (http://www.vbulletin.com/forum/showthread.php?s=&threadid=45312)
TheComputerGuy
04-27-2002, 11:19 AM
Thanks for the hack, I love it
Floris
04-27-2002, 01:37 PM
Nice to hear, everything went ok with installation etc?
Floris
04-27-2002, 02:28 PM
Update: Moved from Beta to Final. (No file/template changes, since 1.0.1)
Floris
05-02-2002, 09:24 AM
Index Page
Privacy Statement
Forum Rules
Piracy Statement
Mission Statement
Spam (for guests/members)
Tell A Friend (statement & page)
Support (affiliates / donaters / sponsors / contributors page/statement)
Unregister
Contact Us
curley
08-11-2002, 08:02 PM
Does this work in 2.2.6? I need to create text pages and this seems to be perfect!
Thank you for any reply. I am a newbie and I see that the hack was for 2.2.5
Thanks again!
joe
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
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.
Gommeke
10-25-2005, 03:59 PM
I added the example as mentioned in #25 but the error message I get is still
Fatal error: Call to undefined function: gettemplate() in O:\FOO\www\statements.php on line 38
What mistake did I make, I guess I have but just can not figure that out.
Some help would be nice.
Marco van Herwaarden
10-26-2005, 10:43 AM
Are you running vB version 2?????
Gommeke
10-26-2005, 11:11 AM
No I do not.
I run VB 3.5
Marco van Herwaarden
10-26-2005, 01:16 PM
Then don't try to install hack made for vB2, they will not work!
Oblivion Knight
10-27-2005, 04:29 AM
Just when you think you've seen everything.. :speechless:
Gommeke
10-27-2005, 10:03 AM
I thought I could ask a question here that could help me out.
The answer was helpfull, I searched for a hack that could be helpfull for this issue, but I overlooked something (for wich VBversion it was intended) and the feedback I got from MarcoH64 was helpfull because it pointed me to my mistake.
What's so special about that.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.