klode
Forum Replies Created
-
Someone can help me?
Now I change the redirect for administrator when make the login. I redirect to homepage. But, when I try to access to wp-admin, i got out, and return to login page with reauth=1 parameter.
Forum: Plugins
In reply to: [Contact Form 7] Change status message after send button clickI see with jQuery, Concacf Form 7 verify the status of the form, and then with this status, it shows the relative message. But if I want to break the registration for an “username exists” issue, how can I show the message as for the standard message fo contact form 7?
I have the same problem. I can see the first bar where appear the name of the map, but not the rest.
I have make a little editing on the code.
The file subject is: leaflet-maps-maker.php.
the problem is on the call to function marker.bindPopup, because the HTML code injection have a carriage return that interrupt the Javascript code, returning an error: “Unterminated string literal”.My Solution is:
if (!empty($mpopuptext)) $lmm_out .= 'marker.bindPopup(unescape("' . rawurlencode(preg_replace('/(1512)|(15)|(12)/','<br/>',$mpopuptext)) . '"), [...]Explain: it’s necessary to make the code unterminated convert the string $mpopuptext in an URL encoding (in raw mode) on the server side, and then make an unescape in Javascript (so, client side).
I wish this can help someone.