question about information on the front page of albums... - Page 3 question about information on the front page of albums... - Page 3
 

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

question about information on the front page of albums...

Started by disposition, November 12, 2007, 04:11:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

disposition

This is what I have and uploaded it but no change.



                } else {
                    //alb info modification
                    $sql = "SELECT owner_name, title, filepath, filename, url_prefix, pwidth, pheight " . "FROM {$CONFIG['TABLE_PICTURES']} " . "WHERE pid='{$alb_stat['last_pid']}'";
                    $result = cpg_db_query($sql);
                    $picture = mysql_fetch_array($result);
                    mysql_free_result($result);
                }
                $pic_url = get_pic_url($picture, 'thumb');
                if (!is_image($picture['filename'])) {
                    $image_info = getimagesize(urldecode($pic_url));
                    $picture['pwidth'] = $image_info[0];
                    $picture['pheight'] = $image_info[1];
                }
                $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['alb_list_thumb_size']);
                $alb_list[$alb_idx]['thumb_pic'] = "<img src=\"" . $pic_url . "\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$picture['filename']}\" />";
            //alb info modification
$alb_list[$alb_idx]['thumb_owner'] = $picture['owner_name'];
$alb_list[$alb_idx]['thumb_title'] = $picture['title'];

Stramm

if you made the theme changes, then you'd at least will see
Last upload: from
below your album stats. Even without the index.php changes and the mod in the functions... this is plain text in plain html. Therfore I can say you haven't  added it or you have added it at the wrong place, not uploaded, uploaded into the wrong place etc.

                        <p class="album_stat">{ALB_INFOS}<br>Last upload: {ALB_PIC_TITLE} from {ALB_PIC_OWNER} </p>

You see what the code does... displaying the alb stats and the text... if the text doesn't show, then it's not there.


disposition


Stramm


disposition

Well I will keep trying, i know you are all irritated because it is easy for you...it is kind of like music for me.

Anyway I will keep up at it, thanks for your help.

disposition

OK it is seeming to pick up some information:

Last upload: {ALB_PIC_TITLE} from {ALB_PIC_OWNER}

Ok now how does it pick up the uploaders info?

Stramm


disposition

OK I get that.... I added that to my theme and if you check my site it is showing up as that, now I want it to change to the actual user name.

www.BLACKDEATHMETAL.com


Stramm


disposition

Why do you have to be all vague, I said " I added your point 2 to my theme and uploaded it and it is not grabbing any of the info....as you can see on my site Last upload: {ALB_PIC_TITLE} from {ALB_PIC_OWNER} shows up but not the uploader info.....

just_some_guy

I dont think you have done this -

Quote2. function theme_display_album_list
find

Code:
                '{ALB_LINK_PIC}' => $album['thumb_pic'],
below add

Code:
                '{ALB_PIC_OWNER}' => $album['thumb_owner'],
                '{ALB_PIC_TITLE}' => $album['thumb_title'],
Tambien, Hablo EspaƱol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Stramm

Either 2 or 4 is missing. Cause you've obviously added 4 it needs to be 2. What's vague with that statement.

This is with every change. You say you've made it but you haven't. So what do you want me to say... hey, I'll mod that for you... I'll send you the files and you just have to upload it. Yah, I could have done that. Would have saved me a lot of typing. The files I already had before posting in here and writing the guide. But you probably want to upgrade your gallery in the future. Then you need to be able to redo these changes. Therefore it's even commented in the code. And honestly, I can not understand what's that difficult to do these lil changes and to make sure you really did them. Posting unmodified code and asking if you did all right doesn't make me feel willing to help more. Then the same with the theme changes (3) and to be continued with point 2. Come on, this is ridiculous.

disposition

Ok I got it, The problem is there were 2 on each theme and index, for some reason there are double the code. So I would add it and then it didn't work and then you get irritated.  Now I find that there was a double code ont he theme and the changes were correct but I had to do it on the second one.

Either way this would have worked fine if there was not a double version of the same code.

Thanks I got it working now you can relax. I appreciate your help alot.  You were patient and I think that rocks!


disposition

Wow you are all angry< i never asked you to do it for me... you told me to change a specific file and I did that, Obviously the problem was that there were 2 of the same thing in each file.