PDA

View Full Version : [MOD] Three Way Linking


Boby
03-13-2006, 12:15 AM
There was a request for a three-way-linking mod.
Submitters will no more link to your directory, instead they will have to link to a third site. (Reciprocal)

This mod is for phpLD2, because the new phpLD 3.0.3 has this feature out-of-box.

Edit "admin/init.php" and find following code (lines 323-335):
Content visible to registered users only.
Insert this right after:
Content visible to registered users only.

Now you have to edit "include/tables.php" and search for:
Content visible to registered users only.
Put next code right above it:
Content visible to registered users only.

Edit "include/functions.php" and search for the for the first function:
Content visible to registered users only.
Replace it with this code:
Content visible to registered users only.

Same file (include/functions.php), search for:
Content visible to registered users only.
Replace with:
Content visible to registered users only.

And now the last file to change, "tamplates/submit.tpl", search for:
Content visible to registered users only.
Replace with:
Content visible to registered users only.

If you don't want to go through the update script, you can run a SQL query in phpMyAdmin or something else to insert 3 configuration rows to your database.
This is the needed SQL query:
Content visible to registered users only.
PLD_CONFIG is the default configuration table, if you are using other prefix than "PLD_" please change it in your query.


That's all, you can enable now this feature and change settings in your admin panel by going:
System >> Edit Settings >> Link Submit

Good Luck!
Boby

Later Edit:
I have also uploaded an archive with the files and needed changes and put also a sql file with the query. You can download it from attachment.

insidedesign
03-13-2006, 02:38 AM
Your welcome everyone ;)

Thanks for your work Boby

anon
03-13-2006, 03:24 AM
insidedesign

thank you ;)

you too boby :D

euwebdirectory
11-15-2006, 02:11 PM
Hi.

I want to make the backlink, no to a third party site, i want to make it to the same category that somebody submit your site.

It´s possible? and the best, what´s the code .. :P

Thx a lot.

sofie77
12-22-2006, 12:04 PM
Hi boby

is it possible to rewrite this mod, that its possible to add more Linking URLs instead of only 1? i would like to have the option to offer the customer more Reciprocal URLs of my project.

I am for sure willing to pay. please tell me your price!

tx for help!

webguide
05-14-2007, 12:35 PM
It doesnt work, the recirpocal isnt updated in the submit.php script.
The db have the rigth information.

Is there an easy way to ad different reciprocals to different submits?