Additional Custom Fields - Page 2 Additional Custom Fields - Page 2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Additional Custom Fields

Started by Doggy, August 22, 2006, 09:39:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Stevo

nice to know that you don't want to help.
What is then the use of a forum and support?

Joachim Müller

It's my choice to respond to some requests and not to respond to others. Your flame is lame and inappropriate. It definitely doesn't belong into this thread. Stop this silly meta discussion in this thread immediately!

Stevo

Quote from: Doggy on August 22, 2006, 09:44:36 PM
Open: image_processor.php
Find:
global $user1;
global $user2;
global $user3;
global $user4;


Add below:
global $user5;
global $user6;
global $user7;
global $user8;
global $user9;
global $user10;
global $user11;
global $user12;
global $user13;
global $user14;
global $user15;
global $user16;
global $user17;
global $user18;
global $user19;
global $user20;


Find:
print "<input type=\"hidden\" name=\"user1\" value=\"$user1\" />";
print "<input type=\"hidden\" name=\"user2\" value=\"$user2\" />";
print "<input type=\"hidden\" name=\"user3\" value=\"$user3\" />";
print "<input type=\"hidden\" name=\"user4\" value=\"$user4\" />";


Add below:
print "<input type=\"hidden\" name=\"user5\" value=\"$user5\" />";
print "<input type=\"hidden\" name=\"user6\" value=\"$user6\" />";
print "<input type=\"hidden\" name=\"user7\" value=\"$user7\" />";
print "<input type=\"hidden\" name=\"user8\" value=\"$user8\" />";
print "<input type=\"hidden\" name=\"user9\" value=\"$user9\" />";
print "<input type=\"hidden\" name=\"user10\" value=\"$user10\" />";
print "<input type=\"hidden\" name=\"user11\" value=\"$user11\" />";
print "<input type=\"hidden\" name=\"user12\" value=\"$user12\" />";
print "<input type=\"hidden\" name=\"user13\" value=\"$user13\" />";
print "<input type=\"hidden\" name=\"user14\" value=\"$user14\" />";
print "<input type=\"hidden\" name=\"user15\" value=\"$user15\" />";
print "<input type=\"hidden\" name=\"user16\" value=\"$user16\" />";
print "<input type=\"hidden\" name=\"user17\" value=\"$user17\" />";
print "<input type=\"hidden\" name=\"user18\" value=\"$user18\" />";
print "<input type=\"hidden\" name=\"user19\" value=\"$user19\" />";
print "<input type=\"hidden\" name=\"user20\" value=\"$user20\" />";


Find:
        $user1    = $_POST['user1'];
        $user2    = $_POST['user2'];
        $user3    = $_POST['user3'];
        $user4    = $_POST['user4'];


Add below:
$user5    = $_POST['user5'];
$user6    = $_POST['user6'];
$user7    = $_POST['user7'];
$user8    = $_POST['user8'];
$user9    = $_POST['user9'];
$user10    = $_POST['user10'];
        $user11    = $_POST['user11'];
        $user12    = $_POST['user12'];
        $user13    = $_POST['user13'];
        $user14    = $_POST['user14'];
$user15    = $_POST['user15'];
$user16    = $_POST['user16'];
$user17    = $_POST['user17'];
$user18    = $_POST['user18'];
$user19    = $_POST['user19'];
$user20    = $_POST['user20'];


Find:
        $user1    = $_POST['user1'];
        $user2    = $_POST['user2'];
        $user3    = $_POST['user3'];
        $user4    = $_POST['user4'];


Add below:
$user5    = $_POST['user5'];
$user6    = $_POST['user6'];
$user7    = $_POST['user7'];
$user8    = $_POST['user8'];
$user9    = $_POST['user9'];
$user10    = $_POST['user10'];
        $user11    = $_POST['user11'];
        $user12    = $_POST['user12'];
        $user13    = $_POST['user13'];
        $user14    = $_POST['user14'];
