Feature Requests

Support for the WordPress Calendar plugin
Gaber
Posts: 2
Joined: Sat Oct 22, 2011 4:28 pm

Re: Feature Requests

Unread post by Gaber » Sat Oct 22, 2011 4:33 pm

+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.

Gaber
Posts: 2
Joined: Sat Oct 22, 2011 4:28 pm

Re: Feature Requests

Unread post by Gaber » Sun Oct 23, 2011 8:09 pm

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.

foobar
Posts: 1
Joined: Fri Dec 16, 2011 9:12 am

Re: Feature Requests

Unread post by foobar » Fri Dec 16, 2011 9:15 am

+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.

cvbeth
Posts: 1
Joined: Sun Mar 18, 2012 1:08 am

Re: Feature Requests

Unread post by cvbeth » Sun Mar 18, 2012 1:48 am

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!

rikard
Posts: 3
Joined: Tue Mar 20, 2012 5:38 pm
Location: Sweden
Contact:

Re: Feature Requests

Unread post by rikard » Tue Mar 20, 2012 5:48 pm

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

rikard
Posts: 3
Joined: Tue Mar 20, 2012 5:38 pm
Location: Sweden
Contact:

Re: Feature Requests

Unread post by rikard » Tue Mar 20, 2012 5:52 pm

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

rikard
Posts: 3
Joined: Tue Mar 20, 2012 5:38 pm
Location: Sweden
Contact:

Re: Feature Requests

Unread post by rikard » Tue Mar 20, 2012 6:03 pm

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

phelan
Posts: 1
Joined: Thu Jun 28, 2012 2:55 am

Re: Feature Requests

Unread post by phelan » Thu Jun 28, 2012 4:14 am

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.

cinderella
Posts: 1
Joined: Tue Sep 04, 2012 5:10 pm

Re: Feature Requests

Unread post by cinderella » Tue Sep 04, 2012 5:12 pm

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:

samanthacastle
Posts: 1
Joined: Thu Sep 06, 2012 3:31 pm
Contact:

Re: Feature Requests

Unread post by samanthacastle » Thu Sep 06, 2012 3:34 pm

+1 for Cinderalla, I'd also like this new feature!

Post Reply