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

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

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);