Hans, I added the following line to the beginning of BOLTpageshortcuts
and deleted the if php5 line:

        if (function_exists(myBOLTpageshortcuts)) return 
myBOLTpageshortcuts($link);

This will be in 3.2.10.

Then I copied over the BOLTpageshortcuts function to a plugin,
stripped out the html entities as before and renamed it
myBOLTpageshortcuts. This way you get the modified functionality only
when you install the plugin, and php4 users cannot create page names
with &. (Though I think if you created them with the plugin you could
move the pages to a php4 site and they would work fine).

I also add these lines to the plugin to disable the & from the escape
chars and inserted the ampamp rule:

unset($BOLTutfEscape[urlencode('&')]);
unset($BOLTutfEscape[strtolower(urlencode('&'))]);
MarkUp('pre', 'ampamp<entities', '/&amp;amp;/', '%26');

This should accomplish all the changes you requested while keeping the
core a little more comfortable for me. The plugin is available at the
link below, but you will need to add the hook I mentioned above to the
BOLTpageshortcuts function to get it to work, or wait until 3.2.10 /
3.3:

http://www.boltwire.com/index.php?p=solutions.system.htmlentities

Please let me know what you think...

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to