vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBRules (https://vborg.vbsupport.ru/showthread.php?t=99060)

akanevsky 10-22-2005 10:00 PM

vBRules
 
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*=============================================*\
|| vBRules
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Jun 04, 2009
||
|| Time required to install: ~30 seconds
|| Difficulty: easy
\*=============================================*/

DESCRIPTION

Do you need to create a custom "Website Rules" page within your forums? This modification features a friendly admin cp control, where you can easily create a page of rules for your website.

STATISTICS

Products to Install: 1


FEATURES
  • Zero file or template modifications.
  • Automatic generation of the table of contents.
  • Support for multiple rule sections with titles.
  • Support for vB Code, HTML and Smilies.
  • Ability to remove native vBulletin rules from registration system and replace them with your own set of rules.
  • Flexible per-rule settings
    • Title
    • Message
    • Display in Site Rules
    • Display in Registration
    • Display in Table of Contents
    • Allow HTML
    • Allow Smilies
    • Allow BB Code
    • Allow [IMG] Code
    • Auto Linebreaks
    • Display Order

VERSION HISTORY

2.1.0
[+] The hack is now compatible with vBulletin 3.5.x - 3.8.x.
[+] Eliminate all template edits.

2.0.3
[+] The software is now free.

2.0.2
[F] Corrected a Phrasing Issue
[F] Corrected a couple of Template Issues
[+] Officially Compatible With vBulletin 3.6.0

2.0.1
[F] Corrected a Licensing Issue

2.0.0
[F] First Release of the Gold Edition.

1.0.0
Initial Release of Lite Edition

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

akanevsky 10-23-2005 12:25 AM

FAQ POST

How is this different from HiDeo's Hack?

I did not like HiDeo's hack because of the poor design and because I do not need additional tables and other crap for just one rule block. Also, HiDeo's hack does not allow BBCODE and does not allow parsing customization. Therefore, I decided to make my own hack that would fit my needs. Once I did that I decided to share it here. Hope you like it ;)

Can I disable BBCODE if I don't need it?

Certainly. Look at the screenshots and see for yourself that you can disable any of the following list:
bbcode, html, smilies, [img], automatic line breaks

tnguy3n 10-23-2005 01:37 AM

How is your hack different from this one https://vborg.vbsupport.ru/showthread.php?t=97605 ?

InfiniteWebby 10-23-2005 05:04 AM

FYI: You forgot the rules.php file. =)

XoticGuru 10-23-2005 07:48 AM

./rules.php => ./rules.php

Theres No Rules.php

/me Claps

akanevsky 10-23-2005 10:50 AM

Quote:

How is your hack different from this one https://vborg.vbsupport.ru/showthread.php?t=97605 ?
Read the FAQ post (post #2 in this thread).

Quote:

FYI: You forgot the rules.php file. =)
* XoticGuru Claps
Look again :)

tcs 10-23-2005 10:59 AM

Looks Nice, Less clutter. Will install when I get around to upgrading.

nexialys 10-23-2005 11:05 AM

...

ok, i'm completely stupid maybe, but as the admin is the one to write rules, why do you add html/smilies etc filters ?!

a simple page with the content of your choice can be parsed with all settings activated, so there is no need to set the smilies or bbcodes on... admins usually have permission to use all these codes anyway, so why add the settings in the Rules edition ?!...

anyway... good idea!

XoticGuru 10-23-2005 11:15 AM

Can you explain why when i go to rules.php on my forum all i get is a blank page? I followed all the steps correctly etc and i even tried setting Permissions to 777 still no luck

/me Hopes Its Not Something Stupid

Snake 10-23-2005 12:18 PM

Awesome, having a rules page as a hack is much better than creating a custom vB page... :) Thanks man, I've been looking for this ages ago!

akanevsky 10-23-2005 03:06 PM

Quote:

...

ok, i'm completely stupid maybe, but as the admin is the one to write rules, why do you add html/smilies etc filters ?!

a simple page with the content of your choice can be parsed with all settings activated, so there is no need to set the smilies or bbcodes on... admins usually have permission to use all these codes anyway, so why add the settings in the Rules edition ?!...

anyway... good idea!
Because sometimes you want to parse HTML, sometimes you don't. Even though you are admin, you should have a choice :)

Quote:

Can you explain why when i go to rules.php on my forum all i get is a blank page? I followed all the steps correctly etc and i even tried setting Permissions to 777 still no luck
Crap.. The template did not get included into the XML file... Fixed, please download and reinstall the XML file.

Quote:

Looks Nice, Less clutter.
Quote:

Awesome, having a rules page as a hack is much better than creating a custom vB page... Thanks man, I've been looking for this ages ago!
TY :)

Dougie Nunny 10-28-2005 10:28 AM

I'm having major problems with this.

For starters, in the read-me section, when you say replace that phrase with this one; how do you do that? All I can do is add a translation of it. I tried checking the vBulleting manual and it re-affirmed that you can't edit that file, so wtf?

Second, my rules.php page now is just a big blank white page with nothing on it. Isn't it supposed to, I dunno, look like the forum?

Help would be appreciated a LOT.

akanevsky 10-28-2005 03:46 PM

Quote:

For starters, in the read-me section, when you say replace that phrase with this one; how do you do that? All I can do is add a translation of it. I tried checking the vBulleting manual and it re-affirmed that you can't edit that file, so wtf?
Yes, you add a translation :)

Quote:

Second, my rules.php page now is just a big blank white page with nothing on it. Isn't it supposed to, I dunno, look like the forum?
Make sure you installed the product XML. :)

