Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2010, 10:07 AM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 2 mods, same hook, require a linebreak, but how ?

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
Reply With Quote
  #2  
Old 01-14-2010, 02:13 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 01-14-2010, 02:27 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

link to a actual page..
http://www.evisystems.org/showthread...ky-Johnny-Cash

postbit_legacy just above icq icon
Reply With Quote
  #4  
Old 01-14-2010, 02:49 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #5  
Old 01-14-2010, 07:32 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tx lynne..

it worked..
Reply With Quote
  #6  
Old 01-15-2010, 05:11 AM
derfelix derfelix is offline
 
Join Date: Nov 2001
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
(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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:43 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.04001 seconds
  • Memory Usage 2,227KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete