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 |
#62
|
||||
|
||||
Has anyone got this to work with images PLEASE.
Cant get the images to show??? HELP!!!!!!!!! |
#63
|
||||
|
||||
Help!!!!!!!!!! any one got this to work in the CMS with images
|
#64
|
||||
|
||||
Anyone Help Please I have tried everything and I just cant get the images to show, has anyone got this working in cms????????
|
#66
|
||||
|
||||
Thanks I will try that earlier posters seemed to think it would work in the CMS, does it make a huge differnce that I have different images for different events, do all images have to be the same??
|
#67
|
||||
|
||||
No as long as you have them with there correct addresses they should be fine...
Maybe post an exmaple of what your adding in the code to show these and we may spot something wrong |
#68
|
||||
|
||||
thanks for taking a look code show below
I have used this in the CMS with a few changes (images on right text on left) works great BUT cant get images to show. They show up fine in the actual event but not in the widget here is an example of my image address for one image http://www.mywebsite.co.za/temp%20lo...Beach_2010.jpg this is the code I have used, how do I get the image to show ob_start(); // %d $show_count = 10; $query = sprintf("SELECT * FROM ".TABLE_PREFIX."event WHERE visible = 1 AND (dateline_from > '%d' || ( dateline_from > '%d' AND dateline_to > '%d' )) ORDER BY dateline_from ASC LIMIT %d",TIMENOW,TIMENOW,TIMENOW,$show_count); $event_get = vB::$db->query_read($query); $output_bits = ''; while($event = vB::$db->fetch_array($event_get)) { if($event['dateline_to'] == 0 ) { $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'])); } else { $format = sprintf("From %s to %s",date('jS M Y',$event['dateline_from']),date('jS M Y',$event['dateline_to'])); } $output_bits .= sprintf(' <div class = "cms_widget_post_bit"><a href="calendar.php?do=getinfo&e=%d"><img src="http://www.YourForum.com/forum/images/event.jpg" width="75" height="60" alt="Upcoming Event" HSPACE="7" VSPACE="3" align="left"/><h4 class="cms_widget_post_header"><b>%s</b></a></h4> <p class="cms_widget_post_content"><b>%s</b></p> </div> <BR/><BR/> ',$event['eventid'],$event['title'],$format); } $output = $output_bits; |
#69
|
||||
|
||||
Anyone out there who can help me to get this to work with images in the CMS PLEASE
|
#70
|
||||
|
||||
Mark this code is not the one you have entered is it???
<img src="http://www.YourForum.com/forum/images You would need to link that to your forum address rather then Yourforum.com |
#71
|
||||
|
||||
No I tried to use my website address and the file locations but it didnt work
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|