View Single Post
Old April 13th, 2006, 04:17 PM   #5 (permalink)
JoyB
Member
Verified Customer
 
Join Date: Jul 2004
Location: UK
Posts: 90
Hi,

This looks exactly like what I need to fix my Gallery, unfortunately looking at the instructions in the .txt file, I can't find the parts I have to replace in my "newreply.php" file.

I've searched all through the file but I can't find any reference to:

Quote:
$message = $vbulletin->input->clean_gpc('p', 'message', TYPE_NOHTML);
or the second part:

Quote:
/// no WYSIWYG quick fix
$post['message'] = $vbulletin->GPC['message'];
/*
// WYSIWYG
if ($wysiwyg)
{
require_once('./includes/functions_wysiwyg.php');
$post['message'] = convert_wysiwyg_html_to_bbcode($message);
}

// Normal editor
else
{
$post['message'] = $vbulletin->GPC['message'];
}
*/

// Quote from quickreply
if ($_POST['quickreply'])
{
$postinfo = $db->query_first("SELECT username, title, pagetext FROM " . TABLE_PREFIX . "adv_gallery_posts WHERE postid = '$postid'");

$vbulletin->options['quotetitle'] = 0;
if ($vba_options['images_quotetitle'] AND !$post['title'])
{
$vbulletin->options['quotetitle'] = 1;
}
$post['title'] = fetch_quote_title($post['title'], $postinfo['title']);

$originalposter = fetch_quote_username($postinfo['username']);
$pagetext = strip_quotes($postinfo['pagetext']);
eval('$quotemessage = "' . fetch_template('newpost_quote', 1, 0) . '";');
$post['message'] = "$quotemessage $post[message]";
$newpost['message'] = "$quotemessage $post[message]";
}
Any help would be appreciated.
JoyB is offline