Welcome to Geeklog Wednesday, December 08 2021 @ 02:20 pm EST

Geeklog Forums

Difficulties getting CafePress script to work, PLEASE HELP!!!!


Status: offline

jhackwith

Forum User
Chatty
Registered: 24/07/04
Posts: 63
Location:Lewiston, Idaho
stressed
I tried to get the CafePress script to work, with no success. Please view the page at http://www.intotheflame.com/store.php to see what it is doing (just displaying a blank page with the site navigation blocks).

Here is the code for the page... can someone please let me know what I'm doing wrong?

PHP Formatted Code

<?php

// This path should point to your lib-common.php
require_once('/home/jasonhackwith/intotheflame.com/lib-common.php');

$start_display .= COM_siteHeader();      // use 'none' if you do not want the left blocks


echo $start_display;
//  Put your php code here and add everything to the $display variable you want displayed

/*
        global $storeid;
    include("cpstore.inc");

    #####
    ##### the first field is all your store ids seperated by a comma
    ##### in the second field just change this to your website.
    open_store($storeid, "/store.php");
*/


/*
-----------------------------------------
CafePress Custom Store Script 1.0.11
-----------------------------------------

Fixes by James "destr0yr" Bothe - www.okanagangirlz.com

- Fixed "Questions?" link when viewing larger image.  Line 116 preg_replace was
not replacing the code properly.
- Fixed "View Larger Images".  Cafepress changed something and line 124 needed
updating.

-----------------------------------------
CafePress Custom Store Script 1.0.10
-----------------------------------------
Incorperated into GeekLog by Neal "ScurvyDawg" Cropper - www.scurvydawg.com

- Added Geelog Wrapper Functions
- Removed PHPNuke calls

I found that the Cafepress stores that I had created in 2002 were different in
structure than than newly created stores.

If the script does not function correctly in your GeekLog try creating a new store.

If you would like it, my Cafepress referrer URL is

http://www.cafepress.com/cp/info/storeref.aspx?refby=scurvyd

scurvydawg@scurvydawg.com

-----------------------------------------
CafePress Custom Store Script 1.0.9
-----------------------------------------
This script is designed to allow CafePress Basic (free) store owners to incorporate
their store into their own web site. This script can also be used with my random
item script which features any randomly selected item from your store(s) on any
page of your site.

Created and copyright by scanman20@hotmail.com Mar-23-2003
Last updated: Oct-08-2003

This code is released under the terms of the GNU General Public License
A copy of the GPL can be found at http://www.gnu.org/copyleft/gpl.html

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

Please retain this message at the top of this script if you modify it in any
way.
---------------------------------------------------------------------------------
INSTRUCTIONS:

1. First, your web server must have PHP 4.1.0 or later installed for this script
to function properly.
You must also be able to run the fsockopen() function.

2. This script will display all the products from the stores you specify on one
page. Each item
is linked to a detailed version of itself using this same script. Items are
retrieved in real time,
so if you have many items in many stores, your page may take several seconds to
fully load all of
CafePress' hosted images.

3. To setup the script, edit the $stores variable below to be a list of your
stores. THAT'S IT!

4. You can run this script as an include file within an existing PHP page,
cutting-and-pasting the script
into your own PHP page, or as a standalone page. If you choose to run it as a
standalone page, you'll
need to add the appropriate HTML around it in order for it to display properly
(<HTML><HEAD><BODY> etc...).

5. Rename this script to store.php.

Your feedback is welcomed. If you have any questions or comments please email me
at scanman20@hotmail.com

-Scanman20

-------------- SCRIPT BEGINS AFTER THIS LINE
-----------------------------------------------*/


// SET VARIABLES //

$start = '<!-- Start Main Content -->';
$end = '<!-- End Content, Start Footer Include -->';
$stores = 'itfstore'; //EDIT THIS VARIABLE TO BE A LIST OF YOUR STORES
$url = 'http://www.cafepress.com/';
$item = $_GET['item'];

