PDA

View Full Version : Add Style after adding plug-in.. Plug-in not working


FCDobbs
03-16-2012, 03:50 PM
I have been asked to help some people with their site.
These are new owners of the site, and they wish to make some changes.

First, the site has about 10 "plug-ins" added, and most are working fine.
Second, the site has about 5 different Styles.

So these new owners didn't like most of the styles, and they deleted some of them.
Then they asked me to install 3 "nicer" ones.
I did... the installation went fine.

But now, some of the Plug-ins don't appear/work with these new Styles.

So....

How to (easily) make the Plug-ins work with the new Styles?
I have examined the code changes to make the Plug-ins work.... it will be a very onerous
task to make these changes MANUALLY to all the templates of the new Styles.
Not only that, I am not sure just where to put/make these changes within the Style templates.

Could I re-install the Plug-ins, and would that do the trick ?

Or do I have to manually make all the changes ? (and hope that I don't screw up)

Thanks

kh99
03-16-2012, 03:54 PM
When you say "examined the code changes", are you talking about looking at the templates in the style manager? If the plugins were part of a modification that also involved changing the templates, then you probably need to make the changes manually.

FCDobbs
03-16-2012, 04:17 PM
Using "Plug-in Manager" (in ACP), I click on each template indicated for that plug-in
(essentially invoking EDIT),
and I see the code shown for implementing the plug-in in the template.

It does not show where the code goes.

So I need to examine that Template in a Style where the Plug-in DOES work,
to see where the code has been changed, and then make that same implementation
for the new Style. (I guess).

This does seem like a lot of work.

That's why I was asking if I was to re-install the Plug-in, if that would make all the
changes for me?

kh99
03-16-2012, 05:30 PM
It depends on the plugin, but I think most of the time they don't change the templates in the database, but rather they modify them after they've been read from the database but before they are rendered. In that case reinstalling won't do anything. It is possible that some mods *do* change the templates so what you're talking about would work, I've just never seen one that worked that way.

It's possible that if a mod it trying to modify a template by changing the template cache (like I mentioned above) that it's failing because you've modified the default templates, in which case you would probably need to make changes manually. Which mod are you talking about? You could ask for help in the mod thread if it's one you downloaded from here.

FCDobbs
03-16-2012, 06:17 PM
Thanks,
I'll try asking the question in that thread.

--------------- Added 1331924537 at 1331924537 ---------------

OK... I didn't have to ask the question.

I searched/found the thread which has that plug-in.
(I didn't have it on my computer... I do now).
I then merely read the installation instructions... it merely said to
add one line to one template in each style after a certain line.

So I verified that this one line was added (I had to add it to all the styles I set up).

Presto... all works fine now.