View Full Version : How to change suggest link template?
echopulse
12-09-2005, 03:53 AM
I have been trying to add some space in between the fields, and also the order. I would like to change it back to the way it was in the old version (1.3), where URL was just below the title. I looked through suggest-link.tpl, and I could not find the form code.
I also looked through some smarty files, and didn't see anything. I don't know if I like the smarty stuff. But some people seem to like it, so...
If you want to add some space between fields, one way, would be to open view-link.tpl and the first table (about line 10) just add some cellspacing.
<table cellpadding="2" cellspacing="0">
Changing field order can be done thru manage link fields in Pro Version admin. panel.
Greg
echopulse
12-09-2005, 12:13 PM
Your first suggestion did not work. The second one did. Thanks.
What page is it that you want to add some space in between the fields?
That works on the view details page, if you increase the cellspacing, it will increase the fields space. Put cellspacing "4" as an idea.
But maybe you're talking of another page :?:
Greg
echopulse
12-09-2005, 02:13 PM
Yes, I am still talking about the suggest link page.
I want some space in between where is says
You are going to suggest your link to the following category:
News & Magazines
Please make sure your link fits this category.
And also some space in between the text boxes.
Ok Try this. Just a matter of adding a few
here and there.
In suggest-link.tpl
Replace this:
<div class="box-content">{$lang.suggest_link_top1}
{$category.title} ({$category.path}/)
{$lang.suggest_link_top2}
<form action="suggest-link.php?id={$smarty.get.id}" method="post">
{foreach from=$fields item=field}
{assign var="key" value=$field.name}
{$lang.$key}:
With this:
<div class="box-content">{$lang.suggest_link_top1}
{$category.title} ({$category.path}/)
{$lang.suggest_link_top2}
<form action="suggest-link.php?id={$smarty.get.id}" method="post">
{foreach from=$fields item=field}
{assign var="key" value=$field.name}
{$lang.$key}:
Or just compare the two and you'll see where the extra
tags were added.
Hope that's the look you were after. :)
Greg
echopulse
12-09-2005, 08:07 PM
I had to play around with it quite a bit before I get it like I wanted it. But thanks for the help.
Simon Gooffin
12-10-2005, 05:44 AM
hi guys,
I would advise to use
tag instead of
as in this case you are able to play around its margin. Just may be <p style="margin: 0 10px;"> would be some better solution.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.