// WRITE CAFEPRESS JAVASCRIPT TO PAGE //
echo '<script language="JavaScript1.1"
src="http://www.cafepress.com/commonscripts.js"></script>'
;

if ($item) { // Script has been called with a specific item, bring up detail
page.
    $detail = $url . $item;

    $fp = fsockopen ("www.cafepress.com", 80, $errno, $errstr, 30);
    if (!$fp) {
        echo "$errstr ($errno)<br>\n";
    } else {
        fputs ($fp, "GET /$item HTTP/1.0\r\nHost:
www.cafepress.com\r\nUser-Agent: MS Internet Explorer\r\n\r\n"
);
        while (!feof($fp)) {
            $content .= fgets($fp,1024);
        }
        fclose ($fp);
    }


    $null = eregi("$start(.*)$end", $content, $cparray);
    $pattern = "/\/cp/";
    $replacement = "http://www.cafepress.com/cp";
    $itemdetail = preg_replace($pattern, $replacement, $cparray[1]);

    $largeImgPattern = "/<a href=\"\//";
    $largeImgReplacement = "<a href=\"store.php?item=";
    $itemdetail = preg_replace($largeImgPattern, $largeImgReplacement,
$itemdetail);

    // The next four lines aren't truly necessary. They 1)make the add to cart button pop up //
    // in its own window with the keep shopping button returning you to your custom store //
    // 2)add a view cart button (vey handy) and 3) change the link to the CP legal questions page //

    $itemdetail = preg_replace("/<form method=\"post\"
action=\"http:\/\/www.cafepress.com\/cp\/addtocart.aspx\">/i"
, "<form
method=\"post\" name=cart
action=\"http://www.cafepress.com/cp/addtocart.aspx?keepshopping=javascript:self.close()\"
target=\"cartWin\">"
, $itemdetail);
    $itemdetail = preg_replace("/<input type=\"submit\"/", "<input type=submit
onClick=\"cartWin = window.open
('','cartWin','toolbar=yes,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=500');
cartWin.focus(); return true;\""
, $itemdetail);
    $itemdetail = preg_replace("/Value=\"Add to Cart\"><\/td>/", "Value=\"Add to
Cart\" >   <input type=image src=viewcart_btn.gif
onClick=\"cartWin = window.open
('http://www.cafepress.com/cp/viewcart.aspx','cartWin','toolbar=yes,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=500');
cartWin.focus(); return true;\"></td>"
, $itemdetail);
    // Fixed (works):
    $itemdetail = preg_replace("/<a
href=\"http:\/\/www.cafepress.comhttp:\/\/www.cafepress.com/"
, "<a
href=\"http://www.cafepress.com"
, $itemdetail);

    echo "<script>";
    echo "function e (z, h, w, b, g) {";
    // Fixed (works):
    echo "document.write('<div style=\"width:'+w+';height:'+h+';background:white
url(http://zoom.cafepress.com/'+(z%10)+'/'+z+'_zoom.jpg) no-repeat center
center;\"><img border=\"'+b+'\" class=\"imageborder\"
src=\"http://www.cafepress.com/cp/img/'+(g?'zoom':'spacer')+'.gif\"
width=\"'+w+'\" height=\"'+h+'\"></div>')"
;
    echo "}";
    echo "</script>";

    echo $itemdetail;
}
else { // No item was requested when script was called, show items from all stores in the $stores variable.
    $allitems = $url . $stores;

    // connect to CP
    $reqheader = "GET /$stores HTTP/1.0\r\nHost:
www.cafepress.com\r\nUser-Agent: MS Internet Explorer\r\n\r\n"
;
    $socket = @fsockopen("www.cafepress.com", 80, &$errno, &$errstr);
    if ($socket)
    {
        fputs($socket, $reqheader);
        while (!feof($socket))
        {
            $content .= fgets($socket, 4096);
        }
    }
    fclose($socket);

    $null = eregi("$start(.*)$end", $content, $cparray);
    $pattern = "/<a href=\"\//";
    $replacement = "<a href=\"store.php?item=";
    $storeitems = preg_replace($pattern, $replacement, $cparray[1]);
    $storeitems = preg_replace("/\/cp\/img\/saletag.gif/",
"http://www.cafepress.com/cp/img/saletag.gif", $storeitems);
    $storeitems = preg_replace("/\/cp\/img\/fathersday_prodtag.gif/",
"http://www.cafepress.com/cp/img/fathersday_prodtag.gif", $storeitems);
    $storeitems = preg_replace("/\/cp\/popupsurvey.aspx/",
"http://www.cafepress.com/cp/popupsurvey.aspx", $storeitems);
    echo $storeitems;
}

//
//$display .= COM_endBlock();
$display .= COM_siteFooter();           // use yes if you want the right blocks
echo $display;
?>



 

"Beauty... is the shadow of God on the universe." ~ Gabriela Mistral -- Desolacíon
 Quote

Status: offline

destr0yr

Forum User
Full Member
Registered: 06/07/02
Posts: 324
Here's mine from www.okanagangirlz.com/store.php. Most comments left out for brevity.:

PHP Formatted Code

<?php
require_once('/home/okanagan/public_html/lib-common.php');

echo COM_siteHeader();
$start = '<!-- Start Main Content -->';
$end = '<!-- End Content, Start Footer Include -->';
$stores = 'okanagangirlz,okanagangirls'; //EDIT THIS VARIABLE TO BE A LIST OF YOUR STORES
$url = 'http://www.cafepress.com/';
$item = $_GET['item'];

echo '<script language="JavaScript1.1" src="http://www.cafepress.com/commonscripts.js"></script>';

if ($item) { // Script has been called with a specific item, bring up detail page.
    $detail = $url . $item;

    $fp = fsockopen ("www.cafepress.com", 80, $errno, $errstr, 30);
    if (!$fp) {
        echo "$errstr ($errno)n";
    } else {
        fputs ($fp, "GET /$item HTTP/1.0rnHost: www.cafepress.comrnUser-Agent: MS Internet Explorerrnrn");
        while (!feof($fp)) {
            $content .= fgets($fp,1024);
        }
        fclose ($fp);
    }


    $null = eregi("$start(.*)$end", $content, $cparray);
    $pattern = "//cp/";
    $replacement = "http://www.cafepress.com/cp";
    $itemdetail = preg_replace($pattern, $replacement, $cparray[1]);

    $largeImgPattern = "/<a href="//";
    $largeImgReplacement = "<a href="store.php?item=";
    $itemdetail = preg_replace($largeImgPattern, $largeImgReplacement, $itemdetail);

    $itemdetail = preg_replace("
/<form method="post" action="http://www.cafepress.com/cp/addtocart.aspx">/i", "<form method="post" name=cart action="http://www.cafepress.com/cp/addtocart.aspx?keepshopping=javascript:self.close()" target="cartWin">", $itemdetail);
    $itemdetail = preg_replace("
/<input type="submit"/", "<input type=submit onClick="cartWin = window.open ('','cartWin','toolbar=yes,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=500'); cartWin.focus(); return true;"", $itemdetail);
    $itemdetail = preg_replace("
/Value="Add to Cart"></td>/", "Value="Add to Cart" >   <input type=image src=viewcart_btn.gif onClick="cartWin = window.open ('http://www.cafepress.com/cp/viewcart.aspx','cartWin','toolbar=yes,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=500'); cartWin.focus(); return true;"></td>", $itemdetail);
    $itemdetail = preg_replace("
/<a href="http://www.cafepress.comhttp://www.cafepress.com/" , "<a href="http://www.cafepress.com", $itemdetail);

    echo "<script>";
    echo "function e (z, h, w, b, g) {";
    echo "document.write('<div style="width:'+w+';height:'+h+';background:white url(http://zoom.cafepress.com/'+(z%10)+'/'+z+'_zoom.jpg) no-repeat center center;"><img border="'+b+'" class="imageborder" src="http://www.cafepress.com/cp/img/'+(g?'zoom':'spacer')+'.gif" width="'+w+'" height="'+h+'" alt="" /></div>')";
    echo "}";
    echo "</script>";

    echo $itemdetail;
}
else { from all stores in the $stores variable.
    $allitems = $url . $stores;

    $reqheader = "GET /$stores HTTP/1.0rnHost: www.cafepress.comrnUser-Agent: MS Internet Explorerrnrn";
    $socket = @fsockopen("www.cafepress.com", 80, &$errno, &$errstr);
    if ($socket)
    {
        fputs($socket, $reqheader);
        while (!feof($socket))
        {
            $content .= fgets($socket, 4096);
        }
    }
    fclose($socket);

    $null = eregi("$start(.*)$end", $content, $cparray);
    $pattern = "/<a href="//";
    $replacement = "<a href="store.php?item=";
    $storeitems = preg_replace($pattern, $replacement, $cparray[1]);
    $storeitems = preg_replace("
//cp/img/saletag.gif/", "http://www.cafepress.com/cp/img/saletag.gif", $storeitems);
    $storeitems = preg_replace("//cp/img/fathersday_prodtag.gif/", "http://www.cafepress.com/cp/img/fathersday_prodtag.gif", $storeitems);
    $storeitems = preg_replace("//cp/popupsurvey.aspx/", "http://www.cafepress.com/cp/popupsurvey.aspx", $storeitems);
    echo $storeitems;
}

//
echo COM_siteFooter();           // use yes if you want the right blocks
echo $display;
?>

 

-- destr0yr "I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 06/11/02
Posts: 523
See this thread

http://www.geeklog.net/forum/viewtopic.php?forum=8&showtopic=40271
 Quote

Status: offline

jhackwith

Forum User
Chatty
Registered: 24/07/04
Posts: 63
Location:Lewiston, Idaho
caffeinated
destroy0r, I used your code with my variables and came up with the following problem:

Parse error: parse error, unexpected T_VARIABLE in /home/.halima/jasonhackwith/intotheflame.com/store.php on line 34

Any ideas?

Thanks a million!
Jason Hackwith
"Beauty... is the shadow of God on the universe." ~ Gabriela Mistral -- Desolacíon
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 06/11/02
Posts: 523
Use the original script and just change the cafeshops references to cafepress and all will work fine for you.

Good Luck.
 Quote

Status: offline

jhackwith

Forum User
Chatty
Registered: 24/07/04
Posts: 63
Location:Lewiston, Idaho
caffeinated
Quote by ScurvyDawg: Use the original script and just change the cafeshops references to cafepress and all will work fine for you.

Good Luck.


Which one is the original script? I used the script labeled as being updated for 1.3.9 and it didn't work at all, gave me all kinds of parse errors.

Can you please point me to the script I should use? Is this the correct one?

Thanks in advance,
Jason Hackwith
"Beauty... is the shadow of God on the universe." ~ Gabriela Mistral -- Desolacíon
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 06/11/02
Posts: 523
yes
 Quote

Status: offline

jhackwith

Forum User
Chatty
Registered: 24/07/04
Posts: 63
Location:Lewiston, Idaho
Alright. I used the 1.3.9 script that you had zipped, with no changes except for the path to my lib-common.php, my store id, and all incidents of cafeshops changed to cafepress. Here is the code below:

PHP Formatted Code

<?php

// This path should point to your lib-common.php
require_once('/home/.halima/jasonhackwith/intotheflame.com/lib-common.php');

$start_display .= COM_siteHeader();      // use 'none' if you do not want the left blocks


echo $start_display;
//  Put your php code here and add everything to the $display variable you want displayed

/*
        global $storeid;
    include("cpstore.inc");

    #####
    ##### the first field is all your store ids seperated by a comma
    ##### in the second field just change this to your website.
    open_store($storeid, "/store.php");
*/


/*
-----------------------------------------
CafePress Custom Store Script 1.0.11
-----------------------------------------

Fixes by James "destr0yr" Bothe - www.okanagangirlz.com

- Fixed "Questions?" link when viewing larger image.  Line 116 preg_replace was
not replacing the code properly.
- Fixed "View Larger Images".  Cafepress changed something and line 124 needed
updating.

-----------------------------------------
CafePress Custom Store Script 1.0.10
-----------------------------------------
Incorperated into GeekLog by Neal "ScurvyDawg" Cropper - www.scurvydawg.com

- Added Geelog Wrapper Functions
- Removed PHPNuke calls

I found that the Cafepress stores that I had created in 2002 were different in
structure than than newly created stores.

If the script does not function correctly in your GeekLog try creating a new store.

If you would like it, my Cafepress referrer URL is

http://www.cafepress.com/cp/info/storeref.aspx?refby=scurvyd

scurvydawg@scurvydawg.com

-----------------------------------------
CafePress Custom Store Script 1.0.9
-----------------------------------------
This script is designed to allow CafePress Basic (free) store owners to incorporate
their store into their own web site. This script can also be used with my random
item script which features any randomly selected item from your store(s) on any
page of your site.

Created and copyright by scanman20@hotmail.com Mar-23-2003
Last updated: Oct-08-2003

This code is released under the terms of the GNU General Public License
A copy of the GPL can be found at http://www.gnu.org/copyleft/gpl.html

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

Please retain this message at the top of this script if you modify it in any
way.
---------------------------------------------------------------------------------
INSTRUCTIONS:

1. First, your web server must have PHP 4.1.0 or later installed for this script
to function properly.
You must also be able to run the fsockopen() function.

2. This script will display all the products from the stores you specify on one
page. Each item
is linked to a detailed version of itself using this same script. Items are
retrieved in real time,
so if you have many items in many stores, your page may take several seconds to
fully load all of
CafePress' hosted images.

3. To setup the script, edit the $stores variable below to be a list of your
stores. THAT'S IT!

4. You can run this script as an include file within an existing PHP page,
cutting-and-pasting the script
into your own PHP page, or as a standalone page. If you choose to run it as a
standalone page, you'll
need to add the appropriate HTML around it in order for it to display properly
(<HTML><HEAD><BODY> etc...).

5. Rename this script to store.php.

Your feedback is welcomed. If you have any questions or comments please email me
at scanman20@hotmail.com

-Scanman20

-------------- SCRIPT BEGINS AFTER THIS LINE
-----------------------------------------------*/


// SET VARIABLES //

$start = '<!-- Start Main Content -->';
$end = '<!-- End Content, Start Footer Include -->';
$stores = 'itfstore'; //EDIT THIS VARIABLE TO BE A LIST OF YOUR STORES
$url = 'http://www.cafepress.com/';
$item = $_GET['item'];

// WRITE CAFEPRESS JAVASCRIPT TO PAGE //
echo '<script language="JavaScript1.1"
src="http://www.cafepress.com/commonscripts.js"></script>'
;

if ($item) { // Script has been called with a specific item, bring up detail
page.
    $detail = $url . $item;

    $fp = fsockopen ("www.cafepress.com", 80, $errno, $errstr, 30);
    if (!$fp) {
        echo "$errstr ($errno)<br>\n";
    } else {
        fputs ($fp, "GET /$item HTTP/1.0\r\nHost:
www.cafepress.com\r\nUser-Agent: MS Internet Explorer\r\n\r\n"
);
        while (!feof($fp)) {
            $content .= fgets($fp,1024);
        }
        fclose ($fp);
    }


    $null = eregi("$start(.*)$end", $content, $cparray);
    $pattern = "/\/cp/";
    $replacement = "http://www.cafepress.com/cp";
    $itemdetail = preg_replace($pattern, $replacement, $cparray[1]);

    $largeImgPattern = "/<a href=\"\//";
    $largeImgReplacement = "<a href=\"store.php?item=";
    $itemdetail = preg_replace($largeImgPattern, $largeImgReplacement,
$itemdetail);

    // The next four lines aren't truly necessary. They 1)make the add to cart
button pop up //
    // in its own window with the keep shopping button returning you to your
custom store //
    // 2)add a view cart button (vey handy) and 3) change the link to the CP
legal questions page //

    $itemdetail = preg_replace("/<form method=\"post\"
action=\"http:\/\/www.cafepress.com\/cp\/addtocart.aspx\">/i"
, "<form
method=\"post\" name=cart
action=\"http://www.cafepress.com/cp/addtocart.aspx?keepshopping=javascript:self.close()\"
target=\"cartWin\">"
, $itemdetail);
    $itemdetail = preg_replace("/<input type=\"submit\"/", "<input type=submit
onClick=\"cartWin = window.open
('','cartWin','toolbar=yes,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=500');
cartWin.focus(); return true;\""
, $itemdetail);
    $itemdetail = preg_replace("/Value=\"Add to Cart\"><\/td>/", "Value=\"Add to
Cart\" >   <input type=image src=viewcart_btn.gif
onClick=\"cartWin = window.open
('http://www.cafepress.com/cp/viewcart.aspx','cartWin','toolbar=yes,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=500');
cartWin.focus(); return true;\"></td>"
, $itemdetail);
    // Original (broken):

    // $itemdetail = preg_replace("/law.  <a
href=\"http:\/\/www.cafepress.comhttp:\/\/www.cafepress.com/" , "law. <a
href=\"http://www.cafepress.com"
, $itemdetail);
    // Fixed (works):
    $itemdetail = preg_replace("/<a
href=\"http:\/\/www.cafepress.comhttp:\/\/www.cafepress.com/"
, "<a
href=\"http://www.cafepress.com"
, $itemdetail);

    echo "<script>";
    echo "function e (z, h, w, b, g) {";
    // Original (broken)
    // echo "document.write('<div
style=\"width:'+w+';height:'+h+';url(http://zoom.cafepress.com/'+(z%10)+'/'+z+'_zoom.jpg)
no-repeat center center;\"><img border=\"'+b+'\" class=\"imageborder\"
src=\"http://www.cafepress.com/cp/img/'+(g?'zoom':'spacer')+'.gif\"
width=\"'+w+'\" height=\"'+h+'\"></div>')"
;
    // Fixed (works):
    echo "document.write('<div style=\"width:'+w+';height:'+h+';background:white
url(http://zoom.cafepress.com/'+(z%10)+'/'+z+'_zoom.jpg) no-repeat center
center;\"><img border=\"'+b+'\" class=\"imageborder\"
src=\"http://www.cafepress.com/cp/img/'+(g?'zoom':'spacer')+'.gif\"
width=\"'+w+'\" height=\"'+h+'\"></div>')"
;
    echo "}";
    echo "</script>";

    echo $itemdetail;
}
else { // No item was requested when script was called, show items from all
stores in the $stores variable.
    $allitems = $url . $stores;

    // connect to CP
    $reqheader = "GET /$stores HTTP/1.0\r\nHost:
www.cafepress.com\r\nUser-Agent: MS Internet Explorer\r\n\r\n"
;
    $socket = @fsockopen("www.cafepress.com", 80, &$errno, &$errstr);
    if ($socket)
    {
        fputs($socket, $reqheader);
        while (!feof($socket))
        {
            $content .= fgets($socket, 4096);
        }
    }
    fclose($socket);

    $null = eregi("$start(.*)$end", $content, $cparray);
    $pattern = "/<a href=\"\//";
    $replacement = "<a href=\"store.php?item=";
    $storeitems = preg_replace($pattern, $replacement, $cparray[1]);
    $storeitems = preg_replace("/\/cp\/img\/saletag.gif/",
"http://www.cafepress.com/cp/img/saletag.gif", $storeitems);
    $storeitems = preg_replace("/\/cp\/img\/fathersday_prodtag.gif/",
"http://www.cafepress.com/cp/img/fathersday_prodtag.gif", $storeitems);
    $storeitems = preg_replace("/\/cp\/popupsurvey.aspx/",
"http://www.cafepress.com/cp/popupsurvey.aspx", $storeitems);
    echo $storeitems;
}

//
//$display .= COM_endBlock();
$display .= COM_siteFooter();           // use yes if you want the right blocks
echo $display;
?>



 


I'm getting the following parse error:

Parse error: parse error, unexpected T_STRING in /home/.halima/jasonhackwith/intotheflame.com/store.php on line 149

Checking line 149 gives me:
PHP Formatted Code

    // The next four lines aren't truly necessary. They 1)make the add to cart
button pop up //
    // in its own window with the keep shopping button returning you to your
custom store //
    // 2)add a view cart button (vey handy) and 3) change the link to the CP
legal questions page //




 


It appears that the parse errors are resulting from the lines you commented out appearing on two lines. This may be because you Zipped the file. I do know that Winzip corrupts PHP files.

Can you please send me the 1.3.9 page above, without compressed into a Zip file? Or, if possible, could you compress it into a tarball? Please e-mail it to webmaster@intotheflame.com.

Thank you very much,
Jason Hackwith
"Beauty... is the shadow of God on the universe." ~ Gabriela Mistral -- Desolacíon
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 06/11/02
Posts: 523
I will shoot it to you when I get home tonight. But being that will be late I may not end up doing it till tomorrow butI will try to get it to you tonight.

I have no idea why it would not work when it does on so many other boxes. The dots in your path are odd but if that is what they are I guess it should work.

Send me what you have and I can test it on my box.

ScurvyDawg AT gmail DOT com
 Quote

Spider

Anonymous
I have never been able to get this script to work. Ever.

I have tried everything I can think of, but it always comes up with an error just like above. I have tried this on four different servers on ten different GL sites.
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 06/11/02
Posts: 523
If you read the source you can easily find the fellow whos script was originally used. I used his free script and it works perfectly in most environments.

www.notonebit.com I think, maybe he knows.

 Quote

Status: offline

jhackwith

Forum User
Chatty
Registered: 24/07/04
Posts: 63
Location:Lewiston, Idaho
cheerful
Just wanted to let everybody know that it wasn't the script that was the problem... ScurvyDawg was kind enough to e-mail me an uncompressed copy of his store.php file, and it works perfectly with my settings... see:

http://www.intotheflame.com/store.php

After comparing ScurvyDawg's script and the one I unzipped, I'm still not sure what the problem was. If anybody needs a working store.php, just contact me through this site and I'll be glad to e-mail it to you.

Thanks,
Jason
"Beauty... is the shadow of God on the universe." ~ Gabriela Mistral -- Desolacíon
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 06/11/02
Posts: 523
angelic
I of course will also provide the script any time it is requested. Either email me though GL or use scurvydawg @ gmail dot com.

Spider if your four server and ten geeklogs never got the script working why would you blame the script? Seems the version you have or the webmaster may have made a mistake . If you want email me your script and ask for assistance.

My ICQ is 757473 be sure to say why you want to be added or I will not respond. Lots of ICQ spam nowadays.

Cheers
ScurvyDawg
 Quote

anon

Anonymous
would either be kind enough to toss a copy of the current working store.php into the Geeklog.net downloads section?

that'd be super for the rest, thanks
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 06/11/02
Posts: 523
it is there. or was I will upload it if not.

 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 06/11/02
Posts: 523
I have uploaded the new script for download.

Once the admins approve it you may download away.

If you do not have a cafepress shop yet Join Here
 Quote

All times are EST. The time is now 02:20 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content