Trying to Move "url link" To above image Trying to Move "url link" To above image
 

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

Trying to Move "url link" To above image

Started by augustin, November 03, 2008, 08:49:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

augustin

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

Joachim Müller


augustin

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?

Joachim Müller

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?

augustin

My mistake. I didn't realize your 1st comment was a link.

Thanks

augustin

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

Joachim Müller

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

augustin

I know that.
My oringinal question was what code do I need to edit to make it on top of the image.

Thanks

Joachim Müller

Without having looked into this in detail, I'd say: a lot of it ;).