News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Topics list support

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

Previous topic - Next topic

T@by

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]

T@by

@NIBOGO

I looked up to http://www.mundo-se.com/foro/firmwares/(importante)-indice-de-firmwares2/. Is wrong... modified css is not loaded.
Take a look here.
http://jigsaw.w3.org/css-validator/validator?uri=http://www.mundo-se.com/foro/firmwares/(importante)-indice-de-firmwares2/
TList parms are not in and you have also other errors.

Maybe style.css is in your server cache? Try to clear it or edit and save the cascade style sheet from Admin Panel.

this is correct
http://www.mundo-se.com/Themes/default/style.css
this is NOT correct
http://www.mundo-se.com/Themes/default/style.css.php?fin11

I confirm.. I hate beta and RC

SlammedDime

SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

T@by

#43
still not valid, SlammedDime
check css-validator
and tlist* css parms are not present

this is the correct look of the mod (other theme)
http://www.bullbreedluverz.com/smf/index.php?topic=3227.msg34071#msg34071

here the html code is correct, tlist* css parms modified
http://www.rockayseri.net/rk/turk-rock-and-metal/rockayseride-bulunan-tum-yerli-gruplar/

here the html code is correct but css file is not updated
http://www.mundo-se.com/foro/firmwares/(importante)-indice-de-firmwares2/

Are all RC1 boards. Really, can be a server cache problem? (or a server setting)


abraamz

Thank you for this usefull mod
(i installed this in 1.1.8 manually)

JackWise

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




Hi T@by,
Can you tell me the way too ?
Best regards,
JW


edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

edi67

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 solution make me this error:

Unknown column 'm.posterName' in 'field list'
File: /home/crazyzone/data/www/crazyzone.biz/Sources/Subs.php
Line: 4584
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Özgür

@edi67
Are you using 2.0 or 1.1.8 ?
So Long

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

T@by

with 2.0 RC1 you need to replace m.posterName with m.poster_name

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.poster_name

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['poster_name']);

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

minos

hello  thanks alot for  make this to  smf 2rc1 ... how can i remove the message icon?

thanks

haito

great mod... i like it... thanks T@by
www.japanesia.co.id | Portal Berita & Komunitas Untuk Kamu yang Suka Jepang

minos

by the way its a way just to gather title name and link witout letters? but in alphabetical order?

cause this mod execute a lot of queries

Alpay


DeviDarkL

Hi T@by

Great Mod but I have a problem >:(

Most of my topics begin with [Something]. For example: [Cars]; [Bikes]; [Boats]; etc etc

The problem is that the Topic List does not recognize Text in []. It order the Topics by the text after like if the name of the topic is [Cars] BMW M6 the topic will appear in "B" and not in "C" (of Cars).

How can I do to order by Cars, Bikes or Boats instead of the text after?

Sorry for my English and Thanks in Advance ;)

T@by

#58
This mod ignore tags in bracket ([something]), as proved in this screenshot. This grant a REAL sort by topic title


DeviDarkL

But, is it possible not to ignore? :(

Advertisement: