Thread Rating:
  • 10 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] View Unread Posts
So what is the result @ThePetro?
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
It works Smile
Reply
I installed v1.13 of this plugin a couple of days ago, and some members have reported problems with it. Specifically, one member reported the following error message:

"SQL Error:1406 - Data too long for column 'ipaddress' at row 1"

They didn't specify what the query was (it probably didn't look important to them); however, I did find another similar thread here, where it was stated that the error was with the "mybb_searchlog" table. The thing is, I checked my equivalent table, and the 'ipaddress' column here was a VARBINARY(16), which should be large enough to accommodate an IPv6 address!

So, does anyone know how I might be able to fix this?
Reply
(2019-04-18, 08:50 AM)Kyng Wrote: I checked my equivalent table, and the 'ipaddress' column here was a VARBINARY(16), which should be large enough to accommodate an IPv6 address!

So, does anyone know how I might be able to fix this?

When the IPv6 addresses are set to be anonymized, they will be stored as a much longer string.

I set the field to VARBINARY(70) and the error is gone now.

2019 and some plugins still don't support IPv6 correctly...
Reply
Ever since updating to the latest version several users have reported that even after the mark all posts as read, when using this mod threads they've already marked continue to show up. Rolling back to 1.12 fixes the problem.
Reply
1.11 is last working version for me
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
So, I installed this plugin and it is working fine for me.

Except, I have a custom design and can not find how to integrate the "unread post counter".

Do anybody have the code snippet for me, that I can put into a template to show the counter?
Reply
(2019-12-26, 07:49 PM)skrilaxrev Wrote: So, I installed this plugin and it is working fine for me.

Except, I have a custom design and can not find how to integrate the "unread post counter".

Do anybody have the code snippet for me, that I can put into a template to show the counter?

Could somebody please send me the placeholder code for the unread post counter in the menu section?

I guess, the plugin didn't recognized my template structure, so the placeholder for the counter is missing.
Reply
Compare it with the stock default theme or open a plugin file and find template changes there
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
Actually, there is already a template for the counter:

<li id="unreadCounter"><a href="{$mybb->settings['bburl']}/search.php?action=unreads">{$lang->unreadPostsLink} {$unreadPostsCounter}</a></li>

But if I copy {$unreadPostsCounter} and insert it into the header template, nothing is shown.

Also, I can't find any template changes in the plugin file.

I saw a counter on other forums. How did they made it? Can anybody help?

I guess, the templates will be inserted into other templates with another code, I don't have, because of my modified templates.

The counter is also not working in a fresh installed version of the forum.

The button is there now, but no counter.

Unread posts counter in settins is on.

(2019-01-22, 02:25 PM)lukasamd Wrote: Yep, it's only minor update to fix version info (I forgot about this last time)

How to get the unread posts counter into the template?

Could you please give advice?

I know, you are inactive, but hoping for help anyway.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)