Hi,
I'm new to php but learning fast as it is very similar to Perl. :-) I have been playing around with a
rendering plugin. Looking at the source code from the following sources.
* Plugins that are included with b2evolution,The Sample Renderer Plugin, Test Plugin, The Skeleton.
* Code Highlight and Display Code Plugin by AstonishMe.
* Code Highlighter using GenSHi.
* CGeshi.
* Syntax Highlighter.
I have got the plugin working apart from a few extra bells and whistles. I would like to allow the admin of
a blog to add extra icons and to update the css file. When they do not have access to the actual b2evolution
install that is they are not the real 'root' user on the hostmachine. I therefore need to be able to
find out where the media directory is and also the url for the media directory. The user can then upload
their own icons and css files with the built in file manager and store them in the media directory for the
blog. Where my plugin can check they exist and use them in preferece to the files supplied by me :-)
I have found what looked like the answer with the two function calls:
get_media_dir()
get_media_url()
I am unable to access these from the renderer as they are not in the Plugin class but are part of the User class.
In php it seems that a derived class as in my renderer cannot inherit from two classes. I'm assuming I have
missed something here. It is something that I would have thought was possible
Thanks
Zaf.
:lol:
;)
¥