WordPress.org

Forums

Simple Events Calendar
[resolved] Location need not have a URL (4 posts)

  1. theresa95
    Member
    Posted 2 years ago #

    When a 'Location' is entered plugin assumes there will be an 'Location URL' and when there is not, it just turns the 'Where: [Location]' to a link to 'http:///'

    Not all locations have a link. If 'Location' is given but not 'Location URL' don't turn 'Location' to a bad link.

    http://wordpress.org/extend/plugins/simple-events-calendar/

  2. tombyrnes
    Member
    Posted 2 years ago #

    Theresa95

    Had same problem.

    Replace this code (line 793 approx):
    if(isset($event['event_loc']) && isset($event['event_loc_url'])) {

    with this:
    if(isset($event['event_loc']) && trim($event['event_loc_url']) != '' ) {

    Cheers
    Tom

  3. tombyrnes
    Member
    Posted 2 years ago #

    Theresa95

    Forgot to mention also that you should amend the function httpprefix, else any URLs with upper case in them won't work. Replace that function with something like:
    function httpprefix($httpurl) {
    $httpurl_low = strtolower($httpurl);
    if(substr($httpurl_low,0,4) == "http") {
    $fullurl = $httpurl;
    } else {
    $fullurl = "http://".$httpurl;
    }
    return $fullurl;
    }
    Cheers
    Tom

  4. Jerry G. Rietveld
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks Tom for providing a solution.

    I'll get this sorted in the next update.

    Cheers,
    Jerry

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.