Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 07-13-2003, 02:58 AM
vmatt21 vmatt21 is offline
 
Join Date: Jul 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default $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>
Reply With Quote
  #2  
Old 07-13-2003, 12:24 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The $messagevariable doesn't exist - must be a hack you have installed.
Reply With Quote
  #3  
Old 07-13-2003, 12:51 PM
vmatt21 vmatt21 is offline
 
Join Date: Jul 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 07-13-2003, 01:08 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?)
Reply With Quote
  #5  
Old 07-13-2003, 01:53 PM
vmatt21 vmatt21 is offline
 
Join Date: Jul 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Attached Images
File Type: gif messagearea.gif (27.1 KB, 0 views)
Reply With Quote
  #6  
Old 07-13-2003, 02:11 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
eval('$messagearea = "' fetch_template($templatename) . '";'); 
Reply With Quote
  #7  
Old 07-13-2003, 04:37 PM
vmatt21 vmatt21 is offline
 
Join Date: Jul 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Gary! That did it!
Reply With Quote
  #8  
Old 07-13-2003, 05:55 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem
Reply With Quote
Reply

Thread Tools
Display Modes

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 03:56 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.05655 seconds
  • Memory Usage 2,257KB
  • Queries Executed 14 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete