Patch - locking of individual posts (General)

by erik_p, Wednesday, June 25, 2008, 23:40 (5773 days ago) @ erik_p
edited by erik_p, Thursday, June 26, 2008, 00:31

Below is the address to the patch for 2.0RC1. The only things that differed between beta25 and RC1, with impact on the patch, were the location of the template files. I guess the patch for beta 25 will work for beta 26 if you use the PATCHFILE (NOT the zip-file!!!), at least if you correct some possibly different paths in the patch file.

As before, no guarantee about function. Save the originals before applying the patch.

You either apply the patch with the zip file or with the patch file. Don't use both. (At least, dont try to apply the patch file to already patched files, if you dont want "strange" questions.)

Applying the patch using the zip-file
=====================================
You can get the patch here:
http://www.djingis.se/~ep/patch-lock-20RC1.zip
Put it in your forum dir and unzip it.

The changed files are, as before:
ep@shere:~/src/mlf/forum_RC1$ svn -r 3:4 diff --summarize
M lang/english.lang
M includes/posting.inc.php
M includes/entry.inc.php
AM templates/default/images/lock2.png
M templates/default/style.css
M templates/default/subtemplates/entry.tpl.inc
M templates/default/subtemplates/thread_linear.tpl.inc
M templates/default/subtemplates/thread.tpl.inc

Applying the patch using the patch file
=======================================
If you want to use a patch file instead, it is here:
http://www.djingis.se/~ep/patchfile-lock-20RC1.patch

cd to your forum dir and apply the patch, as before, with:
patch -p0 < /path/to/patchfile/patchfile-lock-20RC1.patch

As before, you need the lock2.png file from the zip-file if you apply the patch using the patchfile. You can however also get the png here:
http://www.djingis.se/~ep/lock2.png
Put it in templates/default/images/

Thus you don't need to download the zip file if you want to apply the patch using the patch file.

You can reverse the patch (applied in either way) with the patch file, if you do a:
patch -R -p0 < /path/to/patchfile/patchfile-lock-20RC1.patch
This will of course not remove lock2.png

You only need to download the png separately if you apply the patch using the patch file!

You can try to patch beta 26 by using the patch file for beta 25 (see the posting above), or by using the patch file for RC1. Check the paths in the patch file and change them if necessary, and it will probably work. You should *not* use the zip file to patch any other releases than the intended.

/erik

locked
3572 views

Complete thread:

 RSS Feed of thread