1

Topic: how t5o apply a patch?

i posted this in the wrong forum before so could the admins please delete my previous post

hey i just got my forum up and running. i was given a patch by the nice people at arch linux to change my theme to resemble theres. it is a .diff file, how do i apply this patch?
secondly is there a mod avalible to let you select moderators for specific forums?
thanks

2

Re: how t5o apply a patch?

If you're on a *nix system, you apply the diff with the patch command.

To select which forums a mod moderates, go into their profile and click on the administration link.

3

Re: how t5o apply a patch?

how do i get to terminal or issue a command, i am on cpanel

4

Re: how t5o apply a patch?

Patch the files locally and upload the new versions to the server. Not sure if there is a terminal interface in Cpanel. (Never used those admin UI things personally).

5

Re: how t5o apply a patch?

how do i patch it locally? i seriusly have no idea what a patch is or how to apply it? the file is called Arch_template.diff and i also have Easy_BBCode_1.0.1.diff antispam.diff and general.diff
thanks alot

6

Re: how t5o apply a patch?

can anyone post instructions to patch the files? i really need to get the forum back up

Re: how t5o apply a patch?

Cew27 wrote:

can anyone post instructions to patch the files? i really need to get the forum back up

Are you on nix or windows? (your local comp, not the server).

Cew27 wrote:

how do i get to terminal or issue a command, i am on cpanel

By default cpanel does not give you shell access, you would need to have your host manually enable it, which most will not do.

8

Re: how t5o apply a patch?

im on windows vista atm is there any other way?

9

Re: how t5o apply a patch?

Just do a search on Google for Windoze diff/patch utilities. Never used any, so not sure how many there are, but there should be plenty.

Re: how t5o apply a patch?

winmerge is a pretty good one

11

Re: how t5o apply a patch?

ok i got winmerge how do i patch the files? i dont even know what the other file im supposed to patch is

diff -Naur punbb.orig/include/template/admin.tpl include/template/admin.tpl
--- punbb.orig/include/template/admin.tpl    2007-01-04 11:15:22.000000000 -0600
+++ punbb/include/template/admin.tpl    2007-01-10 23:43:15.000000000 -0600
@@ -16,6 +16,18 @@
             <pun_title>
             <pun_desc>
         </div>
+        
+        <div id="main_nav">
+        <ul>
+            <li><a href="http://www.archlinux.org/download/">Get Arch</a></li>
+            <li><a href="http://aur.archlinux.org">AUR</a></li>
+            <li><a href="http://bugs.archlinux.org">Bugs</a></li>
+            <li><a href="http://wiki.archlinux.org">Wiki</a></li>
+            <li class="selected"><a href="http://bbs.archlinux.org">Forums</a></li>
+            <li><a href="http://www.archlinux.org">Home</a></li>
+        </ul>
+        </div>
+        
         <pun_navlinks>
         <pun_status>
     </div>
diff -Naur punbb.orig/include/template/main.tpl include/template/main.tpl
--- punbb.orig/include/template/main.tpl    2007-01-04 11:15:22.000000000 -0600
+++ punbb/include/template/main.tpl    2007-01-15 00:01:16.000000000 -0600
@@ -16,7 +16,36 @@
             <pun_title>
             <pun_desc>
         </div>
+        
+        <div id="main_nav">
+        <ul>
+            <li><a href="http://www.archlinux.org/download/">Get Arch</a></li>
+            <li><a href="http://aur.archlinux.org">AUR</a></li>
+            <li><a href="http://bugs.archlinux.org">Bugs</a></li>
+            <li><a href="http://wiki.archlinux.org">Wiki</a></li>
+            <li class="selected"><a href="http://bbs.archlinux.org">Forums</a></li>
+            <li><a href="http://www.archlinux.org">Home</a></li>
+        </ul>
+        </div>
+        
         <pun_navlinks>
+        
+        <div id="ads">
+            <script type="text/javascript"><!--
+                google_ad_client = "pub-0403484505451360";
+                google_ad_width = 468;
+                google_ad_height = 60;
+                google_ad_format = "468x60_as";
+                google_color_border = "2D5893";
+                google_color_border = "fbf8f1";
+                google_color_bg = "fbf8f1";
+                google_color_link = "6C83B0";
+                google_color_url = "99AACC";
+                google_color_text = "000000";
+            //--></script>
+            <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
+        </div>
+        
         <pun_status>
     </div>
 </div>
diff -Naur punbb.orig/include/template/maintenance.tpl include/template/maintenance.tpl
--- punbb.orig/include/template/maintenance.tpl    2007-01-04 11:15:22.000000000 -0600
+++ punbb/include/template/maintenance.tpl    2007-01-12 17:05:08.000000000 -0600
@@ -10,6 +10,17 @@
 <div id="punwrap">
 <div id="punmaint" class="pun">
 
+<div id="main_nav">
+<ul>
+    <li><a href="http://www.archlinux.org/download/">Get Arch</a></li>
+    <li><a href="http://aur.archlinux.org">AUR</a></li>
+    <li><a href="http://bugs.archlinux.org">Bugs</a></li>
+    <li><a href="http://wiki.archlinux.org">Wiki</a></li>
+    <li class="selected"><a href="http://bbs.archlinux.org">Forums</a></li>
+    <li><a href="http://www.archlinux.org">Home</a></li>
+</ul>
+</div>
+
 <div class="block">
     <h2><pun_maint_heading></h2>
     <div class="box">