View Full Version : How to prevent domain being added more than once
darrenlambert
02-10-2006, 08:16 PM
Hi all
Is it possible to ensure a domain has only a single link in a directory? The *Allow multiple submit* option only seems to check the link title, rather than the domain.
Does anyone have a mod?
Thanks
BrunoDesign
02-24-2006, 11:58 AM
To ensure that the URL is submitted just once you have to edit the submit.php. Search for the following line:
Content visible to registered users only.
and remove the second colon in
Content visible to registered users only.
so it will look like this:
Content visible to registered users only.
It seems to be a bug in programming. After removing the colon everything will work fine. No more multiple submittung of URL.
darrenlambert
02-24-2006, 12:26 PM
Thanks, that is prefect.
DirectoryMan
02-24-2006, 12:49 PM
I couldn't see any difference in the way the URL was edited. Seems to work the same as it did before.
eli03
02-24-2006, 01:16 PM
i think you can used admin panel for this, you dont need to edit the submit.tpl . There's an option to choose from either you can submit the domain multiple time in different category or not.
darrenlambert
02-24-2006, 01:36 PM
That's correct, but the posted change limits a URL to a directory only once. I don't want to allow people to post the same URL in multiple categories.
pachimondai
03-09-2006, 04:10 AM
Hi,
I'm also interested in this topic.
The modification above works fine but still the method used to compare the urls in the database is not advanced.
What I mean with that is:
It allows to submit the same domain just by adding/omitting the last slash.
1. dumbdomain.com
2. dumbdomain.com/
Same domain, both are allowed.
:shock:
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.