[BETA] MyCalendar3

MODs and Styles for phpBB3.

To post your MOD or style, go to the STG MOD Manager
Forum rules
Go to http://startrekguide.com/mods to submit your MOD or style

Re: [BETA] MyCalendar3

Postby TimN » 11 Jun 2009, 10:07

TimN wrote:I just finished building the portal page for our club site. As soon as I include the mini_calendar.php file I get a slew of errors.
Picture 2.png


Any ideas what may be causing this? The only other files I include are common.php and functions_display.php
Board: http://www.necichlids.com
I haven't updated the html file yet, until I can get the portal page (index.php in the parent directory of the board) error free.
Thanks,
Tim


Bump. Where'd Alf go? :blackeye:
Tim
"Just smile and wave boys, smile and wave. Remember, cute and cuddly." - The Penguins
User avatar
TimN    
Supporter
Supporter
 
Posts: 372
Joined: 17 Nov 2008, 16:24
Location: Ceti Alpha V
Favorite Team: London Silly Nannies
Gender: Male
phpBB Knowledge: 5




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [BETA] MyCalendar3

Postby nono » 11 Jun 2009, 11:19

Franfj wrote:
It works for me ;)


yes, thanks it s also ok for me. :good:

Nicolas
nono
Crewman
Crewman
 
Posts: 6
Joined: 17 May 2009, 09:28
Gender: Male

Re: [BETA] MyCalendar3

Postby thomascz » 02 Jul 2009, 08:25

Hello,

it works for me too on phpbb3 with other MOD included.

I choosed to remove the default position minicalendar and I removed birthday as event.

Despite removing birthday in the event, there is not enough space for my events. If the name of the first event is for exemple:
Mastondon band - central park - 15/07

If a second event on the same day has the same lengh it is not full visible and a third event would be not visible.

So is it possible to change the calendar from a full month view to a full week view? Someone has already done it?

Else it could be great to have the events in a "auto-updatable" topic. the events classed by date could be easier readable.

cheers

Thomas

(sorry for language mistakes)
Last edited by thomascz on 02 Jul 2009, 16:14, edited 1 time in total.
User avatar
thomascz
Crewman
Crewman
 
Posts: 6
Joined: 02 Jul 2009, 08:17
Gender: Male
phpBB Knowledge: 4

Re: [BETA] MyCalendar3

Postby thomascz » 02 Jul 2009, 08:25

double post please delete :beg:
User avatar
thomascz
Crewman
Crewman
 
Posts: 6
Joined: 02 Jul 2009, 08:17
Gender: Male
phpBB Knowledge: 4

Re: [BETA] MyCalendar3

Postby vladb2000 » 07 Jul 2009, 01:40

Hello. And you can make your birthday falls in the upcoming events?
vladb2000    
Crewman
Crewman
 
Posts: 1
Joined: 07 Jul 2009, 01:33
Gender: Male
phpBB Knowledge: 3

Re: [BETA] MyCalendar3

Postby thomascz » 07 Jul 2009, 16:18

Hello,

In order to give more place to insert events in one day, the easiest things to do is change in mycalendar3_body.html :

Code: Select all
   li.notaday, li.day {
      display: block;
      height: 9em;
   }


to

Code: Select all
   li.notaday, li.day {
      display: block;
   ]height: xxem;
   }


with xx= 20 for exemple



But the events in one day are not easy to be seperate. In the same file mycalendar3_body.html, you have :

Code: Select all
.calendar ul {
      list-style-type: none;
   }


and

Code: Select all
ul.event {
      display: block;
      width: 100%;
      list-style-type: none;
      padding-left: 1em;
   }



I have tried to change
Code: Select all
list-style-type: none;
to
Code: Select all
list-style-type: disc;
but it doesn't have any effects. Maybe this is because a <div> is used just after <li>? This is a pity because a list style like "disc" could make the events more readable.

Again, It could be better to have the choice to input a week calendar or a topîc withy day by day events but it is above my skills. :cry:

Does someone has any abilities to arrange this?
User avatar
thomascz
Crewman
Crewman
 
Posts: 6
Joined: 02 Jul 2009, 08:17
Gender: Male
phpBB Knowledge: 4

Re: [BETA] MyCalendar3

Postby Slon77 » 25 Jul 2009, 10:39

Thank you for the Calendar!
Please could you advice - how to give the possibility to add new events only for users f.e. which belong to "Calendar" group?

And another question (less important) - is it possible to color the events from different sub-forums with different colour?

Thank you!

[ Post made via Mobile Device ] Image
Slon77
Crewman
Crewman
 
Posts: 1
Joined: 25 Jul 2009, 10:32
Gender: Male
phpBB Knowledge: 2

Re: [BETA] MyCalendar3

Postby philou-- » 05 Aug 2009, 06:00

Hello,

Thanks for this mod. I have build my own calendar based on this and it works fine (I did change quiet a lot however)

I have a litle remaining problem that is common, I think, with Mycalendar3.

When I submit a new post and there is a mistake (no title for instance), the event tab is not present anymore. I asume that it is a problem with the place in posting.php, but it is a bit hard to find out by myself what I should change

Code: Select all
page_header($page_title);

// BEG 001 MyCalendar3 MOD
// here we build the event tab
// mode should be post (new topic) or edit (but only for the first post then- tested inside)
if ($user->data['is_registered'] && !$submit && $mode <> 'reply' && $mode <> 'quote')
{
   mycal_generate_entry($mode, $forum_id, $topic_id, $post_id, $template, $preview, $refresh);
}
// END 001 MyCalendar3 MOD

$template->set_filenames(array(
   'body' => 'posting_body.html')
);


Thanks
philou--    
Crewman
Crewman
 
Posts: 2
Joined: 05 Aug 2009, 05:51
Gender: Male
phpBB Knowledge: 4

Re: [BETA] MyCalendar3

Postby philou-- » 05 Aug 2009, 06:12

Slon77 wrote:Please could you advice - how to give the possibility to add new events only for users f.e. which belong to "Calendar" group?


My solution for this problem :
Code: Select all
function mycal_generate_entry($mode, $forum_id, $topic_id, $post_id, $template, $preview, $refresh)
{
   global $db, $user;

   // user must have permissions and in case of edit, only the first post
   if (!mycal_permission_check() || ($mode == 'edit' && !topic_first_post($topic_id, $post_id)))
   {
      return;
   }


Code: Select all
// This fct control if the user is allowed to create events
function mycal_permission_check()
{
   global $user;
   return group_memberships(9, $user->data['user_id'], true);
}


I know the group number hardcoded is not very nice :wink:
philou--    
Crewman
Crewman
 
Posts: 2
Joined: 05 Aug 2009, 05:51
Gender: Male
phpBB Knowledge: 4

Re: [BETA] MyCalendar3

Postby Holger » 05 Aug 2009, 07:57

Thank you very much for this port of the myCalendar mod!
I love it! :thumbsup:

I have one issue though: when adding an event in a forum (by posting av topic) and trying to jump to the next month, then I get No post mode specified.
Same thing happens when I try to post an event that is lasting from one month to another. It is not possible to select the next month.

What can I do about this?

/Holger :shock:
Holger
Crewman
Crewman
 
Posts: 4
Joined: 05 Aug 2009, 07:51
Gender: Male
phpBB Knowledge: 6

PreviousNext

Return to phpBB3 Customizations

Who is online

Users browsing this forum: Google Adsense [Bot] and 8 guests