4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: djw on October 23, 2005, 03:34:09 AM

Title: [MOD] Pixaco Interface
Post by: djw on October 23, 2005, 03:34:09 AM
[MOD] Pixaco Interface
- This mod enable to Print Pictures over Pixaco Affili Partnerprogram
- tested with 4images 1.7.1
- you can copy your Printable Pictures (better Quality) to an Directory like 4images/data/media/{cat_id}/big/{image_file_name} if the Pic isn`t there than don`t apear the Link
- you can store the Printable Pictures (better Quality) on an other Server (Url des Bildes Lokal) first the script looks there if the image exists

FILES
Files to be modified: (please take a backup copy of all of these!)

New file:
INSTALL
1 Make New File: admin/plugins/PixacoPrint.php
Code: [Select]
<?php // PLUGIN_TITLE: Pixaco Partner
$nozip 1;
define('IN_CP'1);
$root_path = (eregi("\/personal_plugins\/"$PHP_SELF)) ? "./../../" "./../";
define('ROOT_PATH'$root_path);
require(
ROOT_PATH.'admin/admin_global.php');
show_admin_header();
$CreateCode "CREATE TABLE IF NOT EXISTS `".$table_prefix."Pixaco` (
  `ID` int(11) NOT NULL auto_increment,
  `affiliLink` text NOT NULL,
  `LinkText` text NOT NULL,
  `Popupheigh` int(4) NOT NULL default '0',
  `Popupwidth` int(4) NOT NULL default '0',
  `PicdirfullRemote` text NOT NULL,
  `PicdirfullLocal` text NOT NULL,
  UNIQUE KEY `ID` (`ID`)

"
;
$resultCreate $site_db->query($CreateCode);
$action $_GET["action"];
if (
$action == "update") {
    global 
$site_db;
    
$sql $MODE." ".$table_prefix."Pixaco SET
                    affiliLink='
$affiliLink',
                    LinkText='
$LinkText',
                    Popupheigh='
$Popupheigh',
                    Popupwidth='
$Popupwidth',
                    PicdirfullRemote='
$PicdirfullRemote',
                    PicdirfullLocal='
$PicdirfullLocal'
    "
;
    
$result $site_db->query($sql);
    
printf ("Daten geändert<br>");
}
function 
display_Pixaco() {
global $site_db,$table_prefix;
    
$sql "SELECT * FROM ".$table_prefix."Pixaco";
    
$result $site_db->query($sql);
$i=0;
    while(
$row $site_db->fetch_array($result)){
  
$i++;
                    
$affiliLink$row["affiliLink"];
                    
$LinkText$row["LinkText"];
                    
$Popupheigh$row["Popupheigh"];
                    
$Popupwidth$row["Popupwidth"];
                    
$PicdirfullRemote$row["PicdirfullRemote"];
                    
$PicdirfullLocal$row["PicdirfullLocal"];
    }
if (
$affiliLink =="") {
$affiliLink"http://partners.webmasterplan.com/click.asp?ref=145817&site=3043&type=text&tnb=6 ";
}
if (
$LinkText =="") {
$LinkText"Bild zum PIXACO Warenkorb hinzufügen ";
}
if (
$Popupheigh=="") {
$Popupheigh"250";
}
if (
$Popupwidth =="") {
$Popupwidth"310";
}
if (
$PicdirfullRemote =="") {
$PicdirfullRemote"http://URL/galerie/4images/data/media/{cat_id}/big/{image_file_name}";
}
if (
$PicdirfullLocal=="") {
$PicdirfullLocal"http://URL/galerie/4images/data/media/{cat_id}/big/{image_file_name}";
}
    if (
$i==0) {
    
$Mode ="INSERT";
    } else {
        
$Mode ="UPDATE";
    }
echo 
'
<style type="text/css">
    <!--
        .Stil1 {font-size: xx-small}
        .Beispiele {
            font-size: xx-small;
            font-style: italic;
            font-weight: normal;
        }
    -->
</style>
<form action="PixacoPrint.php?action=update" method="post">
    <input name="MODE" type="hidden" value="'
.$Mode.'"  size="8">
    <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#0000FF">
        <tr>
            <td class="tableborder">
                <table cellpadding="3" cellspacing="1" border="0" width="100%">
                    <tr class="tableheader">
                        <td colspan="2"><a name=""><b><span class="tableheader">Pixaco</span></b></a></td>
                    </tr>
                    <tr class="tablerow" valign="top">
                        <td colspan="2">
                            <table width="100%" border="0">
                                <tr>
                                    <td><strong>Affili Link: <br><span class="Beispiele">http://partners.webmasterplan.com/click.asp?ref=145817&amp;site=3043&amp;type=text&amp;tnb=6 </span></strong></td>
                                    <td width="40%"><textarea name="affiliLink" cols="50" rows="4">'
.$affiliLink.'</textarea></td>
                                </tr>
                                <tr>
                                    <td><strong>Link Text:<br><span class="Beispiele">Bild zum PIXACO Warenkorb hinzuf&uuml;gen </span> </strong></td>
                                    <td width="40%"><textarea name="LinkText" cols="50" rows="4">'
.$LinkText.'</textarea></td>
                                </tr>
                                <tr>
                                    <td><strong>H&ouml;he des Popup Fensters <br><span class="Beispiele">250</span> </strong></td>
                                    <td width="40%"><input name="Popupwidth" type="text" value="'
.$Popupwidth.'" size="4"></td>
                                </tr>
                                <tr>
                                    <td><strong>Breite des Popup Fensters</strong> <br><span class="Beispiele">310</span></td>
                                    <td width="40%"><input name="Popupheigh" type="text" value="'
.$Popupheigh.'" size="4"></td>
                                </tr>
                                <tr>
                                    <td><strong>Url des Bildes Remote </strong><br>Platzhalter:<br>
                                        <table border="1">
                                            <tr>
                                                <td class="Stil1">{cat_id} = Kategorie ID </td>
                                            </tr>
                                            <tr>
                                                <td class="Stil1">{image_file_name} = Datei Name des Bildes </td>
                                            </tr>
                                        </table>
                                        <span class="Beispiele">http://URL/galerie/4images/data/media/{cat_id}/{PicChartOptions[Picdirlocal]}/{image_file_name}</span><span class="Stil1"><br></span>
                                    </td>
                                    <td width="40%"><textarea name="PicdirfullRemote" cols="50" rows="4">'
.$PicdirfullRemote.'</textarea></td>
                                </tr>
                                <tr>
                                    <td><strong>Url des Bildes Lokal</strong><br>Platzhalter:<br>
                                        <table border="1">
                                            <tr>
                                                <td class="Stil1">{cat_id} = Kategorie ID </td>
                                            </tr>
                                            <tr>
                                                <td class="Stil1">{image_file_name} = Datei Name des Bildes </td>
                                            </tr>
                                        </table>
                                        <span class="Beispiele">http://URL/galerie/4images/data/media/{cat_id}/{PicChartOptions[Picdirlocal]}/{image_file_name}</span><br>
                                    </td>
                                    <td width="40%"><textarea name="PicdirfullLocal" cols="50" rows="4">'
.$PicdirfullLocal.'</textarea></td>
                                </tr>
                          </table>
                            <p class="rowtitle">                            Pixaco: <a href="http://partners.webmasterplan.com/click.asp?ref=145817&site=3043&type=text&tnb=1" target="_blank">www.pixaco.de</a></p>
                            <p class="rowtitle">Programmer: <a href="mailto:markus@dj-w.de">Markus Grampp </a><a href="http://www.dj-w.de" target="_blank">DJ W. Eventservice</a> </p>
                            <p class="rowtitle"><br>
                            </p></td>
                    </tr>
                    <tr class="tablefooter">
                        <td colspan="2" align="center"> &nbsp; <input type="submit" value="   Einstellungen Speichern   " class="button">&nbsp; </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
'
;

}
display_Pixaco();
show_admin_footer();
?>


