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: Jul 2019 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.
Comments
  #2  
Old 06 Nov 2010, 05:40
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
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!

Last edited by ProFifaLeagues; 06 Nov 2010 at 12:04.
Reply With Quote
  #3  
Old 06 Nov 2010, 10:44
Zweeper Zweeper is offline
 
Join Date: Jan 2005
what about birthdays? are they shown?
Reply With Quote
  #4  
Old 06 Nov 2010, 11:33
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
No mate it wont pull the birthdays but is something i will look into adding next!
Reply With Quote
  #5  
Old 06 Nov 2010, 11:54
Zweeper Zweeper is offline
 
Join Date: Jan 2005
cheers, its installed when it shows birhtdays since i am looking for that a long time!
Reply With Quote
  #6  
Old 06 Nov 2010, 12:03
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
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
Reply With Quote
  #7  
Old 06 Nov 2010, 16:30
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
demo?
__________________
Metallica Unauthorized..
Reply With Quote
  #8  
Old 06 Nov 2010, 17:49
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
We run a closed Site but will add some screen shots later when i get home!
Reply With Quote
  #9  
Old 06 Nov 2010, 18:06
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Heres a basic view with one event arranged for today(Info pulled from the calendar)
Attached Images
File Type: bmp events.bmp (128.5 KB, 625 views)
Reply With Quote
  #10  
Old 15 Nov 2010, 09:53
Bram H Bram H is offline
 
Join Date: Jul 2007
We have multiple calendar events per day, and for today it only shows 1 event out of 4
__________________
RaceDepartment.com
Reply With Quote
  #11  
Old 15 Nov 2010, 10:11
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Originally Posted by Bram H View Post
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.
Reply With Quote
  #12  
Old 15 Nov 2010, 15:17
Zweeper Zweeper is offline
 
Join Date: Jan 2005
Originally Posted by rammieone View Post
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.
Reply With Quote
  #13  
Old 15 Nov 2010, 17:26
dcuellar dcuellar is offline
 
Join Date: Nov 2007
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.
Reply With Quote
  #14  
Old 15 Nov 2010, 17:30
dcuellar dcuellar is offline
 
Join Date: Nov 2007
Also, I just noticed that the date shown on the forum block is one day before it is set in the calendar.
Reply With Quote
  #15  
Old 16 Nov 2010, 02:31
dcuellar dcuellar is offline
 
Join Date: Nov 2007
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.

Last edited by dcuellar; 16 Nov 2010 at 02:41.
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 20:34.

Layout Options | Width: Wide Color: