vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   BLS - addon to RULES AND USER AGREEMENT HACK: rules to selected forum (https://vborg.vbsupport.ru/showthread.php?t=79798)

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

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);
-------------------------------------------------+

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.


All times are GMT. The time now is 11:52 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.01142 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_code_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
  • (10)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