2 Insert Into includes/functions.php
bevore
Code: [Select]
?>
Code: [Select]
/* Druck über Pixaco Partnerprogramm affilinet */
function PicLargeforPixacoPrint($cat_id,$image_file_name) {
global $site_db,$table_prefix;
$sql="";
    $sql = "SELECT * FROM ".$table_prefix."Pixaco";
    $result = $site_db->query($sql);
    // Werte aus DB holen
    while ($row = $site_db->fetch_array($result)) {
        $PicChartOptions[affiliLink]=  $row[affiliLink];
        $PicChartOptions[Linktext]=  $row[LinkText];
        $PicChartOptions[Popupheight]=  $row[Popupheigh];
        $PicChartOptions[Popupwidth]=  $row[Popupwidth];
        $PicChartOptions[PicdirfullRemote] = $row[PicdirfullRemote];
        $PicChartOptions[PicdirfullLocal]=  $row[PicdirfullLocal];

}
$PicChartOptions[PicdirfullLocal]= str_replace("{cat_id}", $cat_id, $PicChartOptions[PicdirfullLocal]);
$PicChartOptions[PicdirfullLocal]= str_replace("{image_file_name}", $image_file_name, $PicChartOptions[PicdirfullLocal]);
        if (@fopen ($PicChartOptions[PicdirfullLocal], "r")) {
        $PicChartOptions[PicdirfullLocal] = $PicChartOptions[PicdirfullLocal];
        } else {
        $PicChartOptions[PicdirfullLocal]="";
        echo $PicChartOptions[PicdirfullLocal];
        }
$PicChartOptions[PicdirfullRemote]= str_replace("{cat_id}", $cat_id, $PicChartOptions[PicdirfullRemote]);
$PicChartOptions[PicdirfullRemote]= str_replace("{image_file_name}", $image_file_name, $PicChartOptions[PicdirfullRemote]);
if (@fopen ($PicChartOptions[PicdirfullRemote], "r")) {
        $PicChartOptions[PicdirfullRemote] = $PicChartOptions[PicdirfullRemote];
        } else {
        $PicChartOptions[PicdirfullRemote]="";
        }
        if ($PicChartOptions[PicdirfullRemote]=="") {
                if ($PicChartOptions[PicdirfullLocal]=="") {
                        $PicChartOptions[Picdirfull] = "";
                        return "";
                } else {
                $PicChartOptions[Picdirfull] = $PicChartOptions[PicdirfullLocal];
                }
        } else {
        $PicChartOptions[Picdirfull] = $PicChartOptions[PicdirfullRemote];
        }


        // Falls kein Bild in großer Version existiert
        if ($PicChartOptions[Picdirfull] !="") {
                $OutURL= "<a href=\"#\" onclick=\"javascript:window.open('".$PicChartOptions[affiliLink]."&prd=yes&smm=cookie&cmd=addimage&url0=".$PicChartOptions[Picdirfull]."','popup',
                'width=".$PicChartOptions[Popupwidth].",height=".$PicChartOptions[Popupheight].",menubar=no,status=no,scrollbars=no,resizable=yes,left=50,top=50');\"> ".$PicChartOptions[Linktext]."</a>";
        } else {
                $OutURL= "";
        }
        return $OutURL;
}

3 Insert Into templates/your_template/details.html
On the place where do you want
Code: [Select]
<?php echo  PicLargeforPixacoPrint($cat_id,$image_file_name);?>

