Äîáàâèòü êîä â displayimage.php Äîáàâèòü êîä â displayimage.php
 

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

Äîáàâèòü êîä â displayimage.php

Started by ChesTeR, September 25, 2006, 08:33:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ChesTeR

Ãîñïîäà êîäåðû, ïîäñêàæèòå êàê äîáàâèòü íåáîëüøîé êîä ñî ññûëêîé è òåêñòîì íà ñòðàíèöå ãäå îòîáðàæàåòñÿ ôîòîãðàôèÿ.
Ññûëêà âèäà [url="http://mobile.relax.ru/resizer/?channel="...."&url="%C3%B1%C3%B1%C3%BB%C3%AB%C3%AA%C3%A0"]http://mobile.relax.ru/resizer/?channel="...."&url="ññûëêà[/url] íà ñàìó ôîòîãðàôèþ norm_#.jpg"
è òåêñò: "Îòïðàâèòü ýòî ôîòî íà ìîáèëüíèê"

Makc666

Quote from: ChesTeR on September 25, 2006, 08:33:39 PM
Ãîñïîäà êîäåðû, ïîäñêàæèòå êàê äîáàâèòü íåáîëüøîé êîä ñî ññûëêîé è òåêñòîì íà ñòðàíèöå ãäå îòîáðàæàåòñÿ ôîòîãðàôèÿ.
Ññûëêà âèäà . (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>';[/code]

ÏÅÐÅÄ íèì âñòàâëÿåì:
    // Create the absolute URL for mobile
    $info[$lang_picinfo['MOBILE']] = "<a href=\"" . $CONFIG["ecards_more_pic_target"] . "resizer/?channel=&url=" . $path_to_pic . "\">" . $lang_picinfo['MOBILE_URL'] . '123</a>';


123 ïîòîì óáðàòü...

Äîëæíî ïàõàòü...
Ó ìåíÿ áåç ÿçûêîâîãî ôàéëà ðàáîòàëî...

ChesTeR

#2
Ñïàñèáî, âñå ïîëó÷èëîñü. Ïðàâäà â êîäå ïðèøëîñü $CONFIG["ecards_more_pic_target"] è
"resizer/?channel=&url=" ïîìåíÿòü ìåñòàìè

È åùå õîòåëîñü áû ýòó ññûëêó ïîñòàâèòü íå â èíôîðìàöèè ôîòî, à ñðàçó ïîä ôîòîãðàôèåé. Âîçìîæíî òàêîå ñäåëàòü?

Makc666

Quote from: ChesTeR on September 26, 2006, 11:06:33 PM
È åùå õîòåëîñü áû ýòó ññûëêó ïîñòàâèòü íå â èíôîðìàöèè ôîòî, à ñðàçó ïîä ôîòîãðàôèåé. Âîçìîæíî òàêîå ñäåëàòü?
Êàê ÿ ãîâîðþ, âñåãäà âñ¸  âîçìîæíî, òåì áîëåå â php.
Íóæíî íàéòè áëîê, ãäå äåëàåòñÿ.
Ëó÷øå íàâåðíîå òóò:
include/themes.inc.php
â áëîêå:
    if ($mime_content['content']=='image') {

ChesTeR

Õì.. ïîïðîáîâàë, íå ïîëó÷èëîñü.
 êàêîå èìåííî ìåñòî? òîò æå êîä, ÷òî è âûøå?

Makc666

Quote from: ChesTeR on September 28, 2006, 09:30:28 AM
Õì.. ïîïðîáîâàë, íå ïîëó÷èëîñü.
 êàêîå èìåííî ìåñòî? òîò æå êîä, ÷òî è âûøå?
ß íå áóäó êîäèòü ñèäåòü, ó ìåíÿ âðåìåíè íåò, åñëè ÷åñòíî.
Ìåñòî, ãäå íóæíî ñìîòðåòü, íà ìîé âçãëÿä, ÿ íàïèñàë.
Êîä òàì äðóãîé.
Åñëè õîòèòå ïîìîùè áîëüøå, òî ìîæåòå ñïðîñèòü â àíãëîÿçû÷íîé ÷àñòè ôîðóìà.