$user15    = $_POST['user15'];
$user16    = $_POST['user16'];
$user17    = $_POST['user17'];
$user18    = $_POST['user18'];
$user19    = $_POST['user19'];
$user20    = $_POST['user20'];


Find:
                print "<input type=\"hidden\" name=\"user1\" value=\"$user1\" />";
                print "<input type=\"hidden\" name=\"user2\" value=\"$user2\" />";
                print "<input type=\"hidden\" name=\"user3\" value=\"$user3\" />";
                print "<input type=\"hidden\" name=\"user4\" value=\"$user4\" />";


Add below:
print "<input type=\"hidden\" name=\"user5\" value=\"$user5\" />";
print "<input type=\"hidden\" name=\"user6\" value=\"$user6\" />";
print "<input type=\"hidden\" name=\"user7\" value=\"$user7\" />";
print "<input type=\"hidden\" name=\"user8\" value=\"$user8\" />";
print "<input type=\"hidden\" name=\"user9\" value=\"$user9\" />";
print "<input type=\"hidden\" name=\"user10\" value=\"$user10\" />";
print "<input type=\"hidden\" name=\"user11\" value=\"$user11\" />";
                print "<input type=\"hidden\" name=\"user12\" value=\"$user12\" />";
                print "<input type=\"hidden\" name=\"user13\" value=\"$user13\" />";
                print "<input type=\"hidden\" name=\"user14\" value=\"$user14\" />";
print "<input type=\"hidden\" name=\"user15\" value=\"$user15\" />";
print "<input type=\"hidden\" name=\"user16\" value=\"$user16\" />";
print "<input type=\"hidden\" name=\"user17\" value=\"$user17\" />";
print "<input type=\"hidden\" name=\"user18\" value=\"$user18\" />";
print "<input type=\"hidden\" name=\"user19\" value=\"$user19\" />";
print "<input type=\"hidden\" name=\"user20\" value=\"$user20\" />";


Save & Close : image_processor.php


I'm still using 1.4.27 due to some plugins who are not working yet in 1.5.8
But I can't find these lines in the image_processor  (I know it was available in previous 1.4.XX releases)


Thx Stevo



FrA1l3

Hello,

Sorry for this answer because this post so old, but I want to thank the people who have helped with this because I was unable to make this change to my CP 1.5.28 uncomplicated.

To clarify , the file image_processor.php no longer exists in this version, and apart from the instructions on the thread, it is also necessary to modify these files:
include/admin.inc.php
include/functions.inc.php
basic.sql

The result:
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fu2XEwoB.png&hash=60440829cd7c368136cda1407463927f3bc33192)
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FaZpvzTj.png&hash=00ec3d8f04df55e1dc112ef77bd53285f9138de6)
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FAEMnYBa.png&hash=e8c4a9ed05869f425484bface09097e48fcde96a)

Sorry for my bad english, I'm spanish.
Thank you.

FrA1l3

Hello,

This mod works perfectly on CPG 1.5.38 version.

kelklope

Quote from: FrA1l3 on August 22, 2015, 11:34:13 AM
Hello,

This mod works perfectly on CPG 1.5.38 version.

agree i just tested it and works perfect. nice job  :)

FrA1l3

Hello,

This mod still works perfectly in the version CPG 1.5.46.  ;)

FrA1l3


FrA1l3

update today to 1.6.07 and it is still working.
The new updated list of modified files is increasing:

albmgr.php
db_input.php
displayimage.php
edit_one_pic.php
editpics.php
profile.php
thumbnails.php
uniload.php
update.php
include/admin.inc.php
include/functions.inc.php
include/picmgmt.inc.php
include/search.inc.php
plugins/upload_h5a/codebase.php
plugins/upload_h5a/admin.php
plugins/upload_h5a/config.php
plugins/upload_h5a/initialize.inc.php
plugins/upload_sgl/codebase.php
lang/english.php

regards!