Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: teos55 on May 21, 2011, 01:22:00 PM

Title: Unread posts in board description
Post by: teos55 on May 21, 2011, 01:22:00 PM
What is the way of showing "unread posts"  in each board description (dont know the official name)

for smf 1.1.13  default theme ?

What I mean, attached
Title: Re: Unread posts ind board description
Post by: kat on May 21, 2011, 01:27:26 PM
Not entirely sure what you want to know, Teos.

But, take a look at index.english.php, in the default theme's "languages" directory, for this line:

$txt['unread_topics_visit'] = 'Recent Unread Topics';
Title: Re: Unread posts ind board description
Post by: Illori on May 21, 2011, 01:39:42 PM
i dont think this is a feature that is supported in 1.1.1* it is a 2.0* feature.
Title: Re: Unread posts ind board description
Post by: teos55 on May 21, 2011, 01:50:53 PM
 K@, Did you have a chance to see attached file and and the marked fields ?.

Illori,  I've seen this field in a smf 1.1.13 forum, for along time. Seems can be done.

----------------------------------------------------------------------------
nb. I've tried to put a modified version of this in the  Category edit, full name:  field.

"</a href="http://www.simplemachines.org/community/index.php?action=unread;c=11">Unread Posts</a>"

  it worked, but when I click, goes to login screen, rather then showing unread.
Title: Re: Unread posts in board description
Post by: kat on May 22, 2011, 08:09:19 AM
Yeah, I did.

I must've simply misunderstood what you're attemting, though, I'm afraid.
Title: Re: Unread posts in board description
Post by: teos55 on May 23, 2011, 04:15:15 AM
 OK, this performs what I want, ( a clickable "unread posts" text on the Board description, and performs unread posts only specific to that post ) but only alignment is missing.

<a class="unreadlink" href="http://www.mysite.org/index.php?action=unread;c=22">*** UNREAD POSTS *** </a>

Now the question is how to align to the right ?
Title: Re: Unread posts in board description
Post by: teos55 on May 23, 2011, 05:13:31 AM
 After further search, I found  this mod http://custom.simplemachines.org/mods/index.php?mod=609

  But this is not language dependent. Puts the text "unread post" to the category in boardindex.template.php.

How can I make it language dependent ?
Title: Re: Unread posts in board description
Post by: kat on May 23, 2011, 07:59:05 AM
If you ask here:

http://www.simplemachines.org/community/index.php?topic=146956.0

They'll have a far better idea than us.

It's the mod's support topic. :)
Title: Re: Unread posts in board description
Post by: teos55 on May 23, 2011, 08:13:07 AM
I did K@,
last update was 2.10.2010 :-) Hoping an answer in that topic. Thanks