Advertisement:

Author Topic: Show unread posts - display formatting gone awry in Theme  (Read 1604 times)

Offline laetabi

  • Full Member
  • ***
  • Posts: 428
  • Gender: Male
Show unread posts - display formatting gone awry in Theme
« on: November 20, 2008, 06:08:40 PM »
SMF 2.0b4 - Default Theme fine, heavily customised Retro Green Theme has the following issue:

When users click on 'Show unread posts since last visit' the table of posts appears but the 'Mark as read' button used in the theme is being incorrectly placed. I'm sure I can fix this if somebody can tell me what php file generates this page view?

The theme works fine for all other instances of ad hoc post listings such as 'Show Recent posts' or 'Show replies to own posts'? Will send files if it helps to solve but need to know which ones!

Images below show what I am talking about... Show_unread marked with the formatting issues, Show_replies is all correct as it should be.

Any help really appreciated as this is the only bug in my Club site.
« Last Edit: December 04, 2008, 11:21:07 AM by willerby »
What type of washing machine is September?

An autumnatic. :)

Offline laetabi

  • Full Member
  • ***
  • Posts: 428
  • Gender: Male
Re: Show unread posts - display formatting gone awry in Theme
« Reply #1 on: November 22, 2008, 04:37:07 AM »
Bump... <sorry>
What type of washing machine is September?

An autumnatic. :)

Offline laetabi

  • Full Member
  • ***
  • Posts: 428
  • Gender: Male
Re: Show unread posts - display formatting gone awry in Theme
« Reply #2 on: November 23, 2008, 10:59:50 AM »
Well, further investigations have revealed that the Recent. template.php is the culprit. As this sits in the Default SMF Theme rather than in the custom Theme I am using I think we can assume that the code was designed to display tabs rather than buttons and I'll need a manual fix to get the formatting right.

Unfortunately my coding is not good enough to sort this - can aybody see what is going wrong here

File attached. Thanks
What type of washing machine is September?

An autumnatic. :)

Offline laetabi

  • Full Member
  • ***
  • Posts: 428
  • Gender: Male
Re: Show unread posts - display formatting gone awry in Theme
« Reply #3 on: December 04, 2008, 11:21:58 AM »
Fixed through trail and error using code from other template files as a guide...
What type of washing machine is September?

An autumnatic. :)