Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Änderungen in der "Image Link v1.0"  (Read 6142 times)

0 Members and 1 Guest are viewing this topic.

F_A_H

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Änderungen in der "Image Link v1.0"
« on: January 08, 2007, 05:51:44 pm »

Hallo

ich hab mir die "Image Link v1.0" installiert und dann in der Codebase.php noch folgendes geändert !
Code: [Select]

<?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');
Code: [Select]
$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;
« Last Edit: January 10, 2007, 05:07:08 pm by GauGau »
Logged

F_A_H

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Änderungen in der "Image Link v1.0"
« Reply #1 on: January 08, 2007, 06:03:01 pm »

Sorry hab was falsch reinkopiert !

allso nochmal

Ich hab den Letzten BBcode hinzugefügt und möchte jetzt noch aus folgendem Bild

(https://forum.coppermine-gallery.net/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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Änderungen in der "Image Link v1.0"
« Reply #2 on: January 08, 2007, 06:04:48 pm »

Schalte entweder das SEF_URL plugin ab (das funktioniert nicht mit dem anderen Plugin) oder modifiziere das eine oder andere Plugin entsprechend.
Logged

F_A_H

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Änderungen in der "Image Link v1.0"
« Reply #3 on: January 08, 2007, 06:11:02 pm »

OK ich hab das PlugIn deinstaliert

und bekomme jetzt folgenden URL:  angezeigt

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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Änderungen in der "Image Link v1.0"
« Reply #4 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

F_A_H

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Änderungen in der "Image Link v1.0"
« Reply #5 on: January 10, 2007, 03:49:58 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).

Code: [Select]
//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://forum.coppermine-gallery.net/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
 
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 19 queries.