s810car |
11-29-2008 01:58 PM |
I think this works great with most versions :D The error everyones having is really simple: the regex seeks out all comments, spaces, etc. and reduces or removes them. Pretty much EVERY hack that 'self installs' so to speak uses template comments or other common code areas as a way to 'inject' themselves with a str_replace or preg_replace. Those comments are GONE when you compress your templates, so your hacks have no way to find where to go . To fix these, either put in the optional variable the hack gives (such as $cyb_chatbox as an example), hard code the templates information as needed from the plugin (this is how I put in the 'Who has visited' hack), or change what the plugin looks for, if it looks for a comment, change it to look for something unique in your code around the same area (obv less reliable method). Just don't let the plugins pick where they go, put them where you want yourself, and you can use this great!
Now this means this hack takes a little more experience then some others, but honestly, if you use hacks, mods, or template edits, you SHOULD be more experienced, or just don't do it.
One last comment: I have gotten this to work with EVERY hack i have (except form hack I had to put the answer templates in the bad array exceptions), and I have some difficult ones like the "Who's online in the last 24 hours", the flashchat mods, the Cyb-Chatbox, etc. It's not too hard if you look beyond this as it's this hacks fault, it's doing it's function, the OTHER hacks are not built for this, and it's YOUR job as a webmaster to make it work for you. These plug-ins are making forum owners soft IMO, either use them with some understanding, or if they confuse you there's always the uninstall/delete option, don't blame the coder
|