collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 801
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Author Topic: Calendar Block - topic Viewable by guest, threads not  (Read 7866 times)

0 Members and 1 Guest are viewing this topic.

Offline demlak

  • Semi Newbie
  • *
  • Posts: 37
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Calendar Block - topic Viewable by guest, threads not
« 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..)

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Calendar Block - topic Viewable by guest, threads not
« Reply #1 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.


« Last Edit: June 30, 2013, 05:07:24 AM by igirisjin »
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Calendar Block - topic Viewable by guest, threads not
« Reply #2 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.
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline demlak

  • Semi Newbie
  • *
  • Posts: 37
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Calendar Block - topic Viewable by guest, threads not
« Reply #3 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)