Page 1 of 1

Adding a New Script that is not in Plugin Repo

Posted: Tue Aug 17, 2010 10:23 pm
by MadFly
Hi

Would I perhaps be able to add this dynamic script to my blog's index page without braking it completely, or even half-way. Or would anyone perhaps guide me through the step or point me in the right direction if I would like to attempt to create a plugin that utilizes this script.

http://www.dynamicdrive.com/dynamicinde ... npanel.htm

Re: Adding a New Script that is not in Plugin Repo

Posted: Tue Aug 17, 2010 11:05 pm
by yellowled
MadFly wrote:Would I perhaps be able to add this dynamic script to my blog's index page without braking it completely, or even half-way. Or would anyone perhaps guide me through the step or point me in the right direction if I would like to attempt to create a plugin that utilizes this script.
I don't see the need to turn this into a plugin. Basically, you just have to add all the necessary files to your template folder -- the .js, the .css and the images --, reference the .js/.css in your index.tpl's head and use the appropriate (X)HTML markup as shown on the script's page.

You can check Bulletproof's index.tpl for examples on how to include extra stylesheets and javascript. If you want to put the images in your template's img/ directory (definitely safer/cleaner), you'll probably have to adapt the img paths in the .css file. You'll also have to add another piece of Javascript to your index.tpl to actually set up and toggle the script's effect.

YL

Re: Adding a New Script that is not in Plugin Repo

Posted: Wed Aug 18, 2010 10:52 pm
by MadFly
Cool. Thanks

I will try that some time. Don't really know what to put in the panel, but it looks nice :D
so I was hoping that once I got it implemented, I would eventually find something to put into it. :)