PDA

View Full Version : edit only one template


MathewC
09-07-2010, 12:39 AM
So im creating a plugin which will edit 'x' in a template but i only want the plugin to edit say

skin a template z and not skin a & b, templates z.

Is there anyway? I can only seem to get the plugin to edit every skin's template z :(

Much help be welcome!

kh99
09-07-2010, 12:51 AM
Did you try checking $styleid?

MathewC
09-07-2010, 12:59 AM
How would i go about doing that? & is there a way to install the skin via a plugin?

Say i had a customer who installed one plugin which then added the skin and any extra phrases i've added (I can do phrases via plugin ok) but not sure on the rest.

kh99
09-07-2010, 01:09 AM
Hmm...I don't know, maybe we're talking about different things. I was thinking "styles", each one has a numeric id so you could put "if ($styleid == 121)" or whatever in your plugin code. I don't know about installing via a plugin.