Recent Topics

1 Sep 17, 2006 14:12    

How can I change something, say, add a

<script type="text/javascript" src="swfobject.js"></script>


so that it's picked up by any skin my blog readers will use?

If I edit skins/custom/_main.php , and the readers change the skin from 'custom', my change won't propagate.

I'm using b2evolution 1.8RC1.

Thanks,
Dan

2 Sep 17, 2006 21:27

If you want to change multiple files I've found a really useful app to do this called search and replace from http://www.funduc.com/

However this is dependent on there being something there to search and replace i.e. you cant (as far as I know) add something new to multiple files. I can see a workaround though. If you find a unique section of code just prior to where you want the new code just search for that code and replace with the same code PLUS your new line

3 Sep 17, 2006 22:17

stevet wrote:

If you want to change multiple files I've found a really useful app to do this called search and replace from http://www.funduc.com/

Thanks... this means changing every skin.

I'm looking for one file to place the change in, "above" any skin that happens to be used. Something like _blog_main.inc.php ?

4 Sep 21, 2006 19:54

Using _blog_main.inc.php would output it before any HTML and SCRIPT would need to go into HEAD, of course.
You may want to use a plugin.. the SkinBeginHtmlHead event should get triggered in all the default skins at least.
See http://manual.b2evolution.net/CreatingPlugin


Form is loading...