Originally posted by robbie carrobie
can you do do something with greasemonkey and javascript that allows those who have it to run the scripts and enhance the forum or does it need to run server side?
With JavaScript you can change EVERY page element to ANYTHING. As I am sure you know since you seem familiar with the term greasemonkey.
Theoretically speaking. you could have red blinking crosses in every post wich says specific words.
Embed youtube links to make them clickable sure, why not. BUT !
I guess that RHP is written as a standalone PHP application. If it is very complex (relatively speaking) with lots of OO-classes and inheritance perhaps making it alter things to your liking would be difficult. The PHP application was not build with these considerations in mind...
There are no "standard" ways in doing things with OO elements. Only more or less hackish ways. Ask 10 different people and you get 5 different versions of the "right way to do it".
Think of a post as a DATA STRUCTURE. Then you can alter the fields in due structure.
...........
But !! It would become a mess. Don't do it !! Why? Perhaps look at CPAN and the PERL programming language. There you find MODULES, other peoples code. You can use them in your own code as you seem fit. By adding complexity you get lost in code and so on. What I am trying to say is that THE PRINCIPLE OF BUILDING A SUCCESFUL - PERL CPAN MODULE - is> Don't listen to people trying to get you to alter your module. It makes the module useless. A good module is one with COHERENCY. Things that are easy to understand. Don't mix things. It adds to the complexity. It will make the code implode to a black hole. You can't understand things because they have become complex. Then you have to start over from zero.