Status
Not open for further replies.

ProtoWorker

Active Member
1,180
2010
44
10
Hey people,
I have some questions...

Say I'm using vBulletin and just wanted to add a new feature..
Well, I just want my Premium Members and staff to view the whole forum home.. I know I can make use of if conditions wrapped around the threadbits.

But, what I need is my other members ( non staff, non vips ) to see a donation remainder that has a I AGREE (Usually, check it and click continue ).
How to make the remainder so that it comes up only first visit ?
Can you please help me out ?

And also, The CONTINUE button, how can I disable it for a certain period of time ? I mean, I want the user to read the page for 30 seconds, after 30 seconds the Continue buttons can be clicked :)

Thanks,
ProtoWorker.
 
6 comments
But, what I need is my other members ( non staff, non vips ) to see a donation remainder that has a I AGREE (Usually, check it and click continue ).
To do this just make a query to your DB (or some other way) asking what's current user's group, and if it's not in staff or VIPs group then show him that message.
Also if you implement option from your second question, don't forget to check also if user saw message.

How to make the remainder so that it comes up only first visit ?
To do this add a new column in users table where you will store if user saw message or not.

And also, The CONTINUE button, how can I disable it for a certain period of time ? I mean, I want the user to read the page for 30 seconds, after 30 seconds the Continue buttons can be clicked :)
Make that button as default to be disabled (HTML), and add JS code that will wait for 30 sec, and after that to enable that button.
 
You can use this sql command:

Code:
alter table user add column first_time_msg_read int (1) DEFAULT '0' NULL;

Always backup any table you are about to alter first.

AS far as the button goes you can use :

OnClick="setTimeout('document.forms[\'FormName\'].submit();',30000) "

javascript to make it submit form after 30 seconds.
 
Status
Not open for further replies.
Back
Top