PDA

View Full Version : vBRules


akanevsky
10-22-2005, 10:00 PM
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=215381)

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

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

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 :)

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.

Looks Nice, Less clutter.

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
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 :)

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

// 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) (https://vborg.vbsupport.ru/showthread.php?p=813882#top) 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
Are you kidding me?

Line 25 and around, code is:

// 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:
// ################################################## ######################
// ######################### START MAIN SCRIPT ############################
// ################################################## ######################
==== this is line 25 as blank line ====
$parser =& new vB_BbCodeParser($vbulletin, fetch_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
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
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
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
XoticGuru

Try again with the latest version.

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

dcpaq2xx
01-04-2006, 09:58 AM
Im confused about something.

Am I suppose to upload the style.css file to anywhere?

If not im wondering why its in the folder.

Thanks

Doug

dcpaq2xx
01-18-2006, 04:27 PM
Im confused about something.

Am I suppose to upload the style.css file to anywhere?

If not im wondering why its in the folder.

Thanks

Doug

Anyone???

Oap JTRipper
01-18-2006, 09:21 PM
no thats for the manual files

dcpaq2xx
01-18-2006, 09:24 PM
no thats for the manual files

Are you answering my question about the .css file?

Doug

akanevsky
01-18-2006, 10:31 PM
Am I suppose to upload the style.css file to anywhere?
Does it say anything about that file? No. Thus do not worry about it...

dcpaq2xx
01-18-2006, 10:48 PM
Does it say anything about that file? No. Thus do not worry about it...

It doesnt hurt to ask to make sure.

Doug

bigmonay2k
02-02-2006, 05:07 PM
will this work for 3.5.1??

Snake
02-02-2006, 06:03 PM
Yes, I have it running on v3.5.3. :)

http://forums.philosopherslegacy.net

CrazyShooter
02-02-2006, 06:49 PM
EDIT: Sorry asked if it would work on 3.5.3 without reading before posts

simsimt
02-04-2006, 05:49 AM
Nice hack. Installed.

Mattikana
02-11-2006, 08:47 PM
When Can View Forum for Unregistered / Not Logged In is set to 'No' they cannot read the rules they are linked to via the forum_rules_description cus they get a no permission error :dead:

akanevsky
02-11-2006, 08:48 PM
Sorry, but that's how vbulletin is. When the permission is off, you cannot access ANY pages.

Parture
03-07-2006, 11:00 AM
Various links on the navbar take me to the top of the vBRules page. http://biblocality.com/forums/rules.php

But each of those links pertains to a different section on the vBRules page.

Do you know what the code is I can use make the page go to these specific sections on the page: sections I, II, III, IV, V, VI, and VII?

This would be an awesome feature to add to vBRules.

Thanks.

UPDATE: I have just learned how to use the <a name="...">text</a>. That was easy.

Lordy
03-23-2006, 09:49 PM
Will this add the rules to the TOS area when a user registers for the forums?

akanevsky
03-25-2006, 12:33 AM
Yes, it does add a link there.

m_k
03-26-2006, 08:38 AM
otlichna! just what i needed :-)

<clicks install>

Snake
03-28-2006, 12:04 PM
Good updates there! :) I haven't checked on this hack for a while.

Nathan2006
04-12-2006, 10:15 PM
Thank you Psionic Vision

This is just what I have been looking for :)

Install

Nathan2006
04-12-2006, 11:41 PM
Just one question.

If I copy all my text from the thread I typed all the rules into and paste it into the rules box it ends up everywhere in blocks of text and the need of adding loads of <br> tags :(

Is there an editor or something that will fill in the <br> tags for me at all?

I have had a look on Google but no luck :(

Thank you for any help :)

akanevsky
04-12-2006, 11:52 PM
Screenshot01 - "Automatic Linebreaks" option. :)

Nathan2006
04-12-2006, 11:53 PM
Screenshot01 - "Automatic Linebreaks" option. :)

I was just about to edit my last post when you posted lol

Yeah I just seen it thank you ;)

Konstantinos
05-06-2006, 10:18 AM
cool

akanevsky
05-06-2006, 06:09 PM
What do you guys think about a gold edition of this hack with multiple rule entries, integration with registration page, automatic TOC (table of contents) and a separate admincp page?

Parture
05-06-2006, 06:48 PM
Do I have this latest gold version? Your last update still says Oct. 25, 2005. And what is the best way to upgrade?

http://biblocality.com/forums/rules.php#plan

akanevsky
05-06-2006, 07:10 PM
Note the keyword "think". I have not released the version yet, I am just thinking whether anyone would be interested in its release.

dlutt
05-06-2006, 07:57 PM
What do you guys think about a gold edition of this hack with multiple rule entries, integration with registration page, automatic TOC (table of contents) and a separate admincp page?

The ideas with the integration with the registration page and the automatic TOC are good :D I think this were useful addons.

Seperate admincp page? Hmm, I personally can live without at this time....

Multiple rule entries? Do you mean that rules can be defined for different (sub)forums and/or forum URL's and users must agree to different rules if they would like to post in a specific forum? At this time I don't need that really but I think it were interested for me in the near future.

Daniel

akanevsky
05-06-2006, 08:04 PM
Seperate admincp page?

For multiple rule entries.

Multiple rule entries? Do you mean that rules can be defined for different (sub)forums and/or forum URL's and users must agree to different rules if they would like to post in a specific forum? At this time I don't need that really but I think it were interested for me in the near future.

No, it means that you can create separate rule entries for each block of text. Purpose: Automatic styling (and TOC).

akanevsky
05-06-2006, 08:07 PM
RELEASE: VBRULES 2.0.0 GOLD EDITION

Changes:

[+] Separate AdminCP Control with Support for Multiple Rules
[+] New flexible settings customizable on a per-rule basis
[+] Integration with Registration System
[+] Automatic generation of Table of Contents

Key:

[+] - New Feature
[–] - Removed
[F] - Bugfix / Correction

File Overwrite Required:

Yes.

Product Overwrite Required:

Yes. (WITH PRIOR UNINSTALLATION OF VBRULES 1.0.0!)

New Template Modifications Since 1.0.0:

register_rules

The new version is available from visionscripts.com (http://www.visionscripts.com/?page=products&vsproductid=9).

Snort_2005
05-06-2006, 09:11 PM
I dislike how you have to pay $9.99 for something you have already released here for free.. o.O; I think I'll just stick with the older version that you had released as I don't have that many needs for those other features. >_>;

akanevsky
05-06-2006, 09:17 PM
Here is a lite edition. 9.99 is for the gold edition. It's your choice what you gonna use.

Parture
05-06-2006, 09:41 PM
I think you would have a better chance of convincing people if you could show us graphically the improvements. Right now, I don't know what you are charging $10 for a simple rules hack. Charge money for big projects, and use these small projects to attract people to your larger projects. If you charge for small things, it doesn't go over well. We feel we are being penny pinched.

Deska
05-06-2006, 10:46 PM
Agree with Parture :(
I think vb.org will be full of paid hacks soon... :(

akanevsky
05-06-2006, 10:52 PM
I think you would have a better chance of convincing people if you could show us graphically the improvements. Right now, I don't know what you are charging $10 for a simple rules hack. Charge money for big projects, and use these small projects to attract people to your larger projects. If you charge for small things, it doesn't go over well. We feel we are being penny pinched.

There are screenshots on the page I gave link to, what other graphics do you need? Sorry, but I am the one who decides which hacks to release for free and which not for free.

Agree with Parture
I think vb.org will be full of paid hacks soon...

That is an obvious inevitability. Partially, because of the non-coders' disrespectful attitude towards coders.

Bottom Line: You wanna buy - buy. You do not wanna buy - do not buy. But don't come complaining that "the hack should be free". Thanks for understanding.

Deska
05-07-2006, 04:45 AM
I'm not talk about hack should be free :p
But my opinion, if you release free hacks I think more better you're not sell hacks that similiar or have more features than free one.

That's all I think :)

akanevsky
05-07-2006, 10:04 AM
It has all been considered :)

COBRAws
05-09-2006, 05:06 AM
Ure making an update, u made me come here, to see that I need to go to your website and pay for a "full" version of this release? LOL

Vb.org is going crazy, lets hope other coders dont start doing what you are doing.

-edit-
im not against charging for coding and hard work. Im against using vb.org for advertisement for other sites thru the update application.

akanevsky
05-09-2006, 09:24 AM
What are you talking about? I released a lite version first, then I released a gold version and announced about its release in this thread... I also sent update notification, so that you, use of vbrules lite would know that gold version is there. I don't see the problem with this, as it's not even advertisement. It's just a simple one-time announcement about a new version of an already released hack...

wtricks
08-19-2006, 09:23 AM
Very good mod. I have just installed it and it's great. Wonder why it's not in the default script. Should be in the VB script as you install it since it's a very important feature IMO.

dcpaq2xx
09-13-2006, 06:10 AM
Are there any plans of updating this to an official VB 3.6 status?

Doug

akanevsky
09-13-2006, 07:36 PM
This works fine with 3.6.

dcpaq2xx
09-14-2006, 03:53 AM
Ok, Understand on the works with 3.6.

Just out of curiosity, I disabled the VB Rules plugin and clicked on the Rules Link and the rules page was still displayed.

When I disable the plugin what should actually happen? Anything visually?

Doug

akanevsky
09-14-2006, 06:01 PM
Nothing should happen when you disable the product. Disabling the product simply disables plugins, which this hack does not use.

dcpaq2xx
09-15-2006, 02:03 AM
Ok, thanks.

Doug

simsimt
10-04-2006, 02:34 AM
Why not making a thread for this mod in 3.6 forums? I was disabling it for 2 months now thinking no 3.6 version is released!

ProjectCamaro
11-05-2006, 02:56 AM
I just wanted to say thank you. This is the rules hack I've been looking for. I did the other rules hack but then saw yours and uninstalled it and put yours in because your's looks 100x better. Good job! :D

Black Widow
01-21-2007, 05:07 PM
Great hack.

Thanks a lot...

Snake
01-23-2007, 09:20 AM
Any new updates for this?

dcpaq2xx
02-03-2007, 03:41 AM
Im having a little trouble with the vb rules showing up under certain conditions and wondering if anyone can help with this.

I have vbulletin 3.6.4 along with Vbadvanced links directory program as well as Photo post VB gallery program installed along with VB rules, and when ever i am in the links or the vb gallery and click on the vb Rules link I get a 404 error "page cannot be displayed". But if i click on the vb rules link from any of the other links in the nav bar it works fine.

Does anyone know what might be wrong or which program or file is causing this?

Thanks

Doug

akanevsky
02-03-2007, 01:29 PM
Im having a little trouble with the vb rules showing up under certain conditions and wondering if anyone can help with this.

I have vbulletin 3.6.4 along with Vbadvanced links directory program as well as Photo post VB gallery program installed along with VB rules, and when ever i am in the links or the vb gallery and click on the vb Rules link I get a 404 error "page cannot be displayed". But if i click on the vb rules link from any of the other links in the nav bar it works fine.

Does anyone know what might be wrong or which program or file is causing this?

Thanks

Doug

Please add rules.php to PhotoPost's and Links Directory's navbar replacements. If you are running vBAdvanced, do so with that too.

dcpaq2xx
02-03-2007, 02:18 PM
That did the trick for the VB Advanced Links Directory, but it did not work for Photo Post VB Gallery, and I noticed that rules.php was already in there.

Thank you so much for your help on the links, any idea what would be wrong with the gallery?

Doug

dcpaq2xx
02-03-2007, 02:33 PM
P.S. Something I just noticed...

If I put rules.php in the "Navbar Replacements" for the links directory, it automatically puts it in the "Navbar Replacements" for the gallery as well without me adding it. And if I remove it from the links directorys "Navbar Replacements" it removes it from the gallery's "Navbar Replacements" as well. Strange.

But anyway, I can get the rules page to display through the links directory but not the gallery for some reason.

Doug

dcpaq2xx
02-03-2007, 03:04 PM
I found the problem.

In the nav bar I was using the following code for the Rules page link...

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

I changed it to the following code and it now works.

<td class="vbmenu_control"><a href="http://domainname.com/rules.php" accesskey="5">$vbphrase[vbrules_rules]</a></td>

It seems to be working normal now.

Im still not sure why the rules.php gets placed into the gallery by the links directory though, but hey its working now... :)

Doug

akanevsky
06-16-2007, 09:12 PM
Hack updated - gold version is now free. :)

Snake
06-18-2007, 07:25 PM
Well, since the paid version is now free, does that mean I'll be getting my dough back? :)

akanevsky
06-18-2007, 07:45 PM
Nope, it does not. :)

Snake
06-21-2007, 06:02 PM
Whatever then. :rolleyes:

dcpaq2xx
01-01-2008, 10:55 PM
I think the old version of this hack should also be offered, I actually prefer the older version over the new one and continue to use the old one...

Doug