1 (edited by Grez 2011-12-25 16:35)

Topic: [Extension release] Active Topics

Info:
This extension shows last X (you can set it Administration -> Settings -> Active topics shown) topics on forum index page.

Preview:
Here (at the bottom) wink

Download:
v1.1 .zip

Eraversum - scifi browser-based online webgame

2

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

Eraversum - scifi browser-based online webgame

Re: [Extension release] Active Topics

Will this show the latest active topics from all sub forums?

4

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']
);
Eraversum - scifi browser-based online webgame

5

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

7

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 big_smile
thx for contribution...

Re: [Extension release] Active Topics

link not working.

MyFootballCafe.com  is Now Online!

10 (edited by Grez 2010-07-15 22:21)

Re: [Extension release] Active Topics

@SuperMAG Link fixed

Eraversum - scifi browser-based online webgame

Re: [Extension release] Active Topics

thx it's works
http://forum.pinang.or.id/
wink

12

Re: [Extension release] Active Topics

New version added to first post (v1.1) - fixed bug with using default language. And added Slovak translation  smile

Eraversum - scifi browser-based online webgame

13

Re: [Extension release] Active Topics

Thanks.

14

Re: [Extension release] Active Topics

You're not going to alter the extension for 1.4?

15

Re: [Extension release] Active Topics

Changelog:

Haven't really done any changes as it wasn't necessary, just changed <maxtestedversion> to 1.4.1

Eraversum - scifi browser-based online webgame

16

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?

17

Re: [Extension release] Active Topics

@KeyDog: https://github.com/Grez/PunBB-Active-To … f6d0403ab1 smile

Eraversum - scifi browser-based online webgame

18

Re: [Extension release] Active Topics

Brilliant
Thanks!

19

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.

20

Re: [Extension release] Active Topics

abclf wrote:

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

21

Re: [Extension release] Active Topics

Interesting ; thank you KeyDog.