Hallo
ich hab mir die "Image Link v1.0" installiert und dann in der Codebase.php noch folgendes geändert !
<?php
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
// Add a filter
$thisplugin->add_filter('file_data','imglnk_add_data');
function imglnk_add_data($pic_data){ //$pic_data
global $CONFIG;
$fullsize_url = get_pic_url($pic_data);
//you can grab intermediate and thumb URL to just comment out what you need and add the var below
//$thumb_url = get_pic_url($pic_data, 'thumb');
//$normal_url = get_pic_url($pic_data, 'normal');
$pic_data['html'] = $pic_data['html'].'<br>Bild: [IMG]http://'.$CONFIG['ecards_more_pic_target'].$fullsize_url.'[/img]<br>';
$pic_data['html'] = $pic_data['html'].'<br>Link: [url=http://'.$CONFIG['ecards_more_pic_target'].$fullsize_url.']'.$CONFIG['ecards_more_pic_target'].$fullsize_url.'[/url]<br>';
return $pic_data;
Sorry hab was falsch reinkopiert !
allso nochmal
Ich hab den Letzten BBcode hinzugefügt und möchte jetzt noch aus folgendem Bild
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2F15.hofmann13.de%2FDisplay_url.jpg&hash=02c583979796e69df9de8cfd5df14eeae8fae7e1)
Ganz unten den URL: http.......-6.html
Als Code in die Image Link einfügen.
hab aber keine ahnung von PHP, kann mir da vieleicht einer sagen wie sowas geht ?
Im Vorraus danke für die Mühe
F_A_H
Schalte entweder das SEF_URL plugin ab (das funktioniert nicht mit dem anderen Plugin) oder modifiziere das eine oder andere Plugin entsprechend.
OK ich hab das PlugIn deinstaliert
und bekomme jetzt folgenden URL: angezeigt
http://tinh.hofmann13.de/Cop/displayimage.php?pos=-6 (http://tinh.hofmann13.de/Cop/displayimage.php?pos=-6)
un wie bekomme ich den Link in die Image Link v1.0
als bbcode URL rein ?
danke
Das Image Link plugin ist als Demo gedacht, wie man am besten Info unter dem intermediate pic anzeigt.
Die neuste Version ist das bbcode plugin (ver 1.2) http://forum.coppermine-gallery.net/index.php?topic=36302.0
Hier ist die picture ID in $pic_data['pid'] gespeichert
Quote from: Stramm on January 08, 2007, 07:29:50 PM
Das Image Link plugin ist als Demo gedacht, wie man am besten Info unter dem intermediate pic anzeigt.
Die neuste Version ist das bbcode plugin (ver 1.2) http://forum.coppermine-gallery.net/index.php?topic=36302.0
Hier ist die picture ID in $pic_data['pid'] gespeichert
Hallo für die die es Interressiert !
Ich hab mir wie empfohlen "bbcode plugin (ver 1.2)" Installiert und den Code folgendermaßen
modifiziert (mit Hilfe).
//finally we add the created stuff to the picture data and return it to coppermine
//$pic_data['html'] = $pic_data['html'].$bbcode_data;
//$pic_data['html'] = $pic_data['html'].'<br>Link:<font color="#FFF000">[url]'.$CONFIG['ecards_more_pic_target'].$fullsize_url.'[/url]</font><br>';
//$pic_data['html'] = $pic_data['html'].'<br>Link:[url]'.$CONFIG['ecards_more_pic_target'].$fullsize_url.'[/url]<br>';
$pic_data['html'] = $pic_data['html'].'<br>Bild: <font color="#0033CC">[IMG]'.$CONFIG['ecards_more_pic_target'].$fullsize_url.'[/IMG]</font><br>';$pic_data['html'] = $pic_data['html'].'<br>Video-Link: <font color="#00FF00">[url]'.$CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . basename($_SERVER['PHP_SELF']) . "?pos=-" .$pic_data['pid'].'[/url]</font><br>';
return $pic_data;
}
?>
Das ergebniss schaut dann so aus:
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2F15.hofmann13.de%2Fbbcode_plugin_ver_1.2.jpg&hash=6d55f1d8d28f4a1726dd7ce0b2f418775c710799)
Ich hoffe jemand kann damit etwas anfangen.
mfg
F_A_H