Topics list support

Started by T@by, November 08, 2008, 05:34:22 AM

Previous topic - Next topic

T@by

Link to Mod

This mod adds automatic topic list feature.

Package Information

Latest Version: 1.03 Built for: SMF 1.1.6,  1.1.7,  1.1.8
Latest Version: 1.04 Built for: SMF 2.0 RC1

What is this?

This mod add two bbcodes which allows you to create a post with an automatic, alphabetically ordered and referenced list of the topics presents in each board of your forum.
[TAGS] in titles are ignored.
Sticky topics are ignored.

Sintax:
[TLIST]startletter(s)|endletter(s)[/TLIST]

Example:

[tlistindex]0 - 9|A|B|C|D[/tlistindex]
[TLIST]0|9[/TLIST]
[TLIST]A|[/TLIST]
[TLIST]B|[/TLIST]
[TLIST]C|[/TLIST]
[TLIST]D|[/TLIST]

*****************************************
Instructions:

To install, simply upload the entire zip file to the package manager (Admin -> Package Manager -> Download New Packages).

*****************************************
Custom Themes:

To install this mod on a theme other then Core-Default you will need to follow the xml modification file.

Marcus Forsberg


Darknico

Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Nibogo

#3
Just AMazing , This is really useful to my forum

This is the code for all the letters:

[tlistindex]0 - 9|A|B|C|D|E|F|G|H|I|J|K|L|M|N|Ñ|O|P|Q|R|S|T|U|V|W|X|Y|Z[/tlistindex]
[tlist]0|9[/tlist]
[tlist]A|[/tlist]
[tlist]B|[/tlist]
[tlist]C|[/tlist]
[tlist]D|[/tlist]
[tlist]E|[/tlist]
[tlist]F|[/tlist]
[tlist]G|[/tlist]
[tlist]H|[/tlist]
[tlist]I|[/tlist]
[tlist]J|[/tlist]
[tlist]K|[/tlist]
[tlist]L|[/tlist]
[tlist]M|[/tlist]
[tlist]N|[/tlist]
[tlist]Ñ|[/tlist]
[tlist]O|[/tlist]
[tlist]P|[/tlist]
[tlist]Q|[/tlist]
[tlist]R|[/tlist]
[tlist]S|[/tlist]
[tlist]T|[/tlist]
[tlist]U|[/tlist]
[tlist]V|[/tlist]
[tlist]W|[/tlist]
[tlist]X|[/tlist]
[tlist]Y|[/tlist]
[tlist]Z|[/tlist]


Maybe you can add childboards support

I mean create the topic list in a board and include the topics of the child-boards too

Thanks

T@by

Quote from: NIBOGO on November 09, 2008, 08:07:02 PMI mean create the topic list in a board and include the topics of the child-boards too
What do you mean exactly?

A single board + child boards merged index (is already in the 'to do list') or separate sub boards indexes at board level (you can just do it) ?


Apllicmz

Good work Nice Mod
update portuguese

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">

        <operation>

            <search position="end" />
            <add><![CDATA[
$txt['limitTListQuery'] = 'Máximo de tópicos listados em tlist<div class="smalltext">(0 para nenhum max.)</div>';
]]>        </add>

        </operation>

    </file>



kizer

A demo if anybody is interested. ;)

I have a section for those that do Writeups aka Howto's on their Jeeps.

http://www.links4jeeps.com/forum/index.php?topic=8888.0
Own a Jeep? Links4Jeeps.com


fangweile

#9
I've manually installed it in my dilber mc theme and I works fine now. Thanks a lot for this great mod. Really helpful for my forum. ^_^

gotorx7

Do you plan to support 1.1.7 please?

Looks fantastic!

4Kstore


¡¡NEW MOD: Sparkles User Names!!!

vmgamer

Thanks,
i was searching for mod like dis :X

Darknico

Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


especiales

Thanks for this mod.
Excuse my english
be possible to put next to the title of the post the name of the user who has posted ?

Thanks

Marcus Forsberg

Any plans on a 2. beta 4 version?

T@by

#16
Still working with SMF 1.1.8  :)

Quote from: especiales on December 29, 2008, 01:36:14 PM
be possible to put next to the title of the post the name of the user who has posted ?
Yes, very simple to do. I sent you a PM

Quote from: Nas on December 29, 2008, 01:42:00 PM
Any plans on a 2. beta 4 version?
No, I hate all beta versions

Darknico

Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


T@by

#18
Still not final version. I hate RC too  ::)

T@by

Quote from: especiales on December 29, 2008, 01:36:14 PM

be possible to put next to the title of the post the name of the user who has posted ?

Simpe way:

edit sources/Subs.php

find
t.ID_TOPIC, t.ID_FIRST_MSG, m.subject, m.ID_MSG, m.icon
replace with
t.ID_TOPIC, t.ID_FIRST_MSG, m.subject, m.ID_MSG, m.icon, m.posterName

find
$data[] = array('cleantitle' => $ctitle,'title' => $th_row['subject'], 'tid' => $th_row['ID_TOPIC'],'icon_id' => $th_row['icon']);
replace with
$data[] = array('cleantitle' => $ctitle,'title' => $th_row['subject'], 'tid' => $th_row['ID_TOPIC'],'icon_id' => $th_row['icon'],'author' => $th_row['posterName']);

find
$tmp = str_replace("{TOPIC_ID}", $row['tid'], $tmp);
add after (in a new line)

$tmp = str_replace("{AUTHOR}", $row['author'], $tmp);

save

edit [theme]/index.template.php

find
$answ .= '<td class="tlistcol2"><a href="'.$scripturl.'?topic={TOPIC_ID}">{TOPIC_TITLE}</a></td></tr>';
replace with
$answ .= '<td class="tlistcol2"><a href="'.$scripturl.'?topic={TOPIC_ID}">{TOPIC_TITLE}</a>&nbsp;<span style="font-size:11px;">by {AUTHOR}</span></td></tr>';

save

That's All.

Advertisement: