 | URL problem/question |  |
Posted: 09/04/2007 4:54 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 4:48 AM
|

|
|
|
|
 |
I've upgraded to a paid directory, and I'm having trouble adding links.
When I edit the file concerned the URL shows as http://tickerplayground.com/directory/www.topparentingsites.com and I can't see how to get rid of the http://tickerplayground.com/directory/ bit of it.
Here's the file I'm supposed to edit
| Code:
|
{strip}
<div id="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="{$smarty.const.DOC_ROOT}/"><img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/i mages/home.gif" border="0" alt="{$smarty.const.DIRECTORY_TITLE|escape|trim}" /></a></td>
</tr>
<tr>
<td><a href="{$smarty.const.DOC_ROOT}/index.php?list=latest"><img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/i mages/new.sites.gif" alt="{l}Browse New submitted links{/l}" /></a></td>
</tr>
<tr>
<td><a href="{$smarty.const.DOC_ROOT}/about.php"><img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/i mages/about.gif" alt="{l}About Us{/l}" /></a></td>
</tr>
<tr>
<td><a href="{$smarty.const.DOC_ROOT}/submit.php{if !empty ($category.ID) and $category.ID > 0}?c={$category.ID}{/if}"><img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/i mages/submit.gif" alt="{l}Submit your link to the directory{/l}" /></a></td>
</tr>
<tr>
<td><a href="{$smarty.const.DOC_ROOT}/index.php?list=top"><img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/i mages/tophits.gif" alt="{l}Browse most popular links{/l}" /></a></td>
</tr>
<tr>
<td><a href="{$smarty.const.DOC_ROOT}/contact.php"><img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/i mages/contact.gif" alt="{l}Contact Us{/l}" /></a></td>
</tr>
</table>
{* Our Partners Start *}
<div id="left_caption"><img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/i mages/our.partners.gif"></div>
<div id="left_box">
<p class="subcat"><a href="www.topparentingsites.com" target="_blank">Top Parenting Sites</a></p>
<p class="subcat"><a href="www.graphiczaddict.com" target="_blank">Graphicz Addicts</a></p>
<p class="subcat"><a href="#" target="_blank">Sponsored listings</a></p>
<p class="subcat"><a href="#" target="_blank">Sponsored listings</a></p>
<p class="subcat"><a href="#" target="_blank">Sponsored listings</a></p>
</div>
<div id="left_box_footer"></div>
{* Our Partners End *}
<br />
{* Our Network Start *}
<div id="left_caption"><img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/i mages/our.network.gif"></div>
<div id="left_box">
<p class="network"><a href="#" target="_blank">Sponsored listings</a></p>
<p class="network"><a href="#" target="_blank">Sponsored listings</a></p>
<p class="network"><a href="#" target="_blank">Sponsored listings</a></p>
<p class="network"><a href="#" target="_blank">Sponsored listings</a></p>
<p class="network"><a href="#" target="_blank">Sponsored listings</a></p>
</div>
<div id="left_box_footer"></div>
{* Our Network End *}
{* User menu Start *}
{if $smarty.const.REQUIRE_REGISTERED_USER == 1}<br />
<div id="left_caption"><img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/i mages/user.menu.gif"></div>
<div id="left_box">
{if empty ($regular_user_details)}
<p class="subcat"><a href="{$smarty.const.DOC_ROOT}/login.php" title="{l}Log In to your account{/l}">{l}Login{/l}</a></p>
<p class="subcat"><a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Register new user{/l}">{l}Register{/l}</a></p>
{else}
<p class="subcat">{l}Welcome:{/l} <strong>{$regular_user_details.NAME|escape}</strong></p>
<p class="subcat"><a href="{$smarty.const.DOC_ROOT}/logout.php" title="{l}Log out of this account{/l}">{l}Sign Out{/l}</a></p>{/if}
{if $smarty.const.REQUIRE_REGISTERED_USER == 1 && !empty($regular_user_details)}
<p class="subcat"><a href="{$smarty.const.DOC_ROOT}/index.php?uid={$regular_user_details.ID }" title="{l}Browse personal links{/l}">{l}View my links{/l}</a></p>
<p class="subcat"><a href="{$smarty.const.DOC_ROOT}/profile.php?mode=edit" title="{l}Edit your account settings{/l}">{l}My Account{/l}</a></p>
{/if}
</div>
<div id="left_box_footer"></div>
{/if}
{* User menu End *}
</div>
{/strip}
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: URL problem/question |  |
Posted: 09/04/2007 10:34 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:48 AM
Location: St Pete, FL
|

|
|
|
|
 |
Ok, where is this located? Which is supposed to be the correct link? Do you???
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: URL problem/question |  |
Posted: 09/05/2007 2:36 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 4:48 AM
|

|
|
|
|
 |
Its on this page http://tickerplayground.com/directory/
If you look to the left it says Our Sponsors and Our Network - its those links in there.
In the install it says to edit those areas in the left.php file which is the one I posted above. I put the links in but its coming up with the tickerplayground URL before the actual URL I want to use.
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: URL problem/question |  |
Posted: 09/05/2007 9:50 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:48 AM
Location: St Pete, FL
|

|
|
|
|
 |
Yes, all you need to do is add http:// to the beginning of the path. I went ahead and corrected the top two links:
OPEN
GreenShade/left.tpl
FIND
| Code:
|
|
<a href="www.topparentingsites.com"
|
REPLACE WITH
| Code:
|
|
<a href="http://www.topparentingsites.com"
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: URL problem/question |  |
Posted: 09/06/2007 3:54 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 4:48 AM
|

|
|
|
|
 |
Ahhh thank you! So easy and yet so important *hopes it sticks in memory*  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: URL problem/question |  |
Posted: 09/06/2007 12:51 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:48 AM
Location: St Pete, FL
|

|
|
|
|
 |
It was an easy mistake to make. It didn't immediately stand out as a problem when I first looked at the code. Hopefully if you see this again in the future, you will remember this and try the solution above to see if it fixes the problem...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|