Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Old school (WebBBS-style) quoting Details »»
Old school (WebBBS-style) quoting
Version: 1.00, by Martin CX Martin CX is offline
Developer Last Online: Jan 2015 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 10-17-2004 Last Update: Never Installs: 3
Is in Beta Stage  
No support by the author.

This is as much for my own benefit as others. The hack is working fine, but there is a known bug in that the quoting only applies to forum posts and not private messages.

In newreply.php just below the line...
Code:
		$pagetext = trim(strip_quotes($pagetext));
...insert the following
Code:
		// HACK BEGIN
		function word_wrap ($string)
		{
			$cols = 80;
			$prefix = "?";
			$t_lines = split("\n", $string);
			$outlines = "";
			while(list(, $thisline) = each($t_lines))
			{
				$thisline = trim($thisline);
				if(strlen($thisline) > $cols)
				{
					$newline = "";
					$t_l_lines = split(" ", $thisline);
					while(list(, $thisword) = each($t_l_lines))
					{
						while((strlen($thisword) + strlen($prefix)) > $cols-15)
						{
							$cur_pos = 0;
							$outlines .= $prefix;
							for($num=0; $num < $cols-16; $num++)
							{
								$outlines .= $thisword[$num];
								$cur_pos++;
							}
							$outlines .= "\n";
							$thisword = substr($thisword, $cur_pos, (strlen($thisword)-$cur_pos));
						}
						if((strlen($newline) + strlen($thisword)) > $cols-15)
						{
							$outlines .= $prefix.$newline."\n";
							$newline = $thisword." ";
						}
						else
						{
							$newline .= $thisword." ";
						}
					}
					$outlines .= $prefix.$newline."\n";
				}
				else
				{
					$outlines .= $prefix.$thisline."\n";
				}
			}
			return $outlines;
		}
		$pagetext = word_wrap($pagetext);
		// HACK END
Screenshot attached.

Best wishes,

Edit: I forgot. In order to not make it look crazy, you have to leave the "newpost_quote"-template empty except for "$pagetext"

Show Your Support

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

Comments
  #2  
Old 10-18-2004, 10:26 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Martin CX for sharing your mod... i'm sure many will find it useful...
Reply With Quote
  #3  
Old 10-18-2004, 11:14 PM
James T Brock James T Brock is offline
 
Join Date: Sep 2004
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So this does nothing but change the way quotes look, so it looks like the old style quotes sytem on older software boards?

Do you still need to use quote tags and it just converts it, or would you need to use >>'s?
Reply With Quote
  #4  
Old 10-18-2004, 11:28 PM
Martin CX Martin CX is offline
 
Join Date: Nov 2001
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by James T Brock
So this does nothing but change the way quotes look, so it looks like the old style quotes sytem on older software boards?

Do you still need to use quote tags and it just converts it, or would you need to use >>'s?
You don't need to use quote tags, it automatically >>'s the text from the post you are replying to.

In this case, had I replied to your message, this is what it would have given me:

?So this does nothing but change the way quotes look, so it looks
?like the old style quotes sytem on older software boards?
?
?Do you still need to use quote tags and it just converts it, or
?would you need to use >>'s?

BTW, I use the prefix '?' as I think it looks nice, but if you want to use '>' or '> ' you can just change it. (It is the prefix variable in the beginning of the script.) And if you want to change the number of characters before the line wraps it is the cols variable.

And thank you, Polo. I hope so.
Reply With Quote
  #5  
Old 10-19-2004, 12:18 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea. Definitely old school.
Reply With Quote
  #6  
Old 10-19-2004, 01:46 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to add the name of the person you are quoting also?
Reply With Quote
  #7  
Old 10-19-2004, 03:12 AM
Martin CX Martin CX is offline
 
Join Date: Nov 2001
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Is there a way to add the name of the person you are quoting also?
Sure, but I think it is perhaps easiest achieved by just editing the "newpost_quote"-template and leave something like...
Code:
?(b)$originalposter wrote:(/b)
?
$pagetext
...or whatever you have in mind (brackets instead of parenthesis, of course).

Best wishes,
Reply With Quote
  #8  
Old 10-19-2004, 03:39 AM
HiDeo's Avatar
HiDeo HiDeo is offline
 
Join Date: Oct 2003
Posts: 306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack !

Thanks Martin CX

/me installs
Reply With Quote
  #9  
Old 10-19-2004, 07:49 AM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lovin the bbs style! =)
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:06 PM.


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.08746 seconds
  • Memory Usage 2,281KB
  • Queries Executed 24 (?)
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
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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