Topic: [release] different topics list display

Hello

Another small extension. It's changing way to display topics list on viewforum.php.
Removing "by User" and moving it into link title (hover). As an extra it's adding info about topic creation date.

http://img301.imageshack.us/img301/9908/searchei4.jpg


I'm using it on my forum, because it's not important who created topic and subjects are usually long.
I'm just sharing wink

Version 1.0
y_viewforum.zip

YonasH's repository + Extensions Directory = PunBB Extensions Online Library (in progress....)

Away. I will be back soon.

Re: [release] different topics list display

It'd be nice to have an extension that displays an excerpt of the message as the title of the link.

Specific, but useful. Thanks. smile

Re: [release] different topics list display

using it.
loving it.
thanks

Re: [release] different topics list display

REQUEST:
I request that you do the same with the "latest post" column, hiding the author of the last post unless you mouse_over the link.

I hope this can be done in a future release?

Re: [release] different topics list display

I like it.. thanks!!

But sadly it doesnt do the same with "Most Recent Posts" (FalconFour's extension)

http://punbb.informer.com/forums/topic/ … -on-index/

Re: [release] different topics list display

Khalid-S wrote:

I like it.. thanks!!

But sadly it doesnt do the same with "Most Recent Posts" (FalconFour's extension)

http://punbb.informer.com/forums/topic/ … -on-index/

...and it will never work. There is no hooks in active_topics extension
only thing which you can do is change it manually:

change:

$item_title['link'] = '<a href="'.forum_link($forum_url['post'], $cur_set['last_post_id']).'">'.forum_htmlencode($cur_set['subject']).'</a>';

to:

$item_title['link'] = '<a href="'.forum_link($forum_url['post'], $cur_set['last_post_id']).'" title="'.format_time($cur_topic['posted'], FORUM_FT_DATE).' '.sprintf($lang_forum['Topic starter'], forum_htmlencode($cur_topic['poster'])).'">'.forum_htmlencode($cur_set['subject']).'</a>';

and this:

$item_body['subject']['title'] = '<h3 class="hn"><span class="item-num">'.forum_number_format(++$item_num).'</span> '.implode(' ', $item_title).'</h3> <em> by '.forum_htmlencode($cur_set['poster']).'</em>';

to:

$item_body['subject']['title'] = '<h3 class="hn"><span class="item-num">'.forum_number_format(++$item_num).'</span> '.implode(' ', $item_title).'</h3>';

didn't test, but should work smile

YonasH's repository + Extensions Directory = PunBB Extensions Online Library (in progress....)

Away. I will be back soon.

Re: [release] different topics list display

Thanks man.. It worked but there is one small problem. It doesn't show the name of the user hmm

http://b1.s3.p.quickshareit.com/files/picture4a36c4.png

Re: [release] different topics list display

oh... wink

change $item_title['link'] to

$item_title['link'] = '<a href="'.forum_link($forum_url['post'], $cur_set['last_post_id']).'" title="'.format_time($cur_set['has_posted'], FORUM_FT_DATE).' '.sprintf($lang_forum['Topic starter'], forum_htmlencode($cur_set['poster'])).'">'.forum_htmlencode($cur_set['subject']).'</a>';

now should be ok

YonasH's repository + Extensions Directory = PunBB Extensions Online Library (in progress....)

Away. I will be back soon.