PDA

View Full Version : [Module] Upcoming Events - Standalone Version


Pages : 1 2 [3]

kevnj
10-11-2006, 11:19 PM
get an error on install on 3.6.1 with cmps 2.2.0 when trying to install both versions.

Invalid SQL:
INSERT INTO jelsoft_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

Tom M
10-12-2006, 01:25 AM
Not quite sure what you mean by 'both versions'?

The error arises because the module has already been installed previously. the only way to correct that is to manually go in to the db and delete the entries.

Our Sponsors
 

kevnj
10-12-2006, 10:59 AM
Both versions I meant both the modules you have in the first post....

upcomingevents.module and upcomingevents35.module.


i deleted them from my modules folder. But where do I delete them from the db. I went into myphpadmin area and didnt see it listed.

Tom M
10-12-2006, 11:35 AM
I normally search for the 'portal_ue_' portion of the field name. You should be able to find them in the adv_setting table.

Our Sponsors
 

kevnj
10-13-2006, 09:42 AM
not seeing it. it worked perfect on 3.5 but now its not on 3.6.1 :\

rabidkevin
10-15-2006, 04:02 PM
No matter what I do, I can not get this block to show on my page

http://www.eternalbeats.net/beta/home.php

the nvevents template is a custom block I was messing around with code myself.. so I know adding one has worked.

I tried everything mentioned in this thread about being active, having the right options, using default template, display 'no events', and it still does not show up.

I'm on 3.6.0 and am using the 35 version of your module.

Tom M
10-15-2006, 04:38 PM
No matter what I do, I can not get this block to show on my page

http://www.eternalbeats.net/beta/home.php

the nvevents template is a custom block I was messing around with code myself.. so I know adding one has worked.

I tried everything mentioned in this thread about being active, having the right options, using default template, display 'no events', and it still does not show up.

I'm on 3.6.0 and am using the 35 version of your module.

Make sure the module is marked as 'active' for the page that it's supposed to display on. It's not enough that the module is 'active' it also has to be enabled to display. The latter is often overlooked - I know as it just happened to me a few minutes ago!

Also make sure you have your events set to display. If you don't have events on your Forum Home page (I didn't see any as a guest) then nothing will show in the module either. Lastly, if you are using a custom style you will need to make sure the templates have been installed to that style.

rabidkevin
10-15-2006, 04:52 PM
OK got it all.. also did not have the events on forum index checked.. Jeeze so many little things to be overlooked. Thanks.

GuaRRand
10-18-2006, 08:13 AM
not working.

I tried al solutions in this topic... non worked.

www.glcoti.com

It shows on the forumhome (at the bottom) but not on the portal.

just to be precise
- i selected the right calendar (id4)
- the module is active
- it looks 10 days ahead for events
- It should show NO EVENTS when there are no events planned
etc..

[edit]: Got it working. i installed the COMBO calendar thing also and VOILA.. it showed up...

Tom M
10-18-2006, 11:46 AM
[edit]: Got it working. i installed the COMBO calendar thing also and VOILA.. it showed up...My guess is that the templates for the Upcoming Events module weren't placed into the custom style you were using. When you installed the Combo Calendar you may have installed it to that style and thus it worked the first time. Just a theory.

GuaRRand
10-19-2006, 02:08 AM
My guess is that the templates for the Upcoming Events module weren't placed into the custom style you were using. When you installed the Combo Calendar you may have installed it to that style and thus it worked the first time. Just a theory.
Not it.
It wasnt working on any style.
Now it is :)

Now i got another problem though... and i dont know exactly why this happend.
I installed the combo thing and now, an event isnt an event anymore in the way that people can apply to an event. Its now just a thread.
It doesnt even show the message/textbox which i typed when i created the event....

So it shows up on the calendar and the combo box, but when you click on it, its just an empty thread.

www.glcoti.com
(you should be able to see it unregistered)

[edit]: AAAAAAAAAAAAND fixed this also :P
While fiddling with the previous problem, i altered the "Use template variable for Event Details" in Vbulletin Options->Event forums to "YES".
When i put this back to "NO" it all went back to normal :D

katerri
10-30-2006, 05:19 AM
I recently installed this module on 3.6.2 and it works great, except that holidays do not show up on the Advanced portal page. They do show on the forums home page. I used the upcomingevents35.module for the install, and I double checked and I do have the code in my index.php file for $phrasegroups = array('holiday');

