Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
UpComing Events SideBlock/Bar With/Without Image Details »
UpComing Events SideBlock/Bar With/Without Image
Mod Version: 1.10, by ProFifaLeagues (Coder/Designer) ProFifaLeagues is offline
Developer Last Online: Feb 2020 I like it Show Printable Version Email this Page

vB Version: 4.0.0 Rating: (16 votes - 4.31 average) Installs: 95
Released: 06 Nov 2010 Last Update: Never Downloads: 0
Not Supported Re-usable Code Translations  

Upcoming Events in Forum Block/Sidebar



Add the "Upcoming Events" in the forum side block
(Added as a few people seem to have issues with other mods the same)

Start by logging into your Admin cp

Goto Forums and moderators - Forum Blocks Manager and add a new Block.
Call the Block Upcoming Events(Or what ever suits your liking)
Set the block to Active
And use PhP Format.

Now add the content below :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then just make sure the template to use is set to Block_HTML

This will then show the latest upcoming event from your calendar with multi-day events shown until the last day of the event.



Update Thanks to dcuellar
What this does is add a picture centered above the upcoming event. The picture is uploaded to 'images/' as event.jpg. You can change that to whatever you want. It also corrects the issue I had with the date. It's now projecting the proper date.


NOTE:
I changed the number of events to display to 1.
I do not need the range on my forum so I did not test that part.
Here you go for those interested (change what's in Red):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks go to cybaGirl for this fix:
Anyone who has the date showing as the day before can use this code in there forum block.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #16  
Old 16 Nov 2010, 05:38
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Cheers dcuellar I have added that info in the 1st post and given you credit as it will help many!
Reply With Quote
  #17  
Old 16 Nov 2010, 17:03
dcuellar dcuellar is offline
 
Join Date: Nov 2007
Originally Posted by rammieone View Post
Cheers dcuellar I have added that info in the 1st post and given you credit as it will help many!
Cool. Hope it helps others. I'm talking to some friends of mine to see if the image can be auto generated if an image is included in a calendar event. That way we don't have to change the picture everytime a new event is up. That will also allow us to do more than one event on the block at a time.

Wish me luck.
Reply With Quote
  #18  
Old 16 Nov 2010, 19:14
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Real name: Col
Nice one mate..sounds cool that does!!
Reply With Quote
  #19  
Old 16 Nov 2010, 19:34
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Originally Posted by dcuellar View Post
Cool. Hope it helps others. I'm talking to some friends of mine to see if the image can be auto generated if an image is included in a calendar event. That way we don't have to change the picture everytime a new event is up. That will also allow us to do more than one event on the block at a time.

Wish me luck.

Be great to have that option mate keep us informed!!!
Reply With Quote
  #20  
Old 19 Nov 2010, 19:36
dcuellar dcuellar is offline
 
Join Date: Nov 2007
Update: I'm trying to get this thing to work but I need help from someone who knows how to deal with plugins.
Update 2: Sorry guys, I gave in. I hired a coder to complete this for me. Unfortunately, I cannot post the code here. He may do the custom work for you if you are really interested. Look for the member called Gio~logist.

Last edited by dcuellar; 19 Nov 2010 at 22:51.
Reply With Quote
  #21  
Old 20 Nov 2010, 11:47
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Cheers for the info dcuellar!!!
Reply With Quote
  #22  
Old 26 Nov 2010, 15:25
starman™ starman™ is offline
 
Join Date: Apr 2008
I'm still watching this one.
Reply With Quote
  #23  
Old 28 Nov 2010, 06:48
CybaGirl's Avatar
CybaGirl CybaGirl is offline
 
Join Date: Jun 2010
Thanks works well apart from not displaying more than one event on the same day.

I don't suppose anyone has worked out how to do this yet?

Installed on version 4.0.3 BTW.

Sorry never mind it does display more than one event from the same day!

.

Last edited by CybaGirl; 29 Nov 2010 at 02:08.
Reply With Quote
  #24  
Old 29 Nov 2010, 14:43
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Originally Posted by CybaGirl View Post
Thanks works well apart from not displaying more than one event on the same day.

I don't suppose anyone has worked out how to do this yet?

Installed on version 4.0.3 BTW.

Sorry never mind it does display more than one event from the same day!

.
Should show all the days events on 4.0.3
Reply With Quote
  #25  
Old 16 Dec 2010, 11:08
CybaGirl's Avatar
CybaGirl CybaGirl is offline
 
Join Date: Jun 2010
Hello seem to have found a small issues since moving our forum to a VPS but still staying with the same host.

The issue I have come across is that it is reporting the date a day later in the forum sideblock.

For example if an event in the calendar is scheduled for the 25th of December. The sideblock is saying that the event is happening on the 26th of December.

But when you click on the event in the sideblock and you are taken to your calendar it is taking you to the actual date of the event which in this case is the 25th of December.

So for some reason it is showing the event date in the sideblock as a day later.

Does anyone know how I might be able to correct this please?

Thank you.
Reply With Quote
  #26  
Old 20 Dec 2010, 08:29
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
CybaGirl i will be more then happy to come take a look if needed just pm me the details
Reply With Quote
  #27  
Old 21 Dec 2010, 02:01
CybaGirl's Avatar
CybaGirl CybaGirl is offline
 
Join Date: Jun 2010
Ok I finally figured out what the problem was.

Has something to do with the calling of the date in the code.

Here is the first part of dcuellar's original code that I changed that uses an image.

Although this change seems to make no difference. But I still changed it anyway.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Here is the new code and the section I changed is highlighted in red.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


This next change in the code is what made the difference.

Here is the area of the second part of dcuellar's original code that I changed.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


This is how it now looks.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Once I made the above change the date being posted in the side block is now being posted as the same date as whats in the calendar.

I hope this helps others that may come across this same issue.

Here is the complete code so you can just copy and paste it into your Sideblock Manager.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Reply With Quote
  #28  
Old 21 Dec 2010, 06:28
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Superb CybaGirl Much thanks!!!
Reply With Quote
  #29  
Old 22 Dec 2010, 17:53
TopFloorDjs's Avatar
TopFloorDjs TopFloorDjs is offline
 
Join Date: Sep 2008
Real name: Brad
is there a way to show the times of the event? i have multiple events on the same day but at different hours, would be nice to show the hours also.
Reply With Quote
  #30  
Old 23 Dec 2010, 15:26
wampforum wampforum is offline
 
Join Date: Oct 2009
instalkled this but have a coupe of questions - my dates are 1 day too early - even if I try the alternate code its still showing wrong (I prefer the layout on the first code anyway) is there a way to adjust this?

Second thing is there a way to make it pull dates from a single calendar? At the moment it also pulls from a private calendar
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:35.

Layout Options | Width: Wide Color: