vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > Add-On Modules & Modifications > vBa CMPS v3.x & 2.x > Add-On Modules (version 3.x & 2.x)

Reply
 
Thread Tools Display Modes
  #1  
Old 11-26-2006, 12:50 PM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
Default [Module] Upcoming Events - Standalone Version

This is an update of the vb3.5 version of this module for vb3.6 and vBa 2.2.

Upcoming Events
Critical controls done via module ACP including
  • Specifying which calendar to use
  • Whether to display Admin-defined Holidays
  • Number of days to look at
  • Display grouping (Event or Days)
  • Optionally display a 'No Events' message when no events available
  • Limit the number of events displayed

The way the dates are displayed has been changed to only show a start and end date instead of multiple dates when dealing with recurring or ranged events. Additionally, the earliest date shown will be the current date. Single date events will only have that date shown.

The Upcoming Events section makes use of 2 new templates, adv_portal_todaysevents, and adv_portal_upcomingevents which has the phrase "Upcoming Events" in it.

The only real limitation is that the number of days specified for the upcoming events will be limited to the number specified for the Forum Home Page Display as the databuild routine references that variable.

To upgrade it will be necessary to delete the current version of the module and install this new version.

Revisions

2/11/07
Corrected minor url problem when showing events sorted by date.

To upgrade replace the existing upcomingevents.php file or upload the corrected module if installing it for the first time.

11/26/06
Corrected a problem when dealing with admin-defined Holidays. Only the php file was changed so that's all the needs to be uploaded. To display holidays it is necessary to modify the CMPS index.php file by adding the portion in red. If you already have phrasegroups listed then simply add it to them.
Code:
$phrasegroups = array('holiday');
To display all calendars in a single module similar to the way events display on the Forum Home page use the "Simple" calendar.


PS - If you like this module and would like to make a donation you can do so via PayPal.
Attached Files
File Type: module upcomingevents.module (14.4 KB, 1727 views)
File Type: php upcomingevents.php (10.2 KB, 1330 views)

Last edited by Tom M; 02-12-2007 at 02:49 AM. Reason: Updated module to correct bug
Reply With Quote
  #2  
Old 11-26-2006, 06:31 PM
K D Umbaugh K D Umbaugh is offline
Member
 
Join Date: Oct 2005
Location: Florida
Posts: 43
Default Re: [Module] Upcoming Events - Standalone Version

that fixed the problem, the holidays now show up.

Neighborhood Round Table

shown on the bottom left column
Reply With Quote
  #3  
Old 11-27-2006, 06:27 AM
ruhrpottforum ruhrpottforum is offline
Junior Member
 
Join Date: Oct 2006
Posts: 6
Default Re: [Module] Upcoming Events - Standalone Version

Hello,

is it possible only to display events from a special user group like Admins?

Last edited by ruhrpottforum; 11-27-2006 at 07:12 AM.
Reply With Quote
  #4  
Old 11-27-2006, 11:11 AM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
Default Re: [Module] Upcoming Events - Standalone Version

Quote:
Originally Posted by ruhrpottforum View Post
Hello,

is it possible only to display events from a special user group like Admins?
It does make use of the calendar permissions so you should be able to filter based on the permissions. Of course you could also create an admin-only calendar and have the CMPS permissions control whether or not it displays.
__________________
Tom Morris
Porsche Boxster discussion forum.
Today's Conservative discussion forum.
Reply With Quote
  #5  
Old 12-07-2006, 10:01 PM
mikel's Avatar
mikel mikel is offline
Member
 
Join Date: Jul 2004
Location: Left Coast, Lost Angeles
Posts: 64
Default Re: [Module] Upcoming Events - Standalone Version

Nice !

One thing I noticed in that the events defined in VB admin control panel

Calendars -> Holiday Manager

e.g. I defined Christmas and New Year's and added descriptions, the description is NOT showing up as the link below the date:

Quote:
12-25-2006
>>
----------------------
01-01-2007
>>
See at:

http://www.southbaydanceclub.org/index.php

in the left hand column.

Any ideas ?

Thanks,
Mike
Reply With Quote
  #6  
Old 12-08-2006, 01:23 AM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
Default Re: [Module] Upcoming Events - Standalone Version

Quote:
Originally Posted by mikel View Post
Nice !

One thing I noticed in that the events defined in VB admin control panel

Calendars -> Holiday Manager

e.g. I defined Christmas and New Year's and added descriptions, the description is NOT showing up as the link below the date:



See at:

http://www.southbaydanceclub.org/index.php

in the left hand column.

Any ideas ?

Thanks,
Mike
You should only need to change this
PHP Code:
$phrasegroups = array(); 
to this
PHP Code:
$phrasegroups = array('holiday'); 
in your CMPS index file.
__________________
Tom Morris
Porsche Boxster discussion forum.
Today's Conservative discussion forum.
Reply With Quote
  #7  
