Activity Stream
48,167 MEMBERS
6919 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7
  1.     
    #1
    Member

    Default [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


  2.   Sponsored Links

  3.     
    #2
    Member
    Quote Originally Posted by ProtoWorker View Post
    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.

    Quote Originally Posted by ProtoWorker View Post
    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.

    Quote Originally Posted by ProtoWorker View Post
    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.

  4.     
    #3
    Member
    I'm a newbie, con you please give detailed steps ?
    Thanks anyways, I can use google


  5.     
    #4
    Member
    Tell me what part you don't understand, and I will try to explain you.

  6.     
    #5
    Member
    To do this add a new column in users table where you will store if user saw message or not.
    This part dude


  7.     
    #6
    Respected Member
    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.

  8.     
    #7
    Member
    Quote Originally Posted by ProtoWorker View Post
    This part dude
    Lockdown replayed you before me.

    @Lockdown:
    Don't use int, instead use tinyint(1) as unsigned, it's better for performance

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Partner for making a stream / money making site.
    By S?nic in forum Community Cooperative
    Replies: 21
    Last Post: 6th Jan 2012, 10:39 PM
  2. Delete cookies?
    By jokerhacker in forum General Discussion
    Replies: 0
    Last Post: 22nd Aug 2011, 08:43 PM
  3. Question making my blog - on blogger
    By polse01 in forum Webmaster Discussion
    Replies: 14
    Last Post: 10th May 2011, 11:52 AM
  4. An Introduction to Cookies
    By Europe in forum Tutorials and Guides
    Replies: 5
    Last Post: 20th Mar 2011, 04:49 PM
  5. Who loves cookies?
    By TLK in forum Polling Plaza
    Replies: 23
    Last Post: 12th Mar 2011, 12:27 PM

Tags for this Thread

BE SOCIAL