PDA


View Full Version : ported the upcoming events hack


Pages : 1 2 3 4 [5]

Nautiqeman
06-07-2005, 01:39 PM
http://www.lorenzolounge.com/

Nautiqeman
06-07-2005, 01:46 PM
Tom,
Thanks for looking into this, if there is anything else you need just let me know.

Tom M
06-07-2005, 01:54 PM
Since no copyright is visible, what version of CMPS is this running on?

Was it working before you modified the template? If so, go back and check your edit. If not, are the permissions correct? Also, do you have the edit to functions.php done (assuming this isn't 2.0)?

Nautiqeman
06-07-2005, 02:04 PM
No, it wasn't working before I took out the $calendarbits

I'm running the 1.0 version of CMPS

Nautiqeman
06-07-2005, 02:06 PM
Yea I just checked all the permisions for the calendar... I thought it was odd that it says something when there is nothing on the calendar but when you schedule something that goes away and no events are listed.

Let me check the edit to the functions.php to make sure

Nautiqeman
06-07-2005, 02:09 PM
the Functions.php file was updated correctly

Nautiqeman
06-07-2005, 02:10 PM
here is a portion of that code

// query calendar permissions
if (THIS_SCRIPT == 'online' OR THIS_SCRIPT == 'calendar' OR (THIS_SCRIPT == 'adv_index' AND $vboptions['showevents']) OR (THIS_SCRIPT == 'index' AND $vboptions['showevents']))
{ // Only query calendar permissions when accessing the calendar or subscriptions or index.php
$_PERMQUERY[4] = "
SELECT calendarpermission.usergroupid, calendarpermission.calendarpermissions,calendar.calendarid,calendar.title, displayorder
FROM " . TABLE_PREFIX . "calendar AS calendar
LEFT JOIN " . TABLE_PREFIX . "calendarpermission AS calendarpermission ON (calendarpermission.calendarid=calendar.calendarid AND usergroupid IN(" . implode(', ', $membergroupids) . "))
ORDER BY displayorder ASC
";
$cpermscache = array();
$calendarcache = array();
$displayorder = array();
$calendarpermissions = $DB_site->query($_PERMQUERY[4]);
while ($calendarpermission = $DB_site->fetch_array($calendarpermissions))

caimakale
06-12-2005, 03:16 PM
I am having an odd problem with this hack. It works great on my CMPS page, and even on my forum home page. But I have about 8 pages that I display my left column on (which is where my calendar is), using the integration hack of vba cmps. Only some of the events are being displayed though.

On my main page & forum page (index.php & forums.php) everything is displayed properly. It shows holidays that I have entered in through the ACP as well as events I have added in through the website. Once I navigate into the site, let's say forumdisplay.php (I have the left column on it), the only events that show up are the holidays that I entered in via the ACP holiday manager. The events that I entered in through the website are no longer displayed. Through all of this, I have checked my permissions, which shouldn't matter in this case because I am the one who has entered every event so far, I have tried cacheing different templates in my forumdisplay.php file, all with no success.

The other problem I have is when I click on any of the holidays entered in via the ACP, I get a "There are no events to display." error. This only happens when I click on them in the upcoming events hack. If I click on them in the actual calendar (calendar.php) everything displays fine. I don't have any problems with the events I have entered in via the website displaying properly when I click on them through the upcoming events hack or the actual calendar. (if only I could see them on all the pages) ;)

Here are a couple pictures showing what I mean. The birthday entered is not one of an actual user, its my 2 year old daughter so I entered it in manually. The picture with the 4 events is my index.php page, the other picture is my gallery/index.php page. The results are the same though on all of the pages I am having this problem with. Even files inside my forum directory.

I have the cmps-events.txt hack installed from this thread http://www.vbadvanced.com/forum/showpost.php?p=41359&postcount=150 and have read this thread about a dozen times.

I think is probably something really stupid and when I figure it out I will kick myself for not seeing it, but at this point I am not sure what to try next.

Any and all help is appreciated.

cgmojoco
06-17-2005, 11:40 PM
Will someone PLEASE port this over to CMPS 2!

http://www.vbadvanced.com/forum/showthread.php?t=8394

Thank you SO MUCH in advance

Nautiqeman
06-18-2005, 03:27 PM
What would you do if you ONLY wanted the next event on your calendar to show in the Upcoming Events module?

I don't want it to show a list of events for the set amount of days, just the next event on the calendar

Samir
06-22-2005, 06:40 AM
Hmm...interesting idea. I have no clue as of right now. But I'll think about it.

Samir
06-22-2005, 02:56 PM
After thinking about it for a bit, the logic would change in that instead of looking for events for X days, you would look for events every day until you find one and then just display that event.

Tee
06-26-2005, 03:22 PM
I'm trying to install the upcoming events hack. It seems that I don't have the adv_portal_calendar template which is supposed to be edited. I have the templates
adv_portal_calendar_day
adv_portal_calendar_day_other
adv_portal_calendar_header
adv_portal_calendar_week.

I am new to vbulleting and vbadvanced. Am I missing something?

Torqued
06-26-2005, 05:06 PM
I'm trying to install the upcoming events hack. It seems that I don't have the adv_portal_calendar template which is supposed to be edited. I have the templates
adv_portal_calendar_day
adv_portal_calendar_day_other
adv_portal_calendar_header
adv_portal_calendar_week.

I am new to vbulleting and vbadvanced. Am I missing something?

I tried figuring it out that way too with no luck. :( But I'm still a PHP n00b. :(

Nautiqeman
07-01-2005, 11:33 AM
After thinking about it for a bit, the logic would change in that instead of looking for events for X days, you would look for events every day until you find one and then just display that event.
Any idea on the code change to make it pull JUST the next event and not a list of events for so many days?
Thanks

Samir
07-01-2005, 01:51 PM
Not without finding the code that currently searches for an event. I'd have to look at the php files. But I'm no programmer so it may be too advanced for me.

If you can find the section of code that handles the x-days, I'll look at it and see what I can come up with.

crash resistant
07-13-2005, 11:00 AM
Cpms 2!

SelRahc
08-10-2005, 07:25 PM
What I am looking for is I only want the same information that is post att he bottom of my forum home page. Under "Whats Going On" there is a section for "Todays Events". It doesnt show anything b4 or after todays date. Only the events listed for today :) And it only shows you what you are able to see... so private calendar events wont show up unless you have permission to view that calendar.

That is what I'm looking to put on my main portal page.

Is this the hack I want to use to do that? Or is it something else I need... total php noob here or id make myown.....

Samir
08-10-2005, 08:15 PM
What I am looking for is I only want the same information that is post att he bottom of my forum home page. Under "Whats Going On" there is a section for "Todays Events". It doesnt show anything b4 or after todays date. Only the events listed for today :) And it only shows you what you are able to see... so private calendar events wont show up unless you have permission to view that calendar.

That is what I'm looking to put on my main portal page.

Is this the hack I want to use to do that? Or is it something else I need... total php noob here or id make myown.....To be able to do this, just install it. It relies off the same settings as the upcoming events for the forumhome. Currently, your forum is set to 1 day in advance show that's why it's only showing todays events. This hack will do the same.

Samir
08-10-2005, 08:16 PM
Cpms 2!Does this have the ability to display only the next event?

grains
11-11-2005, 04:57 PM
Nice!

picard102
11-18-2005, 10:18 AM
Any why to have is display separate time periods, with separate headings?

I'd like to be able too display "Today's Events" above the calendar, and then the upcoming events under the calendar. www.fortfrances.info

attroll
01-07-2006, 12:35 AM
Has anyone got this working with 3.5 and if so can we get some directions on how to get it working with 3.5 and CMPS?

Tom M
01-07-2006, 01:16 AM
Has anyone got this working with 3.5 and if so can we get some directions on how to get it working with 3.5 and CMPS?I've done versions that are standalone as well as integratred with the mini-calendar. Both run on CMPS 2.0 and vb 3.5.