coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: augustin on November 03, 2008, 08:49:43 AM

Title: Trying to Move "url link" To above image
Post by: augustin on November 03, 2008, 08:49:43 AM
I have been trying to move  url link found in the fiel info under the image.  have not any luck. If anyone know how? Id appricaite the help. I have look and did a serch of the forums and looked in the docs. If the info is there I missed it.

Thanks in advance
Augustin
Title: Re: Trying to Move "url link" To above image
Post by: Joachim Müller on November 03, 2008, 10:21:16 AM
Filter & Sort File Information Fields on Image Display Page (http://forum.coppermine-gallery.net/index.php/topic,27407.0.html)
Title: Re: Trying to Move "url link" To above image
Post by: augustin on November 03, 2008, 05:15:26 PM
Is this the portion that the code would be in?

// Create the absolute URL for display in info
    $info[$lang_picinfo['URL']] = '<a href="' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '" >' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';
    // with subdomains the variable is $_SERVER["SERVER_NAME"] does not return the right value instead of using a new config variable I reused $CONFIG["ecards_more_pic_target"] no trailing slash in the configure
    // Create the add to fav link
$ref = $REFERER ? "&amp;ref=$REFERER" : '';
    if (!in_array($CURRENT_PIC_DATA['pid'], $FAVPICS)) {
        $info[$lang_picinfo['addFavPhrase']] = "<a href=\"addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . $ref . "\" >" . $lang_picinfo['addFav'] . '</a>';
    } else {
        $info[$lang_picinfo['addFavPhrase']] = "<a href=\"addfav.php?pid=" . $CURRENT_PIC_DATA['pid']  . $ref . "\" >" . $lang_picinfo['remFav'] . '</a>';
    }


Would I move this part?

.basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '" >'

to the bgining of the code page?
Title: Re: Trying to Move "url link" To above image
Post by: Joachim Müller on November 03, 2008, 05:21:12 PM
If you're that keen to edit the code: find the section that controls the output, not the section that defines the array. Using the plugin I refered to will enable you not having to fiddle with the core code. You'll have a nice little interface instead where you can move stuff around. Why don't you give the plugin a try?
Title: Re: Trying to Move "url link" To above image
Post by: augustin on November 03, 2008, 05:44:49 PM
My mistake. I didn't realize your 1st comment was a link.

Thanks
Title: Re: Trying to Move "url link" To above image
Post by: augustin on November 03, 2008, 05:57:35 PM
I have installed the plugin.I works a s intended. But it does not "MOVE" the url link to the "TOP" of the image. That is what I am trying to do.

Thanks
Title: Re: Trying to Move "url link" To above image
Post by: Joachim Müller on November 04, 2008, 11:14:08 PM
The plugin will only allow you to sort and filter the items within the pic info section. It will not allow you to move part of the pic info section outside of the pic info (above the image display).
Title: Re: Trying to Move "url link" To above image
Post by: augustin on November 05, 2008, 07:23:17 AM
I know that.
My oringinal question was what code do I need to edit to make it on top of the image.

Thanks
Title: Re: Trying to Move "url link" To above image
Post by: Joachim Müller on November 05, 2008, 10:05:03 AM
Without having looked into this in detail, I'd say: a lot of it ;).