Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
[WIDGET] Upcoming Events Details »»
[WIDGET] Upcoming Events
Version: 1.00, by cory_booth cory_booth is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: vBulletin CMS Widgets - Version: 4.0.2 Rating:
Released: 02-19-2010 Last Update: Never Installs: 103
Re-useable Code Is in Beta Stage  
No support by the author.

Another upcoming events widget...
I am really waiting for someone to kickout an integrated calendar/events widget...
But until then, I am using this PHP widget for my events. I saw a few others on here, but they were not quite what I was looking for...

Feel free to use/hack/slash this code for your own use...

Navigate to AdminCP -> CMS -> Widgets.
Create a PHP Type Widget and paste the below code.

PHP Code:
ob_start();
global 
$db,$vbulletin;
$calendarid="1";
$per_page "10";
//################################################
$d=date("d");
$m=date("m");
$y=date("y");
$sdate mktime(000date("$m"), date("$d"),  date("$y"));
$edate mktime(000date("$m"), date("31"),  date("$y"));
$and=" and dateline_from > '".$sdate."'";

$getevents=$db->query_read("SELECT eventid, title, dateline_from from " TABLE_PREFIX "event WHERE calendarid='".$calendarid."' $and order by dateline_from ASC LIMIT $per_page");
$count=0;
if(!
$db->num_rows($getevents))
{
}
else
{
WHILE (
$events=$db->fetch_array($getevents))
{
$dtitle=$events['title'];
$did=$events['eventid'];
$date vbdate('m-d-y
'
,$events['dateline_from'], false,true,false,true);
if (
$count 2){$class="alt2";}else {$class="alt1";}
$year=date("Y");
$pagetitle $f;
$pagetitle .= " ";
$pagetitle.=$year;
$eventbits .="<tr><td nowrap class=''><strong>".$date.":</strong></td><td width='100%' class=''><a href='calendar.php?do=getinfo&e=$did&c=".$calendarid."'>".$dtitle."</a></td></tr>";
$count++;
}
}
echo 
"<table align='center' width='100%'>";
echo 
$eventbits;
echo 
"</table>";
$db->free_result($getevents);
unset(
$events);
$output=ob_get_contents();
ob_end_clean(); 

Screenshots

File Type: jpg events.jpg (20.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-01-2010, 05:38 AM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright, at least I'm not going crazy. I did some research at our neighboring events widget mod, and found that they have encounterd the exact same problem, with a solution outlined here.

My GMT is -6, so whenever an event is scheduled to begin at 6pm or later, it displays the date for the following day.

Now, I just need to figure out how to apply this same solution to this mod.

At least there is hope.
Jeff
Reply With Quote
  #13  
Old 05-01-2010, 07:06 AM
wIrEs wIrEs is offline
 
Join Date: Dec 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how to display something like this ?
Today at 3:00 PM EST + Event Title
and
Tomorow at 7:00 PM EST + Event Title
and
05-03-10 at 4:00 PM EST + Event Title

Thanks !
Reply With Quote
  #14  
Old 05-03-2010, 01:49 AM
unfv unfv is offline
 
Join Date: Apr 2008
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, is there any chance to show birthdays on this widget?

Thanks!
Reply With Quote
  #15  
Old 05-04-2010, 04:44 PM
SuperGLS SuperGLS is offline
 
Join Date: Nov 2004
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to set how far in advance it grabs events? Like an event in August? Is that too far away?

Also, I wish the colon had a space on the RIGHT instead of the LEFT. Any ideas?
Reply With Quote
  #16  
Old 07-23-2010, 03:51 PM
Zweeper Zweeper is offline
 
Join Date: Jan 2005
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it would be an awesome widget if it would also represent the birthdays of the members.
Reply With Quote
  #17  
Old 07-23-2010, 04:24 PM
rabidkevin rabidkevin is offline
 
Join Date: Aug 2005
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NashChristian View Post
Alright, at least I'm not going crazy. I did some research at our neighboring events widget mod, and found that they have encounterd the exact same problem, with a solution outlined here.

My GMT is -6, so whenever an event is scheduled to begin at 6pm or later, it displays the date for the following day.

Now, I just need to figure out how to apply this same solution to this mod.

At least there is hope.
Jeff
Did you ever figure it out? I'm stuck at the same place as you. And everyone else please post on vbulletin.com and request this as a default widget of vbulletin... http://www.vbulletin.com/forum/showt...nts-CMS-Widget
Reply With Quote
  #18  
Old 07-23-2010, 07:44 PM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rabidkevin View Post
Did you ever figure it out? I'm stuck at the same place as you. And everyone else please post on vbulletin.com and request this as a default widget of vbulletin... http://www.vbulletin.com/forum/showt...nts-CMS-Widget
I went with the other widget, and modified their code a bit to display as I wanted. I couldn't make this code work for me.
Reply With Quote
  #19  
Old 08-01-2010, 12:51 PM
Zweeper Zweeper is offline
 
Join Date: Jan 2005
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would be nice if it would look like the one in the attachment.

1. a small calender on the top to see the actual month.

2. then, a row with today's birthdays, if there are birthdays.

3. last but not least, a new row with upcoming events of the next xx days.

Maybe I am not alone with this Idea. Unfortunately I cant code this on my own.
Just to give some useful critic.
Attached Images
File Type: jpg Capture.JPG (29.3 KB, 0 views)
Reply With Quote
  #20  
Old 08-01-2010, 05:11 PM
imported_pmay68 imported_pmay68 is offline
 
Join Date: Sep 2002
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zweeper View Post
Would be nice if it would look like the one in the attachment.





1. a small calender on the top to see the actual month.

2. then, a row with today's birthdays, if there are birthdays.

3. last but not least, a new row with upcoming events of the next xx days.



Maybe I am not alone with this Idea. Unfortunately I cant code this on my own.
Just to give some useful critic.
Yeah I really like that one as well..
Reply With Quote
  #21  
Old 10-05-2010, 04:33 AM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default


vB has been taking their sweet time developing a corporate solution for this Calendar Widget. It has been logged in Jira, but there have only been TWO votes so far and it appears to have been deprioritized.

Please log into Jira and VOTE FOR THIS! It will only take you a minute: http://tracker.vbulletin.com/browse/VBIV-7656

Quote:
A number of customer have asked for a calendar widget that will access the current site calendar. That is distinct from the current cms calendar widget that displays dates on which articles have been published. Wayne also feels this should get a high priority.
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 02:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06506 seconds
  • Memory Usage 2,351KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete