vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Advanced Rules and User Agreement Hack v2.0.0 (https://vborg.vbsupport.ru/showthread.php?t=138113)

dutchbb 02-10-2007 10:57 PM

Nope.... I'm having database errors everywhere... did all steps including importing the product.

MySQL Error : Table 'forum.ruleshack' doesn't exist
Error Number : 1146

vb 3.6.4
php 5.2.0
MySQL Version 5.0.15-standard

DPSR 02-11-2007 01:15 AM

I'm having exact same error as dutchbb is facing but i get while adding a rule not during installation of the hack .. any sol?

Merriweather 02-11-2007 02:36 AM

I installed this modification and haven't found it to do anything.

I set it to require agreement to a rule when posting for the first time to a particular forum. Made sure it was active, the proper forum and usergroup were set, etc. When to test it and it let me post with no mention of rules at all.

The problem is when you use the conditionals, it says black fields will be ignored. However, if you don't put anything in the "posts are greater than or equal" to or the "posts are less than" fields, they are automatically set to 0. Therefore, it can't work -- no one has both posts greater than AND less than 0. Once I put a large number in the "posts are less than" field it worked, but it should allow that field to be blank.

Merriweather 02-11-2007 02:47 AM

Another issue -- even though I have the rule set to require agreement upon new thread or new post, it only asked the user to agree the first time. Seems if I have it set to require agreement on new post, it should be every new post, correct?

Also, in order for it to have a link in the member profile, the rules must have their own page. However, it should be able to link to a page generated with the rule content as entered, shouldn't it? We shouldn't have to maintain a separate page with the same content for the sake of linking.

Finally, is it possible to make the rules that a user agreed to visible only to select usergroups, such as moderators and administrators and then the person who agreed to them? I don't think everyone needs to see that info.

whitey06 02-11-2007 08:45 AM

Im getting the following error when trying to import the product:

"Fatal error: Cannot use object of type mysqli_result as array in /var/www/mysite.com/forum/admincp/plugin.php(1941) : eval()'d code on line 35"

Any suggestions?

Thanks

Black Widow 02-11-2007 04:26 PM

thanks.
installed...

i have the same problems with the conditions.
Can it be fixed?

BobbyBig 02-11-2007 10:42 PM

Is there any German translation yet ?

regards

whodah 03-19-2007 04:29 AM

First off - thanks for the add-on Mr_Snob! :D

It appears that Rule #14 gets priority over the group tests (I.e. 1-5).

For instance, I have a rule enabled for "OR from File URL" with the Forum drop down box set to "Destination Forum" and all options beneath it enabled except "URL Exact Match" which is set to "No". (Incidently, I have the URL set to http://www.mydomain.com/showthread.php)

My only "User & Usergroup Options" selections are in the "Primary Usergroup" choices.

Rule #14 then gets a:
Code:

                $flag      = 1;
                $condflag = 1;

in the template 'parse_templates' no matter if the user is in one of the above selected groups or not.

This would explain some of the issues people were having in version 1.5 of the rules being applied to all usergroups instead of just the ones selected.

I did a kludge to get by... (Basically did another check against the Anonymous usergroup.) But at first glance, a more proper fix may be to combine rule #14 w/ rule 1-5?

Or another approach might be to store $flag as an array of violations rather than a boolean. If one did that, you'd have two benefits:
  1. You could compare the output of Rules 1-5 in subsequent Rule checks (Like pesky Rule #14!)
  2. You could enable a 'debug' option which would spit out exactly which rule was violated. I.e. "Rules violated: 1,5,7" letting admins know a bit more while debugging their rules.
HTH! :D

-Who Dah?

pipin 03-23-2007 08:56 AM

Quote:

Originally Posted by stwilson (Post 1179307)
Does anyone have this working with 3.6.4 running on MySQL 5.0.16? I cannot get it to work.

problem is the use of the fieldname repeat, which is a reserved word in mysql 5

https://vborg.vbsupport.ru/showpost....&postcount=216

dbirosel 03-30-2007 07:35 PM

It works great for me and i'm using 3.6.5. Got a problem though, i want to set a category because all the forums under the category i want to have that one rule i set.

Basically, i have a classified section broken down to seperate forums. I want that one set rule i created to be applied to the sections. What do i do? Thanks.


All times are GMT. The time now is 08:42 PM.

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.01182 seconds
  • Memory Usage 1,740KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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