coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Infernal on January 14, 2008, 10:31:15 PM

Title: The php variable for abslute link
Post by: Infernal on January 14, 2008, 10:31:15 PM
what is it
i guess it's in displayimage.php

by absolute link i mean
http://www.add-fun.com/gallery/displayimage.php?pos=-14838
like that

thanks
Title: Re: The php variable for abslute link
Post by: Nibbler on January 14, 2008, 11:07:30 PM
It's not normally a single variable. This is where it is in displayimage.php for example:

    $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>';
Title: Re: The php variable for abslute link
Post by: Infernal on January 14, 2008, 11:51:19 PM
thanks a lot
that's what i needed
i can make it a single variable myself

i am working on a sort of add on that will mass message the current picture link to yahoo messenger aol msn and then i shall post it here :)