The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
UpComing Events SideBlock/Bar With/Without Image Details »» | |||||||||||||||||||||||||||
UpComing Events SideBlock/Bar With/Without Image
Developer Last Online: Nov 2023
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 : PHP Code:
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): PHP Code:
Anyone who has the date showing as the day before can use this code in there forum block. PHP Code:
Show Your Support
|
3 благодарности(ей) от: | ||
ggrimes620, NoMatt3r, Toxic2 |
Comments |
#42
|
|||
|
|||
Quote:
Code:
$format = sprintf("On %s%s %s %s",date("j",$event['dateline_from'])+1, date("S",$event['dateline_from']), date("M",$event['dateline_from']), date("Y",$event['dateline_from'])); |
#43
|
||||
|
||||
Cheers for the code it may well help out another user
|
#44
|
|||
|
|||
thanks man, it helped me.
|
#45
|
|||
|
|||
guys is there anyway to show this on "NON" VB pages?
|
#46
|
||||
|
||||
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. |
#47
|
|||
|
|||
Quote:
PHP Code:
|
#48
|
||||
|
||||
Hello All,
Great mod and good work by all who contributed. I have a few questions (you are talking to a technical idiot please bear that in mind when answering) Will this work as a widget in CMS Is there a way to have images to the left and event data on the right (any chance someone can show me full code to do this PLEASE) If someone has worked out how to get it to work for single calendars please advise I run two calendars and would like to have a widget for each of them. Many thanks in advance to anyone who takes the time to answer me |
#49
|
||||
|
||||
I have a similar need, Mark4 - good of ya to ask - I was just searching for that function.
and btw - it works just fine in CMS - Just remember to return a variable of $results as instructed. The scripts above in the root post refer to $output.. 1_ Admin CP - CMS - Widget Manager - Create Widget - Direct PHP execution type - Give it a title. 2) Select configure from the list after the addd of the widget and the code above of your choice. I will assume you know how to copy the code block and paste it. 3) In your pasted block, scroll all the way to the end - If the one you copied ends like this Code:
return $output; Then change it to this: Code:
return $result; now, to customize it by event Cheers |
#50
|
|||
|
|||
2 questions :
1- ) can someone explain what is // %d ? I am just trying to learn 2-) another issue i have right now is when an even is on Feb 9th, as soon as clock turn to FEB 9th, the even is gone, is it possible to keep it until end of the current date? Thanks, |
#51
|
||||
|
||||
Hello BitBender
thanks for info, cutting and pasting just about covers my technical knowlege so I can manage that thanks. I want a widget with images but the image on the left and text on the right, but the text should be limited to the title only that will take you to the event if click on it. Any chance you can help me with the code required to acheive that result? Sorry I know I am asking a lot here |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|