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

Reply
 
Thread Tools
Yet Another Multi-Quote Hack Details »»
Yet Another Multi-Quote Hack
Version: 1.00, by chriswible chriswible is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 02-17-2005 Last Update: Never Installs: 4
 
No support by the author.

This particular hack allows users to multi-quote directly from the newreply page instead of in the thread itself. A "quote" link is placed in each post in the thread review, allowing for quck, efficient multi-quoting without the need to plan posts in advance.

Only two file edits and a template tweak, nothing major.

Suggestions/bug reports (and fixes) are welcome... this is my first hack so be nice. XD Thanks to Snow for pointing out WYSIWYG incompatibility problem and fixing my javascript.

*INSTALLATION*

In newreply.php:

FIND:
PHP Code:
    require_once('./includes/functions_bbcodeparse.php');
    
$reviewmessage parse_bbcode($post['pagetext'], $foruminfo['forumid'], $post['allowsmilie']); 
ABOVE, INSERT:
PHP Code:
$poststep1 strip_quotes($post['pagetext']);
$b1 '[';
$b2 ']';
$quo 'QUOTE';
$poststep2 "$b1$quo=$username$b2$poststep1$b1/$quo$b2";
$poststep3 addslashes($poststep2);
$poststep4 explode("\n",$poststep3);
for (
$xyz 0$xyz count($poststep4); $xyz++){
$poststep4[$xyz] = rtrim($poststep4[$xyz]);
}
$poststep5 implode('\n',$poststep4);
$poststep5 "\\n$poststep5\\n"
in clientscript/vbulletin_editor.js:
at the end, ADD:
Code:
function do_quote_hack(quotestring,is_ie)
{
	if (document.getElementById('htmlbox'))
	{
		if (is_moz)
		{
			moz_insert_smilie('<br>'+quotestring+'<br>');
		}
		else
		{
			document.getElementById('htmlbox').innerHTML += quotestring;
		}
	}
	else
	{
		document.vbform.message.value += quotestring;
	}
}
In the template newreply_reviewbit:
FIND:
HTML Code:
<td class="alt1" width="125" align="center">$username</td>
REPLACE WITH:
HTML Code:
	<td class="alt1" width="125" align="center"><p align=center>$username</p>

<script language=javascript>
var quotestring$post[postid] = '$poststep5';
</script>
<p align=center><a href=# onClick="do_quote_hack(quotestring$post[postid],is_ie);"><img src="$stylevar[imgdir_button]/quote.gif" border=0></a></p></td>


Screenshot is of the Thread Review section in newreply.

Show Your Support

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

Comments
  #12  
Old 02-24-2005, 02:50 PM
chriswible chriswible is offline
 
Join Date: Sep 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the double post, but it's fixed. it *should* now work for standard and WYSIWYG in IE and Mozilla. note the additional file edit.
Reply With Quote
  #13  
Old 02-25-2005, 04:30 PM
Snow's Avatar
Snow Snow is offline
 
Join Date: Jul 2004
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think it's working now, Thank you it's a great hack!

Oh I did have to do some very very minor edits to thevbulletin_editor.js edit. For some reason it doesn't work in firefox ifthe { and } are not on seperate lines.

Code:
function do_quote_hack(quotestring,is_ie)
{
	if (document.getElementById('htmlbox'))
	{
		if (is_moz)
		{
			moz_insert_smilie('<br>'+quotestring+'<br>');
		}
		else
		{
			document.getElementById('htmlbox').innerHTML += quotestring;
		}
	}
	else
	{
		document.vbform.message.value += quotestring;
	}
}
Reply With Quote
  #14  
Old 02-25-2005, 08:40 PM
chriswible chriswible is offline
 
Join Date: Sep 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snow
I think it's working now, Thank you it's a great hack!

Oh I did have to do some very very minor edits to thevbulletin_editor.js edit. For some reason it doesn't work in firefox ifthe { and } are not on seperate lines.
Noted and edited, thank you. My bracketing pisses off my compsci teacher also.

Glad you like the hack.
Reply With Quote
  #15  
Old 04-04-2006, 06:06 AM
Binoy Binoy is offline
 
Join Date: Mar 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work for vb 3.5.x????
Reply With Quote
  #16  
Old 07-05-2006, 07:39 PM
FunaGuy's Avatar
FunaGuy FunaGuy is offline
 
Join Date: Dec 2005
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="Red">its working with vb 3.5.4 ??</font>
Reply With Quote
  #17  
Old 04-11-2008, 11:53 PM
aisais aisais is offline
 
Join Date: Jan 2005
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FunaGuy View Post
its working with vb 3.5.4 ??
Is it?
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 07:01 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.04163 seconds
  • Memory Usage 2,275KB
  • Queries Executed 21 (?)
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
  • (2)bbcode_html
  • (2)bbcode_php
  • (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
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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