The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$messagearea variable - where is it?
<font face="arial">Where is the $messagevariable called from that is referenced in the "newthread" template?
I can't find the right file, I've looked in newthread.php, in the templates, in the includes/functions_newpost.php... Any helpers out there? </font> |
#2
|
||||
|
||||
The $messagevariable doesn't exist - must be a hack you have installed.
|
#3
|
|||
|
|||
Shoot - I meant to type:
$messagearea - (not $messagevariable). It is located in the newthread template in the templates table. Apparently, it is what calls a the WYSIWYG editor to input the new text of a message in a new post. |
#4
|
||||
|
||||
Doesn't exist either. Mind posting a screenshot where you see it in the template editor in the admin cp?
(Or, are you talking about vB 3?) |
#5
|
|||
|
|||
Sorry, I should have mentioned it - I'm using vB 3, and it's not in the template editor.
This is what it shows in the newthread template in the template table. And I've included an attachment of the screenshot of where I find it in phpMyAdmin: $stylevar[htmldoctype] <html dir=\"$stylevar[textdirection]\" lang=\"$stylevar[languagecode]\"> <head> <title>$vboptions[bbtitle] - Post New Thread</title> $headinclude <!--<script type=\"text/javascript\" type=\"text/javascript\" src=\"$vboptions[bburl]/spellcheck/spch.js\"></script>--> </head> <body$onload> $header <!-- breadcrumb --> <table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" width=\"$stylevar[tablewidth]\" align=\"center\"> <tr> <td width=\"100%\">$navbar</td> </tr> </table> <!-- /breadcrumb --> $postpreview <br /> <form action=\"newthread.php\" method=\"POST\" name=\"vbform\" onsubmit=\"return validatePost(this, this.subject.value, $vboptions[postminchars], $vboptions[postmaxchars]);\" onreset=\"vB_RESET(this);\"> <input type=\"hidden\" name=\"s\" value=\"$session[sessionhash]\" /> <input type=\"hidden\" name=\"forumid\" value=\"$forumid\" /> <input type=\"hidden\" name=\"do\" value=\"postthread\" /> <input type=\"hidden\" name=\"posthash\" value=\"$posthash\" /> <input type=\"hidden\" name=\"poststarttime\" value=\"$poststarttime\" /> <table cellpadding=\"$stylevar[outerborderwidth]\" cellspacing=\"0\" border=\"0\" class=\"tborder\" width=\"$stylevar[tablewidth]\" align=\"center\"><tr><td> <table cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\"> <tr> <td class=\"tcat\" colspan=\"2\"><b>Post New Thread</b></td> </tr> <tr> <td class=\"thead\" colspan=\"2\"><span class=\"smallfont\"><b>Post new thread in forum: $foruminfo[title]</b></span></td> </tr> $usernamecode <tr class=\"alt2\"> <td class=\"alt2\"><b>Subject:</b></td> <td class=\"alt2\"><input type=\"text\" class=\"bginput\" name=\"subject\" value=\"$subject\" size=\"40\" maxlength=\"85\" tabindex=\"1\" /></td> </tr> $posticons <tr> <td class=\"alt2\" valign=\"top\" nowrap=\"nowrap\"><b>Message:</b> <p><span class=\"smallfont\"> See Forum Rules (below) for<br /> more information about what<br /> codes you are allowed to use<br /> in your posts. </span></p> $smiliebox</td> <td class=\"alt2\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tr valign=\"top\"> <td> <!-- WYSIWYG / non WYSIWYG posting box --> $messagearea <!-- end WYSIWYG / non WYSIWYG posting box --> </td> </tr> </table> </td> </tr> <tr> <td class=\"alt1\" valign=\"top\"><b>Options:</b></td> <td class=\"alt1\" valign=\"top\"><span class=\"smallfont\"> <label for=\"cb_parseurl\"><input type=\"checkbox\" name=\"parseurl\" value=\"1\" id=\"cb_parseurl\" $checked[parseurl] /><b>Automatically parse URLs:</b> automatically adds and around internet addresses.</label> $disablesmiliesoption <br /><label for=\"cb_signature\"><input type=\"checkbox\" name=\"signature\" value=\"1\" id=\"cb_signature\" $checked[signature] /><b>Show Signature:</b> include your profile signature. Only registered users may have signatures.</label> </span></td> </tr> <tr> <td class=\"alt2\" valign=\"top\"><b>Thread Subscription:</b></td> <td class=\"alt2\" valign=\"top\"> <select name=\"emailupdate\"> <option value=\"9999\" $emailchecked[9999]>No Subscription</option> <option value=\"0\" $emailchecked[0]>Subscribe without email notification</option> <option value=\"1\" $emailchecked[1]>Instant notification by email</option> " . (( $bbuserinfo['icq'] != '' ) ? (" <option value=\"4\" $emailchecked[4]>Instant notification by ICQ (needs Email Express enabled in ICQ)</option> ") : (""))." <option value=\"2\" $emailchecked[2]>Daily updates by email</option> <option value=\"3\" $emailchecked[3]>Weekly updates by email</option> </select> " . (($folderbits) ? (" Folder: <select name=\"folderid\"> $folderbits </select> ") : (""))." </td> </tr> $attachmentoption " . (($forumperms & CANPOSTPOLL) ? (" <tr> <td class=\"alt2\" valign=\"top\"><b>Post a poll:</b></td> <td class=\"alt2\"><span class=\"smallfont\"><label for=\"cb_postpoll\"><input type=\"checkbox\" name=\"postpoll\" value=\"yes\" id=\"cb_postpoll\" $checked[postpoll] /><b>Yes! post a poll</b></label><br /> Number of options initally: <input type=\"text\" class=\"bginput\" size=\"10\" name=\"polloptions\" value=\"$polloptions\" /> (Maximum: $vboptions[maxpolloptions])</span></td> </tr> ") : (""))." $threadmanagement </table> </td></tr></table> <br /> <table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" width=\"$stylevar[tablewidth]\" align=\"center\"> <tr> <td align=\"center\"> <input type=\"submit\" class=\"button\" name=\"sbutton\" value=\"Submit New Thread\" accesskey=\"s\" tabindex=\"4\" /> <input type=\"submit\" class=\"button\" name=\"preview\" value=\"Preview Post\" accesskey=\"p\" tabindex=\"5\" /> <!--<input type=\"button\" class=\"button\" value=\"Spell Check\" onclick=\"var f=document.forms['vbform']; doSpell( '$vboptions[spellchecklang]', f.message, '$vboptions[bburl]/spellcheck/sproxy.php', true);\" tabindex=\"4\" />--> </td> </tr> </table> </form> <table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" width=\"$stylevar[tablewidth]\" align=\"center\"> <tr> <td><span class=\"smallfont\"><b>Forum Rules:</b><br />$forumrules</span></td> </tr> </table> $footer </body> </html> |
#6
|
||||
|
||||
If you said you were using vB 3 from the start, then that would've been easier
Anyways, $messagearea is in includes/functions_newpost.php Look for PHP Code:
|
#7
|
|||
|
|||
Thanks Gary! That did it!
|
#8
|
||||
|
||||
No problem
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|