Any suggestions on fixing this?

Tom M
10-30-2006, 09:33 AM
I recently installed this module on 3.6.2 and it works great, except that holidays do not show up on the Advanced portal page. They do show on the forums home page. I used the upcomingevents35.module for the install, and I double checked and I do have the code in my index.php file for $phrasegroups = array('holiday');

Any suggestions on fixing this?You might check out this discussion in the combocalendar thread (http://www.vbadvanced.com/forum/showthread.php?t=13312&page=13&highlight=holiday) starting at post 245 which addresses the same issue for that module. The code change should be the same as the upcoming events code is pretty much identical.

katerri
10-30-2006, 02:37 PM
You might check out this discussion in the combocalendar thread (http://www.vbadvanced.com/forum/showthread.php?t=13312&page=13&highlight=holiday) starting at post 245 which addresses the same issue for that module. The code change should be the same as the upcoming events code is pretty much identical.

Problem finally solved. I had to do three things. Providing details in case anyone else encounts similar issues:

1. Had to go into vbadvanced acp and edit the upcoming events module to use the "simple" calendar. (I had it set to use "default").

2. Then the holidays showed up but the title was blank. I applied the changes to the upcomingevents.php file as referenced in the combocalendar thread you pointed to above.

3. Holiday titles still showed as blank, then I realized that the phrasegroups line of code was inserted into the index.php file that exists in /forums which is the vbulletin index.php. I have an index.php file in the root folder above /forums and this is the vBadvanced (CMPS) index.php file. I added the phrasegroups line of code to that file, and voila, everthing seems to be working beautifully.

Thank you for the assistance and support Tom; I don't think I'd have gotten to the bottom of this without your various pointers.

Neeto
11-08-2006, 10:38 PM
Works great so far. Noticed that it didn't use phrases for the message when there are no events to list...but it's ok.

Mithan
11-11-2006, 11:03 AM
Tom, I hate to be a pest, but is there anyway we can add the start and end time for an event to show up?

I played around with this for about 2 hours today trying to do so but I am not a programmer and just could not get it :(

Tom M
11-11-2006, 11:18 AM
Tom, I hate to be a pest, but is there anyway we can add the start and end time for an event to show up?

I played around with this for about 2 hours today trying to do so but I am not a programmer and just could not get it :(The information is available but it needs to be extracted. I'd suggest you look at the actual vb code to see how it's done on the calendar pages and go from there.

Sychev_S
11-21-2006, 07:48 PM
Tom, in the first upcoming events the layout was different, the date and the even were on the same line, while in upcomingevents35 the even and date are on seperate lines. How do I make upcomingevent35 display events the same way the first one did, all on one line?

Tom M
11-21-2006, 08:16 PM
Tom, in the first upcoming events the layout was different, the date and the even were on the same line, while in upcomingevents35 the even and date are on seperate lines. How do I make upcomingevent35 display events the same way the first one did, all on one line?Perhaps one is set for "Group by Date" and the other set to "Group by Event"?

Sychev_S
11-21-2006, 08:55 PM
No, I figured it out. It is different module, which does not show the number of events to be displayed. Check your pm!

K D Umbaugh
11-25-2006, 09:23 PM
Problem finally solved. I had to do three things. Providing details in case anyone else encounts similar issues:

1. Had to go into vbadvanced acp and edit the upcoming events module to use the "simple" calendar. (I had it set to use "default").

2. Then the holidays showed up but the title was blank. I applied the changes to the upcomingevents.php file as referenced in the combocalendar thread you pointed to above.

3. Holiday titles still showed as blank, then I realized that the phrasegroups line of code was inserted into the index.php file that exists in /forums which is the vbulletin index.php. I have an index.php file in the root folder above /forums and this is the vBadvanced (CMPS) index.php file. I added the phrasegroups line of code to that file, and voila, everthing seems to be working beautifully.

Thank you for the assistance and support Tom; I don't think I'd have gotten to the bottom of this without your various pointers.

I'm running 3.6.4 and I'm not showing the holidays, can you explain item 3 and what changes you made. I made the other changes the date shows but the description is blank.

Tom M
11-25-2006, 09:34 PM
I'm running 3.6.4 and I'm not showing the holidays, can you explain item 3 and what changes you made. I made the other changes the date shows but the description is blank.Check the first post and the comments about 'phrasegroups' in the most recent revision.

K D Umbaugh
11-26-2006, 07:31 AM
Check the first post and the comments about 'phrasegroups' in the most recent revision.


I already made your 12/19/05 change, I was hoping someone made another change that might work. Other then trying your multiple calendar, I can't get you standalone to display holidays.

Tom M
11-26-2006, 11:02 AM
I already made your 12/19/05 change, I was hoping someone made another change that might work. Other then trying your multiple calendar, I can't get you standalone to display holidays.Did you also do the change that was alluded to a bit earlier as well? Take a look here (http://www.vbadvanced.com/forum/showpost.php?p=93090&postcount=245) and see if that helps. To make the change look for a similar line in the php file supplied with this module.

Tom M
11-26-2006, 12:52 PM
There's now a version for vb 3.6 / vBa 2.2 which many be found right here.

The biggest change is that it now handles the display of admin-defined holidays in a more elegant manner.

K D Umbaugh
11-26-2006, 06:22 PM
Did you also do the change that was alluded to a bit earlier as well? Take a look here (http://www.vbadvanced.com/forum/showpost.php?p=93090&postcount=245) and see if that helps. To make the change look for a similar line in the php file supplied with this module.

yes, I made that change also. I will try your new version.

Tom M
11-26-2006, 06:46 PM
yes, I made that change also. I will try your new version.Try the 3.6 version I just created. It's either that or you will need to use only the "Simple" calendar in order for the admin created holidays to be displayed.

The new version (it's in a new thread) supports the optional display of the holidays in either the simple calendar or any other calendar.

Otherwise, find this line in the 3.5 version that handles multiple calendars // do all the calendars or only do the calendar that we're supposed to do
if (!(($mod_options['portal_ue_calendarid'] == -1) OR ($mod_options['portal_ue_calendarid'] == $eventinfo['calendarid'])))
and replace it with this // do all the calendars or only do the calendar that we're supposed to do
if (!(($mod_options['portal_ue_calendarid'] == -1) OR ($mod_options['portal_ue_calendarid'] == $eventinfo['calendarid']) OR ($eventinfo['holidayid'] AND $vbulletin->options['showholidays'])))
This change will allow the display of holidays on all calendars.

I'd suggest using the new 3.6 version as it's a bit more flexible but if all you are after is the display of holidays then the edit should work fine.

chompboard
12-19-2006, 01:06 PM
Is there any way to edit this to display past events from the calendar?

Id like it to display the last 14 AND next 14 days.

Could be done also by having one of these up as-is set to 14 days and one edited version that displays the past 14 days.

Tom M
12-19-2006, 02:39 PM
Is there any way to edit this to display past events from the calendar?

Id like it to display the last 14 AND next 14 days.

Could be done also by having one of these up as-is set to 14 days and one edited version that displays the past 14 days.You might be able to modify the php file to begin sooner but I'm not sure if the active datacache actually contains the past events so this is definitely a YMMV situation.

Look for this line$gettime = TIMENOW - $vbulletin->options['hourdiff']; and adjust the value accordingly. Something like this *might* work.
$gettime = TIMENOW - $vbulletin->options['hourdiff'] - (14 * 24 * 3600);No guarantees on this though...

The_Rayman
01-31-2007, 09:46 AM
I have been struggeling to get this all to work...
I set all the pages to display the upcoming events, activated it... set the cutoff time to 30 days, but no events popped up... :(

Eventually, i found the cure to this problem... :D

Go to your vBulletin settings (all settings) and search for "Display Calendar Events?" and enter a value there...

Mine was accidently set to 1... so only 1 day in front it would pop up events...
Works GREAT now! Thanks for the module!

:cool: :cool:

ryan
09-06-2007, 05:29 PM
Not sure if anyone is still around for this one but i get a error

Warning: Invalid argument supplied for foreach() in /modules/upcoming35.php on line 68

Any help??

Tom M
09-06-2007, 05:45 PM
Not sure if anyone is still around for this one but i get a error

Warning: Invalid argument supplied for foreach() in /modules/upcoming35.php on line 68

Any help??Link?

Do you have any events in the calendar?