forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: rafynet on April 12, 2006, 01:27:41 am

Title: Windows XP_Publisher stuff (renamed thread)
Post by: rafynet on April 12, 2006, 01:27:41 am
[Edit GauGau 2006-04-18]
Split unrelated replies to Koppermine - A KDE Client for Coppermine Picture Gallery (http://forum.coppermine-gallery.net/index.php?topic=29497.0) into this thread and renamed it accordingly.
[/edit]

Is there a Windows alternative to upload files to coppermine?
Title: Re: Koppermine - A KDE Client for Coppermine Picture Gallery
Post by: Tranz on April 12, 2006, 05:36:50 am
Is there a Windows alternative to upload files to coppermine?
The windows xp publisher.
Title: Re: Koppermine - A KDE Client for Coppermine Picture Gallery
Post by: rafynet on April 13, 2006, 03:24:21 pm
The windows xp publisher.

I like the xp windows publisher ... only beef i have with it is no ablility to add descriptions to the albums.
Title: Re: Koppermine - A KDE Client for Coppermine Picture Gallery
Post by: Joachim Müller on April 13, 2006, 07:13:07 pm
don't clutter this thread with your remarks on XP Publisher - this is an announcement thread for something exclusively Linux-related. Don't make Linux users angry!
Title: Re: Koppermine - A KDE Client for Coppermine Picture Gallery
Post by: wieland on April 17, 2006, 01:44:02 am
The windows xp publisher.

Hi !

I've made a little mod to the file xp_publish.php so it accepts album description in the XP publishing wizard...

Search for this:
Code: [Select]
<!-- BEGIN create_album -->
        <form method="post" id="createAlb" action="{POST_ACTION}">
        <tr>
                <td colspan="2"><b>{CREATE_NEW}</b></td>
        </tr>
    <tr>
                <td>{ALBUM}: &nbsp;</td>
                <td><input type="text" id="newAlbName" name="new_alb_name" value="" maxlength="255" /></td>
        </tr>

After that add:
Code: [Select]
  <tr>
                <td>Description: &nbsp;<br></td>
                <td><textarea rows="8" cols="30" id="newAlbDesc" name="new_alb_desc" value="" minlength="55" /></textarea></td>
        </tr>


Then search for this:

 $query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos) VALUES ('$category', '" . addslashes($HTTP_POST_VARS['new_alb_name']) . "', 'NO',  '0')";
    db_query($query);


Replace with:

 $query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title,description, uploads, pos) VALUES ('$category', '" . addslashes($HTTP_POST_VARS['new_alb_name']) . "','" . addslashes($HTTP_POST_VARS['new_alb_desc']) ." ', 'NO',  '0')";
    db_query($query);


Hope it helps ya !  ;D
Title: Re: Koppermine - A KDE Client for Coppermine Picture Gallery
Post by: Abbas Ali on April 17, 2006, 07:09:21 am
@wieland: If you have come up with a mod for xp wizard then please post it in respective thread. This thread is exclusive to KDE client. GauGau already suggested not to clutter this thread with stuff related to windows xp pulisher. Linux users are starting to get angry now......