redspider 10-28-2005 04:28 PM

this link take me to the member list :
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[vbrules_rules]</a></td>
is that right?

akanevsky 10-28-2005 05:12 PM

no, sorry. fix that to:

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

redspider 10-28-2005 06:15 PM

that work ty.

akanevsky 10-28-2005 06:51 PM

Whoever voted "1.0" for this thread - screw you. And you better tell me who the ++++ you are.

Dougie Nunny 10-29-2005 04:11 AM

The XML is installed and everything has been followed to a T.

Yet:

http://thewrestlingasylum.com/rules.php

piXelatedEmpire 10-29-2005 06:58 AM

Quote:

Originally Posted by Dark Visor
Whoever voted "1.0" for this thread - screw you. And you better tell me who the ++++ you are.

wow, don't you think you're getting carried away, who cares if someone doesn't appreciate your work.

I however, do, and as such I will definately be testing this little hack out. Thank you.

akanevsky 10-29-2005 11:14 AM

Quote:

I however, do, and as such I will definately be testing this little hack out. Thank you.
:)

Dougie Nunny
Yet... ??? :S

Regenerate 10-29-2005 12:23 PM

Hi. I did everyting, seemed to be going fine, but on the rules page (http://www.dutchjoomlers.com/rules.php) there're no rules... Where can I put these in?

Thanks in advance...

akanevsky 10-29-2005 01:19 PM

You can write them in using your vBulletin Options (category vBRules)

Dougie Nunny 10-30-2005 12:32 AM

Hey, I am still having major problems with your script.

Are you going to help?

EVERYTHING you're manual says to do has been done.

Phrase translated...
Rules.php writen...
XML uploaded...

And it STILL shows as a blank page.

Why?

akanevsky 10-30-2005 12:51 AM

PM me with your admincp access and I'll take a look at it.

jokerz 11-06-2005 06:36 AM

Perfectly fine! BUT.. I'm having a problem with forum rules page. I get:
Fatal error: Call to a member function on a non-object in /home/xxxx/public_html/forums/rules.php on line 25

akanevsky 11-06-2005 10:23 AM

Are you kidding me?

Line 25 and around, code is:

PHP Code:

// pre-cache templates used by all actions
$globaltemplates = array(
    
'RULES',
); 

Maybe you are using a different rules page? Upload the one in my archive ;)

The M.I.P. 11-06-2005 12:40 PM

Maybe, you should also have a look at Forumteaser (moderator-editable texts in forumdisplay) which gives you the possibility to add forum-specific rules editable by moderators.

akanevsky 11-06-2005 01:43 PM

Maybe I should, but that is irrelevant to this hack... You forget that I did this hack for my purposes, and I only share it here for those who might find it useful. ;)

jokerz 11-06-2005 02:08 PM

Quote:

Originally Posted by Dark Visor
Are you kidding me?

Line 25 and around, code is:

PHP Code:

// pre-cache templates used by all actions
$globaltemplates = array(
    
'RULES',
); 

Maybe you are using a different rules page? Upload the one in my archive ;)

omg!? I do not have that line 25 in rules.php

line 25 is:
PHP Code:

// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
==== this is line 25 as blank line ==== 
$parser =& new vB_BbCodeParser($vbulletinfetch_tag_list()); 


akanevsky 11-06-2005 02:24 PM

You are in the wrong thread buddy. That question is pertinent to HiDeo's rules hack, which is located in his thread ;)

If you are trying to install my hack, install my rules.php...

jokerz 11-07-2005 08:31 AM

No I am right in this thread. I am using your hack.

Oh man, rules.php in forum directory was HiDeo that I used old vb version.

Now everything is fine. Cheers :D

ekopapers 11-07-2005 03:29 PM

another great hack, thanks :) clicks install only complaint it would have been nice and saved a bunch of time if it has said where to enter your rules in the vboptions in the instructions :)

akanevsky 11-07-2005 06:07 PM

Quote:

it would have been nice and saved a bunch of time if it has said where to enter your rules in the vboptions in the instructions
You are right. ;)

dune 11-24-2005 02:22 AM

Quote:

Originally Posted by Aftermath
Awesome, having a rules page as a hack is much better than creating a custom vB page... :) Thanks man, I've been looking for this ages ago!

Why don't you just use the built-in vB FAQ? You can do full html and it even parses vb variables...

We put our advertising package their, our moderator's guide, our user's guide, etc...all the rules...

akanevsky 11-24-2005 02:25 AM

Quote:

Why don't you just use the built-in vB FAQ?
Why don't you just not use what you don't wanna use rather than going around and criticizing things that you think are not required? The answer to your question is because a specialized rules page better fits the needs of most of the sites than anything else does :)

akanevsky 11-24-2005 02:27 AM

Quote:

XoticGuru
Try again with the latest version.

Quote:

Now everything is fine. Cheers
Then you know what to click :)

lazyseller 12-09-2005 08:08 AM

trying to add this for 3.52 and i am getting 404 page..

Snake 12-09-2005 08:16 AM

Make sure you've uploaded all the files in their correct location.

lazyseller 12-09-2005 03:25 PM

EEK....

LOL wow cant believe i missed that one... accidently uploaded to a unknown location

chet 01-02-2006 01:35 PM

Screen shot 1, is there anyway you can use a larger box to enter the rules?

Chet


All times are GMT. The time now is 06:41 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.01708 seconds
  • Memory Usage 1,829KB
  • 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
  • (3)bbcode_php_printable
  • (16)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
  • (40)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