Adding a New Script that is not in Plugin Repo

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
MadFly
Regular
Posts: 56
Joined: Fri Dec 26, 2008 7:47 pm
Location: Cape Town, South Africa

Adding a New Script that is not in Plugin Repo

Post 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
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

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

Post 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
MadFly
Regular
Posts: 56
Joined: Fri Dec 26, 2008 7:47 pm
Location: Cape Town, South Africa

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

Post 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. :)
Post Reply