collapse

* User Info

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

* Who's Online

  • Dot Guests: 70
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • AngelinaBelle: Hello w1ck3d! Welcome to Simple Portal. Unfortunately, there are not Russian speakers here very often.  Aplogies
    April 14, 2014, 07:49:26 AM
  • w1ck3d: тест
    April 14, 2014, 02:50:12 AM
  • Underdog: How to use Simple Portal for SMF: [link]
    April 02, 2014, 07:52:45 PM
  • Underdog: Thariq, please post questions in the forum. thank you.
    April 02, 2014, 07:51:40 PM
  • Thariq: how to create portal/site
    April 02, 2014, 06:30:42 AM
  • Ali çelen: forum nasıl oluştırıcam
    March 30, 2014, 10:59:08 PM
  • Ali çelen: sa
    March 30, 2014, 10:58:54 PM
  • AngelinaBelle: processor -- I think your customization will probably be just fine.
    February 14, 2014, 07:18:41 PM
  • AngelinaBelle: noumankhan: Welcome to SimplePortal.  Please read the documentation above. If you have questions about how to make a forum, please seek help at [link]
    February 14, 2014, 07:16:45 PM
  • noumankhan: how can i make forum plz tell me
    February 13, 2014, 09:41:03 AM
  • noumankhan: hello
    February 13, 2014, 09:40:47 AM
  • BurkeKnight: Shoutbox is not for support. That also means, not for asking volunteers to hurry to your support topic. All topics will get seen. :)
    February 12, 2014, 03:39:28 PM
  • processor: Can anyone check this out: [link] thanks guys
    February 12, 2014, 05:54:58 AM
  • matixto: Hi all, can a developer see this thread? [link] Thanks!
    February 06, 2014, 02:44:36 PM
  • imamzw: Halo
    February 05, 2014, 08:17:24 PM
  • dj_king: hello
    February 04, 2014, 10:32:47 AM
  • BurkeKnight: Thank you, old friend :)
    January 29, 2014, 07:01:43 AM
  • [SiNaN]: It's just a little piece of custom code: [link]
    January 27, 2014, 12:55:42 PM
  • BurkeKnight: Ok, where you get that, so I can check mine on my sites? LOL
    January 27, 2014, 06:33:21 AM
  • [SiNaN]: Well, why not I guess. Here's yours: [link] ;)
    January 27, 2014, 12:26:47 AM

* Team Blog

* Recent Posts

Re: Hi, I am created pages but. by USFA
[Today at 09:16:04 AM]


Re: Popular Tags Block. by GPower
[Today at 08:33:45 AM]


Re: SimplePortal article by Shayco
[Today at 08:09:55 AM]


Re: Slideshow or Image rotator by jtc442
[Today at 07:17:23 AM]


Re: Popular Tags Block. by AngelinaBelle
[Today at 06:50:25 AM]

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

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

0 Members and 1 Guest are viewing this topic.

Offline demlak

  • Semi Newbie
  • *
  • Posts: 33
  • 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: 33
  • 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: 71
    • 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: 33
  • 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: 33
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
any news on that?

Offline velorooms

  • Jr. Member
  • **
  • Posts: 71
    • 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: 33
  • SMF Version: 2.0.2
  • SP Version: 2.3.5

Offline demlak

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