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.
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.