collapse

* User Info

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

* Who's Online

  • Dot Guests: 71
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • xeon365: ie where username profile link.. its just getting the membergroup color directly and adding it as inline style.. would be better if it instead just added the membergroup as a css class that can be styled by the theme
    Yesterday at 11:00:10 PM
  • xeon365: omg why isn't membergroup got proper css class.. not dumping inline css style
    Yesterday at 10:58:03 PM
  • BurkeKnight: [SiNaN] old friend. Great Job. I can't wait to see what you add next. :)
    October 13, 2014, 04:13:53 PM
  • [SiNaN]: Thank you everyone, for the kind words and support. For those who are interested, check out our Donators Program: [link]
    October 13, 2014, 11:57:44 AM
  • {OCS}MasterSeal: Glad to be here, glad to use your amazing portal THank you!
    October 13, 2014, 11:33:35 AM
  • Mike Vail: I'd like to donate to you for all your wonderful work. Do you guys have a place on your site to do that? THANKS FOR EVERYTHING!
    October 13, 2014, 11:12:16 AM
  • Mstcool: Yay, an update! :D
    October 12, 2014, 01:39:17 AM
  • stanyy: You're right. I have no idea how I got to the "Archived" index. It looks too similar.
    October 03, 2014, 11:38:32 AM
  • [SiNaN]: SimplePortal 2.3.5 package is listed in Stable SimplePortal Packages category in Downloads area.
    October 03, 2014, 06:08:01 AM
  • stanyy: SP 2.3.5 is not available in the downloads section?? The big download link on the homepage points newcomers to the downloads section who then download 2.3.4. Not good.
    October 03, 2014, 03:54:21 AM
  • Mulwa: if simpleportal team could make some of the blocks like articles to display photos just like how ebay does, it would be very great for shopping
    September 27, 2014, 08:24:14 AM
  • Mulwa: everybody is busy, no help for us this time
    September 26, 2014, 05:00:07 PM
  • [SiNaN]: That shows how simple but powerful SimplePortal is!
    September 26, 2014, 06:56:41 AM
  • oNLy1: thought the 'Blocks In Blocks' was going to be complicated - easy peasy - and was exactly what my site needed - ty
    September 20, 2014, 01:13:44 PM
  • P flex: Xup guys
    September 18, 2014, 08:29:06 AM
  • P flex: Xup
    September 18, 2014, 08:28:38 AM
  • Mstcool: :p *
    September 13, 2014, 07:55:49 PM
  • Mstcool: so when is a new version coming out? :o
    September 13, 2014, 07:55:45 PM
  • USFA: sorry thought was search no glasses
    September 06, 2014, 08:48:23 PM
  • USFA: rename forum
    September 06, 2014, 08:47:40 PM

* Recent Posts

Re: Blocks and Pages have completely disappeared. by meemo
[Yesterday at 08:51:08 AM]


Re: shoutbox chat direction (newbie question) by teamhft
[October 27, 2014, 06:15:53 PM]


Re: Board News; style topic based on the board id it was from by Bullet
[October 27, 2014, 06:13:55 PM]


shoutbox chat direction (newbie question) by teamhft
[October 27, 2014, 06:01:32 PM]


Re: Staff list - Sort by rank by Bullet
[October 27, 2014, 05:52:20 PM]

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 3186 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?