View Full Version : Newbe with a couple of Q's
Doug B
11-20-2006, 03:28 PM
Hello all, just starting to work on the script....
3 things so far:
1.Is there a way that I can get the 'Reciprocal checking for the following URL' to check for two domains. (My recipricol link contains links to 2 seperate websites which are both required.)
2. How / where do I stipulate/edit the features made available to my sponsered listings? (i.e if you pay you will appear at the top and appear in a box etc.)
3.On the suggest link page just above 'recipricol URL' I wanted to add (in text boxes) the recipricol code for my clients to copy/paste to their website page.
I have looked at the source files but have never used 'smarty' before, when I look at the page I need to edit, it looks nothing like HTML or PHP, I cant make any sense of it in order to edit it :sos:
Doug B
11-20-2006, 11:04 PM
Here is a screen shot ref Q3
Dave Baker
11-21-2006, 08:11 PM
Hello pixelinternet,
1.Is there a way that I can get the 'Reciprocal checking for the following URL' to check for two domains. (My recipricol link contains links to 2 seperate websites which are both required.)
If I am not mistaken, there are not standard ways
2. How / where do I stipulate/edit the features made available to my sponsered listings? (i.e if you pay you will appear at the top and appear in a box etc.)
Admin Panel » Configuration » Financial Configuration
Admin Panel » Configuration » Featured Listings
Admin Panel » Manage Sponsored Listings
Admin Panel » Featured Listings
3.On the suggest link page just above 'recipricol URL' I wanted to add (in text boxes) the recipricol code for my clients to copy/paste to their website page.
***Open suggest-link.tpl and find code***
{if $field.type eq 'text'}
{if $key eq 'email' AND $editor}
{else}
<input type="text" name="{$key}" value="{if $link.$key}{$link.$key}{else}{$field.default}{/if}" size="30" id="{$key}" /><br />
{/if}
***Replace with following code***
{if $field.type eq 'text'}
{if $key eq 'email' AND $editor}
{elseif $field.name eq 'reciprocal'}
<p style="margin: 20px 0 10px 0;">
Thank you for suggesting your domains link. Blah Blah Blah. Thank You.<br /><br />
<strong>Our HREF Link</strong><br />
<textarea name="reciricol link" cols="65" rows="5"><a href="http://www.Mydomain.com/" target="_blank"> Mydomain</a> </textarea>
</p>
<strong>{$lang.$field_title}:</strong><br />
<input type="text" name="{$key}" value="{if $link.$key}{$link.$key}{else}{$field.default}{/if}" size="30" id="{$key}" /><br />
{else}
<input type="text" name="{$key}" value="{if $link.$key}{$link.$key}{else}{$field.default}{/if}" size="30" id="{$key}" /><br />
{/if}
***after find code***
{if ($key eq 'email') AND $editor}
<input type="hidden" name="email" value="{$editor.email}" id="{$key}" />
{else}
<p class="field">
{assign var="field_title" value="field_"|cat:$field.name}
<strong>{$lang.$field_title}:</strong><br />
{/if}
***Replace with following***
{if ($key eq 'email') AND $editor}
<input type="hidden" name="email" value="{$editor.email}" id="{$key}" />
{else}
<p class="field">
{assign var="field_title" value="field_"|cat:$field.name}
{if $field.name neq 'reciprocal'}
<strong>{$lang.$field_title}:</strong><br />
{/if}
{/if}
***Save file***
Doug B
11-21-2006, 09:43 PM
Dave, you truly are a god :D
:forgive: :forgive:
Works like a dream.
Dave Baker
11-21-2006, 10:01 PM
All our diligence for our users :D
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.