Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 01-24-2007, 07:42 PM   #1
balthasar
Junior Member
 
balthasar's Avatar
 
Join Date: Dec 2006
Posts: 69
balthasar will become famous soon enough
Send a message via MSN to balthasar
Default Smarty help please

Hi, can anyone help me with this?

I have a directory and i would like the submit page payment to be yearly
subscription via paypal instead of a one time payment.

you can see a submit page here: http://www.nemdex.net/submit.php

So basically, i want that when someone choose sponsored listing, that
they get the paypal URL I place in the code. In the below code i want
if featured will redict to the paypal URL I specify.

something like that:

{if $price.featured}
<tr><td><input type="radio" name="LINK_TYPE" value="featured"{if $LINK_TYPE eq 'featured'}
checked="true"{/if} />{l}Featured links{/l}</td><td>${the-paypal-URL-i-want-here,-the
paypal-URL-i-put-here-and-that-they-will-see-if-they-choose -sponsored-listing.com
}</td></tr>
{/if}

I placed the code below:


{if $price.featured}
<tr><td><input type="radio" name="LINK_TYPE" value="featured"{if $LINK_TYPE eq 'featured'} checked="true"{/if} />{l}Featured links{/l}</td><td>${$price.featured}</td></tr>
{/if}
{if $price.normal gt 0}
<tr><td><input type="radio" name="LINK_TYPE" value="normal"{if $LINK_TYPE eq 'normal'} checked="true"{/if} />{l}Regular links{/l}</td><td>${$price.normal}</td></tr>
{elseif $price.normal eq 0}
<tr><td><input type="radio" name="LINK_TYPE" value="normal"{if $LINK_TYPE eq 'normal'} checked="true"{/if} />{l}Regular links{/l}</td><td>{l}free{/l}</td></tr>
{/if}
{if $price.reciprocal gt 0}
<tr><td><input type="radio" name="LINK_TYPE" value="reciprocal"{if $LINK_TYPE eq 'reciprocal'} checked="true"{/if} />{l}Regular links with reciprocal{/l}</td><td>${$price.reciprocal}</td></tr>
{elseif $price.reciprocal eq 0}
<tr><td><input type="radio" name="LINK_TYPE" value="reciprocal"{if $LINK_TYPE eq 'reciprocal'} checked="true"{/if} />{l}Regular links with reciprocal{/l}</td><td>{l}free{/l}</td></tr>
{/if}
{if isset($price.free)}
<tr><td><input type="radio" name="LINK_TYPE" value="free"{if $LINK_TYPE eq 'free'} checked="true"{/if} />{l}Links with nofollow attribute{/l}</td><td>free</td></tr>
{/if}
</table>
</div>
{validate form="submit_link" id="v_LINK_TYPE" message=$smarty.capture.field_link_type}
</td></tr>
{/if}


Can anyone give me the right code tweak to have them go to the URL I specify? Your help is greatly apreciated.

Thanks.
balthasar is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 01-24-2007, 08:33 PM   #2
midlandi
iWEBTOOL Moderator
 Contributor 
 
midlandi's Avatar
 
Join Date: Oct 2006
Posts: 2,168
midlandi is just really nicemidlandi is just really nicemidlandi is just really nicemidlandi is just really nicemidlandi is just really nice
Default Re: Smarty help please

If you mean the suscribe button then its easy.
Log on to paypal they have a section where you can make a custom button for this.The code is made you just copy and paste,easy
.
.
midlandi is offline  
Old 01-24-2007, 08:37 PM   #3
balthasar
Junior Member
 
balthasar's Avatar
 
Join Date: Dec 2006
Posts: 69
balthasar will become famous soon enough
Send a message via MSN to balthasar
Default Re: Smarty help please

Quote:
Originally Posted by midlandi View Post
If you mean the suscribe button then its easy.
Log on to paypal they have a section where you can make a custom button for this.The code is made you just copy and paste,easy
.
.

I know that, I need to be able to specify a specific URL in the smarty code for each of the sponsored and normal listing option. nothing to do with a paypal button...
balthasar is offline  
Old 01-25-2007, 01:41 AM   #4
Zack
Junior Guru
 
Zack's Avatar
 
Join Date: Dec 2005
Location: North Carolina
Posts: 759
Zack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to behold
Send a message via MSN to Zack
Default Re: Smarty help please

Quote:
Originally Posted by midlandi View Post
If you mean the suscribe button then its easy.
Log on to paypal they have a section where you can make a custom button for this.The code is made you just copy and paste,easy

This is a good idea, but don't use the actual code that paypal gives you, look at the link that the button goes to, and create a radio button that would choose this option.
HTMLGuy
__________________
yaxal releases '07
Zack is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump


All times are GMT. The time now is 09:51 PM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.