Old 12-07-2006, 11:33 PM
tekstylez tekstylez is offline
Junior Member
 
Join Date: Sep 2006
Posts: 4
Default Re: [Module] Upcoming Events - Standalone Version

I dont see anything
Reply With Quote
  #8  
Old 12-08-2006, 01:24 AM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
Default Re: [Module] Upcoming Events - Standalone Version

Quote:
Originally Posted by tekstylez View Post
I dont see anything
That's not a whole lot of detail there

You'll either need to explain a bit more or provide a link to the site.
__________________
Tom Morris
Porsche Boxster discussion forum.
Today's Conservative discussion forum.
Reply With Quote
  #9  
Old 12-08-2006, 12:43 PM
mikel's Avatar
mikel mikel is offline
Member
 
Join Date: Jul 2004
Location: Left Coast, Lost Angeles
Posts: 64
Default Re: [Module] Upcoming Events - Standalone Version

Duhhhhhhh, guess I neglected to fully read the 1st post here

Thanks Tom I'll give it a try !

Edit : That was the fix !

Last edited by mikel; 12-08-2006 at 01:41 PM.
Reply With Quote
  #10  
Old 12-10-2006, 11:04 AM
Dennis Kaczor's Avatar
Dennis Kaczor Dennis Kaczor is offline
Member
 
Join Date: Sep 2005
Posts: 57
Default Re: [Module] Upcoming Events - Standalone Version

Well I have been trying to get this module to work without any luck at all, and I get this error mesage and hope that some one could tell me how I would fix this problem.

Here is the error I get when I go to install this module.

Database error in vBulletin 3.6.4:

Invalid SQL:
INSERT INTO phrase (languageid, varname, text, fieldname) VALUES (0, 'setting_portal_ue_showevents_title', 'Events Event Days', 'vbsettings');

MySQL Error : Duplicate entry 'setting_portal_ue_showevents_title-0-vbsettings' for key 2
Error Number : 1062
Reply With Quote
  #11  
Old 12-10-2006, 11:29 AM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
Default Re: [Module] Upcoming Events - Standalone Version

Quote:
Originally Posted by Dennis Kaczor View Post
Well I have been trying to get this module to work without any luck at all, and I get this error mesage and hope that some one could tell me how I would fix this problem.

Here is the error I get when I go to install this module.

Database error in vBulletin 3.6.4:

Invalid SQL:
INSERT INTO phrase (languageid, varname, text, fieldname) VALUES (0, 'setting_portal_ue_showevents_title', 'Events Event Days', 'vbsettings');

MySQL Error : Duplicate entry 'setting_portal_ue_showevents_title-0-vbsettings' for key 2
Error Number : 1062
From the error message it sounds like you already had the module installed - perhaps on an earlier version. If that's the case the "old" version needs to be deleted. If it's already been deleted then there will need to be some manual cleanup of the db. It's not hard to do and if you need instructions/help on how to do that let me know.
__________________
Tom Morris
Porsche Boxster discussion forum.
Today's Conservative discussion forum.
Reply With Quote
  #12  
Old 12-10-2006, 11:58 AM
Dennis Kaczor's Avatar
Dennis Kaczor Dennis Kaczor is offline
Member
 
Join Date: Sep 2005
Posts: 57
Default Re: [Module] Upcoming Events - Standalone Version

Quote:
Originally Posted by Tom M View Post
From the error message it sounds like you already had the module installed - perhaps on an earlier version. If that's the case the "old" version needs to be deleted. If it's already been deleted then there will need to be some manual cleanup of the db. It's not hard to do and if you need instructions/help on how to do that let me know.
Hi Tom, yes I had an older version installed at one time or other, and I will need your help and instructions on how to clean up the database for sure.

Thanks for the help and I'm looking forward to getting this to work with your help.

I appreciate this very much

Dennis
Reply With Quote
  #13  
Old 12-10-2006, 12:25 PM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
Default Re: [Module] Upcoming Events - Standalone Version

I normally use phpMyAdmin and manipulate the db directly. However this may work as well...

Use ACP -> Languages & Phrases -> Search in Phrases and use 'portal_ue' as the search phrase, w/o the quotes. Make sure that the "Phrase Variable Name Only" button is marked. You may then edit each phrase where you will have the option to delete it. If this doesn't resolve the problem then we'll take a more direct approact
__________________
Tom Morris
Porsche Boxster discussion forum.
Today's Conservative discussion forum.
Reply With Quote
  #14  
Old 12-13-2006, 07:00 AM
Dennis Kaczor's Avatar
Dennis Kaczor Dennis Kaczor is offline
Member
 
Join Date: Sep 2005
Posts: 57
Default Re: [Module] Upcoming Events - Standalone Version

Quote:
Originally Posted by Tom M View Post
I normally use phpMyAdmin and manipulate the db directly. However this may work as well...

