When I try to make plugin sometime I got one problem and it that I should patch more than one template file?
How can I do it?

How patch two file?
-
-
The WCF uses unified diffs, so you can store diffs for multiple files in one file.
-
Can you give me an example?
I use WinMerge -
Use this settings:
woltlab.com/attachment/26932/With your first patch you create the diff file. Choose the same file for the second patch and so on. All patch will be appended to that file.
-
-
You can only append things to template variables, but footer is a template, not a variable.
-
Is there any way that append to template? Or no I should edit footer?
Because after I change footer when I want to install other plugins I get problem.You can only append things to template variables, but footer is a template, not a variable.
-
-
What you say is good and exit way.
But I read in Technical documentation we can have custom function in template class can help me and is it possible? -
Sorry, but I don't understand what you mean.
-
What I want is a function or template plugin
We have footer template
this TPL1
Now we code new function by the name addStart('template that we want to add(TPL1)', 'template that TPL1 added at start of it' );
when we run this function like blowin all page we get code like blow
HTML<div id="ads">{@$ads}</div> <div id="footer"> <p class="copyright">{lang}wbb.global.copyright{/lang}</p> </div> </div>
I think we can do it by using Expanding the template system
we can have one other for addEnd();.This function help us that we do not want to patch template.
-
-
My Problem Solved in install But I get other problem in uninstall
I install both of my plugin and Google Analytics (Footscript) and want to uninstall my plugin test.two.in.one.2
and I get:QuoteThe patch that this package is trying to remove has failed because its target file has been externally amended. Therefore this package cannot be removed. Please click the "Cancel package-removal" button.
error message: Can't find an appropriate location for applying this hunk.
error code: 20015
affected template: C:\xampp\htdocs\wcf/../templates/footer.tplMy problem in install solved because I use one other include for ducklogo but if I use patch it code in ducklogo I get problem again.
-
please just post your template patches (don't attach them as files, just copy the content here).