vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Require Users to Sign a Contract Before Posting in an Individual Forum (https://vborg.vbsupport.ru/showthread.php?t=91867)

chariotdriver 07-26-2005 08:24 PM

I''ve had this Hack installed, and it is showing up in the "Posting Options" in the Forum Manager,.. but when I select "Require users to sign a contract before being allowed to post?" and then Save, and then go directly back in to check it out, it is set to off.
I cannot make it stick,..Anyone know what is happening?
thanks
Phil

amykhar 07-26-2005 08:32 PM

Make sure you made every file change and ran the queries.

amykhar 07-26-2005 09:02 PM

I will be updating this soon for RC1. Under RC1, as of right now, only one file edit is required. I'm trying to figure out a way to make that file edit not necessary either.

Andreas 07-26-2005 09:10 PM

Quote:

Originally Posted by amykhar
I'm trying to figure out a way to make that file edit not necessary either.

Hookname: showthread_post_start
PHP Code:

$contractsigned 1;
// Check to see if a contract is required.
if ($foruminfo['reqcontract'])
{
    
// Check to see if the user has signed the contract.

    
$contracts 0;
    
$contracts explode(",",$vbulletin->userinfo['contracts']);
    if (
$contracts)
    {
        
$contractsigned in_array($foruminfo['forumid'],$contracts);
    }
    else
    {
        
$contractsigned false;
    }
    if (
$show['quickreply'] AND !$contractsigned)
    {
        
$show['quickreply'] = false;
        
$show['wysiwyg'] = 0;
        
$quickreply ''
    }


Should work :)

amykhar 07-27-2005 12:30 AM

Yep. That's the last one I was playing with. :)

Amy

Chris M 07-27-2005 12:33 AM

How did you get it to update class_dm_forum.php? :)

I can't for the life of me figure out how...

Satan

amykhar 07-27-2005 12:39 AM

It's easy. forumdata_start
Code:

$this->validfields['mystrfield'] = array(TYPE_STR, REQ_NO);
$this->validfields['reqcontract'] = array(TYPE_UINT, REQ_NO);


Chris M 07-27-2005 12:42 AM

Quote:

Originally Posted by amykhar
It's easy. forumdata_start
Code:

$this->validfields['mystrfield'] = array(TYPE_STR, REQ_NO);
$this->validfields['reqcontract'] = array(TYPE_UINT, REQ_NO);


You are goddessly :p

In my defence, it is 2:40am :p

Satan

amykhar 07-27-2005 12:43 AM

Don't thank me. Kirby taught me :D

Chris M 07-27-2005 12:45 AM

Quote:

Originally Posted by amykhar
Don't thank me. Kirby taught me :D

Well Kirby isn't here, so when I'm thanking you, then I'm also thanking Kirby :D

Satan


All times are GMT. The time now is 05:44 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.01109 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)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