forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: dwo on June 05, 2008, 10:30:57 pm

Title: displayimage.php / file info display layout
Post by: dwo 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

Title: Re: displayimage.php / file info display layout
Post by: dwo 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
Title: Re: displayimage.php / file info display layout
Post by: Stramm 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);
Title: Re: displayimage.php / file info display layout
Post by: dwo on July 07, 2008, 08:41:33 pm
For solution, please go here http://forum.coppermine-gallery.net/index.php/topic,53499.0.html