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)

shoot1st 03-22-2006 07:22 AM

Nice work!
The hack works well other than "to_proceed_must_agree and read_agree_abide_by_rules" phrase isn't listed at all. I added the phrase manually and it still doesn't show up next to the checkbox.

Any thoughts here? I am a bit of a VB noob, so the answer is not so obvious to me.

Thanks in advance to any who might point me in the right direction.

stutefc 03-22-2006 09:23 AM

I aint sure either how to change the 2 phrases to Global

shoot1st 03-22-2006 05:41 PM

OK, found the right phrases but.........
"To do this, you must be in DEBUG mode." <--How do I do this? I am not sure if my host has PHP debug on or installed.

Thanks

amykhar 03-22-2006 05:44 PM

There is a sticky thread in the how-to and tutorials forum about debug mode.

shoot1st 03-22-2006 11:08 PM

Thanks, will have a look. Looked around before I asked in here but couldn't seem to find a thread on the topic. Thank again:cool:

coRtALoS 09-10-2006 07:19 PM

I installed everything correctly I believe, however, I changed the hook location from posts to forum view (Due to the quick reply error). I don't see any sign of a ticket system. Everything else works correctly though.

whodah 10-25-2006 05:18 PM

hi!

we use the same contract text on all of our forums.

so we wanted it so that if they agree to the contract once, they can post on any forum requiring a contract. this is a simple one line fix in two hooks.

modify hook: newreply_start and newthread_start
near the bottom, replace:
Code:

if (!$contractsigned) {
with:
Code:

  if (is_null($vbulletin->userinfo['contracts']) or $vbulletin->userinfo['contracts']=="") {
basically, once they agree to any contract, that userinfo['contracts'] field is populated (with that forum number). so - this simply checks to see if userinfo['contracts'] is populated w/ *anything*. if so, the site-wide contract has been fullfilled.

you still have to enable the contract on each and every forum though...

you could make this a bit more effecient yet, but here's a KISS method that doesn't cause too much overhead by ommitting unnecessary code when not checking for specific forum contract acceptances.

hope someone finds this usefull! :D

whodah 10-25-2006 05:41 PM

secondly, they wanted the same contracttext to show up for all forums. i.e. they did not want to copy/paste the contract text into each and every one of their 20 forums and then have to do it again upon a text change.

we did this by another 1-line edit and 1 phrase creation.

create a phrase: master_contract_text
put into it whatever rules you want or whatever verbage you want displayed.

edit template: forum_contract

replace:
Code:

$rules
with:
Code:

$vbphrase[master_contract_text]
now no matter what each forum's individual contract rules are set to, it will display the text in master_contract_text.

it should be noted that you could skip the phrase setup and just replace $rules w/ the verbage you want as well. but you won't have to hunt around for the text in the template each time you want to make a text change if you do it via creating a phrase.

lastly, thank you Amy for a nifty plugin! :D :D :D

Greek Wizard 11-01-2006 12:10 PM

Does anyone know if there is something similar to this for 3.6?

[edit]Never mind found this one that seems to be working:

https://vborg.vbsupport.ru/showthread.php?t=97699[/edit]

Eagle Creek 02-11-2007 06:28 PM

Pleeeeeeeeeeeease tell me this hack is 3.6.x compatible? Please..


All times are GMT. The time now is 04:58 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.01175 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
  • (4)bbcode_code_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