Support » Plugin: Simple Events Calendar » Location need not have a URL

  • Resolved theresa95

    (@theresa95)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • tombyrnes

    (@tombyrnes)

    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

    tombyrnes

    (@tombyrnes)

    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

    Plugin Author Jerry G. Rietveld

    (@jgrietveld)

    Thanks Tom for providing a solution.

    I’ll get this sorted in the next update.

    Cheers,
    Jerry

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Location need not have a URL’ is closed to new replies.