theresa95
Member
Posted 2 months 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/
tombyrnes
Member
Posted 2 months 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
tombyrnes
Member
Posted 2 months 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
Thanks Tom for providing a solution.
I'll get this sorted in the next update.
Cheers,
Jerry