Calendar


Upcoming Events (Within next 31 days):
There are no upcoming events

Upcoming Birthdays (Within next 31 days):
Congratulations to: JohnnyTheOne (29 on Sun 19th Sep)
nGAGE™ (35 on Thu 30th Sep)
musta (35 on Wed 29th Sep)
Bingle (40 on Fri 17th Sep)
Donations

All information and modifications on this site are open source and free, but any donations are gratefully received. They also provide the fuel (beer) that keeps me motivated!

Thanks, Stu

Online Users

In total there are 0 users online :: 0 registered, 0 hidden and 0 guests.

Most users ever online was 208 on Mon Jul 12, 2010 8:05 am

Users browsing this forum: No registered users and 0 guests based on users active over the past 60 minutes

phpbb3.0.6 install issue - hopefully minor!

Chat freely about the calendar MOD here

Moderators: Dev Team, SGP Team, MODerators

phpbb3.0.6 install issue - hopefully minor!

PostAuthor: michaeldcoates on Thu Nov 19, 2009 10:51 pm

Very excited to get this working, a couple of issues though... i uploaded all the correct files, installed it fine, just one bug that i can't figure out and it seems to be very important!

$solved_captcha = false;

this line does not exist in the posting.php file, as a result i cannot add before:

//---BEGIN CALENDAR MOD---
// Load topic calendar event data
// Note that if the data got into the database, it should be valid - Hence we just check that
// the event start time exists, rather than re-validating all the event data
if(isset($post_data['topic_calendar_time']) && !$submit) // We must be editing or correcting
{
if ($post_data['topic_calendar_time'] != '') //if this is blank, don't populate!
{
$post_data['topic_calendar_time'] += $user->timezone + $user->dst;
list($post_data['event_start_date'], $post_data['event_start_time']) = explode('|', gmdate('m-d-Y|h:i a', $post_data['topic_calendar_time']));
if(isset($post_data['topic_calendar_duration']))
{
list($post_data['event_end_date'], $post_data['event_end_time']) = explode('|', gmdate('m-d-Y|h:i a', ($post_data['topic_calendar_duration'] + $post_data['topic_calendar_time'])));
}
}
if(!empty($post_data['event_repeat']))
{
extract_repeat_params($post_data['event_repeat'], $post_data);
}
}
//---END CALENDAR MOD---


Same problem for:


$post_need_approval = (!$auth->acl_get('f_noapprove', $data['forum_id']) && !$auth->acl_get('m_approve', $data['forum_id'])) ? true : false;

//---BEGIN CALENDAR MOD---
// Are we adding repeat events too?
if(!empty($data['event_repeat']))
{
if($mode == 'edit' || $mode == 'post')
{
put_repeat_events($mode, $data);
}
}
//---END CALENDAR MOD---


Any advice?
michaeldcoates
 
Posts: 4
Joined: Thu Nov 19, 2009 8:49 pm

Re: phpbb3.0.6 install issue - hopefully minor!

PostAuthor: grootte on Fri Nov 20, 2009 1:43 pm

Witch version of phpbb are you using?
It's in my files (and I use PHPBB 3.0.5)

Try one of the other lines in the file:

In posting.php find
Code: Select all
// Load draft overview
if ($load && ($mode == 'reply' || $mode == 'quote' || $mode == 'post') && $post_data['drafts'])
{
   load_drafts($topic_id, $forum_id);
}

And ad the 1st lines you pasted after that.

And find
Code: Select all
// Check the permissions for post approval, as well as the queue trigger where users are put on approval with a post count lower than specified. Moderators are not affected.


And ad the second lines you posted before

It should work now
grootte
 
Posts: 2
Joined: Fri Oct 16, 2009 9:30 am

Re: phpbb3.0.6 install issue - hopefully minor!

PostAuthor: michaeldcoates on Fri Nov 20, 2009 3:56 pm

Thanks for the reply - i'm using 3.0.6 - i even downloaded it again and searched the posting.php file and couldn't find either of the afore mentioned lines - should i post up postings.php file here when i get home - would you be kind enough to have a look?

Not finding '$solved_captcha = false;' and the other one seems odd, should i be adding this into the file?

Thanks again
Michael
michaeldcoates
 
Posts: 4
Joined: Thu Nov 19, 2009 8:49 pm

Re: phpbb3.0.6 install issue - hopefully minor!

PostAuthor: michaeldcoates on Fri Nov 20, 2009 7:22 pm

followed those instructions, purged cache, then refresh all style componants.