4 Open Admin Control Panel
goto Pixaco
klick "Einstellungen Speichern"
Admin Panel Pic:
(http://www.eventbasar.de/public/Foren/4homepagesForum/Pixaco_Schnittstelle_Admin.jpg)
User Pic:
(http://www.eventbasar.de/public/Foren/4homepagesForum/Pixaco_Schnittstelle_User.jpg)

If you want to allow only, that user can print the own images:
in Details.html:
bevore
Code: [Select]
<?php insert
Code: [Select]
{if PrintPartner}after
Code: [Select]
?>insert
Code: [Select]
{endif PrintPartner}
in Details.php:
change
Code: [Select]
  "admin_links" => $admin_linksto
Code: [Select]
"admin_links" => $admin_links,
"PrintPartner" => $PrintPartner

after
Code: [Select]
elseif ($is_image_owner) { (2X)
insert
Code: [Select]
$PrintPartner = "1";
Title: Re: [MOD] Pixaco Interface
Post by: beseech on October 23, 2005, 04:30:16 AM
but this do the same of some other Mod before here posted some called "bilder" , this look the same , well with another name... this do the same ? what is the difference ?

http://www.4homepages.de/forum/index.php?topic=10118.msg49502#msg49502
Title: Re: [MOD] Pixaco Interface
Post by: djw on October 23, 2005, 04:40:35 AM
but this do the same of some other Mod before here posted some called "bilder" , this look the same , well with another name... this do the same ? what is the difference ?

http://www.4homepages.de/forum/index.php?topic=10118.msg49502#msg49502
This one is for www.pixaco.de
the other
Quote
http://www.4homepages.de/forum/index.php?topic=10118.msg49502#msg49502
Quote
is for www.bildpartner.de
Title: Re: [MOD] Pixaco Interface
Post by: beseech on October 24, 2005, 05:21:17 AM
but do both the same , right ?

:)
Title: Re: [MOD] Pixaco Interface
Post by: djw on October 24, 2005, 12:02:50 PM
but do both the same , right ?

:)
yes with different Partner
Title: Re: [MOD] Pixaco Interface
Post by: Michael on October 24, 2005, 12:27:52 PM
Hallo, kann man das so einstellen das User nur ihre eigenen Bilder in den Warenkorb hinzufügen können?
Title: Re: [MOD] Pixaco Interface
Post by: djw on October 24, 2005, 12:47:35 PM
Hallo, kann man das so einstellen das User nur ihre eigenen Bilder in den Warenkorb hinzufügen können?
nein derzeit nicht (ausser ggf mit if)
Title: Re: [MOD] Pixaco Interface
Post by: Michael on October 24, 2005, 01:00:45 PM
das mit dem "if" gilt dann nur für eingeloggte User, Problem dabei ist das © des einzelnen Users auf seine Bilder  :!:
Title: Re: [MOD] Pixaco Interface
Post by: djw on October 24, 2005, 01:38:57 PM
das mit dem "if" gilt dann nur für eingeloggte User, Problem dabei ist das © des einzelnen Users auf seine Bilder  :!:

ok kurzer Mod:
in Details.html:
vor dem <?php Tag:
{if PrintPartner}
nach dem ?> Tag
{endif PrintPartner}

in Details.php:
ändere  "admin_links" => $admin_links
zu  "admin_links" => $admin_links,
            "PrintPartner" => $PrintPartner

unter elseif ($is_image_owner) { (2X)
$PrintPartner = "1";

Title: Re: [MOD] Pixaco Interface
Post by: Michael on October 24, 2005, 03:30:36 PM
Hallo djw,

ich werde das heute Abend mal testen, vielen Dank für Deine Antworten (ist hier ja leider nicht selbstverständlich).

Gruß, Michael
Title: Re: [MOD] Pixaco Interface
Post by: djw on October 24, 2005, 11:55:32 PM
Hallo djw,

ich werde das heute Abend mal testen, vielen Dank für Deine Antworten (ist hier ja leider nicht selbstverständlich).

Gruß, Michael
Sobald ich Zeit habe versuche ich immer zu antworten - weis wie das ist wenn man auf ne antwort wartet und es kommt keine.
Title: Re: [MOD] Pixaco Interface
Post by: Maweryk on October 25, 2005, 02:49:06 AM
Gelungener Mod. Bei mir funzt der zwar noch nicht so, wie er soll, aber das wird schon.  :wink:
Idee für einen neuen Mod: Bilder-Planet.de Interface

Gruß

Markus

Title: Re: [MOD] Pixaco Interface
Post by: djw on October 25, 2005, 10:18:49 AM
Gelungener Mod. Bei mir funzt der zwar noch nicht so, wie er soll, aber das wird schon.  :wink:
Idee für einen neuen Mod: Bilder-Planet.de Interface nur hab ich von denen noch keine genehmigung zum veröffentlichen

Gruß

Markus


hätte noch mycopyshop24 im angeboit
Title: Re: [MOD] Pixaco Interface
Post by: Maweryk on October 25, 2005, 11:41:29 AM
Idee für einen neuen Mod: Bilder-Planet.de Interface nur hab ich von denen noch keine genehmigung zum veröffentlichen

Angeschrieben hast Du sie aber schon?

Musste aus der ...print.php den SQL-Block rausnehmen, da er bei mir immer auf einen Fehler gelaufen ist.

Code: [Select]
$CreateCode = "CREATE TABLE IF NOT EXISTS `".$table_prefix."Pixaco` (
  `ID` int(11) NOT NULL auto_increment,
  `affiliLink` text NOT NULL,
  `LinkText` text NOT NULL,
  `Popupheigh` int(4) NOT NULL default '0',
  `Popupwidth` int(4) NOT NULL default '0',
  `PicdirfullRemote` text NOT NULL,
  `PicdirfullLocal` text NOT NULL,
  UNIQUE KEY `ID` (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
";

Problem bei mir war die letzte Zeile: DEFAULT CHARSET=latin1 AUTO_INCREMENT=2

Ich habe dann die Tabelle selber angelegt und nun scheint es zu klappen.

Desweiteren sehe ich noch keinen Bestelllink unter dem Foto. Liegt wohl daran, dass er bei mir {cat_id} verschluckt und immer im Ordner media\\big anstatt media\20\big sucht. :(

Gruß

Markus
 
Title: Re: [MOD] Pixaco Interface
Post by: djw on October 25, 2005, 12:28:21 PM
Idee für einen neuen Mod: Bilder-Planet.de Interface nur hab ich von denen noch keine genehmigung zum veröffentlichen

Angeschrieben hast Du sie aber schon?
hab ops meinte -
Bilder-planet hab ich angeschrieben noch keine antowrt auch noch nichts programmiert
mycopyshop24 iss fertig entwickelt nur noch keine genehmigung (aber angeschrieben)
Quote
Desweiteren sehe ich noch keinen Bestelllink unter dem Foto. Liegt wohl daran, dass er bei mir {cat_id} verschluckt und immer im Ordner media\\big anstatt media\20\big sucht. :(
geh ins admin panel und passe den link an (das big verzeichniss musst erst anlegen und da die bilder reinmachen unter selben namen - oder big löschen dann greift schnittstelle auf orginal bilder zu (die angezeigt werden))
Title: Re: [MOD] Pixaco Interface
Post by: Maweryk on October 25, 2005, 03:05:06 PM
Den Big-Ordner etc. habe ich natürlich schon angelegt.
Bei mir liegt es an den Platzhaltern {cat_id} und {image_file_name}. Leider werden sie ignoriert und der Link erscheint nicht.
Gebe ich einen Ordner und den genauen Bildnamen im Adminbereich vor, dann funzt es.
Hast Du eine Ahnung, warum das mit den Platzhaltern bei mir nicht funktioniert?

Danke & Gruß

Markus
 

Title: Re: [MOD] Pixaco Interface
Post by: djw on October 25, 2005, 06:12:13 PM
Den Big-Ordner etc. habe ich natürlich schon angelegt.
Bei mir liegt es an den Platzhaltern {cat_id} und {image_file_name}. Leider werden sie ignoriert und der Link erscheint nicht.
Gebe ich einen Ordner und den genauen Bildnamen im Adminbereich vor, dann funzt es.
Hast Du eine Ahnung, warum das mit den Platzhaltern bei mir nicht funktioniert?

Danke & Gruß

Markus
sind die klammern geschweifte klammern?
steht in "Url des Bildes Remote" und "Url des Bildes Lokal" der selbe pfad? bei mir zb
Code: [Select]
http://xxx.homelinux.com/galerie/4images/data/media/{cat_id}/big/{image_file_name} groß / Kleinschreibung checken

ggf folgendes testscript mal laufen lassen:

Code: [Select]
<?php
echo str_replace("{cat_id}""666""http://xxx.homelinux.com/galerie/4images/data/media/{cat_id}/big/{image_file_name}");
?>


Title: Re: [MOD] Pixaco Interface
Post by: Maweryk on October 25, 2005, 06:25:42 PM
Es sind geschweifte Klammern und bei beiden habe ich denselben Pfad eingetragen.
Beim Testscript erhalte ich folgende Ausgabe:
http://www.url.de/4images/data/media/666/big/20050730_14h06m50s.jpg

Hilft Dir das weiter?

Danke & Gruß

Markus
Title: Re: [MOD] Pixaco Interface
Post by: djw on October 25, 2005, 06:43:32 PM
Es sind geschweifte Klammern und bei beiden habe ich denselben Pfad eingetragen.
Beim Testscript erhalte ich folgende Ausgabe:
http://www.url.de/4images/data/media/666/big/20050730_14h06m50s.jpg

Hilft Dir das weiter?
Danke & Gruß
Markus

das ist äusserst komisch, denn:
hast du es schonmal ohne den big ordner probiert??
Title: Re: [MOD] Pixaco Interface
Post by: Maweryk on October 25, 2005, 08:10:10 PM
das ist äusserst komisch, denn:
  • das testscript bekommt keinen bildnamen und gibt einen aus
  • die url stimmt nicht
hast du es schonmal ohne den big ordner probiert??
Warum, Du übergibst doch {image_file_name}???
Du ersetzt doch {cat_id} mit 666 oder bin ich schon zu sehr eingerostet. :roll:
Ohne den BIG-Ordner habe ich es auch schon mal versucht. Leider ohne Erfolg.

Gruß

Markus
 
Title: Re: [MOD] Pixaco Interface
Post by: djw on October 25, 2005, 08:51:13 PM
das ist äusserst komisch, denn:
  • das testscript bekommt keinen bildnamen und gibt einen aus
  • die url stimmt nicht
hast du es schonmal ohne den big ordner probiert??
Warum, Du übergibst doch {image_file_name}???
Du ersetzt doch {cat_id} mit 666 oder bin ich schon zu sehr eingerostet. :roll:
Ohne den BIG-Ordner habe ich es auch schon mal versucht. Leider ohne Erfolg.

Gruß

Markus
 
klar jedoch sollte es bei
str_replace("{cat_id}", "666", "http://xxx.homelinux.com/galerie/4images/data/media/{cat_id}/big/{image_file_name}");
nur {cat_id} durch 666 ersetzen und nicht {image_file_name}
Title: Re: [MOD] Pixaco Interface
Post by: Maweryk on October 25, 2005, 08:56:51 PM
Vielleicht gibt es ja auch nur Probleme mit dem Platzhalter {cat_id}???

Gruß

Markus
Title: Re: [MOD] Pixaco Interface
Post by: djw on October 25, 2005, 09:02:32 PM
Vielleicht gibt es ja auch nur Probleme mit dem Platzhalter {cat_id}???

Gruß

Markus

dann probiers mal mit was anderem
Title: Re: [MOD] Pixaco Interface
Post by: djw on October 26, 2005, 01:42:48 AM
Gelungener Mod. Bei mir funzt der zwar noch nicht so, wie er soll, aber das wird schon.  :wink:
Idee für einen neuen Mod: Bilder-Planet.de Interface
Gruß
Markus
ist auch schon fertig und wartet auf freigabe durch bilder planet
Title: Re: [MOD] Pixaco Interface
Post by: Maweryk on October 26, 2005, 10:56:35 AM
Gelungener Mod. Bei mir funzt der zwar noch nicht so, wie er soll, aber das wird schon.  :wink:
Idee für einen neuen Mod: Bilder-Planet.de Interface
Gruß
Markus
ist auch schon fertig und wartet auf freigabe durch bilder planet

Genial. Teste gerade noch ein paar Platzhalter. Ohne klappt es ja wunderbar.

Gruß

Markus
Title: Re: [MOD] Pixaco Interface
Post by: mafa1999 on October 27, 2005, 05:08:08 PM
Hallo.

Bin ganz neu hier...

Also interessiere mich auch für so etwas, und werde diesen mod gleich ausprobieren...

Habe nur noch eine Idee, die den Programmierer (ich kanns nicht  :wink:) vielleicht weiter hilft:
man kann doch die lightbox nutzen eine zip generieren und zum schluss alles mit einmal an pixaco übertragen!?

So ich probiere mal den MOD.
Title: Re: [MOD] Pixaco Interface
Post by: Maweryk on October 27, 2005, 05:13:12 PM
Hallo.

Bin ganz neu hier...

Also interessiere mich auch für so etwas, und werde diesen mod gleich ausprobieren...

Habe nur noch eine Idee, die den Programmierer (ich kanns nicht  :wink:) vielleicht weiter hilft:
man kann doch die lightbox nutzen eine zip generieren und zum schluss alles mit einmal an pixaco übertragen!?

So ich probiere mal den MOD.
So einen ähnlichen Mod gibt es schon.  :wink:
Mit den Platzhaltern hatte ich bisher keinen Erfolg, vielleicht hast Du mehr Glück.

Gruß

Markus
Title: Re: [MOD] Pixaco Interface
Post by: mafa1999 on October 27, 2005, 08:12:37 PM
Wo finde ich den so etwas mit dem zip?

So habe jetzt mod für Pixaco bropiert.
Bei mir kommt leider im Backend nur ne weiße Seite... Was mach ich den Falsch?
Title: Re: [MOD] Pixaco Interface
Post by: Maweryk on October 27, 2005, 08:19:18 PM
Wo finde ich den so etwas mit dem zip?

So habe jetzt mod für Pixaco bropiert.
Bei mir kommt leider im Backend nur ne weiße Seite... Was mach ich den Falsch?

Schau mal hier:
http://www.4homepages.de/forum/index.php?topic=5813.0

Gruß

Markus




Title: Re: [MOD] Pixaco Interface
Post by: djw on October 28, 2005, 01:46:36 AM
Gelungener Mod. Bei mir funzt der zwar noch nicht so, wie er soll, aber das wird schon.  :wink:
Idee für einen neuen Mod: Bilder-Planet.de Interface
Gruß
Markus
ist auch schon fertig und wartet auf freigabe durch bilder planet

Genial. Teste gerade noch ein paar Platzhalter. Ohne klappt es ja wunderbar.
ist freigegeben siehe http://www.4homepages.de/forum/index.php?topic=10210.0

Gruß

Markus

Title: Re: [MOD] Pixaco Interface / Error in Control Panel
Post by: castor on October 29, 2005, 03:28:07 PM
Hi all, my first post..
have an error at installation point 4  , when i'm click in control panel the Pixaco link
Quote
Warning: main(): Unable to access ./../admin/admin_global.php in /var/www/web4/html/4images/admin/plugins/PixacoPrint.php on line 6

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /var/www/web4/html/4images/admin/plugins/PixacoPrint.php on line 6

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/web4/html/4images/admin/plugins/PixacoPrint.php on line 6
what does that mean? i'm a beginner in php ..   i think something is wrong with the path *g*  :roll:
( have created file PixacoPrint.php and have insert code )
thanks for help and answers
Title: Re: [MOD] Pixaco Interface / Error in Control Panel
Post by: castor on October 29, 2005, 03:40:15 PM
Hi all, my first post..
have an error at installation point 4  , when i'm click in control panel the Pixaco link
Quote
Warning: main(): Unable to access ./../admin/admin_global.php in /var/www/web4/html/4images/admin/plugins/PixacoPrint.php on line 6

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /var/www/web4/html/4images/admin/plugins/PixacoPrint.php on line 6

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/web4/html/4images/admin/plugins/PixacoPrint.php on line 6
what does that mean? i'm a beginner in php ..   i think something is wrong with the path *g*  :roll:
( have created file PixacoPrint.php and have insert code )
thanks for help and answers

Edit 1: have found the error for this in the forum . i just chance in line 4 in PixacoPrint.php only to plugin

NEW PROB
now i see the Plugin , but with an error on top .. SQL error :
Code: [Select]
DB Error: Bad SQL Query: CREATE TABLE IF NOT EXISTS `4images_Pixaco` ( `ID` int(11) NOT NULL auto_increment, `affiliLink` text NOT NULL, `LinkText` text NOT NULL, `Popupheigh` int(4) NOT NULL default '0', `Popupwidth` int(4) NOT NULL default '0', `PicdirfullRemote` text NOT NULL, `PicdirfullLocal` text NOT NULL, UNIQUE KEY `ID` (`ID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1 AUTO_INCREMENT=2' at line 10

DB Error: Bad SQL Query: SELECT * FROM 4images_Pixaco
Table 'usr_web4_1.4images_Pixaco' doesn't exist
sounds like he can't make an entry in my sql base ..  please help me ..
thx
Title: Re: [MOD] Pixaco Interface / Error in Control Panel
Post by: djw on October 29, 2005, 11:53:04 PM
Hi all, my first post..
have an error at installation point 4  , when i'm click in control panel the Pixaco link
Quote
Warning: main(): Unable to access ./../admin/admin_global.php in /var/www/web4/html/4images/admin/plugins/PixacoPrint.php on line 6

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /var/www/web4/html/4images/admin/plugins/PixacoPrint.php on line 6

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/web4/html/4images/admin/plugins/PixacoPrint.php on line 6
what does that mean? i'm a beginner in php ..   i think something is wrong with the path *g*  :roll:
( have created file PixacoPrint.php and have insert code )
thanks for help and answers

Edit 1: have found the error for this in the forum . i just chance in line 4 in PixacoPrint.php only to plugin

NEW PROB
now i see the Plugin , but with an error on top .. SQL error :
Code: [Select]
DB Error: Bad SQL Query: CREATE TABLE IF NOT EXISTS `4images_Pixaco` ( `ID` int(11) NOT NULL auto_increment, `affiliLink` text NOT NULL, `LinkText` text NOT NULL, `Popupheigh` int(4) NOT NULL default '0', `Popupwidth` int(4) NOT NULL default '0', `PicdirfullRemote` text NOT NULL, `PicdirfullLocal` text NOT NULL, UNIQUE KEY `ID` (`ID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1 AUTO_INCREMENT=2' at line 10

DB Error: Bad SQL Query: SELECT * FROM 4images_Pixaco
Table 'usr_web4_1.4images_Pixaco' doesn't exist
sounds like he can't make an entry in my sql base ..  please help me ..
thx
change
Code: [Select]
$CreateCode = "CREATE TABLE IF NOT EXISTS `".$table_prefix."Pixaco` (
  `ID` int(11) NOT NULL auto_increment,
  `affiliLink` text NOT NULL,
  `LinkText` text NOT NULL,
  `Popupheigh` int(4) NOT NULL default '0',
  `Popupwidth` int(4) NOT NULL default '0',
  `PicdirfullRemote` text NOT NULL,
  `PicdirfullLocal` text NOT NULL,
  UNIQUE KEY `ID` (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
in
Code: [Select]
$CreateCode = "CREATE TABLE IF NOT EXISTS `".$table_prefix."Pixaco` (
  `ID` int(11) NOT NULL auto_increment,
  `affiliLink` text NOT NULL,
  `LinkText` text NOT NULL,
  `Popupheigh` int(4) NOT NULL default '0',
  `Popupwidth` int(4) NOT NULL default '0',
  `PicdirfullRemote` text NOT NULL,
  `PicdirfullLocal` text NOT NULL,
  UNIQUE KEY `ID` (`ID`)
)
Title: Re: [MOD] Pixaco Interface
Post by: castor on October 30, 2005, 06:54:41 PM
@ djw:
thx for help .. now it works without error..  lol but i can't manage the right affil link.. *g* .
but thanks.. i will try it..
Title: Re: [MOD] Pixaco Interface
Post by: Jako on November 16, 2005, 06:36:24 PM
hi i have the same problem as castor

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /wwwstuff/partymetropole/jako/admin/plugins/PixacoPrint.php on line 6

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/usr/local/lib/php') in /wwwstuff/partymetropole/jako/admin/plugins/PixacoPrint.php on line 6


Title: Re: [MOD] Pixaco Interface
Post by: khfnet on January 02, 2006, 04:09:46 PM
Ist es möglich statt des Textlinks einen Button, z.B. Warenkorb oder Bestellen, zu verwenden?

Da ich mich mit PHP sogut wie garnicht auskenne, wäre ne kleine Anleitung nicht schlecht

Gruß khfnet
Title: Re: [MOD] Pixaco Interface
Post by: djw on January 02, 2006, 06:36:20 PM
Ist es möglich statt des Textlinks einen Button, z.B. Warenkorb oder Bestellen, zu verwenden?

Da ich mich mit PHP sogut wie garnicht auskenne, wäre ne kleine Anleitung nicht schlecht

Gruß khfnet
sag mir in welchem verzeichniss du das Bild willst und ich schreib dir den Code
Title: Re: [MOD] Pixaco Interface
Post by: khfnet on January 02, 2006, 07:47:53 PM
Wäre sicher am einfachsten Ihn in "{template_url}/images" zu packen.

Im vorraus schonmal danke für deine Mühe.
Title: Re: [MOD] Pixaco Interface
Post by: djw on January 02, 2006, 08:04:52 PM
Wäre sicher am einfachsten Ihn in "{template_url}/images" zu packen.

Im vorraus schonmal danke für deine Mühe.

in der
includes/functions.php

nach
Code: [Select]
        if ($PicChartOptions[Picdirfull] !="") {
                $OutURL= "<a href=\"#\" onclick=\"javascript:window.open('".$PicChartOptions[affiliLink]."&prd=yes&smm=cookie&cmd=addimage&url0=".$PicChartOptions[Picdirfull]."','popup',
                'width=".$PicChartOptions[Popupwidth].",height=".$PicChartOptions[Popupheight].",menubar=no,status=no,scrollbars=no,resizable=yes,left=50,top=50');\"> ".$PicChartOptions[Linktext]."

vor
Code: [Select]
</a>
folgendes einfügen:

<img src="warenkorb.jpg"  border="0">
Title: Re: [MOD] Pixaco Interface
Post by: khfnet on January 03, 2006, 09:54:28 AM
So klappt es leider nicht! Bekomme direkt wenn ich dann die Homepage aufrufe folgenden Fehler:

syntax error, unexpected T_STRING in ..... funktions.php on Line ....

Title: Re: [MOD] Pixaco Interface
Post by: fruity on September 03, 2006, 01:30:56 AM
Es funktioniert ... endlich .. :)

Ich hab nen Bestellen - Button eingebaut. und zwar einfach über den Administrationsbereich im Feld: "Link Text" und zwar als normalen HTML-Code

[qcode]<img src="http://www.URL.de/4images/templates/default/images/bestellen.gif" border="0">[/qcode]

wahrscheinlich kann man hier auch die entsprechende Variable einbauen - aber ich weiß nicht, wie sie lauten muss -und ich persönlich brauch es nicht ...

nur mal so - falls noch jemand lange nach der Lösung sucht ...


Title: Re: [MOD] Pixaco Interface
Post by: Parador on October 07, 2006, 10:28:14 AM
Hallo Leute,

ich habe ein Problem mit diesem Mod, daß hier zwar schon mal genannt wurde, für mich aber keine Lösung bereit gehalten hat...

wenn ich mich als Admin einlogge und auf Pixaco-Partner gehe erhalte ich folgende Anzeige:
Quote
Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /mnt/sdb2/users/10/tr1096/public_html/diefrieds/Marcel/4images/admin/plugins/PixacoPrint.php on line 6

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/usr/share/php:/usr/share/pear') in /mnt/sdb2/users/10/tr1096/public_html/diefrieds/Marcel/4images/admin/plugins/PixacoPrint.php on line 6

habe mich an die Originaltexte hier gehalten und kann keinen Fehler entdecken...
Was kann ich tun???

Nachdem ich ein wenig "gebastelt" habe habe ich die Datenbankeinträge selbst getätigt und habe nun zumindest keine Fehler auf den Detail-Seiten und der Link/Button wird angezeigt - allerdings unabhänging davon, ob es ein Bild gibt oder nicht. Ich habe einen externen Server verwendet und auch richtig verlinkt (bei den Bildern die dort hochgeladen sind, klappt der Upload zu Pixaco)
hier mal ein Link zu einem Bild auf dem externen Server: http://www.host2k.de/User/parador/Photos/IMG_3196.JPG
ein Bild 3197 http://www.host2k.de/User/parador/Photos/IMG_3197.JPG gibt es nicht...


Vielen Dank für Euere Unterstützung!!!

Title: Re: [MOD] Pixaco Interface
Post by: FrankyJ on December 24, 2006, 01:17:14 PM
Hi,

hab das soweit angepasst! Den Button hab ich auch. Nur noch ein Problem:

Wenn ich sage zum Warenkorb hinzufügen, poppt das Fenster auf aber man sieht nix! Wo bekomm ich den den Link her von Affilinet der zu mir passt? Oder muss ich nur die ID im Controlpanel austauschen?


PS: Ich bin bei Affilinet angemeldet!

THX und Frohe Weihnachten!
Title: Re: [MOD] Pixaco Interface
Post by: rinaldos on February 18, 2007, 02:51:45 AM
Hallo,
leider habe ich auch den Fehler:
----
Warning: require(./../admin/admin_global.php) [function.require]: failed to open stream: No such file or directory in C:\Website\Galerie\admin\plugins\pixacoPrint.php on line 6

Fatal error: require() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.;C:\Programme\xampp\php\pear\') in C:\Website\Galerie\admin\plugins\pixacoPrint.php on line 6
----

Ich habe schon mehrfache Pfade ausprobiert, aber leider klappt es nicht. Wenn ich den Pfad nur so angebe :$root_path = "./../../"; bekomme ich fehlermeldungen das die Partner ID oder so nicht existent sind :-(
Für Hilfe wäre ich sehr dankbar.
Gruß

Ingo
Title: Re: [MOD] Pixaco Interface
Post by: gustav on March 26, 2007, 11:20:31 AM
Well, as pixaco is now snapfish.... can someone modify the script to work with the snapfish system? Especially as I need it to work with snapfish.com..... Or will it still work?
Title: Re: [MOD] Pixaco Interface
Post by: osnapicture on May 19, 2007, 02:18:00 PM
zwei fragen:
1. ist das noch aktuell und funktioniert das noch?
2. ist es möglich nur bilder aus bestimmten kategorien für die bestellung frei zu geben?
Title: Re: [MOD] Pixaco Interface
Post by: KurtW on May 19, 2007, 08:00:33 PM
Hallo,

das ging aber schnell mit der neuen Aufgabe für zusätzliche Addons bei deiner Gallerie....

1: da der Aufwand beim Ändern der .php für diesen Mod nicht groß sind, würde ich es einfach testen.
2: sehe keinen richtigen Ansatzpunkt, um bei dem Addon kategorien zu definieren :roll:
Aber mit folgendem Addon können einzelne Kategorien/ Detailsansichten verändert/neu erstellt werden.
http://4homepages.de/forum/index.php?topic=1847.0 (http://4homepages.de/forum/index.php?topic=1847.0)
Soll heißen, daß dann nur in den entsprechenden/ gewünschten neuen details_?.html folgender Code aus dem Addon reinkommt:
Code: [Select]
<?php echo  PicLargeforPixacoPrint($cat_id,$image_file_name);?>


Ich hoffe, ich habe mich ein bisschen klar ausgerückt.

Mit if und else ginge es auch, wenn ich es mir recht überlege. Aber probier erst mal das vorherige



Gruß
Kurt
Title: Re: [MOD] Pixaco Interface
Post by: osnapicture on May 20, 2007, 10:53:11 AM
ja danke. das funktioniert leider nicht mehr. aber von pixaco selbst gibt es eine gute dokumentation wie es funktioniert. mit den kategorien hast du recht. das wird wohl die einzige möglichkeit sein bzw. die einfachste
Title: Re: [MOD] Pixaco Interface
Post by: gustav on May 20, 2007, 12:03:54 PM
Leider ist Pixaco jetzt Snapfish..... und deren system scheint nurnoch ueber deren Onlinealben zu funktionieren. Und irgendwelche Anleitungen zum einbinden auf der eigenen Seite habe ich bei denen schon garnicht gefunden. :(
Gibt es noch einen anderen internationlen Fotodruck-service der das drucken direkt von der eigenen Homepage unterstuetzt??
Title: Re: [MOD] Pixaco Interface
Post by: osnapicture on May 20, 2007, 01:16:17 PM
doch, das funktioniert prima mit der dokumentation von snapfish. kannst du gerne mal auf www.osnapicture.de testen. so schnell war ich mit noch keinem einbau. ist absolut easy
Title: Re: [MOD] Pixaco Interface
Post by: osnapicture on May 20, 2007, 01:19:13 PM
Im Grunde ist es nur der folgende Code:

Code: [Select]
<a href="http://partners.webmasterplan.com/click.asp?ref=392319&
site=3043&type=text&tnb=6&prd=yes&smm=cookie&cmd=addimage&
url0=http://www.meinedomain.de/data/media/{cat_id}/big/{image_file_name}" target="_blank"><img src="{template_url}/images/fotos-entwickeln.gif" alt="zum PIXACO Warenkorb hinzufügen" width="80" height="17" border="0"></a>

einfach www.meinedomain.de durch die adresse deines 4images verzeichnis ersetzen und ggf. /big rauslöschen, falls du keine großen fotos in einem big verzeichnis
Title: Re: [MOD] Pixaco Interface
Post by: KurtW on May 20, 2007, 02:09:28 PM
Hallo,

und natürlich die ref id nicht vergessen zu ändern  :wink:
Und als erstes eine Anmeldung bei dem Partnerprogramm, über dieses die Bildbestellung dann läuft, wäre auch nicht schlecht.
Sonst hat man ja nichts fürs Ändern der ref id


Gruß
Kurt
Title: Re: [MOD] Pixaco Interface
Post by: gustav on May 20, 2007, 02:34:17 PM
Hmmm....
Webmasterplan.com ist schonmal aus dem rennen da sie ihren dienst eingestellt haben.
Und da es zudem ueber pixaco.de geht und damit in dem deutschen interface landet ist es alles andere als international einsetzbar.
Und auf Snapfish.com habe ich nirgends sowas wie eine Anleitung zur Einbindung gefunden.....
Es muss doch eine moeglichkeit geben Snapfish.com direkt nutzen zu koennen, ohne ueber irgendwelche addserver oder aehnliches zu gehen!?
Title: Re: [MOD] Pixaco Interface
Post by: KurtW on May 20, 2007, 02:52:24 PM
http://www.pixaco.de/(S(kky5e05534p55mqpco0ia045))/welcome.aspx?rlt=633152694056236250 (http://www.pixaco.de/(S(kky5e05534p55mqpco0ia045))/welcome.aspx?rlt=633152694056236250)

Und ein Link dazu aus der Beschreibung:
<a href="#" onclick="javascript:window.open('http://www.pixaco.de/services/httpbridge.aspx?smm=cookie&cmd=addimage&url0=http://www.Mein-Server.de/Bilder/Bild1.jpg','popup','width=310,height=250, menubar=no,status=no,scrollbars=no,resizable=yes,left=50,top=50');"> Bild in den Snapfish-Warenkorb legen</a>
Title: Re: [MOD] Pixaco Interface
Post by: osnapicture on May 21, 2007, 12:46:58 PM
doch, der webmasterplan-link funktioniert. das läuft jetzt automatisch über affili.net.
was mich allerdings stört, ist dass man die preise nicht selbst vorgeben kann. so kann jeder ein foto zum normalpreis von 9 cent bestellen und bei einer provision von 20% bleibt für mich nicht mehr viel dabei übrig. gibt es irgendwo einen ähnlichen anbieter, bei dem man die preise selbst definieren kann?
Title: Re: [MOD] Pixaco Interface
Post by: gustav on May 21, 2007, 01:39:26 PM
ja, sowas wie http://www.printbutton.com/ (http://www.printbutton.com/). Nur halt international und nicht nur auf England oder Deutschland beschraenkt.
Muss es doch geben..... !?
Title: Re: [MOD] Pixaco Interface
Post by: osnapicture on May 22, 2007, 12:22:29 PM
früher konnte man die preise bei bildpartner selbst bestimmen. zumindest habe ich einige seiten gefunden, die das bildpartner interface nutzen und auf denen die fotoabzüge teurer sind als normal. anscheinend geht das jetzt nicht mehr, oder weiß jemand wie man die preise dort selbst definieren kann?