PDA

View Full Version : 2 mods, same hook, require a linebreak, but how ?


Vaupell
01-14-2010, 10:07 AM
working on a gallery mod for my forum and its working just fine.
Except my gallery link in postbits are placed along side post_thank you link


109990

so wondering is it possible to make my link do a line break like <br />
i tryed but could not get it working..


$template_hook['postbit_userinfo_right_after_posts'] .= '<div class="left"><a href="EIG.php?do=showgallery&amp;user='.$post[userid].'">My gallery</a></div>';






// just added a few lines to make it show proberly on vborg ;)


i tryed ending this with

My Gallery</a></div><br />'; but it didnt break the line..

any ideas how to change line either way up or down ?

EDIT :
tryed replaceing the div tags with
DD, DL, LI
still no luck

Lynne
01-14-2010, 02:13 PM
Really hard to tell without being able to see a link to a page where this is happening. I have no idea what the Thanks mod code looks like, so it's hard to know why this is happening.

Vaupell
01-14-2010, 02:27 PM
link to a actual page.. :D
http://www.evisystems.org/showthread.php?665-Ghost-riders-in-the-sky-Johnny-Cash

postbit_legacy just above icq icon

Lynne
01-14-2010, 02:49 PM
You could add style="clear:both;" into your div tag and it will make sure it is on another line.

(I don't like the way they did the Thanks line)

Vaupell
01-14-2010, 07:32 PM
tx lynne..

it worked.. ;)

derfelix
01-15-2010, 05:11 AM
(I don't like the way they did the Thanks line)
same here...
BUT i doubt the page will validate...
I am not sure if you are allowed to add a div inside a <dl> </dl> tag...

now you have:
<dl>
<dt>...</dt><dd>...</dd>
<dt>...</dt><dd>...</dd><dd>...</dd>
<div style="clear:both"></div>
</dl>

I would put it in <dt> tag adding the clear:both like lynne pointed out...
<dl>
<dt>...</dt><dd>...</dd>
<dt>...</dt><dd>...</dd><dd>...</dd>
<dt style="clear:both"></dt>
</dl>

havent tested but could also be:
<dl>
<dt>...</dt><dd>...</dd>
<dt>...</dt><dd>...</dd><dd>...</dd>
<dt style="clear:both"><div>.......</div></dt>
</dl>

other possibility would be to close the <dl> tag before you place the div-- and reopen it after your code...

</dl><div style="clear:both">.....</div><dl>

F.