Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [SUCHE] BB Code für ganzes Album  (Read 4533 times)

0 Members and 1 Guest are viewing this topic.

Casper79

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
[SUCHE] BB Code für ganzes Album
« on: November 21, 2010, 10:50:14 am »

Hallo, ich nochmal  ::)

ich suche ein Plugin / Snippet, welches mir die BB Code für ein ganzes Album ausgibt.
Versuche es mal zu erklären:

Man sieht die Übersicht des Albums und darunter dann die BB-Codes, womit man alle Bilder
als Thumbnail in ein Forum übernehmen kann.

Das Plugin, welches BB Codes für ein Bild ausgibt, habe ich schon installiert.

Gibt es so etwas in der Art schon?
Im Plugincenter und in der Suche habe ich nicht wirklich was gefunden.

Viele Grüße
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: [SUCHE] BB Code für ganzes Album
« Reply #1 on: November 21, 2010, 12:20:47 pm »

Das gibt es bereits, jedoch nur fpr cpg1.5.x: http://forum.coppermine-gallery.net/index.php/topic,65779.0.html
Logged

Casper79

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: [SUCHE] BB Code für ganzes Album
« Reply #2 on: November 21, 2010, 12:43:12 pm »

Schade, dass es das nur für 1.5er Version gibt ...
Gibts da keine Möglichkeit, dass auf die 1.4er anzuwenden?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: [SUCHE] BB Code für ganzes Album
« Reply #3 on: November 21, 2010, 05:16:46 pm »

Sollte funktionieren, wenn du in codebase.php
Code: [Select]
function asc_codes() {
    $superCage = Inspekt::makeSuperCage();
    if ($superCage->get->testInt('album')) {
        global $CONFIG;
        $aid = $superCage->get->getInt('album');
        $result = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} WHERE aid = '$aid'");
        if (mysql_num_rows($result) > 0) {
            while($row = mysql_fetch_assoc($result)) {
                $url = $CONFIG['ecards_more_pic_target'].'displayimage.php?pid='.$row['pid'];
                $thumb = '[img]'.$CONFIG['ecards_more_pic_target'].get_pic_url($CURRENT_PIC_DATA, 'thumb').'[/img]';
                $content1 .= '[url='.$url.']'.$thumb.'[/url]'."\n";
            }
            echo '<tt>[url][img][/url]</tt>: <br /><textarea onfocus="this.select();" onclick="this.select();" class="textinput" rows="1" cols="64" wrap="off" style="overflow:hidden; height:15px;">'.$content1.'</textarea>';
        }
    }
}
durch
Code: [Select]
function asc_codes() {
    if (isset($_GET['album'])) {
        global $CONFIG;
        $aid = $_GET['album'];
        $result = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} WHERE aid = '$aid'");
        if (mysql_num_rows($result) > 0) {
            while($row = mysql_fetch_assoc($result)) {
                $url = $CONFIG['ecards_more_pic_target'].'displayimage.php?pid='.$row['pid'];
                $thumb = '[img]'.$CONFIG['ecards_more_pic_target'].get_pic_url($CURRENT_PIC_DATA, 'thumb').'[/img]';
                $content1 .= '[url='.$url.']'.$thumb.'[/url]'."\n";
            }
            echo '<tt>[url][img][/url]</tt>: <br /><textarea onfocus="this.select();" onclick="this.select();" class="textinput" rows="1" cols="64" wrap="off" style="overflow:hidden; height:15px;">'.$content1.'</textarea>';
        }
    }
}
ersetzt. Ich habe es nicht getestet und möchte da auch nicht viel Arbeit reinstecken, da der Support für cpg1.4.x demnächst ausläuft.
Logged

Casper79

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: [SUCHE] BB Code für ganzes Album
« Reply #4 on: November 22, 2010, 10:00:45 am »

Hallo & Danke für den Versuch,

funktioniert leider nicht.
Dann werde ich wohl auf die neue Version updaten müssen ...+

Viele Grüße
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.