vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=253239

UpComing Events SideBlock/Bar With/Without Image
by ProFifaLeagues
06 Nov 2010 05:36

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.


ProFifaLeagues 06 Nov 2010 05:40

Works well in Vbull 4.0.6 and no screenshots needed as each users forum will be showing different upcoming events anyway!


We use this to show upcoming events on the calendar for our Football comps and the like!

Zweeper 06 Nov 2010 10:44

what about birthdays? are they shown?

ProFifaLeagues 06 Nov 2010 11:33

No mate it wont pull the birthdays but is something i will look into adding next!

Zweeper 06 Nov 2010 11:54

cheers, its installed when it shows birhtdays since i am looking for that a long time!

ProFifaLeagues 06 Nov 2010 12:03

Well this may be of help then fella and it works well as i have used it
http://www.vbulletin.org/forum/showt...light=birthday

oldfan 06 Nov 2010 16:30

demo?

ProFifaLeagues 06 Nov 2010 17:49

We run a closed Site but will add some screen shots later when i get home!

ProFifaLeagues 06 Nov 2010 18:06

1 Attachment(s)
Heres a basic view with one event arranged for today(Info pulled from the calendar)

Bram H 15 Nov 2010 09:53

We have multiple calendar events per day, and for today it only shows 1 event out of 4

ProFifaLeagues 15 Nov 2010 10:11

Quote:

Originally Posted by Bram H (Post 2122030)
We have multiple calendar events per day, and for today it only shows 1 event out of 4

Not sure then there whats happening as we have it set to pull all events on the preset day from the main calendar but n saying that we do only run one event at a set date!
Sorry i cant be more helpful but after a quick look around seems there is a few problems with the date discrepancy on vbull for this type of mod...Only other thing you could try would be copy the original upcoming event code and test that.

Zweeper 15 Nov 2010 15:17

Quote:

Originally Posted by rammieone (Post 2118637)
Well this may be of help then fella and it works well as i have used it
http://www.vbulletin.org/forum/showt...light=birthday


quite nice, thats true. but i would rather the birthdays in the calender widget as well.

dcuellar 15 Nov 2010 17:26

This one works well. Anyway to have an image above the event in the forum block. Would be nice for it to automatically pull an image posted in the calendar event.

dcuellar 15 Nov 2010 17:30

Also, I just noticed that the date shown on the forum block is one day before it is set in the calendar.

dcuellar 16 Nov 2010 02:31

Got both of my above comments to work.

Here you go for those interested (change what's in Red):

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

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.

What I'd really like to do is replace the code related to the image with a piece of code that uses an image that was either attached or placed between img tags in the event.

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.


All times are GMT. The time now is 16:09.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.