Smarty help for PHPLD.

Discussion in 'Programming' started by Linking-Service, Jan 24, 2007.

  1. #1
    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-sponsored.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.
     
    Linking-Service, Jan 24, 2007 IP