Log in

View Full Version : Submit agreement form before can view a specific forum


PSS
10-22-2008, 03:39 PM
Searched but could not find a mod:

- user enters forum or subforum
- cookie X checked
- If cookie X found: show posts.
- if cookie X not found: show user an agreement form.
- only when user clicks "accept" form is sent, cookie created and user let in to that forum.
- when user accepts the form, user database is updated (a new freely named colum) with tinyint 1.

Best is this would be done with many (single) forums each with custom form and custom "receipt" cookie and column name.

Anyone? Thanks in advance.

djxcee
10-22-2008, 05:45 PM
I would love to see something like this as well.

PSS
10-23-2008, 04:33 PM
- when user accepts the form, user database is updated (a new freely named colum) with tinyint 1.

Of course that is better to do with varchar(255), a comma-delimited string of allowed forums. That requires one more SELECT when reading a forum index, but keeps it in one column.

I could code this as hack but I have zero experience with Vbulletin code - It could be done with just one code block in forumdisplay.php, but at which point would it go? Does not seem to have good hooks for it. I'd only need forum id and user id available as variables, just before forum contents is read, to make it work.