PDA

View Full Version : Automatically Approved Links


Tim_Myth
06-20-2006, 05:38 PM
Disclaimer: THIS SHOULD NEVER BE INSTALLED ON A SITE THAT IS OPEN TO THE GENERAL PUBLIC!

I had a request for a link directory for a private organization that was not open to the public and therefore not spiderable or anything either. They didn't want to take the time to approve links since any link a member submitted was valid and good anyhow. Since many are non-technical and most wouldn't take the tim eto learn how to approve links, we modified phpld2 to automatically approve the submissions. I thought I would share it in case anyone else had a similar situation.

In submit.php simply modify the two red lines to the shown values:
Content visible to registered users only.
Disclaimer: THIS SHOULD NEVER BE INSTALLED ON A SITE THAT IS OPEN TO THE GENERAL PUBLIC!

arindra
06-24-2006, 07:05 AM
i would find this very useful :D

Robertem
10-18-2006, 04:25 PM
Hello,

I was just wondering if there is a way to automatically add paid links, while still manually approving free links?

Thanks,

Robert

Tim_Myth
10-18-2006, 05:15 PM
Not without a bit of programming. Pld adds links to the db as they are submitted. If its a paid link, it also runs the ipn bit, but it doesn't wait for payment to put the link in the db. All links get added. It is up to you to approve (change their status to 2) or delete them. I run a paid-only directory, and get dozens of bozos who submit links and then fail to pay via PP, but I have no way of knowing at the time of the submission if its someone who will pay in the next couple of minutes or someone who won't pay at all.

What you would have to do is hack ipn.php and have it find the link in the db and then change the status field after a payment was successful. I know this is possible, but it is beyond my ability.

Robertem
10-18-2006, 05:43 PM
Thanks for the info!

Robert