Re: [Extension release] Active Topics
I've fixed lang directory where I'd had wrongly named file. It should work fine, now. And well, because I have this extension for few days on my own forum and it's working correctly I changed version to 1.0.0 (removed Beta).
Enjoy
Re: [Extension release] Active Topics
Will this show the latest active topics from all sub forums?
Re: [Extension release] Active Topics
The database Query asks for last X topics, which can be seen by the user, so I guess it should work for sub forums as well (but I haven't tried this mod, maybe could you give me a link for it and I'll check if it works correctly).
$query = array(
'SELECT' => 't.id, t.poster, t.subject, t.posted, t.first_post_id, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to',
'FROM' => 'topics AS t',
'JOINS' => array(
array(
'LEFT JOIN' => 'forum_perms AS fp',
'ON' => '(fp.forum_id=t.forum_id AND fp.group_id='.$forum_user['g_id'].')'
)
),
'WHERE' => '(fp.read_forum IS NULL OR fp.read_forum=1) AND t.moved_to IS NULL',
'ORDER BY' => 't.last_post DESC',
'LIMIT' => $forum_config['p_active_topics']
);
Re: [Extension release] Active Topics
I would not use this extension yet...as the developer packaged it incorrectly (for starters)...
If someone's too lazy to put it in the correct directory before they package it, you gotta wonder about the code inside it.
Re: [Extension release] Active Topics
@chovy:
1. constructive criticism would include the solution (i.e. how to package it correctly)
2. what don't you like about the code, what would you improve
Re: [Extension release] Active Topics
Hey, sorry about that -- guess I was having a bad day.
It should be packaged with .zip and be contained in a sub-folder:
zip active_topics.zip ./active_topics/
tar czvf active_topics.tgz ./active_topics/
...so that when it is unzipped, it creates the ./active_topics/ directory.
Most of the extensions I've seen are .zip, although .tgz (tar/gzip) is probably fine. Rar is probably the last one I would use (most people aren't familiar with how to use rar).
I haven't looked at the code itself, my gripe was simply an observation that .rar and not containing the parent directory often indicates "n00bage" :-)
Sorry if it came across the wrong way. It was meant as constructive criticism.
Re: [Extension release] Active Topics
ok no worries
thx for contribution...
Re: [Extension release] Active Topics
link not working.
10 2010-07-15 22:21 (edited by Grez 2010-07-15 22:21)
Re: [Extension release] Active Topics
@SuperMAG Link fixed
Re: [Extension release] Active Topics
New version added to first post (v1.1) - fixed bug with using default language. And added Slovak translation
Re: [Extension release] Active Topics
Thanks.
Re: [Extension release] Active Topics
You're not going to alter the extension for 1.4?
Re: [Extension release] Active Topics
Changelog:
Haven't really done any changes as it wasn't necessary, just changed <maxtestedversion> to 1.4.1
Re: [Extension release] Active Topics
If I want to change
item_starter
in your manifest.xml on line 140
to forum name
f.forum_name
the post is in....
What's the best way to do this in your extension?
Re: [Extension release] Active Topics
@KeyDog: https://github.com/Grez/PunBB-Active-To … f6d0403ab1
Re: [Extension release] Active Topics
Brilliant
Thanks!
Re: [Extension release] Active Topics
Can we ask/suggest ?
I would like an anchor #active written in the core at the beginning of the active topics box.
I would prefer, in my case, active topics at the top, upon forums, thus a option where to put it would be nice (or a tabbed dual option : tab normal view, tab active topic view + cookie). I still prefer how Vanilla list topics and would love to have a punbb more linear oriented.
Anyway, this is a must have extension I have used all the time and be happy to get for 1.4 ; thanks for your work.
Re: [Extension release] Active Topics
I would prefer, in my case, active topics at the top, upon forums, thus a option where to put it would be nice (or a tabbed dual option : tab normal view, tab active topic view + cookie).
If you want the topics at top of page, just change first hook
from
in_stats_pre_info_output
to
in_main_output_start