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
  #2  
Old 02-19-2005, 02:16 AM
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshots?
Reply With Quote
  #3  
Old 02-19-2005, 03:01 AM
chriswible chriswible is offline
 
Join Date: Sep 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not much visual in this hack, but okay.
Reply With Quote
  #4  
Old 02-19-2005, 06:35 AM
saree saree is offline
 
Join Date: Aug 2002
Location: AbUdHaBi
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack that going to save me alot of quoting time. i trust you when you said that you tried it and it's fully working with no errors.

thanks again. :smoke:
Reply With Quote
  #5  
Old 02-19-2005, 09:34 AM
Snow's Avatar
Snow Snow is offline
 
Join Date: Jul 2004
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It doesn't work for me When I click on the multi-quote (when posting a new reply), nothing happens other than adding a # to the end of the url.
Reply With Quote
  #6  
Old 02-19-2005, 06:09 PM
chriswible chriswible is offline
 
Join Date: Sep 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snow
It doesn't work for me When I click on the multi-quote (when posting a new reply), nothing happens other than adding a # to the end of the url.
Do you get a javascript error? if so, does it occur on loading the page or when you click?

EDIT: Er... I just visited your forums and it works for me. :ermm: What browser are you using?
Reply With Quote
  #7  
Old 02-19-2005, 06:53 PM
Snow's Avatar
Snow Snow is offline
 
Join Date: Jul 2004
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chriswible
Do you get a javascript error? if so, does it occur on loading the page or when you click?
Nope, no errors that I've noticed, it just doesn't so anything (at least for me) :disappointed:

Quote:
EDIT: Er... I just visited your forums and it works for me. :ermm: What browser are you using?
:surprised:
Firefox 1.0
Reply With Quote
  #8  
Old 02-19-2005, 09:24 PM
chriswible chriswible is offline
 
Join Date: Sep 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeesh, I tried firefox 1.0 and it still worked. :speechless:

Maybe you should try polling your users to see if they're having problems. :ermm:
Reply With Quote
  #9  
Old 02-21-2005, 04:41 AM
Snow's Avatar
Snow Snow is offline
 
Join Date: Jul 2004
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chriswible
Yeesh, I tried firefox 1.0 and it still worked. :speechless:

Maybe you should try polling your users to see if they're having problems. :ermm:
OKI've found out what the problem is (I think). I tried it with theStandard Editor and it does work, but it refuses to work with theWYSIWYG editor. I will run a poll to see if anyone has managed toget it working with the WYSIWYG editor as you suggested.
Reply With Quote
  #10  
Old 02-21-2005, 05:21 AM
chriswible chriswible is offline
 
Join Date: Sep 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, you got it. how n00bish of me. I'll get right to fixing that...
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:19 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.07061 seconds
  • Memory Usage 2,304KB
  • Queries Executed 23 (?)
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)bbcode_code
  • (2)bbcode_html
  • (2)bbcode_php
  • (4)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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