PDA

View Full Version : Restrict 'Submit Link' to just category pages?


djhomeless
02-02-2006, 01:32 PM
I'm sure there is a simple way to do this.

My site has only been 'live' a week or so, and I'm already having fun deleting the spam links submitted by people who come to my home page and click "Submit Link".

I was wondering if there was a way in htaccess, or the template, to redirect users on the homepage (ie domain.com/) to a stock page on how to submit a link to the directory (ala Dmoz), and when they are on an actual category page, to then forward them to submit.php?

It would save users a lot of hassle, and to encourage users to pick an appropriate category....

Thanks!

Geoffrey

Kevuk2k
02-02-2006, 01:49 PM
Content visible to registered users only.

Hi Geoff,

I have exactly that at is that what you mean? Click on the submit a link and it takes you to a holding page. If they go an appropriate category though it takes them to a relevant submit form with the category already in there. It wasn's as simple as you think and it cost me to get it made.

All the best to the best from the best :wink:

Kev

djhomeless
02-02-2006, 02:11 PM
That's exactly what I was looking for. Though, I'm not sure why that couldn't be done with an elaborate htaccess rewrite rule.

Content visible to registered users only.

Then all you would need to do (in theory) is change the submitlink hyperlink to be "submitlink.php" instead of "/submitlink.php".

Not sure if that would work, anyone have a thought?

Geoffrey

djhomeless
02-02-2006, 09:07 PM
I knew that it could be done! Whew, I'm not such a tool after all.

I've submitted the code changes as a mod {topic seems to have moved}