Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: displayimage.php / file info display layout  (Read 3050 times)

0 Members and 1 Guest are viewing this topic.

dwo

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 143
displayimage.php / file info display layout
« on: June 05, 2008, 10:30:57 pm »

Hello.

I wanted to seperate the two lines of the file info display layout and rename them.

Now, I have one line called "photographer" and behind a link to the profile

and under that a second link called Album which directly links to the corresponding album.

Code: [Select]

$info['photographer'] = '<span class="alblink">' . $owner_link .  '</span>';
$info[$lang_picinfo['Album name']] = '<span class="alblink">' . '<a href="thumbnails.php?album=' . $CURRENT_PIC_DATA['aid'] . '">' . $CURRENT_ALBUM_DATA['title'] . '</a></span>';

What I want to do is following:

I want the link of photographer directly send to the homepage of the photographer.
I want to store the adress of the homepage of the photographer in the user1 custom filed.

My question:
How does the link to user1 field looks like?
Simply similar . $owner_link . or do I have to do something like <a href="thumbnails.php?album=' . $CURRENT_PIC_DATA['aid'] . '">

I am working on it, but as I dont know php its a bit hard for me ... any help appreciated.

Thank you very much, regards, Dietmar

Logged

dwo

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 143
Re: displayimage.php / file info display layout
« Reply #1 on: June 06, 2008, 09:39:49 am »

HI.

Until now, I am at this point:

Quote
$info[$CONFIG['user_profile1_name']] =  cpg_db_query("SELECT pid FROM {$CONFIG['TABLE_PICTURES']} WHERE owner_name = '".addslashes($user_data['user_name'])."'");

This gives me the description of the user_profile field, but the database querie still has some fault, it gives me just this text back: Resource id #31

regards
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: displayimage.php / file info display layout
« Reply #2 on: June 06, 2008, 10:54:10 am »

The method get_user_infos() returns an array containing the users profile info

Code: [Select]
global $cpg_udb;
$user_data = $cpg_udb->get_user_infos($id);

dwo

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 143
Re: displayimage.php / file info display layout
« Reply #3 on: July 07, 2008, 08:41:33 pm »

Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.