Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
[HowTo] Break posts up from eachother Details »»
[HowTo] Break posts up from eachother
Version: 1.00, by Floris Floris is offline
Developer Last Online: Mar 2021 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-17-2002 Last Update: Never Installs: 61
 
No support by the author.

[HowTo] Break posts up from eachother?
(but still keep the top/bottom post stick to top/bottom row)


What does this one do?
When you view a thread, it shows the first row, the posts, the last row; all sticking together. What we want is a space between the posts. But not a space between the first row and the first post, the last row and the last post. We only want to make a <br> between each individual post. I was not able to do this with a template modification, so I run crying to FireFly and he thought about it for 2,8sec. and gave me the following code to accomplish my wish. *respect*

Why did you make it?
Because vB didn't came with the option by default. And I think it looks pretty damn cool. After applying it to my board I got fan mail with requests on how to do this. I ignored most of them, and now the requests start on vB.com too. So I decided to publish it here. Please note that I am NOT the author of this little code hack, and that all credits should ofcourse goto FireFly.
  • Instructions:
  • Open the original vBulletin file "showthread.php" and find:
    (near line 425)
    Code:
    $postbits .= getpostbit($post);
  • Replace that with:
    Code:
    $postbits .= iif(empty($postbits), '', '<br>').getpostbit($post);
  • Save the file, upload it again and see if it worked.
Done!

Version?
Tested with vBulletin 2.2.5 (final) and it works just great! (I wouldn't know about older versions for sure, but it is pretty easy to undo, so doesn't hurt to check it out)

Support!
Feel free to click 'Installed' once you got it up and running on your board!

Tweak!
There were threads where users complained about the breaking showing up the page bground color instead of the main table background color. I fixed this on my new style by putting eveything in the header & footer in 1 new main table. Please keep in mind that if you have other designs etc, this might screw it up, but it works here.. so enjoy
header - at the top add :
<center>
<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="10" cellspacing="0" border="0"><tr><td>
footer - at the bottom add :
</td></tr></table></center>
Maybe it helps you too.


The Result
This is how it looks on my web site:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-18-2002, 08:32 PM
-=dm=- -=dm=- is offline
 
Join Date: Nov 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

actually this is the first hack ever on this board
I did a clean install.
Reply With Quote
  #23  
Old 04-18-2002, 08:42 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well .. I did not had the problem, and I can't see why/what is causing it. Maybe FireFly can inlight us here.
Reply With Quote
  #24  
Old 04-18-2002, 09:40 PM
heretic's Avatar
heretic heretic is offline
 
Join Date: Nov 2001
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for those that want to spend 5 seconds on it instead of 5 minutes you can just add a <br> at the end of your postbit template


and when you upgrade, it's one less ahck to think about.
Reply With Quote
  #25  
Old 04-18-2002, 09:54 PM
Xanthine Xanthine is offline
 
Join Date: Mar 2002
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well this one only really takes 1 minute and when you add a <br> the top post is always stuck to the top bar and the bottom one is always away from the bottom bar. This way looks better IMO.
Reply With Quote
  #26  
Old 04-18-2002, 11:54 PM
heretic's Avatar
heretic heretic is offline
 
Join Date: Nov 2001
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not exactly... if you do it right, the top post:
Reply With Quote
  #27  
Old 04-18-2002, 11:56 PM
heretic's Avatar
heretic heretic is offline
 
Join Date: Nov 2001
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and the bottom...all through template editing.. however, I've completely redesigned my postbit

*shrug*
Reply With Quote
  #28  
Old 04-19-2002, 12:02 AM
Twig Deez's Avatar
Twig Deez Twig Deez is offline
 
Join Date: Nov 2001
Location: Aotearoa
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey xiphoid;

re: my last post in the space between categories topic over on vb.com,
do you think a similar piece of code could also be used to seperate the categories on forumhome?
i want the seperation without the misalignment, or having to change td width's to realign them;
i figure i can insert an empty tr at the end of the forumhome_forumbit_level1_post template;
but i would prefer a method similar to the one utilised here.

any ideas?
Reply With Quote
  #29  
Old 04-19-2002, 06:34 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by heretic
for those that want to spend 5 seconds on it instead of 5 minutes you can just add a <br> at the end of your postbit template


and when you upgrade, it's one less ahck to think about.
If it takes you 5 minutes to search & replace :P hehe. Too slow.
As I mentioned, I couldn't get this to work with templates, so this is why. And someone already mentioned this, instead of just saying so, please tell me the code where you entered the <br> in your postbit template.

Quote:
Originally posted by Xanthine
Well this one only really takes 1 minute and when you add a <br> the top post is always stuck to the top bar and the bottom one is always away from the bottom bar. This way looks better IMO.
Yep.

Quote:
Originally posted by Twig Deez
hey xiphoid;

re: my last post in the space between categories topic over on vb.com,
do you think a similar piece of code could also be used to seperate the categories on forumhome?
i want the seperation without the misalignment, or having to change td width's to realign them;
i figure i can insert an empty tr at the end of the forumhome_forumbit_level1_post template;
but i would prefer a method similar to the one utilised here.

any ideas?
Nope, I am not the guru here Maybe you can do it by applying the same trick to $forumbits = ''; from index.php. But don't quote me on that (except when it works)
Reply With Quote
  #30  
Old 04-19-2002, 05:38 PM
Twig Deez's Avatar
Twig Deez Twig Deez is offline
 
Join Date: Nov 2001
Location: Aotearoa
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by xiphoid
Nope, I am not the guru here Maybe you can do it by applying the same trick to $forumbits = ''; from index.php. But don't quote me on that (except when it works)
well, i am gonna tinker with it as soon as i get home from work.

i'll let you know.
Reply With Quote
  #31  
Old 04-19-2002, 08:11 PM
inetd inetd is offline
 
Join Date: Nov 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
That is the Just another level hack.
xiphoid, please post link for this hack... I search and don't find
Reply With Quote
Reply

Thread Tools

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 01:39 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06344 seconds
  • Memory Usage 2,300KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete