SimplePortal

Development => Feature Requests => Applied Requests => Topic started by: Geri on August 30, 2008, 04:02:43 PM

Title: Events block
Post by: Geri on August 30, 2008, 04:02:43 PM
I post this suggestion here too, so you don't foget it ;) :).
I sugested already, in the simplemachines forum, that it would be useful and nice to add a event's block in the portal's options. So that the calendar's events apear in that block.

I don't know, is there a posibility to make this with a php block? To have a code for calling the calendar event's in the portal in that block?


Great job guys whit the portal. Keep it up...and thanks.

Title: Re: Events block
Post by: hadesflames on August 30, 2008, 05:48:45 PM
this seems like a good idea, i'm not sure if we already have this because i could have sworn i saw it on my install lol but if not i'm sure the developers will have it ready by their next release =]
Title: Re: Events block
Post by: Nathaniel on August 30, 2008, 07:28:19 PM
Hopefully once the main parts of the SMF 2 Beta version and the 2.05 version  of Simple Portal are finished, we can think about adding some of these new block ideas. ;)
Title: Re: Events block
Post by: Geri on October 23, 2008, 06:14:38 AM
What about that events block? :)

I saw in the block section a php calendar block... But for me and for my users it would be more useful to have just a block showing the future event's.

Can this be done with just a php block? Or it needs more code changing and simple portal integration.



Title: Re: Events block
Post by: TW1ST3D on October 27, 2008, 11:51:35 AM
I use this Code, which happens to work well for my needs............It incorporates all of what you are asking for

(attached)
 
Title: Re: Events block
Post by: hotshotsgolf on October 27, 2008, 02:16:38 PM
I use this Code, which happens to work well for my needs............It incorporates all of what you are asking for

(attached)
 

Thats wonderful!!!
Title: Re: Events block
Post by: Burke Knight on October 27, 2008, 02:25:14 PM
I tried that, and it gave me an error.

Quote
Fatal error: Call to undefined function calendarEventArray() in /Sources/SPortal2.php(1609) : eval()'d code on line 278
Title: Re: Events block
Post by: ibm450 on October 27, 2008, 07:33:21 PM
TW1ST3D its works a TREAT,excellent post, love it
Title: Re: Events block
Post by: ???1031 on October 28, 2008, 01:43:14 AM
I tried that, and it gave me an error.
I think that this is not working on smf2.x.
Title: Re: Events block
Post by: Burke Knight on October 28, 2008, 09:20:42 AM
Ok, tried it on one of my 1.1.6 sites. Got these errors showing in the log:

Code: [Select]
2: Invalid argument supplied for foreach()
File: /Themes/default/SPortal1-1.template.php (main sub template - eval?)
Line: 310

Code: [Select]
8: Undefined variable: bdays
File: /Themes/default/SPortal1-1.template.php (main sub template - eval?)
Line: 310

Well, at least they both are on the same line...LOL
Title: Re: Events block
Post by: ???1031 on October 29, 2008, 10:05:06 AM
I looked throgh the code there is something missing :X, i added this and now it show no errors ;).
Title: Re: Events block
Post by: Geri on October 29, 2008, 01:24:14 PM
pff ....thanks ...guys. :)

But please make it easier for unexperienced smf,php,etc users like me too.
:)
What do i have to do exactly? Because just creating a php block and copy-paste the codes is not working.

smf 1.1.6
SP 2.0.5

PS
:) To simplify the discussion:

I have a theater and show related forum and my users add shows and play's dates and locations as event's.

So I need no calendar block (there are already calendar block discussions in the block section), and I don't need today's birthdays. (if users go to the calendar to see the event's they will see who's birthday too)

Just a block showing  a list of (clikable) today and future event's added to the calendar (and atached or not to a topic) by users.




Title: Re: Events block
Post by: Burke Knight on October 29, 2008, 07:33:41 PM
New one does not seem to work in SMF 2.0 Beta 4.
Get the following error:

Quote
Fatal error: Call to undefined function db_query() in /Sources/SPortal2.php(1609) : eval()'d code on line 23
Title: Re: Events block
Post by: ???1031 on October 30, 2008, 02:04:32 AM
New one does not seem to work in SMF 2.0 Beta 4.
Get the following error:

The block can only work in SMF 1.1.6 because it's not made compatible to the SMF 2.0. Beta 4 Version! (I only make it workable in Version 1.1.6, because the php block was created for this Versions.)

Bye
DIN1031
Title: Re: Events block
Post by: Geri on October 30, 2008, 07:08:37 AM
Finaly ...I got it working too.  :)

:thumbsup:

Many many thanks to TW1ST3D and ディン1031 !  :applause:
Title: Re: Events block
Post by: TW1ST3D on October 30, 2008, 09:49:01 PM
Finaly ...I got it working too.  :)

:thumbsup:

Many many thanks to TW1ST3D and ???1031 !  :applause:

You are Very Welcome !!  I'm glad that I could Help.
Title: Re: Events block
Post by: ???1031 on January 13, 2009, 01:35:09 AM
I looked at it, it's possible but there is a lot work needed make it workable...

The script use standard smf querys where are the informations comming from? :x

Bye
DIN1031
Title: Re: Events block
Post by: [SiNaN] on February 02, 2009, 04:30:04 AM
serial:

Check this topic:

http://simpleportal.net/index.php?topic=89.0

----

Sounds like a valid request to me.

http://simpleportal.net/index.php?issue=108.0
Title: Re: Events block
Post by: [SiNaN] on April 03, 2009, 03:13:07 AM
Calendar blocks are capable of this in 2.2.
SimplePortal 2.3.8 © 2008-2024, SimplePortal