View Full Version : BLS - addon to RULES AND USER AGREEMENT HACK: rules to selected forum
Bolas
04-11-2005, 10:00 PM
Original Hack by WWW.UAEWEB.COM (http://WWW.UAEWEB.COM) (UAE):
https://vborg.vbsupport.ru/showthread.php?t=77666
modification requested by xtreme-mobile at:
https://vborg.vbsupport.ru/showpost.php?p=638193&postcount=22
##################################
What it does?
This addon will modify WWW.UAEWEB.COM (http://WWW.UAEWEB.COM) RULES AND USER AGREEMENT HACK so rules will be applied to selected forum (showpost.php, newthread.php, forumdisplay.php, showthread.php, newreply.php) and not only to new threads.
##################################
##################################
Update
v.1.02
- Now agreements for Unregistered/Not Logged In users are
stored in cookie.
##################################
Please, backup your files before installing it.
Feel free to click install with the nose. https://vborg.vbsupport.ru/
red_baron2000
04-12-2005, 03:41 AM
thanks for the mod ..cheers :)
xtreme-mobile
04-12-2005, 07:37 AM
thanks for that mate will install now :)
thanks again
DanJKroll
04-13-2005, 08:44 PM
Is there a way to tweak the hack to include ALL FORUMS in the listing of forums? I Have child forums set up and picking the "parent" forum doesn't make the posters have to agree to the guidelines -- unless they visit the parent forum/category. As it is set up now, I have to make separate rules for each child forum in the category.
Other than this problem, it works great and is a great add.
akanevsky
04-13-2005, 09:10 PM
Screenshot, please?
Bolas
04-13-2005, 09:29 PM
@DanJKroll: I'm releasing your request. Just 5 mins ;)
edit -> go there https://vborg.vbsupport.ru/showthread.php?t=79892 (BLS - addon to RULES AND USER AGREEMENT HACK: rules to child forum)
@Dark Visor: no screenshot needs for this. This is only an addon that will modify something in the original hack logic.
If you want to view screenshot of this hack go to the original hack thread: https://vborg.vbsupport.ru/showthread.php?t=77666
Bye!
akanevsky
04-13-2005, 09:38 PM
Well, I do not really understand what does this add-on change...
Bolas
04-13-2005, 09:42 PM
original hack applies rules only during the creation of a new thread (newthread.php)
So people can browse the forum, show thread or.. read post BEFORE checking agree on the rule (forumdisplay.php, showthread.php, showpost.php, etc..)
This addon force user to read rules BEFORE he can enter in a forum.
akanevsky
04-13-2005, 10:09 PM
Oh! That's really cool :). Thanx for the addon.
* akanevsky clicks install
P.S. I do not really think there should be an agreement when making a thread or whatever. It should have originally been working with forum entrance :)
Bolas
04-13-2005, 10:15 PM
2 different points of view.
1) people can read content without restrictions, but if they want to partecipate they must agree to rules.
A rules should be like: "..and you wont post anything illegal here.."
2) people must agree rules before joining a forum and reading content
A rules should be like: "..you agree that you are 18+.."
kauka
04-14-2005, 09:45 PM
Question where do I make the setups for this mod as it doesn't seem to be working after I installed it
Bolas
04-14-2005, 10:14 PM
Maybe you are testing it on old agreed ruled forum.
Try creating a new (and temp, of course) "lol" rules on a selected forum.
Select ALL USERGROUP (just to test it) and save it.
Try opening that forum..! :)
-----------------
no setup needed.
When this addon is installed, the UAE hack will be applied also on forumdisplay.php, showforum.php, showpost.php, etc.. and not only in newthread.php.
Lionel
04-15-2005, 06:48 AM
What's newpost.php? You scared me. I tought I deleted the file by mistake. But when I looked at original vb 3.07, there were no such file.
Bolas
04-15-2005, 09:34 AM
:D I'm happy ther's someone who reads instructions using brain! ;)
________________________
edited:
ok, thank for your alert! ;) I modified the TXT file replacing newpost.php with newreply.php
I was confused that day! :)
fleccy
04-16-2005, 10:14 AM
not working for guests for me, i press accept and it just refreshes the rules page.
Bolas
04-16-2005, 02:31 PM
Of course, original UAE hack can't be applied for guest because the hack needs a profile (a registered user) to save the agreement!
Infact UAE hack was only appliable to newthread.php, and so in standard setup only registered user could create new thread (and so use rules hack).
This addon only put a little modification to the hack: now is possible to extend rules visualization also on the whole forum.
What appened? Now you need to pay attention and use it only with forum available for registered user!
________________
mmh..So you would like to don't save agreement in case of guest user.
Ok, I'll work on it! :D
Wait for next version!
Bolas
04-17-2005, 02:37 PM
Ok, RELEASE 1.02:
Now this addon will store agreements on cookie for Unregisterd/Not logged in users
slim cutty
07-13-2005, 08:23 AM
Warning: Invalid argument supplied for foreach() in /includes/functions_threadrules.php on line 66
as a guest user? can you help me out with this?
It works fine with registered users
thanks
slim cutty
07-13-2005, 08:43 AM
I solved my issue, but I don't know if I messed something up or not... this is what I did going backwards form the addon in the functions_newthreadrules.php file
FIND
-------------------------------------------------+
//Lets check what rule(s) this user should get
-------------------------------------------------+
I REMOVED THIS
-------------------------------------------------+
if(!$bbuserinfo['agreedrule']) {
foreach($_COOKIE[COOKIE_PREFIX . 'rules'] AS $key => $value) {
$bbuserinfo['agreedrule'] .= iif($bbuserinfo['agreedrule'],",","") . $value;
}
}-------------------------------------------------+
FIND
-------------------------------------------------+
exec_header_redirect(
-------------------------------------------------+
I REMOVED THIS
-------------------------------------------------+
vbsetcookie("rules[".$f."]",$rid);
-------------------------------------------------+
I SAVED IT and everything seems to be working fine now... even when I view as a guest. With it I was getting major cookie header started and error warnings on line 66.
Works fine now
coRtALoS
07-31-2005, 06:02 AM
I had the same problem slim. Using your modification fixed whatever glitch it was however. Thanks!
~~EDIT~~
I actually had to uninstall this addon, as my members (when they were first prompted to agree to the rules) were either redirected to newthread.php to create a new topic immediately, or received an "invalid no thread specified" error.
Others had no problem accessing this feature. Very very strange.
Psyclones
11-25-2006, 12:40 PM
Will this hack work on vb 3.6.3?
COBRAws
11-25-2006, 01:16 PM
Will this hack work on vb 3.6.3?
The original 3.5 version is here: https://vborg.vbsupport.ru/showthread.php?t=97699
And the fix for 3.6 is here:
https://vborg.vbsupport.ru/showpost.php?p=1077478&postcount=216
and here:
https://vborg.vbsupport.ru/showpost.php?p=1080593&postcount=219
;)
AND the 3.5 lets you apply rules after viewing a thread, after posting a message, after creating a thread :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.