nothing, no suggestion on the board that a calendar is installed - where have i gone wrong?

http://www.tjfofficial.com/phpBB3/index.php


Cheers for reading again
Michael
michaeldcoates
 
Posts: 4
Joined: Thu Nov 19, 2009 8:49 pm

Re: phpbb3.0.6 install issue - hopefully minor!

PostAuthor: michaeldcoates on Mon Nov 23, 2009 2:36 pm

little help?
michaeldcoates
 
Posts: 4
Joined: Thu Nov 19, 2009 8:49 pm

Re: phpbb3.0.6 install issue - hopefully minor!

PostAuthor: jsmoke222000 on Sun Dec 13, 2009 6:19 am

Find:
Code: Select all
if (isset($captcha) && $captcha->is_solved() !== false)


Add Before:
Code: Select all
//---BEGIN CALENDAR MOD---
// Load topic calendar event data
// Note that if the data got into the database, it should be valid - Hence we just check that
// the event start time exists, rather than re-validating all the event data
if(isset($post_data['topic_calendar_time']) && !$submit) // We must be editing or correcting
{
if ($post_data['topic_calendar_time'] != '') //if this is blank, don't populate!
{
$post_data['topic_calendar_time'] += $user->timezone + $user->dst;
list($post_data['event_start_date'], $post_data['event_start_time']) = explode('|', gmdate('m-d-Y|h:i a', $post_data['topic_calendar_time']));
if(isset($post_data['topic_calendar_duration']))
{
list($post_data['event_end_date'], $post_data['event_end_time']) = explode('|', gmdate('m-d-Y|h:i a', ($post_data['topic_calendar_duration'] + $post_data['topic_calendar_time'])));
}
}
if(!empty($post_data['event_repeat']))
{
extract_repeat_params($post_data['event_repeat'], $post_data);
}
}
//---END CALENDAR MOD---
jsmoke222000
 
Posts: 5
Joined: Sat Dec 12, 2009 1:20 pm

Re: phpbb3.0.6 install issue - hopefully minor!

PostAuthor: bignacboy on Thu Dec 24, 2009 9:21 pm

Hi,

I am having exactly the same issue. I did as suggested by jsmoke222000 but it doesn't work. Associated events cannot be created - everything is there in the tab but when you "submit" you get the topic but no event - you also get this:

[phpBB Debug] PHP Notice: in file /posting.php on line 1489: array_merge() [function.array-merge]: Argument #1 is not an array


This is the line on which the first piece of code listed by michaeldcoates was pasted. So either wrong code or wrong place ?

Furthermore, repeat events is playing up (cannot be edited) - this must be linked to the second piece of code listed by michaeldcoates.

Surely we are not the only two people with this problem?

Any idea what can be done to rectify this? :(
bignacboy
 
Posts: 1
Joined: Wed Dec 16, 2009 2:28 pm

Re: phpbb3.0.6 install issue - hopefully minor!

PostAuthor: Oyabun1 on Tue Jan 05, 2010 5:39 am

There were 2 finds in my updated 3.0.6 version of posting.php I could not find. The first, already mentioned:
Code: Select all
$solved_captcha = false;

for which I used the find suggested by jsmoke222000:
Code: Select all
if (isset($captcha) && $captcha->is_solved() !== false)
and placed the required calendar mod lines before it.

The other was:
Code: Select all
         $post_need_approval = (!$auth->acl_get('f_noapprove', $data['forum_id']) && !$auth->acl_get('m_approve', $data['forum_id'])) ? true : false;

The closest I could find was, which also deals with post approval, is:
Code: Select all
         // Check the permissions for post approval. Moderators are not affected.
         if ((!$auth->acl_get('f_noapprove', $data['forum_id']) && !$auth->acl_get('m_approve', $data['forum_id'])) || !empty($post_data['force_approved_state']))
and placed the required calendar mod lines after those.

I can create associated events in a topic. So maybe the problems the OP and bignacboy are having are not related to the first find but the second.

I do have an issue with repeat events which may be related to this issue or a completely separate issue. I created a repeat event for 1 January repeating every month for 2 years. On the calendar this shows as:
    1 Jan
    1 Feb
    4 Mar
    1 Apr
    2 May
    1 Jun
    2 Jul
    1 Aug
    1 Sep
    2 Oct
etc. For some reason the event is not always on the first of the month.

Anybody have any idea what is going on there?
Oyabun1
 
Posts: 3
Joined: Sun Jan 03, 2010 12:21 am


Return to General Calendar Chat

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron