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

looking at your screenshot
tlistindex bbcode is ok
tlist bbcode is without [tlist=1,2,3,4]0|9[/tlist]

ArkServer

Quote from: T@by on May 04, 2009, 09:03:06 AM
looking at your screenshot
tlistindex bbcode is ok
tlist bbcode is without [tlist=1,2,3,4]0|9[/tlist]

Ah, now i get it, i forgot to include the numbers. I'll include it now. Thanks!

ArkServer

Quote from: T@by on May 04, 2009, 09:03:06 AM
looking at your screenshot
tlistindex bbcode is ok
tlist bbcode is without [tlist=1,2,3,4]0|9[/tlist]

Done, but i also have a question. When generating a large list with topics it seems like the script stops after xx topics or is it just me?
http://www.engineeringserver.com/forum/test_board/test-t3514.0.html;msg6363#msg6363

T@by

Check the HTML. Generated code is all in (Z is the last letter)

<th>Z</th></tr><tr><td class="tlistcol1"><img class="tlistfirsticon" src="http://www.engineeringserver.com/forum/Themes/ds-natural115/images/tlist_spacer.gif" alt="" width="20" /></td><td class="tlistcol2">-</td></tr></table></div>

FragaCampos

#84
First of all, thank you very much for this awesome mod.
Undoubtedly, a must have  8)

I have the same issue reported by ArkServer in his last post. But this only happens with firefox. Any advise/solution to this?  :-\
Other question: How can i add topics started with "?" or "!"?


I have one suggestion, though. Is It possible to add a little string showing the number of items of the index?
For example "This index has x items".

Cheers.

T@by

#85
 :-\ seems an overflow problem
you can try to modify your css adding
overflow: visible;
to .post class

if you have (in .post class)
overflow: auto;
replace it with
overflow: visible;

ArkServer

Quote from: T@by on May 08, 2009, 01:11:22 PM
:-\ seems an overflow problem
you can try to modify your css adding
overflow: visible;
to .post class

if you have (in .post class)
overflow: auto;
replace it with
overflow: visible;

Thanks, solved my issue  :D

FragaCampos

Yes, everything's fine now.
Thanks a lot!

FragaCampos

T@by, when you can, don't forget about this ;)

Quote from: FragaCampos on May 08, 2009, 08:05:04 AM
Other question: How can i add topics started with "?" or "!"?


I have one suggestion, though. Is It possible to add a little string showing the number of items of the index?
For example "This index has x items".

FragaCampos

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.

pequepsp

How can i install this in smf 1.1.9??

T@by

following the manual installation
The code still Ok

Aex

I'm Spanish, Sorry for my english

In the past, i had a 1.1.8 smf forum and i had this mod. It worked great. Yesterday, i upgrade my forum to 2.0RC1, download the package for 2.0RC1 and install, but now it doesn't work.

Here an example:

http://territoriodd.com/foro/index.php/topic,6882.0.html [nofollow]

http://territoriodd.com/foro/index.php/topic,6892.0.html [nofollow]

The forum reconize the tags, but don't do nothing

Thank you for all.

T@by

with 2.0RC1 the mod works correcly, I have not checked with 2.0RC1-1
however seems something wrong in Subs.php code modification. Please check if it is correctly applied

Özgür

Quote from: T@by on June 23, 2009, 11:07:42 AM
with 2.0RC1 the mod works correcly, I have not checked with 2.0RC1-1
however seems something wrong in Subs.php code modification. Please check if it is correctly applied
Notice : In 2.0 RC1-1 still worked fine.
So Long

T@by


Aex

I have this in my subs.php

array(
'tag' => 'white',
'before' => '<span style="color: white;" class="bbc_color">',
'after' => '</span>',
),

array(
'tag' => 'tlist',
'type' => 'unparsed_equals_content',
'content' => '$1',
'validate' => create_function('&$tag, &$data, $disabled', '$data[0] = topic_list($data[0], $data[1]);'),
),
array(
'tag' => 'tlistindex',
'type' => 'unparsed_content',
'content' => '$1',
'validate' => create_function('&$tag, &$data, $disabled', '$data = topic_list_index($data);'),
),


I have revised all the modifications and seems to be ok  >:( >:(

Özgür

Are you using custom theme ?
Your links not opened.. Have you any error on error log?
So Long

T@by

#98
ok found (thank you Daydreamer)
you have not applied modification to your custom theme, file index.template.php

you have to add
function tlist_bits($element)
{
global $txt, $settings, $scripturl;

switch($element)
{
case 'container_open':
$answ = '<table cellspacing="1" border="0" class="tlisttable">';
break;
case 'header':
$answ ='<tr><th><div class="tlisttitleicon"><a name="tl_{JLABEL}">&nbsp;</a></div></th><th>{TITLE}</th></tr>';
break;
case 'topic_row':
{
$answ = '<tr><td class="tlistcol1"><img class="tlistfirsticon" src="{ICON}" alt="" /></td>';
$answ .= '<td class="tlistcol2"><a href="'.$scripturl.'?topic={TOPIC_ID}">{TOPIC_TITLE}</a></td></tr>';
break;
}
case 'container_close':
$answ = '</table>';
break;
case 'no_topics':
{
$answ = '<tr><td class="tlistcol1"><img class="tlistfirsticon" src="'.$settings['images_url'].'/tlist_spacer.gif" alt="" width="20" /></td>';
$answ .= '<td class="tlistcol2">-</td></tr>';
break;
}
case 'index_container_open':
$answ = '<div class="tlistindex">'.$txt['jump_to'];
break;
case 'index_bit':
$answ = ' <a href="#tl_{TITLE}">{TITLE}</a>';
break;
case 'index_container_close':
$answ = '</div>';
break;
}
return $answ;
}

at the end of file, before
?>

Aex

Thank you so much!!! Now it works  :P :P i love this mod, is perfect for my page.

Advertisement: