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 - Cyb - Advanced Forum Rules (https://vborg.vbsupport.ru/showthread.php?t=122998)

Valter 08-03-2006 10:00 PM

Cyb - Advanced Forum Rules
 
FEATURE UPDATES WILL BE RELEASED HERE:
https://vborg.vbsupport.ru/showthread.php?t=177559



==========


Info:
Advanced Forum Rules system for vBulletin.

Main Features:
-Rules shown on separate page (no file uploads required)
-BB codes enabled
-Options to force users to accept Forum Rules before can view forums, post, send PMs,...

See screenshots.


Installation:
1. Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]
2. OPTIONAL (for some customized styles)
Open template "navbar" and add "$cyb_frules_link" after "vbphrase[faq]</a></td>".
3. OPTIONAL (to add 'reset acceptance status' to different place than default one)
Open template "MEMBERINFO" and add "$cyb_frules_force" wherever you wish.


To set options:
Go to: AdminCP > vBulletin Options > Cyb - Advanced Forum Rules


NOTE: You can check which users are (not) accepted Forum Rules by running db queries:
(Run queries through: AdminCP > Execute SQL Query)
List users who had accepted Rules:
SELECT * FROM `user` WHERE cfrules_read_status > 0;
List users who hadn't accepted Rules:
SELECT * FROM `user` WHERE cfrules_read_status = 0;


Versions:
v1.0 - Oct 06. 2005.
-First version
v1.5 - Apr 22. 2006.
-Navbar link is added automatically now (one installation step less)
-Navbar "Forum Rules" link can be disabled in hack settings
-"Manage Rules" link is on settings page now (no need for .xml menu file anymore - one file less to upload when installing)
-"Unknown Location" fixed
-Added function to enable/disable whole hack (predefined error message is displayed instead)
-Templates now goes to "Cybernetec" group in Style Manager
To upgrade from 1.0 to 1.5:
-Import product XML through AdminCP > Plugin System > Manage Products > [Add/Import Product] (Be sure "overwrite" is checked). Upload cfrules.php and cfrulesadmin.php (replace old files). Delete file \includes\xml\cpnav_cfrulesadmin.xml.
v1.6 - Aug 04. 2006.
-Release of this hack for vB v3.6
v1.7 - Aug 05. 2006.
-Uncached template bug fixed
v2.0 - Aug 07. 2006.
-Completely changed way this hack works. No more queries, no more file uploads. Now Rules can be exported because it's part of vB settings. Now you can use BB Codes, which means you can use all standard text formatting functions, smilies, etc. To upgrade: Uninstall old version > Import XML as product > Delete "cfrules.php" from your forums root > Delete "cfrulesadmin.php" from "admincp" folder of your forums
v2.1 - Aug 07. 2006.
-Fixed "Edit Forum Rules" link (didn't worked for some users)
v2.2 - Aug 25. 2006.
-If your forum's index.php file was renamed, for any reason, now you can enter new filename in ACP hack options to have this hack working properly
-Added "Product Version Checking" - https://vborg.vbsupport.ru/showthread.php?t=124679
v2.3 - Aug 26. 2006.
-New: User must accept Rules to be able to post on Forums (option can be disabled/enabled)
-Look improved (see screenshots)
-Codes improved
-Hack name changed to "Cyb - Advanced Forum Rules"
v2.4 - Aug 27. 2006.
-Fixed small javascript bug
-Removed redirection to forum index after Rules acceptance
-Note 1/2 lines replaced by boxes in hack settings
-Removed navbar link HTML Markup options
-Separate phrase created for navbar link
v2.5 - Aug 31. 2006.
-Added ability to reset read status for all users. After this they will need to accept the Forum Rules again
-Added note at the top of Forum Rules when user need to accept it to be able to post on forums
-Added explanation on how to check which users had (not) accepted Rules
v2.6 - Aug 31. 2006.
-Fixed bug (index file location/name setting doesn't work)
-Fixed bug (if user who haven't accepted Rules try to post via quick reply in IE he gets undefined error)
-Fixed bug (resetting the accepts doesn't work if index file was renamed)
-Added: Guests now also need to accept Forum Rules to be able to post (cookie-based)
-Added: redirection message for user who try to post but haven't accepted Rules
v2.6.1 - Aug 31. 2006.
-Fixed bug (if user has no permissions to post he will get standard "no permission" message, not redirection to Forum Rules)
v2.7 - Sep 11. 2006.
-After acceptance users are redirected to the page they were previously viewing
-No more need to set filename for "index.php" if it was renamed. Now misc.php is used, which nobody has need to rename.
NOTE: Don't forget to update the links to the Rules you were posted on your site - change it to YOURFORUMS/misc.php?do=cfrules
-Added confirmation dialog for resetting acceptance status for all registered users
v2.8 - Sep 14. 2006.
-Added option to exclude usergroups from accepting Rules
-Navbar link title moved from phrases to settings for easier translation/make-up
v2.9 - Sep 24. 2006.
-Added option to reset acceptance status for individual member
v3.0 - Oct 30. 2006.
-Whole code is now valid XHTML 1.0 Transitional
v3.1 - Nov 13. 2006.
-Option to force user to accept rules again in member profile can be turned off
-Added variable for above function that you can place it to another place in MEMBERINFO template ($cyb_frules_force)
-Bug fixed (if some user knows exact link for resetting acceptance status he can do it)
-Several other improvements/fixes
v3.2 - Mar 06. 2007.
-New: User must accept Rules before can send PMs
-New: Options to choose what user can't do before accepting Rules
-New: Option to replace Registration Rules with this hack's one
-New: Better counter (with miliseconds, improved browser compatibility)
-Fixed some "invisible" bugs in code and improved compatibility with the latest vB releases
v3.3 - Apr 21. 2007.
-New: Option to force user to accept Rules before can view forums
-Fixed bug where three queries are executed on places where not needed
-Fixed bug where blank rows are shown twice on registration rules page
-New in registration rules options (disable completely)
-Better redirection after Rules acceptance
-Some other optimizations in codes...
v3.4 - Apr 22. 2007.
-Fixed bug where PMs can not be sent even Rules are accepted
-Fixed bug where Quick Reply does not work even Rules are accepted
-Improved counter and added ability to completely disable it (tested and worked on IE, Firefox, and Opera)
-Improved compatibility with right-to-left styles (note: in Rules use [right] tags anyway)
-Fixed navbar link
v3.5 - Jul 22. 2007.
-Fixed bug (MySQL injection vulnerability - attacker can trick admin to reset rules acceptance status for all members)
-Group membership checking works now for supplementary usergroups too
-Several code improvements
v3.5.1 - Jul 22. 2007.
-Fixed bug (XSS Vulnerability)
v3.5.2 - Jul 23. 2007.
-Another security exploit fixed
v3.5.3 - Jul 25. 2007.
-Fixed bug where user is not properly redirected after accepting rules
v3.5.4 - Jul 25. 2007.
-Bug fixed where username info is not shown when going to reset acceptance status
v3.6 - Oct 14. 2007.
-Fixed bug where some mods are not able to reset acceptance status
-Improved javascript code to fix problems with the counter some users reported
-Minor bug fixes


If you like this hack please click INSTALL.


Rules page demo: http://www.bihforum.com/misc.php?do=cfrules

sam anders 08-04-2006 01:08 PM

installed nice hack thanks :)

DJ XtAzY 08-04-2006 03:54 PM

can supermods able to add rules and stuff?

Valter 08-05-2006 10:31 AM

v1.7 - Aug 05. 2006.
- Uncached template bug fix

Snake 08-05-2006 04:37 PM

I love it! :D

Valter 08-07-2006 10:26 AM

v2.0 - Aug 07. 2006.
- Completely changed way this hack works. No more queries, no more file uploads. Now Rules can be exported because it's part of vB settings. Now you can use BB Codes, which means you can use all standard text formatting functions, smilies, etc.
- More options (see screenshots)

To upgrade:
- Uninstall old version
- Import XML as product
- Delete "cfrules.php" from your forums root
- Delete "cfrulesadmin.php" from "admincp" folder of your forums

Lost_Prophet 08-07-2006 11:41 AM

This does not work with this modification:
https://vborg.vbsupport.ru/showthread.php?t=118551

It tries to put the "Forum Rules" link inside the User CP dropdown menu.
I've looked but I can't see any way to change this behaviour.

Valter 08-07-2006 11:43 AM

You tried to put:
"http://www.yoursite.com/index.php?do=cfrules"
or just:
"index.php?do=cfrules"
?

Try to play with this.

Lost_Prophet 08-07-2006 11:49 AM

Um, neither ?

I haven't put anything into the navbar template - I just installed the Product as per the instructions.
I could put that link in to get the link on the navbar, but that would still give me the problem of having a link to it stuck inside the User CP dropdown menu.

DJ XtAzY 08-07-2006 12:08 PM

Request:

Can supermods have the power to add/change rules as well?

Valter 08-07-2006 12:13 PM

Lost_Prophet,
I'm not sure I understand you fully. Send me a temp Admin account login info via PMs so I can check it, if you wish.

XtAzY,
vB Options are not part of ModCP so there is no way that SM can add/change the rules.

aLReeMi 08-07-2006 01:04 PM

great..

thanks

Oap JTRipper 08-07-2006 03:07 PM

had a problem with edit rules from the rules page in that it didnt go anywhere

Code:

/admincp/options.php?do=options&dogroup=CFRules"
added

Code:

$vboptions[bburl]
in front of that in the template & works fine

Valter 08-07-2006 06:57 PM

v2.1 - Aug 07. 2006.
- Fixed "Edit Forum Rules" link (didn't worked for some users)

iran.gs 08-07-2006 09:40 PM

Installed perfect saves space in the forum ty

Freesteyelz 08-08-2006 08:13 AM

Hey, Cybernetec. Thank you for the hack. You already know that I clicked Install. :)

*I think the formats (in Admin CP and how it displayed in cfrules.php) layed out better in version 1.7 than with 2.1. In 1.7 you could rearrange the # by editing fields (not lists) and you could define the consequences/punishments for each rule. I do, however, like the benefits of version 2.1. Is it possible to add the 1.7 look but have the improvements of 2.1? :)

**I appreciate the adjustments you've made; it's just a preferential matter. :)

phonexpo 08-13-2006 10:45 AM

Thanks you for the hack, but I can't seem to get it to work for me. When I Click on forum rules it opens http://phonexpo.ie/index.php?do=cfrules which opens my main forum page. Any ideas what I have done wrong?

Thanks again,

Patrick :)

phonexpo 08-14-2006 02:44 PM

Can someone offer any advice please?

Valter 08-14-2006 04:31 PM

Create temp admin account for me and I'll check it.

phonexpo 08-14-2006 07:33 PM

Quote:

Originally Posted by Cybernetec
Create temp admin account for me and I'll check it.

Thanks Cybernetec, pm on the way.

mustang02 08-14-2006 07:54 PM

Thanks. Installed.

phonexpo 08-14-2006 11:00 PM

Quote:

Originally Posted by Cybernetec
Create temp admin account for me and I'll check it.

Update.

I have it working now but I only got it to work by mistake. I have vBAdvanced installed on my forum, I have it set as my main index.php file/address and I usually have my main vB index.php changed to forums.php so I changed my forum.php to index.php and the forum rules link works, but how do I get it to work the other way?

Hope this helps...

phonexpo 08-15-2006 08:07 AM

Hi I see you are on my forum at the moment, I should of told you this too, my normal forum address is www.phonexpo.ie/indexoff.php I'm having some issues with it that's why I have it named that. The Forum Rules doesn't work there normally.

Edit*

Oh it does now :surprised: Did you fix it already?

jw00dy 08-16-2006 08:56 AM

GREAT hack! I love it. Thanks.

*installed*

bada_bing 08-16-2006 06:15 PM

Installed on my vb 3.5.3 forum and works great. Wish there was a preview feature though. ;)

sudn3sc3d 08-16-2006 06:51 PM

installed awsome dude :D

paul_c 08-16-2006 11:23 PM

For my site, the forum rules are the same as what people see when they first register. That is, the information found in the "forum_rules_description" phrase. Is there anyway this product can be adjusted to use that phrase as the forum rules?

computer1 08-17-2006 01:24 PM

I have install this nowe and its work greate :)
but I can se forum rules twice on my nav bar howe can I change that to one link in the navbar ????
my version off the forum is 3.6.0

optrex 08-23-2006 07:31 AM

Hi Cyb,

Just installed this hack, but the "edit forum rules" link goes off to admincp/options.php?

Edit: Dont worry I changed it manually in the xml file

Valter 08-24-2006 11:30 PM

v2.2 - Aug 25. 2006.
- If your forum's index.php file was renamed, for any reason, now you can enter new filename in ACP hack options to have this hack working properly
- Added "Product Version Checking" - https://vborg.vbsupport.ru/showthread.php?t=124679

Smoothie 08-25-2006 01:50 AM

Strange, I've checked all the sites that said they installed it but I don't see the link anywhere. Anyone have a link on a live site to check out?

Valter 08-26-2006 07:55 AM

It's because link is hidden for guests.

noel_leon 08-26-2006 10:48 AM

Thanks for this mod too, Cybernetec. Awesome work as always.
I really didnt need forum rules on my site so I changed this to display our guild rules (World of warcrack).
Smoothie, you can take a look at what it will look like here .
Keep in mind that I only changed "Forum rules" text to "Rules" :)

Smoothie 08-26-2006 01:51 PM

Quote:

Originally Posted by Cybernetec
It's because link is hidden for guests.

Now, why would it be hidden for guests? Is it possible to show it to guests? Seems to me you'd want people to know the rules before they sign up.

Smoothie 08-26-2006 01:52 PM

Quote:

Originally Posted by noel_leon
Thanks for this mod too, Cybernetec. Awesome work as always.
I really didnt need forum rules on my site so I changed this to display our guild rules (World of warcrack).
Smoothie, you can take a look at what it will look like here .
Keep in mind that I only changed "Forum rules" text to "Rules" :)

noel_leon,

Thanks!

Valter 08-26-2006 07:31 PM

v2.3 - Aug 26. 2006.
-New: User must accept Rules to be able to post on Forums (option can be disabled/enabled)
-Look improved (see screenshots)
-Codes improved
-Hack name changed to "Cyb - Advanced Forum Rules"

Ghanem 08-26-2006 07:42 PM

Very nice upgrade, I really neaded the acceptance option..

- How to upgrade please.. or do we have to remove and reinstall..
- I have replaced the registration rules with a link to your hack, how it will look like for guests and members if they click the link, I mean the acceptance box and waiting time...
- Is it stored once its accepted, or the user have to accept it every time before he post..

Sorry if I am asking alot :)

Thanking you in advanced..

Regards

Valter 08-26-2006 07:47 PM

Just import XML as product (allow overwrite). ;)

Ghanem 08-26-2006 07:54 PM

Quote:

Originally Posted by Cybernetec
Just import XML as product (allow overwrite). ;)

great:banana:
I have edited my post and added two more questions..

noel_leon 08-26-2006 08:05 PM

Hmm, did bbcode break? Most of my bold options have stopped working.


All times are GMT. The time now is 06:19 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.01767 seconds
  • Memory Usage 1,832KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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