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.
  #31  
Old 23 Dec 2010, 17:36
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Smile

Originally Posted by wampforum View Post
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
In regards dates are 1 day too early - if any changes are made to the events or calendar: Once the changes are complete: See if saving the widget block again - this may fix it.

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

Layout : I perfer not to have the word
From
to

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

Sorry! I have not played/seen with the layout on the first code.

cheers
Reply With Quote
  #32  
Old 23 Dec 2010, 18:44
cyberchief cyberchief is offline
 
Join Date: Oct 2010
I can't get this to work. If I load the code with the images... the dates are correct. when loading the code without images (which is what I want)... it is a day to early. This is worthless if the dates aren't correct.

Anybody have this working without images where the dates are correct? If so... can you please post your code?
Reply With Quote
  #33  
Old 23 Dec 2010, 21:22
Micha66 Micha66 is offline
 
Join Date: Dec 2010
hi, i installed this and it works fine.

how can i change the date in german format.

that means not On 30th Dec 2010, but Am 30. Dezember 2010
Reply With Quote
  #34  
Old 23 Dec 2010, 22:39
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Glad to hear it's working well for you!
To be honest i have no idea how that would be done but if i can find out i will pm you and give the info asap.
Reply With Quote
  #35  
Old 23 Dec 2010, 23:41
Micha66 Micha66 is offline
 
Join Date: Dec 2010
thanks for fast answering and thanks in advance for help
Reply With Quote
  #36  
Old 24 Dec 2010, 20:36
Gleedo Gleedo is offline
 
Join Date: Oct 2008
Originally Posted by wampforum View Post
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
Yes, I would also like to be able to pull events from a single calendar if possible. I have looked at the code but can't identify anything that looks like a calendar id

Nice mod though - good work
Reply With Quote
  #37  
Old 29 Dec 2010, 01:00
Zweeper Zweeper is offline
 
Join Date: Jan 2005
really like this one. but can i get the text a bit further away from the left side of the box? (not centered, just a bit further away)?
Reply With Quote
  #38  
Old 29 Dec 2010, 02:10
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Just delete the Center tags and work from there for your positioning mate
Reply With Quote
  #39  
Old 02 Jan 2011, 04:40
wickedstangs wickedstangs is offline
 
Join Date: Mar 2007
Real name: Emilio
I can't get this to work my block is behind a day... how can I fix this..

Thanks
__________________
www.mustangsvstheworld.com
Reply With Quote
  #40  
Old 02 Jan 2011, 11:47
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Did you load it with the images???
As otherwise it seems to show a day behind
Reply With Quote
  #41  
Old 02 Jan 2011, 14:09
wickedstangs wickedstangs is offline
 
Join Date: Mar 2007
Real name: Emilio
Originally Posted by rammieone View Post
Did you load it with the images???
As otherwise it seems to show a day behind
Loaded it with the images and had to use this code.. and it works now...

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

__________________
www.mustangsvstheworld.com
Reply With Quote
  #42  
Old 02 Jan 2011, 15:15
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Cheers for the code it may well help out another user
Reply With Quote
  #43  
Old 07 Feb 2011, 05:33
Raul7 Raul7 is offline
 
Join Date: Mar 2005
Originally Posted by wickedstangs View Post
Loaded it with the images and had to use this code.. and it works now...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
thanks man, it helped me.
Reply With Quote
  #44  
Old 07 Feb 2011, 17:20
Raul7 Raul7 is offline
 
Join Date: Mar 2005
guys is there anyway to show this on "NON" VB pages?
Reply With Quote
  #45  
Old 08 Feb 2011, 05:24
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Originally Posted by Raul7 View Post
guys is there anyway to show this on "NON" VB pages?

Something i have'nt looked at mate but your welcome to have a go and do some testing to get it working on a non vbull page.
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 06:39.

Layout Options | Width: Wide Color: