displayimage.php / file info display layout displayimage.php / file info display layout
 

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

displayimage.php / file info display layout

Started by dwo, June 05, 2008, 10:30:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dwo

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.


$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


dwo

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

Stramm

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

global $cpg_udb;
$user_data = $cpg_udb->get_user_infos($id);