Advanced search  

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]

Pages: 1 2 [3]   Go Down

Author Topic: question about information on the front page of albums...  (Read 14224 times)

0 Members and 1 Guest are viewing this topic.

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: question about information on the front page of albums...
« Reply #40 on: November 15, 2007, 05:08:32 pm »

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


Code: [Select]
                } 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'];
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: question about information on the front page of albums...
« Reply #41 on: November 15, 2007, 05:18:08 pm »

if you made the theme changes, then you'd at least will see
Code: [Select]
Last upload: frombelow 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.

Code: [Select]
                        <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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: question about information on the front page of albums...
« Reply #42 on: November 15, 2007, 05:19:12 pm »

So you are saying the code is correct?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: question about information on the front page of albums...
« Reply #43 on: November 15, 2007, 05:25:51 pm »

index.php??... as far as I can see, yes

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: question about information on the front page of albums...
« Reply #44 on: November 15, 2007, 05:27:06 pm »

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.
Logged

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: question about information on the front page of albums...
« Reply #45 on: November 15, 2007, 05:34:11 pm »

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?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: question about information on the front page of albums...
« Reply #46 on: November 15, 2007, 05:37:16 pm »

that's point 2 of the guide

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: question about information on the front page of albums...
« Reply #47 on: November 15, 2007, 05:39:00 pm »

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

Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: question about information on the front page of albums...
« Reply #48 on: November 15, 2007, 06:41:01 pm »

as said, follow point 2 of my guide

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: question about information on the front page of albums...
« Reply #49 on: November 15, 2007, 07:28:32 pm »

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.....
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: question about information on the front page of albums...
« Reply #50 on: November 15, 2007, 07:33:41 pm »

I dont think you have done this -

Quote
2. 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'],
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: question about information on the front page of albums...
« Reply #51 on: November 15, 2007, 07:36:23 pm »

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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: question about information on the front page of albums...
« Reply #52 on: November 15, 2007, 07:38:32 pm »

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!

Logged

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: question about information on the front page of albums...
« Reply #53 on: November 15, 2007, 07:40:47 pm »

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. 
Logged
Pages: 1 2 [3]   Go Up
 

Page created in 0.023 seconds with 19 queries.