Go Back   PHP Link Directory Forum > PHP Link Directory (phpLD) > Mods and contribution Discussion

Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum.

Closed Thread
 
topic widgets
Old 03-13-2006   #1
Boby
Supporter
Moderator
 
Boby's Avatar
 
Join Date: Dec 2005
Location: Cluj-Napoca/Sighisoara (Romania)
Posts: 4,524
Exclamation [MOD] Three Way Linking

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):
Code:
Content visible to registered users only.
Insert this right after:
Code:
Content visible to registered users only.
Now you have to edit "include/tables.php" and search for:
Code:
Content visible to registered users only.
Put next code right above it:
Code:
Content visible to registered users only.
Edit "include/functions.php" and search for the for the first function:
Code:
Content visible to registered users only.
Replace it with this code:
Code:
Content visible to registered users only.
Same file (include/functions.php), search for:
Code:
Content visible to registered users only.
Replace with:
Code:
Content visible to registered users only.
And now the last file to change, "tamplates/submit.tpl", search for:
Code:
Content visible to registered users only.
Replace with:
Code:
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:
Code:
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.
__________________
Please do *not* contact me for support on phpLD!! I can hardly find time to give support for my own mods, for anything else I won't.
  • My phpLD Mods
  • I am *not* a phpLD staff member, so please do *not* ask me to grant permissions, sales stuff, for access to the private supporter forums or phpLD download area.
  • Before you report your problems, make sure it happens with the *default* package and not your highly modified code. Don't forget to use the search feature and do not *bump* threads to soon (allow at least 24h).
Boby is offline  
Old 03-13-2006   #2
insidedesign
Supporter
 
Join Date: Dec 2005
Location: Asheville, NC
Posts: 117
Default

Your welcome everyone

Thanks for your work Boby
insidedesign is offline  
Old 03-13-2006   #3
anon
Supporter
 
anon's Avatar
 
Join Date: Feb 2006
Location: As far from you as humanly possible!
Posts: 2,860
Default

insidedesign

thank you

you too boby
anon is offline  
Old 11-15-2006   #4
euwebdirectory
Supporter
 
Join Date: Mar 2006
Location: Spain
Posts: 75
Default backlink to same category

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.
euwebdirectory is offline  
Old 12-22-2006   #5
sofie77
 
Join Date: Jul 2005
Posts: 77
Default

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!
sofie77 is offline  
Old 05-14-2007   #6
webguide
 
Join Date: Apr 2007
Posts: 15
Default Dont work

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?

Last edited by David; 08-17-2009 at 11:03 PM. Reason: Spelling
webguide is offline  
Closed Thread

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
topic widgets



All times are GMT +1. The time now is 05:56 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.