Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 x_forumdisplay_thread_gotounread not working
brad-t Offline
Member
***
Posts: 120
Joined: Apr 2011
Post: #1
x_forumdisplay_thread_gotounread not working
Can anyone imagine why? It is still showing the default gotounread style even though I've appended the proper prefix.
07-04-2012 01:02 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Online
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: x_forumdisplay_thread_gotounread not working
I presume you meant prepended.

Seems to work here.  I guess double-check that you don't have duplicates of the template in other template sets.

My Blog
07-04-2012 08:10 PM
Find all posts by this user Quote this message in a reply
brad-t Offline
Member
***
Posts: 120
Joined: Apr 2011
Post: #3
RE: x_forumdisplay_thread_gotounread not working
I did not even know this word, haha ... thanks.

There doesn't seem to be any duplicate of the template, weird.
07-04-2012 11:26 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Online
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: x_forumdisplay_thread_gotounread not working
Try it on a clean install of MyBB, see if it works.  If it doesn't, please put down the steps to reproduce the issue.  If it does, try making modifications to the board until you encounter the issue.

My Blog
07-05-2012 09:39 PM
Find all posts by this user Quote this message in a reply
brad-t Offline
Member
***
Posts: 120
Joined: Apr 2011
Post: #5
RE: x_forumdisplay_thread_gotounread not working
Managed to fix it, it was weird. I deleted the template ... and then the template was still there when the page refreshed. Deleted it again and it disappeared. Added it again and it was working. Well, thanks!
07-07-2012 01:15 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #6
RE: x_forumdisplay_thread_gotounread not working
That happens sometime to me in not global templates, I have to revert them like 2~4 times to get them working..

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
07-07-2012 04:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Online
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #7
RE: x_forumdisplay_thread_gotounread not working
It's probably possible to create duplicate templates in MyBB because it doesn't enforce any form of constraint on the templates table.

Code:
ALTER TABLE mybb_templates ADD UNIQUE KEY (sid,title)

^ The above query should stop duplicate templates from occurring. (might also make the templates load slightly quicker perhaps?)


My Blog
(This post was last modified: 07-07-2012 08:33 AM by ZiNgA BuRgA.)
07-07-2012 08:28 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #8
RE: x_forumdisplay_thread_gotounread not working
I suppose it will trow a SQL error, right? As sometimes, wrong written plugins may also duplicate templates.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
07-07-2012 11:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Online
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #9
RE: x_forumdisplay_thread_gotounread not working
If you try to insert twice, yes.

My Blog
07-07-2012 11:50 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: