A fix to one of the quirks I mentioned above:
Quote:
Originally Posted by MrEyes
The mod seems to ignore thread prefixes and does not display these anywhere.
|
To fix this, open articles.php and find (approx line 372)
Code:
$threads = $threads = $db->query_read("
SELECT thread.*,thread.title AS threadtitle,thread.forumid AS forumid, post.dateline AS postdateline, post.pagetext AS preview, MIN(attachment.attachmentid) AS attachmentid, fd.extension AS extension
Change this to:
Code:
$threads = $threads = $db->query_read("
SELECT thread.*,thread.title AS threadtitle,thread.forumid AS forumid, post.dateline AS postdateline, post.pagetext AS preview, MIN(attachment.attachmentid) AS attachmentid, fd.extension AS extension, thread.prefixid
Notice the addition of ', thread.prefixid ' at the end
At approx line 390 find:
Code:
$foruminfo['allowicons'] = 1;
while($thread = $db->fetch_array($threads))
{
Immediately after this paste in:
Code:
if ($thread['prefixid'])
{
$thread['prefix_rich'] = $vbphrase["prefix_$thread[prefixid]_title_rich"];
}
You should end up with
Code:
$foruminfo['allowicons'] = 1;
while($thread = $db->fetch_array($threads))
{
if ($thread['prefixid'])
{
$thread['prefix_rich'] = $vbphrase["prefix_$thread[prefixid]_title_rich"];
}
$thread['pagetext'] = $thread['preview'];
Then, via ACP Style Manager open the 'af_articlebit' template, and find:
Code:
<h3 style="font: normal normal bold 14px/normal Tahoma, Calibri, Verdana, Geneva, sans-serif; margin: 5px 0px 0px; text-decoration: none;">
Immediately after paste in:
Code:
{vb:var thread.prefix_rich}
Save template and that is that