Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
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
Version: 1.02, by Bolas Bolas is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 04-11-2005 Last Update: 04-16-2005 Installs: 20
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-14-2005, 09:45 PM
kauka kauka is offline
 
Join Date: Nov 2002
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Question where do I make the setups for this mod as it doesn't seem to be working after I installed it
Reply With Quote
  #13  
Old 04-14-2005, 10:14 PM
Bolas's Avatar
Bolas Bolas is offline
 
Join Date: Jan 2003
Location: Venice
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 04-15-2005, 06:48 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 04-15-2005, 09:34 AM
Bolas's Avatar
Bolas Bolas is offline
 
Join Date: Jan 2003
Location: Venice
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #16  
Old 04-16-2005, 10:14 AM
fleccy fleccy is offline
 
Join Date: Jun 2003
Location: England
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working for guests for me, i press accept and it just refreshes the rules page.
Reply With Quote
  #17  
Old 04-16-2005, 02:31 PM
Bolas's Avatar
Bolas Bolas is offline
 
Join Date: Jan 2003
Location: Venice
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #18  
Old 04-17-2005, 02:37 PM
Bolas's Avatar
Bolas Bolas is offline
 
Join Date: Jan 2003
Location: Venice
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, RELEASE 1.02:

Now this addon will store agreements on cookie for Unregisterd/Not logged in users
Reply With Quote
  #19  
Old 07-13-2005, 08:23 AM
slim cutty slim cutty is offline
 
Join Date: May 2005
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #20  
Old 07-13-2005, 08:43 AM
slim cutty slim cutty is offline
 
Join Date: May 2005
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #21  
Old 07-31-2005, 06:02 AM
coRtALoS's Avatar
coRtALoS coRtALoS is offline
 
Join Date: Apr 2003
Location: Northeastern U.S.
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10554 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete