Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Casual Pligger sonaro's Avatar
    Joined
    Feb 2007
    Posts
    93
    Thanks
    Received:0
    Given: 0

    Time Limit in Between Posts

    I have some users that post every single one of their blog articles. I'm not sure if this is a good or bad thing yet in the long run, but when a site isn't too busy, the unpublished section is littered with posts from just 1 blog and the same user.

    Perhaps a max amount of posts per user in a certain amount of time or 24 hour period.

  2. #2
    New Pligger sorakid's Avatar
    Joined
    Jan 2008
    Posts
    6
    Thanks
    Received:0
    Given: 0

    Smile yes I have the same problem

    how to set time for a IP to post.because he post too fast!
    just like reddit.com: what's new online do

  3. #3
    Casual Pligger ashishhbti's Avatar
    Joined
    Jul 2007
    Posts
    43
    Thanks
    Received:0
    Given: 0
    In submit.php..

    Insert this code after
    check_actions('submit_post_authentication');

    $post_time_chk=$db->get_var("Select UNIX_TIMESTAMP(link_date) as post_time from " .table_links." where link_author='".$current_user->user_id."');
    if(now()-$post_time_chk>3600){
    $main_smarty->assign('post_time_chk','true');
    } else {
    $main_smarty->assign('post_time_chk','false');
    }

    submit_step1.tpl in starting of the page...

    {if $post_time_chk eq 'true'}

    // Place entire code of submit_step_1.tpl
    {else}
    You can not post the story so quick .
    {/if}

    ----------------------
    Hope this helps ...

  4. #4
    Casual Pligger ashishhbti's Avatar
    Joined
    Jul 2007
    Posts
    43
    Thanks
    Received:0
    Given: 0
    for IP ckeck you have to store the submitter IP ..
    for storing IP you can use extra fields ...

    after storing IP Check the IP address as we have checked time ..

    ---------
    If you still have any prob let me know ...

  5. #5
    New Pligger sorakid's Avatar
    Joined
    Jan 2008
    Posts
    6
    Thanks
    Received:0
    Given: 0
    Quote Originally Posted by ashishhbti View Post
    for IP ckeck you have to store the submitter IP ..
    for storing IP you can use extra fields ...

    after storing IP Check the IP address as we have checked time ..

    ---------
    If you still have any prob let me know ...
    my submit.php code is:
    // module system hook
    $vars = '';
    check_actions('submit_post_authentication', $vars);

    as you said ,after this?

    I tried that but return error...

  6. #6
    Casual Pligger ashishhbti's Avatar
    Joined
    Jul 2007
    Posts
    43
    Thanks
    Received:0
    Given: 0
    use this .

    $post_time_chk=$db->get_var("Select UNIX_TIMESTAMP(link_date) as post_time from " .table_links." where link_author='".$current_user->user_id."' Order by link_id DESC");
    if(time()-$post_time_chk>3600){
    $main_smarty->assign('post_time_chk','true');
    } else {
    $main_smarty->assign('post_time_chk','false');
    }

  7. #7
    Casual Pligger ashishhbti's Avatar
    Joined
    Jul 2007
    Posts
    43
    Thanks
    Received:0
    Given: 0
    Previously I have just write the code here ....
    now i have tested also .
    working fine ..

  8. #8
    New Pligger sorakid's Avatar
    Joined
    Jan 2008
    Posts
    6
    Thanks
    Received:0
    Given: 0
    Quote Originally Posted by ashishhbti View Post
    Previously I have just write the code here ....
    now i have tested also .
    working fine ..
    yes! It works.:applaud:

    but still can not prevent fast submit...:not me:

  9. #9
    Casual Pligger ashishhbti's Avatar
    Joined
    Jul 2007
    Posts
    43
    Thanks
    Received:0
    Given: 0
    now whats the issue ???
    have you done changes in submit_stepl_1.tpl

  10. #10
    Member alexxa's Avatar
    Joined
    Feb 2008
    Posts
    70
    Thanks
    Received:1
    Given: 1
    This is an old post but still actual code. Has anyone an idea how to exclude discarded story from $post_time_chk. Thanks

Page 1 of 2 12 LastLast

Similar Threads

  1. how to set a time limit between the posts?
    By kevin4uguys in forum Questions & Comments
    Replies: 2
    Last Post: 09-24-2010, 03:01 PM
  2. Time limit on comments
    By gjrb29 in forum Questions & Comments
    Replies: 1
    Last Post: 05-22-2009, 05:07 PM
  3. Is there anyway to time limit a posting?
    By gjrb29 in forum Questions & Comments
    Replies: 1
    Last Post: 03-04-2009, 06:39 PM
  4. Limit posts on RSS
    By yuval613 in forum Questions & Comments
    Replies: 2
    Last Post: 06-16-2008, 08:41 AM
  5. Request: Add time limit to promote
    By Aviran in forum Questions & Comments
    Replies: 4
    Last Post: 02-01-2006, 09:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg