PDA

View Full Version : Is this possible?


Brad
12-31-2002, 07:46 AM
Ok im looking to add something to my quick reply box based off some perl code but im having tourble converting it.

What im basicly trying to do it code some php and stick it somehwere in functions.php that will grab the contents of the post (just $post[message]) and surrond it with the [quote] and [b] tags (trying to simulater the effect you get when you hit this quote button).

this would also pull the browser to the quick reply box with the quoted text in there. I want to do this via a link somehow.

Im really at a lose here. any ideas?

Dean C
12-31-2002, 09:00 AM
Well i had a think about this and the best thing to do would be create a variable in showthread.php related to the 'post[message]' variable in functions.php somehow..

This is the code taken from functions.php for that:


$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);


So you'd somehow re-call that information in showthread.php..

Then i'm officially baffled hehe :p

Chris M
12-31-2002, 12:44 PM
Couldn't you just change the default Value of the replybox using some JS, so that it automatically adds "text" around the text?

Satan

Brad
01-01-2003, 02:01 AM
Satan: Im trying to do something simlar to vB3's quick reply box. Adding a "quick quote" button to the postbit so you dont have to leave the thread.

Still at a lose here. anyone?

Chris M
01-01-2003, 09:56 AM
Hmmm...

Does it have to automatically put the quote into the post?

You could make it like vB3 have it (which probably would be easier), where you click it, and it has a tickbox saying "Quote this Post?" or something;)

Satan

Dean C
01-01-2003, 11:36 AM
Yea you could convert xiphoid/firefly's hack over with a little bit of javascript

- miSt