pingus-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Level Comment Tool - little patch


From: Björn Fischer
Subject: Level Comment Tool - little patch
Date: Sun, 11 Apr 2004 19:31:22 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113

Hi,
I made a little patch. It prevents from moving back to the category list when the user presses the [show/hide thumbnails] link.

Unfortiunately the script is not being executed correctly on my testserver (it is at a webhoster where I dont have access to the configuration. I can't run a Apache locally because I need the IIS which would collide with Apache). The patch I sent is quite trivial, but for bigger changes I'm lacking a place to test the scripts. Maybe it is possible to setup a comment-tool test folder with a test ftp-Account on the pingus webserver? (didn't want to seem unpolite making such a suggestion. If thats not possible or someone has a better Idea that's ok too)

Greetings

Björn
Index: Pingus/contrib/level_comment_tool/index.php
===================================================================
--- Pingus/contrib/level_comment_tool/index.php (revision 2257)
+++ Pingus/contrib/level_comment_tool/index.php (working copy)
@@ -116,10 +116,16 @@
 // ==================================================================
 if  ( !isset($_GET["l"]) || !isset($_GET["c"]) )
 {
+  if ( !isset($_GET["c"]) )
+    $showCath = '';
+  else
+    $showCath = '&c=' . $_GET["c"];
+               
   if ( $show_thumbs )
-    print "<a href='$PHP_SELF?showthumbs=0'>[hide thumbnails]</a></br>";
+       print "<a href='$PHP_SELF?showthumbs=0$showCath'>[hide 
thumbnails]</a></br>";
+      
   else
-    print "<a href='$PHP_SELF?showthumbs=1'>[show thumbnails]</a></br>";
+    print "<a href='$PHP_SELF?showthumbs=1$showCath'>[show 
thumbnails]</a></br>";
 
   if ( !isset($_GET["c"]))
   {

reply via email to

[Prev in Thread] Current Thread [Next in Thread]