vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   2 mods, same hook, require a linebreak, but how ? (https://vborg.vbsupport.ru/showthread.php?t=233076)

Vaupell 01-14-2010 10:07 AM

2 mods, same hook, require a linebreak, but how ?
 
1 Attachment(s)
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


Attachment 109990

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

PHP Code:

$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...ky-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

Quote:

Originally Posted by Lynne (Post 1955583)
(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.


All times are GMT. The time now is 01:34 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01054 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete