Page 5 of 8

Re: Feature Requests

Posted: Sat Oct 22, 2011 4:33 pm
by Gaber
+1000 for a color picker for event categories at least. I have no problem coming up with color hex values, but most of my clients do. I use WordPress to build sites that clients with little to no web knowledge can manage themselves. For this reason I (and the many others in my position) need plugins that are easy for clients to use.

Awesome plugin, BTW. I've done a lot of searching and waiting for a good event calendar for WP, and this one is it.

Re: Feature Requests

Posted: Sun Oct 23, 2011 8:09 pm
by Gaber
Linking events to posts easily would be the clincher for me. Having to go create a post for an event, copy its URL, come back, create the event for the calendar and paste its url in as a lot of steps for a client to walk through.

What I would love to see is a way to have a drop down menu of posts (ideally from a specific category) to choose from when creating an event.

Even more awesome would be to be able to create events right in the post editor, but I realize that may be way beyond the scope of the plugin.

In any case, a way to link events to posts while adding the event would seal the deal for me.

Still the best calendar plugin, IMO, and I have tried most of them.

Re: Feature Requests

Posted: Fri Dec 16, 2011 9:15 am
by foobar
+1
bowend3c wrote:In the "Manage Categories" section, I would love to see the hex code be accompanied by a "color picker." While most of us developers understand what hex codes are, some of the users updating the calendar on my site do not. It would just make it easier for them to select colors when creating/editing a category.

Re: Feature Requests

Posted: Sun Mar 18, 2012 1:48 am
by cvbeth
We're using the Yahoo cal now, and it shows the time on the main cal page without having to mouse over each item. The time for every event in the month is visible. I want to switch to your calendar, but the times aren't visible. I saw someone's question about this and you said "Edit draw_event in calendar.php." I was able to do that, but I'd sure like to not have to redo it every time you release an update. Please add this as an option. Don't most people want to know what time something is?
Thanks!

Re: Feature Requests

Posted: Tue Mar 20, 2012 5:48 pm
by rikard
skhan wrote: ...
Also I need to remove the stars(*) that are printed in front of the event title.....let me know where can I find that....in the code.

Thank you
Sharmin
Hi,

In 1.3.1 it's in the file calendar.php and in the function:

Code: Select all

function draw_events($events)
calendar.php is located in wp-content/plugins/calendar/

Edit the file and remove the star, save and you should be done.

Hope this helps!

//Rikard

Re: Feature Requests

Posted: Tue Mar 20, 2012 5:52 pm
by rikard
scooter wrote:Hi,

it would be great to have the possibility to add one or more category name(s) or ID(s) to the {CALENDAR} string so that only these categories are displayed in the embedded calendar.

example: {CALENDAR General} or something like that

greets
scooter
Sorry if this has been answered already. I couldn't find such an answer. You can write:

Code: Select all

{CALENDAR;3}
for instance, for a calendar to display only category number 3.

Note that you can't have multiple such calendars on the same page, because they would all display the category of the first mentioned CALENDAR tag. I have a fix for that, which will allow you to have multiple calendars on the same page, with different categories, which I'll post in a separate answer for those interested.

Hope this helps!

//Rikard

Re: Feature Requests

Posted: Tue Mar 20, 2012 6:03 pm
by rikard
scooter wrote:Hi,

it would be great to have the possibility to add one or more category name(s) or ID(s) to the {CALENDAR} string so that only these categories are displayed in the embedded calendar.

example: {CALENDAR General} or something like that

greets
scooter
You can write: {CALENDAR;3} for a calendar with only events of category 3. Note that the function that permits this, does a global replace of all CALENDAR tags, which means that all calendars - if on the same page - will be replaced with the same calendar category.

For instance, if you want two calendars on the same page with each one different category, they would both display with the same category, namely that of the first CALENDAR tag.

I made a modification that allows for you to have multiple calendars on the same page, with each a different category. Please note that I am *not* a PHP developer and that this code is shared "as is" with no warranties or claims to be good practice or anything ;-)

Here is the new function calendar_insert($content)

Code: Select all

// Function to deal with loading the calendar into pages
function calendar_insert($content)
{
  /* Rikard changed preg_match to preg_match_all, to see if there are more than
     one calendar on this page */
  if (preg_match_all('/\{CALENDAR*.+\}/',$content,$dummy,PREG_PATTERN_ORDER)==1)
    {
      $cat_list = preg_split('/\{CALENDAR\;/',$content);
      if (sizeof($cat_list) > 1) {
        $cat_list = preg_split('/\}/',$cat_list[1]);
        $cat_list = $cat_list[0];
        $cal_output = calendar($cat_list);
      } else {
        $cal_output = calendar();
      }
      $content = preg_replace('/\{CALENDAR*.+\}/',$cal_output,$content);
    }else //There were more than one!
    {
        // How many?
        $count_cals=preg_match_all('/\{CALENDAR*.+\}/',$content,$cals,PREG_PATTERN_ORDER);
        $cat_list='';$cal_output='';
        // For each calendar, see if there is a calendar category after ";"
        for($i=0;$i<$count_cals;$i++){
                $cat_list = preg_split('/\{CALENDAR\;/',$cals[0][$i]);
                if (sizeof($cat_list) > 1) {
                        $cat_list = preg_split('/\}/',$cat_list[1]);
                        $cat_list = $cat_list[0];
                        $cal_output = calendar($cat_list);
                        $cat_list=";".$cat_list;
                }else{
                        $cal_output = calendar();
                }
                // Now, replace only _this_ calendar tag with its calendar content
                $content = preg_replace("/\{CALENDAR".$cat_list."\}/",$cal_output,$content);
        }
    }
  return $content;
}
It works for me (TM) and the code above is shared as an example of how it could be accomplished but it probably needs some polishing by someone who really knows PHP.

Hope it is useful.

Cheers

Rikard

Re: Feature Requests

Posted: Thu Jun 28, 2012 4:14 am
by phelan
Is there a way to schedule event every X days?

i have events that occur every 14 days (each second Saturday)

so falls between a weekly and monthly schedule.


additionally - can we set an end date for the event?

ie. event occurs every 14 days for X occurances or until specified date.

Re: Feature Requests

Posted: Tue Sep 04, 2012 5:12 pm
by cinderella
scooter wrote:Hi,

it would be great to have the possibility to add one or more category name(s) or ID(s) to the {CALENDAR} string so that only these categories are displayed in the embedded calendar.

example: {CALENDAR General} or something like that

greets
scooter
This sure would be helpful :ugeek:

Re: Feature Requests

Posted: Thu Sep 06, 2012 3:34 pm
by samanthacastle
+1 for Cinderalla, I'd also like this new feature!