
05-10-2005, 02:31 AM
|
 |
|
|
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Spinball
Erwin, I'm trying to integrate the standard vB posting message box with smilies and BBcode stuff etc.
I've had a stab based on the goings on in newthread.php and the newthread template, and have nearly got it going.
In the template I added $messagearea.
And in my form.php I added
PHP Code:
$phrasegroups = array('threadmanage', 'posting');
$specialtemplates = array(
'bbcodecache'
);
require_once('./includes/functions_newpost.php');
require_once('./includes/functions_editor.php');
require_once('./includes/functions_bigthree.php');
near the top and at the bottom
PHP Code:
construct_edit_toolbar($newpost['message'], 0, $foruminfo['forumid'], $foruminfo['allowsmilies']);
just before
PHP Code:
eval('print_output("' . fetch_template('form_new') . '");');
The only problem is that the buttons (e.g. the B (bold) button) don't highlight when mouse overed and when clicking them, nothing happens.
Submitting the forum works ok using $message.
Can you help at all?
|
Ahhh...  I wish I had time to look into that, but I don't. It's to do with the javascript files - make sure they are included. And they are being referred to correctly.
|