SimplePortal

Customization => Blocks and Modifications => Mod Requests => Topic started by: demlak on January 18, 2013, 04:50:47 PM

Title: Calendar Block - topic Viewable by guest, threads not
Post by: demlak on January 18, 2013, 04:50:47 PM
hi,
we don´t want guests to look into any threads.. but we want to show recent events of the calendar to guests..
as we played a little bit with the settings.. we think its not possible to show events to a group that is not allowed to view linked threads..

when we allow the calendar block to be displayed to guests, the block is empty for them, because we don´t want to allow guests to look into any part of the forum itself (so no subforum could be seen without registration).. but we want guests to see the next events in this block..

so.. any idea how to show topics of calendar entrys to guests.. but nothing else?
(and when clicking on them, they should be linked to register page..)
Title: Re: Calendar Block - topic Viewable by guest, threads not
Post by: andy on June 30, 2013, 05:02:51 AM
This is not a simple portal topic ...

All the code relating to this is done by SMF. By default SMF cannot show topic titles to guests and stop viewing of the topics. You need a mod to do that.

I run an outdoor club and had the same problem but solved with an SMF mod.

http://outdoorclubjapan.com
http://outdoorclubjapan.com/index.php?board=39.0

You can test it yourself in latest events and those on the calendar. Social events are open to guests.

Mod: 'look but no read'
In admin you set the board IDs which guests can see topics but not open them. This allows the calendar to show event topics (otherwise invisible).
It is an old mod (removed from SMF) but it works the best still for me. You need to make other edits to stop it showing in recent posts to guests and via use of SMF SSI.php. This is fairly simple...

There are other mods on SMF to hide/make private, post details from guests.
One is 'private topic', but works by checkbox for each post. Maybe you can edit so checked by default. There is another board based one that I didnt use as there were too many manual edits or it didnt work well.

I can attach a copy of the 'look but no read' mod if you want it. And the edits required to avoid visibility in recent posts etc.

I also use a Simple Portal custom latest posts and topics by Blue. You can set the number of characters to display from each topic so it is like a  'read more...' teaser. But they need to join the club to see full event details.


Title: Re: Calendar Block - topic Viewable by guest, threads not
Post by: andy on July 02, 2013, 12:34:17 PM
Events are for paid up members so they cannot see latest events with contact details and email/phone (until the become a member). They can see only titles and calendar title.
Old events are moved into a read only forum for anyone to see.
Title: Re: Calendar Block - topic Viewable by guest, threads not
Post by: demlak on July 04, 2013, 04:41:57 AM
we found a solution a few weeks ago...

in /Sources/Subs-Calendar.php
replace
Code: [Select]
// Get all events within the given time range.
function getEventRange($low_date, $high_date, $use_permissions = true)
by
Code: [Select]
// Get all events within the given time range.
function getEventRange($low_date, $high_date, $use_permissions = false)
SimplePortal 2.3.8 © 2008-2024, SimplePortal