Topics list support

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

Previous topic - Next topic

JackWise

Quote from: T@by on February 06, 2009, 11:20:07 AM
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.

This is very nice.
I installed it in SMF 1.1.8 with dilber theme.

Many thanks,

JW

kermitthefrog

Great mod, however it list ALL topics... how can I not show the "admin topics" side of it?

T@by

what is an "admin topic" ?

T@by

I received via PM this customization request

Quotehi T@by, i have installed your mod "Topic List support" , it's wonderful. I'm trying to hide [TAGS] from the topic list. Is this possible? i want the tags do not appear in the list, but only the title of the topic appear. Thank you in advance

The solution

Clean titles are already available.

Replace
$answ .= str_replace("{TOPIC_TITLE}", $row['title'], $tmp);
with
$answ .= str_replace("{TOPIC_TITLE}", $row['cleantitle'], $tmp);

Milo_link

hi t@by, i loved this mod;I wondered if you can add to the pair of user name, the amount of inputs that leads and also the range that has..

I let you catch a


[/size]

Milo_link


T@by

I don't understand your request
Which inputs? which range?

Milo_link

sorry haha,i said  if it is possible to add, the  ranks and post the user have

T@by

Yes is possible but there is no reason to do it, are not relevant datas and will slow down the query

Milo_link

Quote from: T@by on April 19, 2009, 05:57:26 PM
Yes is possible but there is no reason to do it, are not relevant datas and will slow down the query

o.k but only the ranks please is very importan for my I would greatly appreciate

Benji

Great Mod!

But i have an "issue": there's a version for previous smf?  :(

I have 1.1.1

Benji

Please,
there is any possibility to have this mod for smf 1.1.1? :8

Benji


Milo_link

only the ranks please is very importan for my I would greatly appreciate

ArkServer

The mod only shows up topic from one board: http://www.engineeringserver.com/forum/test-t3363.0.html

it doesn't show topics from all other boards?

T@by



ArkServer

I've written a small application to automate the generating of the topic lists for boards. if its not alright with the author of the mod i'll remove it since i made it for me to easily generate the index but i thought that i might as well share it for others.

http://www.engineeringserver.com/forum/topiclist_board_generator-t3470.0.html




T@by

No problem for me, but take a look to the bbcode generated by your java app.
[tlist=1,2,3,4]0|9[/tlist]
is missed

ArkServer

Quote from: T@by on May 04, 2009, 06:05:42 AM
No problem for me, but take a look to the bbcode generated by your java app.
[tlist=1,2,3,4]0|9[/tlist]
is missed

[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] ?

Advertisement: