Results 1 to 3 of 3
  1. #1
    New Pligger tesurrajan's Avatar
    Joined
    Sep 2010
    Posts
    24

    Block Stories with Duplicate Title

    When user submits a story he needs to enter Story Title but if a story with the same title already exists it does not gives an error saying something like "A story with the same title already submitted. Try different title."

    And story is submitted with duplicate title however, the URL for this submission is changed with an addition of number in the end of the URL like 1 or 2.

    How To Block Stories with Duplicate Title?

  2. #2
    DAX
    DAX is offline
    New Pligger DAX's Avatar
    Joined
    Feb 2007
    Posts
    28
    Pligg is not made to do that.
    Pligg is intentionally made to allow duplicate titles. That's why you see the number at the end of the url.

  3. #3
    New Pligger tesurrajan's Avatar
    Joined
    Sep 2010
    Posts
    24

    Exclamation

    I found a function duplicates_title($title) in libs->link.php but I was unable to make it work. I tried to write the code given below in submit.php under "// assign any errors found during submit".

    if(utf8_strlen($linkres->duplicates_title($title) > 0) {
    $main_smarty->assign('submit_error', 'dup_title');
    $error = true;
    }


    Please assist me to write a working code.

Similar Threads

  1. How to avoid Duplicate Title and Description
    By raghhav in forum Questions & Comments
    Replies: 17
    Last Post: 09-07-2011, 01:44 AM
  2. Block stories which are not in English
    By bookmarkshub in forum Questions & Comments
    Replies: 1
    Last Post: 04-24-2011, 06:49 PM
  3. Duplicate story title check
    By web20guy in forum Questions & Comments
    Replies: 3
    Last Post: 07-24-2009, 02:56 PM
  4. Allow duplicate title's and url's
    By slick33 in forum Questions & Comments
    Replies: 7
    Last Post: 10-16-2008, 06:51 PM
  5. duplicate stories = err
    By silent1643 in forum Questions & Comments
    Replies: 6
    Last Post: 08-02-2007, 05:08 AM

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 Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting