Quote:
Yesterday at 12:15 AM Meltdown said this in Post #2
Open newthread.php.
Add the following to the top:
<?
if ($HTTP_GET_VARS['forumid']== '2') {
$defaultmessage = 'message 1';
} elseif ($HTTP_GET_VARS['forumid']== '3') {
$defaultmessage = 'message2';
} else {
echo ' ';
}
?>
Then open the 'newthread' template and add $defaultmessage between the <textarea> tags.
|
Please excuse to my poor php programming.. Actually, I don't know the php programming !!! I have already tried but it did't show. May be you can help to figure out or give more specific details where should I put the code.
In the Template, I add the $defaultmessage as follow.
- New Posting Template
- NewThread
<td><textarea name="message" rows="20" cols="$textareacols" wrap="virtual" tabindex="2">$defaultmessage $message</textarea>
In the Newthread.php, I add the lines as follow.
<?php
error_reporting(7);
if ($HTTP_GET_VARS['forumid']== '889') {
$defaultmessage = 'message 1';
} elseif ($HTTP_GET_VARS['forumid']== '889') {
$defaultmessage = 'message2';
} else {
echo ' ';
}
$templatesused = "newpost_postpreview,error_nosubject,redirect_post thanks,email_moderator,emailsubject_moderator,newt hread_postpoll,newpost_attachment,newpost_disables miliesoption,forumrules,newthread,posticons,postic onbit";
$templatesused.=",vbcode_smilies,vbcode_smiliebit, vbcode_smilies_getmore,vbcode_buttons,vbcode_sizeb its,vbcode_fontbits,vbcode_colorbits";
require("./global.php");
// get decent textarea size for user's browser
$textareacols = gettextareawidth();
:
:
: