Main Stories
Slash Boxes

Slash Open Source Project

Slashcode Log In

Log In

[ Create a new account ]

Article Poll

Poll I found this article to be
Very Helpful
Not Helpful
Not Very Helpful
[ Results | Polls ]
Comments:0 | Votes:0

Template topics.shtml Faulty

posted by Krow on 11:12 AM July 3rd, 2001   Printer-friendly   Email story
alexmc writes "I've been wondering why the topics in the topics.shtml page appear so funny. They are listed one below each other and then the fifth and sixth are on the same line. This is in bender 2.0, and on the slashcode site itself. I tracked it down to the template "listTopics (68)" which looks a bit iffy.

I've tried replacing a bit in the code with this

  • //
  • //
  • //
  • //
  • "</TR><TR>"
  • //
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login
Loading... please wait.
  • That has been buggin' me too. I'll give it a shot.

    Now if I could only get the "bite my shiny ass" off my page, I'd be all set.

  • by Anonymous Coward
    I think it's a block, motd (message of the day). Just replace it or remove it.

    Speaking of which, slash2 developers: is there a new way to use fortune for the motd? I saw something about making a template, but has anyone done it yet? It's hard to settle on just one motd!
  • Maybe my thanks was a bit premature... could your solution have been a little more cryptic?
    After playing with it a bit, this hack seems to do what we want:

    [% x = -1 %]
    [% FOREACH t_key = topics.keys.sort; topic = topics.$t_key %][% x = x + 1; "/TR TR" UNLESS x MOD 6 %]

    (fix "/TR>TR>" - altered to post)

    NOTE: In case you did not notice, the topic display you see from the admin screen is different than the one from the topics page.

  • by Anonymous Coward
    "Message of the day" aka motd is a template, not a block.
  • this may be a newbie problem, but after a completely clean install of Slash, there is no topics.shtml shouldn't this be part of the install package?