The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
BLS - addon to RULES AND USER AGREEMENT HACK: rules to selected forum Details »» | |||||||||||||||||||||||||||
BLS - addon to RULES AND USER AGREEMENT HACK: rules to selected forum
Developer Last Online: Jul 2013
Original Hack by WWW.UAEWEB.COM (UAE):
https://vborg.vbsupport.ru/showthread.php?t=77666 modification requested by xtreme-mobile at: https://vborg.vbsupport.ru/showpost....3&postcount=22 ################################## What it does? This addon will modify 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. Show Your Support
|
Comments |
#12
|
|||
|
|||
Question where do I make the setups for this mod as it doesn't seem to be working after I installed it
|
#13
|
||||
|
||||
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. |
#14
|
|||
|
|||
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.
|
#15
|
||||
|
||||
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! |
#16
|
|||
|
|||
not working for guests for me, i press accept and it just refreshes the rules page.
|
#17
|
||||
|
||||
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! Wait for next version! |
#18
|
||||
|
||||
Ok, RELEASE 1.02:
Now this addon will store agreements on cookie for Unregisterd/Not logged in users |
#19
|
|||
|
|||
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 |
#20
|
|||
|
|||
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
Code:
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); -------------------------------------------------+ Works fine now |
#21
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|