4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started 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!)
- includes/functions.php
- templates/your_template/details.html
New file:- admin/plugins/PixacoPrint.php
INSTALL
1 Make New File: admin/plugins/PixacoPrint.php
<?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&site=3043&type=text&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ügen </span> </strong></td>
<td width="40%"><textarea name="LinkText" cols="50" rows="4">'.$LinkText.'</textarea></td>
</tr>
<tr>
<td><strong>Hö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"> <input type="submit" value=" Einstellungen Speichern " class="button"> </td>
</tr>
</table>
</td>
</tr>
</table>
</form>
';
}
display_Pixaco();
show_admin_footer();
?>
2 Insert Into includes/functions.php
bevore ?>
/* 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
<?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 <?php
insert
{if PrintPartner}
after ?>
insert
{endif PrintPartner}
in Details.php:
change
"admin_links" => $admin_links
to
"admin_links" => $admin_links,
"PrintPartner" => $PrintPartner
after
elseif ($is_image_owner) {
(2X)
insert
$PrintPartner = "1";
-
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
-
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
http://www.4homepages.de/forum/index.php?topic=10118.msg49502#msg49502
is for www.bildpartner.de
-
but do both the same , right ?
:)
-
but do both the same , right ?
:)
yes with different Partner
-
Hallo, kann man das so einstellen das User nur ihre eigenen Bilder in den Warenkorb hinzufügen können?
-
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)
-
das mit dem "if" gilt dann nur für eingeloggte User, Problem dabei ist das © des einzelnen Users auf seine Bilder :!:
-
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";
-
Hallo djw,
ich werde das heute Abend mal testen, vielen Dank für Deine Antworten (ist hier ja leider nicht selbstverständlich).
Gruß, Michael
-
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.
-
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
-
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
-
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.
$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
-
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)
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))
-
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
-
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 http://xxx.homelinux.com/galerie/4images/data/media/{cat_id}/big/{image_file_name}
groß / Kleinschreibung checken
ggf folgendes testscript mal laufen lassen:
<?php
echo str_replace("{cat_id}", "666", "http://xxx.homelinux.com/galerie/4images/data/media/{cat_id}/big/{image_file_name}");
?>
-
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
-
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:
- das testscript bekommt keinen bildnamen und gibt einen aus
- die url stimmt nicht
hast du es schonmal ohne den big ordner probiert??
-
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
-
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}
-
Vielleicht gibt es ja auch nur Probleme mit dem Platzhalter {cat_id}???
Gruß
Markus
-
Vielleicht gibt es ja auch nur Probleme mit dem Platzhalter {cat_id}???
Gruß
Markus
dann probiers mal mit was anderem
-
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
-
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
-
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.
-
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
-
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?
-
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
-
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
-
Hi all, my first post..
have an error at installation point 4 , when i'm click in control panel the Pixaco link
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
-
Hi all, my first post..
have an error at installation point 4 , when i'm click in control panel the Pixaco link
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 :
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
-
Hi all, my first post..
have an error at installation point 4 , when i'm click in control panel the Pixaco link
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 :
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
$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
$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`)
)
-
@ 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..
-
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
-
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
-
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
-
Wäre sicher am einfachsten Ihn in "{template_url}/images" zu packen.
Im vorraus schonmal danke für deine Mühe.
-
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
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
</a>
folgendes einfügen:
<img src="warenkorb.jpg" border="0">
-
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 ....
-
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 ...
-
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:
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!!!
-
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!
-
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
-
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?
-
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?
-
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:
<?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
-
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
-
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??
-
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
-
Im Grunde ist es nur der folgende Code:
<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
-
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
-
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!?
-
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>
-
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?
-
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..... !?
-
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?