The bug I confirmed was that some redirects used $vboptions[bburl] while others did not. I thus changed all the redirects to match. The paths are not hardcoded, so the only way you would still have redirect issues is if news.php and shownews.php are not in the $vboptions[bburl] directory as you have it set.
Quote:
Originally Posted by TheMilkCarton
The actual posts do NOT have postbits when viewing replies in shownews.php and was wondering if this was intentional?? It makes it very hard to see who posted the reply as there is only a very small "Posted By" in the top of the post (which ends up being unreadable white text on a white background), instead of a very large Username and Avatar in the postbit.
|
What you are describing is the template for the article being used on the rest of the comments. This should not be happening since the posts SHOULD have their own postbits, however, if you are not missing any plugins, it may be the result of a postbit check the script runs (that I have removed for 1.0.8) even though this did not cause any problems during testing.
In shownews.php find the line:
PHP Code:
$lastcheck = ($lastfetchtype == $fetchtype) ? true : false;
and change it to:
PHP Code:
// $lastcheck = ($lastfetchtype == $fetchtype) ? true : false;
I apologize for the alt1 / thead issues, this is easily fixed by a template modification. Just pick 1 or the other, as you said.
As for incorporating the showthread hooks into news.php, this would require including class_postbit.php, which is completely unnecessary on that page.
You seem to be right about the Allow HTML permission. I confused this with the Forum Permissions Allow HTML field, which is much more general. As news.php currently stands, the bbcode_parse_start hook is called, so it is compatible with the hack in that way. Unfortunately, the reason it's not parsing is because the hack uses $post, whereas on news.php, much like on forumdisplay.php the array used is $thread. Original versions of my hack had used $post, but it conflicted with many more hacks that way.
You can modify news.php to work with the Allow Usergroups to Post HTML by doing the following edits...
Find:
PHP Code:
$thread['message'] = $bbcode_parser->parse($thread['pagetext'], $foruminfo['forumid']);
$post = $thread;
Replace with:
PHP Code:
$post = $thread;
$post['message'] = $bbcode_parser->parse($post['pagetext'], $foruminfo['forumid']);