News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Topics list support

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

Previous topic - Next topic

akbora

#100
I found out that in my forum, first 10 topics no inside topiclist. Is it true?

And edit: Can this mod add new topics automatic?

I see it is irregular running. Some topics are not in this list why?

Edit2: Topic starter can be there
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

T@by

It automatically list non sticky topics beginning with 0-9:A-Z (ignoring [TAG])
If your first 10 topics are sticky, they will not in list


akbora

Thanks your reply.

Toics starter with topics will be better?
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Özgür

So Long

akbora

Thanks daydreamer, well is it possible with category ID?
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Turk Navy

Quote from: T@by on February 18, 2009, 04:06:42 AM
Quote from: NIBOGO on February 17, 2009, 05:59:03 PM
The child-boards support will be a nice addon for this mod and yep is useful to me :)

This is the solution NOT for child-boards but for an extended and more flexible concept: multiboard. It may include boards and/or child-boards.

Edit sources/subs.php

Find
WHERE t.ID_BOARD = $board AND

Replace with
WHERE t.ID_BOARD IN ($board) AND

Save

Edit your TList topics and add to each TLIST tag the ID of each desired board, comma separed
Something like [TLIST=2,4,5]A|[/TLIST]

Thank you for that. :)

mforum

Quote from: FragaCampos on May 14, 2009, 02:52:21 PM
I noticed that the forum is a bit heavier than before, maybe because the topics with the topics list are updated automatically.

Is there a way of doing the list manually, i.e., whenever we want and not automatically?


Thanks.

i have that problem too , only that my forum is a lot heavier than before .....
i use topics list in boards with more than 10 pages .... load is more than 3 sec - before was 0.x sec
so i want too to auto grab new topics manually ....  ;)

its a fantastic add on to my forum but the heavy load it brings makes it kind of useless  :-\

SMF 1.1.10
php 4.4
Default Theme

T@by

Topics are listed 'on the fly', only when you open the post with list.
I use it on forums with up of 31 pages without problem (it take something like 2 sec for generate a complete list with 800 user online) so probably you have a problem with server or with mysql setting.

Özgür

t@by how can i make a SSI function like topic_list($board, $start, $end, $limit) ? I know i can use the parse_bbc function but i need that function.
So Long

Milo_link

hi T@by,is it possible to add the ranks of users?

if so what should I do?   
sorry for my english

mforum

Quote from: T@by on July 20, 2009, 04:52:54 AM
Topics are listed 'on the fly', only when you open the post with list.
I use it on forums with up of 31 pages without problem (it take something like 2 sec for generate a complete list with 800 user online) so probably you have a problem with server or with mysql setting.

even when topics list Topic is on the Recent Posts in forum index, i have 34 queries in 1.8 sec - without it i have 26 queries in 0.23 sec

how do you explain that ?

T@by

maybe someone is opening the list topic or another topic or using the search or viewing the most recent posts on the forum

Milo_link

hi T@by,is it possible to add the ranks of users?

if so what should I do?   

T@by

what do you mean? the rank title or the ranking image?

Özgür

Bump :P
Quote from: [Daydreamer] on July 20, 2009, 11:21:34 AM
t@by how can i make a SSI function like topic_list($board, $start, $end, $limit) ? I know i can use the parse_bbc function but i need that function.
So Long

T@by

#115
you can find answers here:
http://docs.simplemachines.org/index.php?topic=400

edit
Worked to a little test, just for fun



Would you to obtain something like this?

Milo_link

Quote from: T@by on July 22, 2009, 06:51:39 AM
what do you mean? the rank title or the ranking image?

"the rank title"

thanks

Özgür

#117
Quote from: T@by on July 22, 2009, 07:07:28 AM
you can find answers here:
http://docs.simplemachines.org/index.php?topic=400

edit
Worked to a little test, just for fun



Would you to obtain something like this?

Yep i will use this function on my wordpress homepage. And yes this is enough for me =) Maybe you can include this to your modification because many user will like it =)
So Long

Milo_link

the rank title

thanks  T@by

T@by

#119
@mforum
I found something wrong, not in tlist mod but in smf code.
It get a kind of 'post preview' at MessageIndex level reading 384 chars from DB both for first and last post of each topic in current board index. I don't understand why.

If the post with tlist is in, tlist mod is called. And normally tlist post is closed so is first and last and it is parsed two times. >:(

In this way tlist can ignore the 'preview' call
In Sources/Subs.php
find
function topic_list($parms, $board)
{
global $db_prefix, $settings, $modSettings;


replace with
function topic_list($parms, $board)
{
global $db_prefix, $settings, $modSettings, $context;

if ( !isset($context['current_topic']) )
return '';

if ($context['current_topic'] == 0)
return '';


On my server, with ~ 600 users online

Before

After




Advertisement: