Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Events widget Details »»
Events widget
Version: 1.00, by tomsch tomsch is offline
Developer Last Online: Sep 2014 Show Printable Version Email this Page

Category: vBulletin CMS Widgets - Version: 4.x.x Rating:
Released: 06-28-2011 Last Update: Never Installs: 38
Re-useable Code Additional Files Translations  
No support by the author.

This upcoming events Widget comes in 3 flavors.

1) Plain lists the next 10 events

2) list the events and the first Image that is in the event details. If no image is listed it will not add a place holder for those events

3) same as 2 with the addtion of a line separator between events

follow the reademe in the file to install

Download Now

File Type: zip widget.zip (4.4 KB, 252 views)

Show Your Support

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

Comments
  #12  
Old 06-30-2011, 01:35 PM
stationar stationar is offline
 
Join Date: May 2007
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tagged. Will wait for birthdays. They are the only events on my forum.
Reply With Quote
  #13  
Old 06-30-2011, 04:24 PM
tomsch tomsch is offline
 
Join Date: May 2003
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stationar View Post
Tagged. Will wait for birthdays. They are the only events on my forum.
birthday widget getting close
Reply With Quote
  #14  
Old 06-30-2011, 04:25 PM
tomsch tomsch is offline
 
Join Date: May 2003
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by toxin View Post
It's working fine on 4.1.4, except it doesn't show recurring events very well.

I have created a recurring event. The range is starting Jan 01, ending Dec 31 and the event is 1st Sunday of every month.

The event is listed, but the widget just displays this:
My Event
From Sat Jan 1st 2011 to 31st Dec 2011
And because the range started Jan 1st, this event is always at the top of the list.
i am working on correcting this item.
Reply With Quote
  #15  
Old 07-22-2011, 02:06 AM
Deriggs007 Deriggs007 is offline
 
Join Date: Feb 2011
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you please provide a demo?

I would like to add this for my website http://www.alteredgamers.com/ where it says "Featured Event"

I like the idea of having the ability show the picture with a set size, and use it as a "widget" if that makes sense...

Thanks!
Reply With Quote
  #16  
Old 07-22-2011, 10:05 AM
Mooff Mooff is offline
 
Join Date: Mar 2010
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tomsch View Post
i am working on correcting this item.
My version of the event widget (widget Turnierticker).
http://www.united-battlezone.de

(not based on your work, based on the idea here:
https://vborg.vbsupport.ru/showthrea...pcoming+events )
But heavily heavily modified. Maybe 5 lines of code are left.

Anyway - since our users rely on weekly recurring events i rewrote the code to account for that and set them in the right order. I thought it might help you with your work.

vB saves the recurring events in two seperate columns:
recurring and recuroption

I know for most of them what they mean (brute force testing ). But the only one i have implemented so far is weekly.

Code:
elseif($event['recurring'] == 3) {
            $teile = explode("|", $event['recuroption']);
            
            //Datum neu setzen fuer die weeklies -- (offset damit der heutige noch erscheint!)
            while($event['dateline_from'] + $wez_offset < $time_offset)
            {
                $event['dateline_from'] += $teile[0] * 7 * 86400; 
            }
What it does.
The recurroption for weekly events is saved like that:
1|5
-> event takes place every week on tuesdays and sundays.

3|32
-> event takes place every 3 weeks on fridays.

So we need that first part of the string, which i write into $teile[0] - then i'm using a loop to change the startdate to the actual week we are in (+ some offset to show events which are today).

I do that for all events which i take out of the database (usually 5ish more than i will show in the end - to account for database missorting based on the wrong dates).

Then i resort the array via
Code:
//getting database results
    foreach($DatabaseStatement as $event)
    {
//calculate new dates (see code above)

//add them into a big array
$events[] = $event;
}

//sort the $events array via array_multisort and startdate
    foreach($events as $c => $key)
    {
        $sort_date[] = $key['dateline_from'];
    }
    
    array_multisort($sort_date, SORT_ASC, $events);

//generate output

I hope that helps.
Reply With Quote
  #17  
Old 05-16-2012, 11:30 AM
Kiint Kiint is offline
 
Join Date: Nov 2006
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance of showing the complete code for the changes you made?

I'm having the problem of the recurring event showing at the top of the widget even though the recurring event is next scheduled until after the next 2 single events...
Reply With Quote
  #18  
Old 05-29-2012, 07:23 PM
KGodel's Avatar
KGodel KGodel is offline
 
Join Date: May 2011
Location: Indiana
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bumping. Any chance someone would know how to convert a time from the date of the calendar event to the date settings the user has specified?
Reply With Quote
  #19  
Old 04-14-2023, 02:47 PM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works on 4.2.5 php 7.2
Reply With Quote
  #20  
Old 04-15-2023, 03:55 PM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyway to get this to show IE: april 15, 2023, april 15, 2022, april 15, 2021 on so on?
Reply With Quote
Reply


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 08:55 AM.


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.04279 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (3)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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