vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   multiple qoute hack, help me finish it (https://vborg.vbsupport.ru/showthread.php?t=44000)

Zoinks 09-27-2002 04:02 PM

multiple qoute hack, help me finish it
 
My users asked me of I could make some changes so that they could quote multiple messages in 1 post.

I made a quote butten in threadreviewbit next to every post
like this:
Code:

<a href="$quotepost"><img border="0" src="{imagesfolder}/quote.gif" width="18" height="13"></a>
I also made quote.js like this.
Code:

function quote(quote) { //adds the selected quote to the message field
        document.vbform.message.value += quote+"\n";
        document.vbform.message.focus();
}

then I changed newreply.php next to line 470 or so to this:
PHP Code:

                $reviewmessage bbcodeparse($post[pagetext],$threadinfo[forumid],$post[allowsmilie]);    
            }
            
$quotepost 'javascript:quote(\'[quote]\n[b]'.$username.' wrote:[/b]\n[i]'.$post[pagetext].'[/i]\n[/quote]\')'
            eval(
"\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";");
        } else {
            break;
        } 

Ok, now.. what all this should do is the following. A user clicks on the button and the javascript directly puts the quoted text in the $message field. This kinda works... the only problem is that it does not functions completely right. the text does not contain anymore blank lines or new lines. I also installed the /me tag and it also doesn't work anymore..

can anyone help me?
replacing $post[pagetext] with $message or $reviewmessage does not work well also

Zoinks 09-27-2002 04:03 PM

humz.. the php is not right... it leaves out the slashes before the n

Xenon 09-27-2002 04:12 PM

are you using Chens hack?
https://vborg.vbsupport.ru/showthrea...threadid=36896

Zoinks 09-27-2002 04:17 PM

Nope. I don't want to use the checkbox hack. The way I try to make it uses javascript to instert the posts directly in the message field. Just like the insertion of smilies.


All times are GMT. The time now is 01:41 AM.

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.00954 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete