Support > cpg1.6 themes (visuals)

Additional custom fields

(1/3) > >>

FrA1l3:
hello I do not expect support from this, but I wanted to know if you can tell me how to solve a small visualization fault that I have.

As you know, here: http://forum.coppermine-gallery.net/index.php/topic,35263.20.html
I have been adding the improvement of adding custom fields since several versions to my coppermine gallery.

The fact is that everything works fine, except that I'm going to show you.

The display of data in the file displayimage.php of the fields added afterwards (from user 5 to user20) fails, however in the files edit_one_pic.php or editpics.php they look perfectly.


I have found the manual way to visualize the name of the fields in this way:
but I still can not upload the data of the database:


I wanted to see the possibility, if you wish, to include more user fields by default or the mechanism to extend them. Or if not, see if you can help me to continue modifying the files with the arrangement.

Thanks in advance!  :)

ron4mac:
For CPG 1.6.x, in the file displayimage.php at around line number 184, change:

--- Code: ---    for ($i = 1; $i <= 4; $i++) {
--- End code ---
to:

--- Code: ---    for ($i = 1; $i <= 20; $i++) {
--- End code ---

And, yes, I agree that we should make CPG able to work with as many user fields as you want.

FrA1l3:

--- Quote from: ron4mac on August 11, 2018, 02:39:52 pm ---For CPG 1.6.x, in the file displayimage.php at around line number 184, change:

--- Code: ---    for ($i = 1; $i <= 4; $i++) {
--- End code ---
to:

--- Code: ---    for ($i = 1; $i <= 20; $i++) {
--- End code ---

And, yes, I agree that we should make CPG able to work with as many user fields as you want.

--- End quote ---

Thank you for the reply, but if you see the attached file "code.png" you can view that the file had this modification yet, but it can't show the data.

Best regards!

ron4mac:
You must also make a similar change in include/functions.inc.php at around line 1356:
(should set to the exact number of user fields you are using)

--- Code: ---        for ($i = 1; $i <= 8; $i++) {

--- End code ---

FrA1l3:

--- Quote from: ron4mac on August 12, 2018, 02:29:10 pm ---You must also make a similar change in include/functions.inc.php at around line 1356:
(should set to the exact number of user fields you are using)

--- Code: ---        for ($i = 1; $i <= 8; $i++) {

--- End code ---

--- End quote ---

Hello, thank you very much for the information. I had not seen that code in functions.php, it has been modifying that loop and everything works perfectly. I leave a sample.

Once again, thank you very much ron4mac   ;D ;D
I owe you a beer or two!

Navigation

[0] Message Index

[#] Next page

Go to full version