OK, I have to admit that I am struggling with customising everything, mainly because I don't find the "manual" over helpful. Many of the pages are out of date, referring to older versions, and you have to hunt around to try and find out where whatever you are looking for is in the settings, and then you can find it has changed beyond recognition!
I am trying to organise my link types to just a reciprocal or premium (paid for using PayPal). It states in the manual that if you don't want a link do not simply delete but replace the type selector on the link submission template (suggestlink.tpl) with <input type="hidden" name="type" value="regular">
So, going to that template I find....
<td class="labelscolumn"><span class="labels">Type of Link:</span></td> <td class="optionscolumn"><select name="type">{TYPEOPTIONS}</select></td>
But please explain to a dumbo exactly WHERE I place <input type="hidden" name="type" value="regular">
You found the correct place. Replace the row you just posted with that hidden input box.
You don't actually have to remove anything -- you could leave it as is allowing people to select only one option, I just think it's friendlier to clean up the page by not displaying an option which doesn't offer options.
Technically the hidden input isn't necessary even after removing, as it'll auto-assign the first link type it finds, but the hidden input box is more flexible since you could theoretically use it with multiple link types.
Thanks Paul. Then this is not what I want to do - I want a choice just not regular, so guess will have to delete the "regular" section from displaylinks.tpl after all.
I shall be back with more queries soon <G> Afraid I'm doing all this step by step!
Comments on Changing Link Types
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
OK, I have to admit that I am struggling with customising everything, mainly because I don't find the "manual" over helpful. Many of the pages are out of date, referring to older versions, and you have to hunt around to try and find out where whatever you are looking for is in the settings, and then you can find it has changed beyond recognition!
I am trying to organise my link types to just a reciprocal or premium (paid for using PayPal). It states in the manual that if you don't want a link do not simply delete but replace the type selector on the link submission template (suggestlink.tpl) with <input type="hidden" name="type" value="regular">
So, going to that template I find....
<td class="labelscolumn"><span class="labels">Type of Link:</span></td>
<td class="optionscolumn"><select name="type">{TYPEOPTIONS}</select></td>
But please explain to a dumbo exactly WHERE I place <input type="hidden" name="type" value="regular">
Jill
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
You found the correct place. Replace the row you just posted with that hidden input box.
You don't actually have to remove anything -- you could leave it as is allowing people to select only one option, I just think it's friendlier to clean up the page by not displaying an option which doesn't offer options.
Technically the hidden input isn't necessary even after removing, as it'll auto-assign the first link type it finds, but the hidden input box is more flexible since you could theoretically use it with multiple link types.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Thanks Paul. Then this is not what I want to do - I want a choice just not regular, so guess will have to delete the "regular" section from displaylinks.tpl after all.
I shall be back with more queries soon <G> Afraid I'm doing all this step by step!
Jill
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
If you want a choice, don't delete anything. If you want to call 'regular' something else, settings->links and change the display name.