SimplePortal

Customization => Custom Coding => Topic started by: demlak on December 26, 2012, 11:16:23 PM

Title: show next xx events instead events of next xx days in recent events block
Post by: demlak on December 26, 2012, 11:16:23 PM
hi,..
maybe a new topic is better than injecting my request to an old thread with a slightly different topic..

we will use the calendar for anouncing an unsteady number of events per day/week/month...

that means:
when we configure the calendar block to show the events of the next 12 days (for example) sometimes there will be displayed 6 events.. sometimes 3 events.. but sometimes 28 events..  and so on..
that changes the hight of the Calendar Information block everyday..  that means also a different site design everyday.. because we want it to be on the top of the portal blocks.. and we want it with a fixed hight (but without scrollbar)..

so the idea is to show the next xxx (given number) events.. instead of the events of the next xxx days.
when only xxx numbers of events are displayed (doesn´t matter how far they are in the future), the hight of the block will always be the same.

since im not a coder, please help me to change the Calendar Information block code to act like discribed.
i think its the function sp_calendarInformation in Sources/Portal.Blocks.php
Title: Re: show next xx events instead events of next xx days in calendar
Post by: demlak on January 04, 2013, 01:01:37 PM
well.. is this the wrong sub-forum? or is nobody able to help me? or no one interested in this modification?
i don´t understand why there is absolutly no answer   :(
Title: Re: show next xx events instead events of next xx days in calendar
Post by: velorooms on January 05, 2013, 07:52:43 PM
Think everybody is enjoying christmas and new year.

it should be possible. Im looking at the code for the calendar block we have and trying to work out how to do it. on basic level increasing the numbers of days to an infinate number but then setting a maximum events should work.. just how..

hmmmm.. will think..
Title: Re: show next xx events instead events of next xx days in calendar
Post by: demlak on January 06, 2013, 01:54:16 AM
thx a lot!
tell me if can help testing or so.. =)
Title: Re: show next xx events instead events of next xx days in recent events block
Post by: demlak on January 16, 2013, 04:43:51 AM
any news on that?
Title: Re: show next xx events instead events of next xx days in recent events block
Post by: velorooms on January 16, 2013, 09:36:27 AM
its in my coding queue, but neither myself or any of my helpers have worked it out yet.
Title: Re: show next xx events instead events of next xx days in recent events block
Post by: demlak on February 12, 2013, 01:11:15 AM
any news on that?
Title: Re: show next xx events instead events of next xx days in recent events block
Post by: demlak on May 01, 2013, 08:44:36 PM
*push*
Title: Re: show next xx events instead events of next xx days in recent events block
Post by: demlak on April 29, 2014, 07:45:03 AM
*push*
Title: Re: show next xx events instead events of next xx days in recent events block
Post by: AngelinaBelle on May 08, 2014, 12:06:18 PM
Hello demlak,

I understand you are eager for this, but I hope you can understand that "push" will not write any code.
Velorooms might not have read your recent posts.  You might PM him directly to find out if he is still interested in working on this.

As a last resort, since you are having a difficult time finding anyone interested in the project, you might consider looking at the php code yourself.  If you build a test forum and work there, you can confidently break as much code as it takes to figure it out.
SimplePortal 2.3.8 © 2008-2024, SimplePortal