|
Haven't registered yet? Do it here now!
|
|
|
|
A.J. Angel
Joined: 01 Aug 2008 Posts: 45
|
|
|
|
|
|
|
Posted: Wed Aug 22, 2012 12:15 pm Post subject: Template Help Inquiry |
|
|
|
|
|
|
|
|
|
|
Hello Atanasis,
I wish to inquire for your help regarding a template. My site have the following code below for my link trades. Each DIV is a column. I wish to inquire how I may use Links Organizer to display my link trades. Thank you.
Kind Regards,
Axl Jay Angel
Code: | <div class="friends">
<a href="URL" title="TITLE">ANCHOR</a><br/>
<a href="URL" title="TITLE">ANCHOR</a><br/>
<a href="URL" title="TITLE">ANCHOR</a>
</div>
<div class="friends">
<a href="URL" title="TITLE">ANCHOR</a><br/>
<a href="URL" title="TITLE">ANCHOR</a><br/>
<a href="URL" title="TITLE">ANCHOR</a>
</div>
<div class="friends">
<a href="URL" title="TITLE">ANCHOR</a><br/>
<a href="URL" title="TITLE">ANCHOR</a><br/>
<a href="URL" title="TITLE">ANCHOR</a>
</div>
<div class="friends">
<a href="URL" title="TITLE">ANCHOR</a><br/>
<a href="URL" title="TITLE">ANCHOR</a><br/>
<a href="URL" title="TITLE">ANCHOR</a>
</div>
<div class="friends">
<a href="URL" title="TITLE">ANCHOR</a><br/>
<a href="URL" title="TITLE">ANCHOR</a><br/>
<a href="URL" title="TITLE">ANCHOR</a>
</div> |
|
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Wed Aug 22, 2012 12:38 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
umm, the only possible solution i can think of regarding this design is the one below
Code: | <div class="friends">
{trades,1-10}
</div>
<div class="friends">
{trades,11-20}
</div>
<div class="friends">
{trades,21-30}
</div>
<div class="friends">
{trades,31-40}
</div>
<div class="friends">
{trades,41-50}
</div>
|
but as you can see it won't fill rest of the divs until you have enough trades..
or you can try like this
Code: |
<div class="friends">
{trade1}
{trade6}
.....
</div>
<div class="friends">
{trade2}
{trade7}
.....
</div>
<div class="friends">
{trade3}
{trade8}
.....
</div>
<div class="friends">
{trade4}
{trade9}
.....
</div>
<div class="friends">
{trade5}
{trade10}
.....
</div>
|
that will fill all div's, but its just you need to manually fill the template once with the variables.. not with a 'mass output variable'.. _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
A.J. Angel
Joined: 01 Aug 2008 Posts: 45
|
|
|
|
|
|
|
Posted: Wed Aug 22, 2012 3:53 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
Hello Atanasis,
The second template is perfect. I have a slight problem with it though. When I look into the source code, there is a break line between each HTML code for each links as in the example below. Is there any way to avoid it? Thank you.
Kind Regards,
Axl Jay Angel
Code: | <div class="friends">
<a href="URL" title="TITLE">ANCHOR</a><br/>
<a href="URL" title="TITLE">ANCHOR</a><br/>
<a href="URL" title="TITLE">ANCHOR</a>
</div> |
|
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Wed Aug 22, 2012 4:03 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
that shouldn't be an issue, since it is just in the source, in your browser won't show up as double new line..
anyways, i am not sure from where this double line is coming in, since its not embedded in LO, maybe your "tradelinkformat" variable is having that.. _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
A.J. Angel
Joined: 01 Aug 2008 Posts: 45
|
|
|
|
|
|
|
Posted: Wed Aug 22, 2012 5:55 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
Hello Atanasis,
I know but it is still a tad bit annoying knowing that it is there. I like things to be smooth. Hehe!
That said, I do not believe it comes from the tradelinkformat. Here below is what I have in my template.
Kind Regards,
Axl Jay Angel
Code: | {tradelinkformat,<a href="{url}" title="{title}">{anchor}</a></br>} <div class="friends">
{trade1}
{trade6}
{trade11}
{trade16}
{trade21}
{trade26}
{trade31}
{trade36}
{trade41}
{trade46}
</div> |
|
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Wed Aug 22, 2012 9:04 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
it maybe comes from having the {trade1}... variables on different lines.. Try joining them on one line and it might work _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
A.J. Angel
Joined: 01 Aug 2008 Posts: 45
|
|
|
|
|
|
|
Posted: Fri Aug 24, 2012 1:33 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
Atanasis wrote: | it maybe comes from having the {trade1}... variables on different lines.. Try joining them on one line and it might work |
Hello Atanasis,
If I join {trade#} on one line, only the last trade in the column is displayed.
It appears the problem comes from using the variable {trade#} in my template. It appears Links Organizer automatically adds another line when using {trade#}.
If I use {trades,#-##}, I do not have the problem. But then, the trades are displayed vertically which I don't like.
Kind Regards,
Axl Jay Angel |
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|
|
|
|
| |