Webmastersite.net
Register Log In

Customised suggestlink.tpl

Comments on Customised suggestlink.tpl

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Feb 25, 2009 - 9:56 AM:

I have customised the suggestlink template for the field linktype because I have types that are not available to all members. I have also done them as radio buttons with the following code:

 

<input type="radio" name="type" value="regular" checked="checked"> Article / Review
<input type="radio" name="type" value="photo" > Photograph
<input type="radio" name="type" value="recip" > Reciprocal Link
<input type="radio" name="type" value="premium" > Premium Link (£5.50)
<input type="radio" name="type" value="note" > Classified Ad



This works perfectly, except when you click attach to attach a file it reverts back to the default. How can I get it so that if the submitter selects, say, photograph it retains that after they click attach?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 25, 2009 - 8:11 PM:


<input type="radio" name="type" value="photo" <IF {LINKTYPE} is regular or not {LINKTYPE}>checked="checked"</IF> /> Article / Review
<input type="radio" name="type" value="photo" <IF {LINKTYPE} is photo>checked="checked"</IF> /> Photograph
<input type="radio" name="type" value="recip" <IF {LINKTYPE} is recip>checked="checked"</IF> /> Reciprocal Link
<input type="radio" name="type" value="premium" <IF {LINKTYPE} is premium>checked="checked"</IF> /> Premium Link (£5.50)
<input type="radio" name="type" value="note" <IF {LINKTYPE} is note>checked="checked"</IF> /> Classified Ad
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Feb 26, 2009 - 12:03 AM:

Perfect! Thanks Paul
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.