collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Who's Online

  • Dot Guests: 83
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • BCNPalomino: lol, that search doe :O
    July 18, 2014, 09:26:27 AM
  • RohailPro23: hi all
    July 18, 2014, 08:09:00 AM
  • samborabora: sorry, thought this was search, lol
    June 29, 2014, 04:45:12 AM
  • samborabora: sp_embed_image
    June 29, 2014, 04:45:01 AM
  • stanyy: Was it merely correcting the mistake made in 2.0.7 or is 2.0.8 actually faster than 2.0.6?
    June 20, 2014, 07:51:21 AM
  • AngelinaBelle: Smf 2.0.8 has been released. -- uses less memory than 2.0.7 [link]
    June 19, 2014, 03:46:47 PM
  • iSamp: [link]
    June 14, 2014, 06:42:38 AM
  • iSamp: SiNaN Plz Help
    June 14, 2014, 06:42:12 AM
  • iSamp: I need Help Plz Help Me I posted a Thing In English Support Plz read it
    June 14, 2014, 06:21:15 AM
  • Cyberkid: hey!
    June 12, 2014, 02:29:42 AM
  • AngelinaBelle: Hello!
    June 03, 2014, 01:06:04 PM
  • kal: also, hello. :)
    June 03, 2014, 08:36:43 AM
  • kal: I haven't been here in a couple months I don't think.
    June 03, 2014, 08:36:35 AM
  • AngelinaBelle: Welcome back, David
    June 02, 2014, 06:18:46 AM
  • David: I've missed this place!
    June 02, 2014, 01:04:01 AM

* Team Blog

* Recent Posts

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: show next xx events instead events of next xx days in recent events block  (Read 2989 times)

0 Members and 1 Guest are viewing this topic.

Offline demlak

  • Semi Newbie
  • *
  • Posts: 36
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
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
« Last Edit: January 16, 2013, 03:43:24 AM by demlak »

Offline demlak

  • Semi Newbie
  • *
  • Posts: 36
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: show next xx events instead events of next xx days in calendar
« Reply #1 on: January 04, 2013, 12: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   :(

Offline velorooms

  • Jr. Member
  • **
  • Posts: 74
    • Velorooms
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: show next xx events instead events of next xx days in calendar
« Reply #2 on: January 05, 2013, 06: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..
Admin and Owner of Velorooms.com - Using SMF 2.0.3 and Simpleportal 2.3.5

Offline demlak

  • Semi Newbie
  • *
  • Posts: 36
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: show next xx events instead events of next xx days in calendar
« Reply #3 on: January 06, 2013, 12:54:16 AM »
thx a lot!
tell me if can help testing or so.. =)

Offline demlak

  • Semi Newbie
  • *
  • Posts: 36
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
any news on that?

Offline velorooms

  • Jr. Member
  • **
  • Posts: 74
    • Velorooms
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
its in my coding queue, but neither myself or any of my helpers have worked it out yet.
Admin and Owner of Velorooms.com - Using SMF 2.0.3 and Simpleportal 2.3.5

Offline demlak

  • Semi Newbie
  • *
  • Posts: 36
  • SMF Version: 2.0.2
  • SP Version: 2.3.5

Offline demlak

  • Semi Newbie
  • *
  • Posts: 36
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
*push*

Offline demlak

  • Semi Newbie
  • *
  • Posts: 36
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
*push*

Offline AngelinaBelle

  • Support
  • *
  • Posts: 4885
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
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.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?