News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

making headers collapse for guests?

Started by helenbpd, December 18, 2004, 01:56:03 PM

Previous topic - Next topic

helenbpd

How do I specify default board header collapse for GUESTS?  I'm assuming it's somewhere in index.template?

I know members can choose, but I'd like guests to see all the board headers automatically rather then boards + posts, then expand at will; I have 50 US State boards, & otherwise there's way too much scrolling through each board's posts.

Thanks!

H

[Unknown]

I'm afraid that, currently, they cannot be collapsed for guests... you could modify it, though, in BoardIndex.php:

IFNULL(mem.realName, m.posterName) AS realName," . (!$user_info['is_guest'] ? "
(IFNULL(lb.logTime, 0) >= b.lastUpdated) AS isRead, c.canCollapse,
IFNULL(cc.ID_MEMBER, 0) AS isCollapsed" : ' 1 AS isRead') . ",


Replace that with something like:

IFNULL(mem.realName, m.posterName) AS realName," . (!$user_info['is_guest'] ? "
(IFNULL(lb.logTime, 0) >= b.lastUpdated) AS isRead, c.canCollapse,
IFNULL(cc.ID_MEMBER, 0) AS isCollapsed" : ' 1 AS isRead,
FIND_IN_SET(b.ID_BOARD, '###') AS canCollapse, FIND_IN_SET(b.ID_BOARD, '###') AS isCollapsed') . ",


Where '###' is a list of board ids, like '1,2,3' (no spaces!)

-[Unknown]

AtzeMatze

Hello - I use the Version 1.1 RC2 and i have the same problem :-(

I looked at the boardindex.php but i don't found an entry like that...did the code changed?

and when it changed - which is the right way to change it now?

please help me..

greetz
Greetz
AtzeMatze
Pilsarmada4Life
www.pilsarmada.de

Advertisement: