Results 1 to 7 of 7
-
20th Jun 2010, 06:50 AM #1OPMember
[Question]Making use of cookies
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.ProtoWorker Reviewed by ProtoWorker on . [Question]Making use of cookies 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 ? Rating: 5
-
20th Jun 2010, 10:55 AM #2Member
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.
To do this add a new column in users table where you will store if user saw message or not.
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.
-
20th Jun 2010, 02:21 PM #3OPMember
I'm a newbie, con you please give detailed steps ?
Thanks anyways, I can use google
-
20th Jun 2010, 03:04 PM #4Member
Tell me what part you don't understand, and I will try to explain you.
-
20th Jun 2010, 07:15 PM #5OPMemberTo do this add a new column in users table where you will store if user saw message or not.
-
20th Jun 2010, 08:23 PM #6Respected Member
You can use this sql command:
Code:alter table user add column first_time_msg_read int (1) DEFAULT '0' NULL;
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.
-
20th Jun 2010, 10:57 PM #7Member
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Partner for making a stream / money making site.
By S?nic in forum Community CooperativeReplies: 21Last Post: 6th Jan 2012, 10:39 PM -
Delete cookies?
By jokerhacker in forum General DiscussionReplies: 0Last Post: 22nd Aug 2011, 08:43 PM -
Question making my blog - on blogger
By polse01 in forum Webmaster DiscussionReplies: 14Last Post: 10th May 2011, 11:52 AM -
An Introduction to Cookies
By Europe in forum Tutorials and GuidesReplies: 5Last Post: 20th Mar 2011, 04:49 PM -
Who loves cookies?
By TLK in forum Polling PlazaReplies: 23Last Post: 12th Mar 2011, 12:27 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...