andy's php projects
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Script and site usage:
All of the scripts on this site are provided free for non-commerical, personal or non-profit use. If you find these scripts useful to you, appreciate the free support, or are just an all round nice person, then why not donate a little dosh? If you wish to use any of these in a commercial system, please refer to the payment plan.


Script broken?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> CafePress Box
View previous topic :: View next topic  
Author Message
marijn
Newbie


Joined: 27 Apr 2006
Posts: 2

PostPosted: Thu Nov 16, 2006 1:46 am    Post subject: Script broken? Reply with quote

The script seems to be broken. Is there a fix available?

Cheers,

Marijn.
Back to top
View user's profile Send private message
amnuts
Site Admin


Joined: 01 Sep 2002
Posts: 662
Location: East Sussex, England

PostPosted: Thu Nov 16, 2006 7:44 am    Post subject: Reply with quote

The reason it's not working is that CafePress have tweaked their html code a little. All you have to do it set the correct regular expression to match it and clear your cache directory (if you cache the contents).

The new regular expression is very close to the old one. You can either pass it in on the fly using the setPattern method, or simply update the class and set the regular expression in that same method.

The new regular expression is:

Code:
<td align="center" valign="top"><a href="/'.$this->storeID.'\.(\d+)"><img class="imageborder" border="0" height="150" alt="([^\"]*)" src="([^"]*)"></a></br><a href="/'.$this->storeID.'\.(\d+)">(.*?)</a><br>\$([^<]*)</td>


(That should all be on one line when you put it in your code.)

Don't forget to clear any cached items (specifcally the cache.* files)

Andy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> CafePress Box All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group