MyBBHacks.com Plugins for  MyBB

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
display bug from index to gallery page when using Unread Posts plugin
#1
I know I'm not Pro (yet), but I found a small bug.  I use the "Unread Posts" plugin, and this link disappears when I view the Gallery, then re-appears on every other page.  Please see attached screenshots.  Thanks!


Attached Files Thumbnail(s)
       
-=zNet Alpha Infinity Forums - Horror | Macabre | Kittens=-
Reply
#2
Probably because that plugin's language file is no longer loaded?That would be my guess.
Like what I do? Support me at https://www.patreon.com/vbgamer45/
Reply
#3
Yeah makes sense. I'll mess around with the templates, see what I can do. Thanks! Smile
-=zNet Alpha Infinity Forums - Horror | Macabre | Kittens=-
Reply
#4
(11-01-2016, 09:32 AM)MyBBHacks Wrote: Probably because that plugin's language file is no longer loaded?That would be my guess.

and how do I load them? asked stupid?
Reply
#5
i have this in the gallery.lib.php:


PHP Code:
function gallery_header()
{
   global $headerinclude$context$header$templates$lang;
   $lang->load("unreadPosts");
   eval("\$unreadPosts .= \"" $templates->get("unreadPosts_link") . "\";");
   $header str_replace('<!-- UNREADPOSTS_LINK -->'$unreadPosts$header);

    if (isset($context['linktree']))
    foreach($context['linktree'] as $linktree)
    {
        add_breadcrumb($linktree['name'], $linktree['url']);
    }

    echo parse_page('<html>
<head>
<title>' 
$context['page_title'] .'</title>
$headerinclude '
$context['html_headers'] . '
</head>
<body>
$header);





this works. 

but now the counter for the unread messages is missing. how does it work?
Reply
#6
It's a little tricky. For porting reasons I did not use MyBB templates when I made the plugin. You might ave to include the code for counter.
Like what I do? Support me at https://www.patreon.com/vbgamer45/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)