Use ACP -> Languages & Phrases -> Search in Phrases and use 'portal_ue' as the search phrase, w/o the quotes. Make sure that the "Phrase Variable Name Only" button is marked. You may then edit each phrase where you will have the option to delete it. If this doesn't resolve the problem then we'll take a more direct approact
Hi Tom, sorry for the delay in getting back to you on this issue.

That fixed the problem, and it is now working, thanks for pointing me in the right direction to resolve this.

Thanks again for all your help!

Dennis
Reply With Quote
  #15  
Old 12-11-2006, 09:00 AM
The_Rayman The_Rayman is offline
Member
 
Join Date: Jan 2006
Location: Holland
Posts: 30
Default Re: [Module] Upcoming Events - Standalone Version

Hi Tom,

Got the module active and visible on the frontpage. Only thing is... i don't use the simple calendar... we use the default calendar...
Once selected in the module... all i see is "no upcoming events"

Any suggestions?
Reply With Quote
  #16  
Old 12-11-2006, 11:58 AM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
Default Re: [Module] Upcoming Events - Standalone Version

Quote:
Originally Posted by The_Rayman View Post
Hi Tom,

Got the module active and visible on the frontpage. Only thing is... i don't use the simple calendar... we use the default calendar...
Once selected in the module... all i see is "no upcoming events"

Any suggestions?
Do the events show on the FORUMHOME? How many days do you have the event list set to display? Link?
__________________
Tom Morris
Porsche Boxster discussion forum.
Today's Conservative discussion forum.
Reply With Quote
  #17  
Old 02-04-2007, 02:23 AM
JoeZ JoeZ is offline
Junior Member
 
Join Date: Jan 2007
Posts: 7
Default Re: [Module] Upcoming Events - Standalone Version

Is there any reason this would not show up on the cmps_index page? I installed it, and i think properly, but it isn't showing up where it is suppose to. Permissions set to "yes" for all...
Reply With Quote
  #18  
Old 02-04-2007, 03:01 AM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
Default Re: [Module] Upcoming Events - Standalone Version

Quote:
Originally Posted by JoeZ View Post
Is there any reason this would not show up on the cmps_index page? I installed it, and i think properly, but it isn't showing up where it is suppose to. Permissions set to "yes" for all...
Please provide a link...

Make sure it is set to display on the default page.

If you are using a custom style make sure the templates were loaded to that style.

There are lots of other reasons it might not show but without a link to the page it makes it really hard
__________________
Tom Morris
Porsche Boxster discussion forum.
Today's Conservative discussion forum.
Reply With Quote
  #19  
Old 03-15-2007, 11:43 AM
wshinds wshinds is offline
Junior Member
 
Join Date: Mar 2005
Posts: 22
Default Re: [Module] Upcoming Events - Standalone Version

Quote:
Originally Posted by Tom M View Post
Please provide a link...

Make sure it is set to display on the default page.

If you are using a custom style make sure the templates were loaded to that style.

There are lots of other reasons it might not show but without a link to the page it makes it really hard
I've had a problem with this module on 2 occaisions, in two entirely different versions, years apart so that I was unable to remember how I solved it the first time. ((Also, I am reading this off of page one, but I am certain it stands to be repeated)).

If you've installed this module through the UCP and did not upload it manually to the FTP server, have the # of dates to "look into the future" seeking events determined, and well gosh, the module still isn't showing up, first press CTRL-ALT-DELETE, and 3 minutes from now, after your nerves chill from the frustration with figuring these modules out and you are focused with you anger square on me, head into the VBACMPS section of the control panel. Select EDIT PAGES. Choose the default page first, I only have one page, more than enough for my needs. And when you're in there, put a checkbox next to upcoming events. Save, and reload.

That's the same fix on both occasions for me more or less.

Thanks Tom for this AWESOME mod for the already AWESOME VBACMPS. Yes, that is something dark colored hanging on my nose.

-Scott
Reply With Quote
  #20  
Old 02-04-2007, 09:38 AM
JoeZ JoeZ is offline
Junior Member
 
Join Date: Jan 2007
Posts: 7
Default Re: [Module] Upcoming Events - Standalone Version

http://sospdq.com/collegetampa1/upload
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Module] Upcoming Events - Standalone Version Tom M Add-On Modules (version 3.x & 2.x) 131 09-06-2007 05:45 PM
Upcoming Events Module not working amitwadhwa "How Do I..." Questions 6 11-15-2006 07:17 PM
[Module] Upcoming Events James Goddard Add-On Modules (version 3.x & 2.x) 91 09-03-2006 11:45 PM
module: upcoming events alekone Add-On Modules & Modifications 7 11-02-2005 05:30 PM
REQ: Upcoming events module MotoUp Module & Modification Discussion & Requests 36 08-06-2005 09:14 PM


All times are GMT -4. The time now is 06:32 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.