Block Stories with Duplicate Title
-
New Pligger
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?
-
New Pligger
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.
-
New Pligger
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
-
By raghhav in forum Questions & Comments
Replies: 17
Last Post: 09-07-2011, 01:44 AM
-
By bookmarkshub in forum Questions & Comments
Replies: 1
Last Post: 04-24-2011, 06:49 PM
-
By web20guy in forum Questions & Comments
Replies: 3
Last Post: 07-24-2009, 02:56 PM
-
By slick33 in forum Questions & Comments
Replies: 7
Last Post: 10-16-2008, 06:51 PM
-
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
-
Forum Rules