Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Cafe Press reloaded Details »»
Cafe Press reloaded
Version: 2.5, by aproape aproape is offline
Developer Last Online: May 2014 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.7.x Rating:
Released: 11-09-2008 Last Update: 12-01-2008 Installs: 94
Uses Plugins Template Edits
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

Good morning everyone!

*** Second premium shops fix provided ***

*** New cafepress template fix for product detail page and jCarousel ***

*** Premium shops fix provided ***

*** Product details page is now fully functional AND enhanced ***

IMPORTANT: If you have a premium shop and the v2.0.8 add-on is working without problems, please backup your installation before upgrading to v2.5.

Post more info about your forum [URL, php version, type of shop/templates] - when encountering an issue.

This version has been updated for basic/free shops which stopped working since Jul 2008. It should work for both basic/free shops as well as premium shops with the default template.

===

This is a reworked version of the abandoned Cafe Press mod done by Creed and Dylanblitz:

https://vborg.vbsupport.ru/showthread.php?t=182424

The original text for the mod follows:

This add-on will allow you to add all the items from any of your Cafe Press store or multiples if you so choose. If you have multiple stores that you intend to use with this mod, make sure you separate each store name with a comma.

This add-on works with Cafe Press basic/free store, as well as with premium stores.

Three files to upload.
One (optional) Template Edit.

Install/update instructions for v2.5

Step 1. Overwite the shop.php file with the one from the archive
Step 2. Enjoy!

Install/update instructions for v2.3

Step 1. Install Cafe Press v2.0.3 or higher [if you don't have it already installed]
Step 2. Replace shop.php with the one from v2.3
Step 3. Copy the contents of the /clientscript/ folder from the /upload folder into your forums' root [clientscript] directory, overwriting the existing files.
Step 4. Enjoy!

[the basic/free shop should be working now - and see the [Notes] section below for limitations/more information]

NOTES:

- if you have at least v2.0.3 installed then the only change needed is to replace the shop.php file and the cafe_press folder. You do not need to reimport the product.

- this new release fixes the issue with new templates on cafepress.com for the basic/free stores.

Known issues:

- version 2.5 only contains the files shop.php and /clientscript/cafe_press folder. It is NOT a full product install and requires you to have cafepress mod v2.0.3 or higher installed already.

- no other issues so far ; )

Let me know if you have any questions or encounter any problems with it.. thanks!


Cheers,
aproape

P.S All thanks go to V for contributing to this ;-)

P.P.S. Thanks to ArnyVee for the screenshot. :-)

Version History
v2.5 - [Tue Dec 02nd 2008]
- Premium shops fix for jCarousel/product details page

Version History
v2.4 - [Mon Dec 01st 2008]
- New cafepress template fix
- Product detail/jCarousel error messages fix

Version History
v2.3 - [Wed Nov 19th 2008]
- Premium shops fix
- Code optimization/cleanup

Version History
v2.2 - [Thu Nov 13th 2008]
- Product details page is now fully functional AND enhanced
- Shop name is now taken from the database

Version History
v2.1 - [Sun Nov 09th 2008]
- Basic/free shops are working again with the new Cafe Press template

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #142  
Old 01-01-2009, 09:12 PM
Jman423's Avatar
Jman423 Jman423 is offline
 
Join Date: Jan 2008
Location: Tampa, FL
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
Did you try my CSS file a few posts back?


I didn't get a chance to look, but I get the feeling it's pulled from CafePress. Been jumping around all over the place trying to get multiple things done. Haven't seemed to get any one thing finished.
Yes I did, no luck.

My biggest problem is the pricing. When the user clicks on a different size for a shirt, the price looses the markup then adds the up-charge. That and the error when trying to "Keep Shopping" from the CafePress cart are preventing me from making this live.

Thank you
Reply With Quote
  #143  
Old 01-07-2009, 09:39 AM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Digital Jedi...

If you're listening, LOL! I've found another problem within this mod. It tends to break W3C's XHTML validation for the following reason:

Quote:
Line 568, Column 22: document type does not allow element "style" here .

<style type="text/css">



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
The problem occurs when you go to my shop page, located at http://www.glitchpc.com/forums/shop.php and try to validate through W3C's validation service.

Is there any way we can get this fixed?

Upon looking at the shop.php file I find the following:

Code:
echo "<style type=\"text/css\">\n";
	echo ".head {font-weight: bold; font-size: 1.5em}\n";
	echo "</style>\n";
This seems to be where the culprit lies.

Thanks for looking...
Reply With Quote
  #144  
Old 01-07-2009, 10:03 AM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update...

Well, I decided to edit the shop.php file and removed the above "style" code. Re-uploaded the shop.php file to the server and checked for validation.

It passed...Woo-hoo! Apparently...this little fix resulted in no issues with the functionality of this mod. Everything seems to be working fine.

So, Digital Jedi...if anyone is experiencing the same problem with W3C validation, they may want to incorporate this little fix, or the coder may want to revamp the shop.php file to include this...just a thought.

Thanks, again, for looking...
Reply With Quote
  #145  
Old 01-07-2009, 06:45 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got the page to vaildate a completely different way, but it escapes at the moment what it is I did. I really need to start keeping change logs.
Reply With Quote
  #146  
Old 01-08-2009, 05:18 PM
JimmiOO JimmiOO is offline
 
Join Date: Nov 2007
Location: Channel Islands, Jersey
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed it and it works ok when i use http://www.cafepress.com/CNDS as the store id

I have created my own free shop and its looks like i have added products but it not showing products when i change the CNDS to my own id.

Any ideas?
Reply With Quote
  #147  
Old 01-08-2009, 06:53 PM
mousegeek's Avatar
mousegeek mousegeek is offline
 
Join Date: Mar 2006
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I must be doing something wrong. I have the latest version of PHP and MY SQL and I keep getting this error:

Warning: preg_replace() [function.preg-replace]: Unknown modifier '/' in [path]/shop.php on line 325

Warning: preg_replace() [function.preg-replace]: Unknown modifier '/' in [path]/shop.php on line 327

Warning: preg_replace() [function.preg-replace]: Unknown modifier '/' in [path]/shop.php on line 328




What does this mean and how do I fix this?
Reply With Quote
  #148  
Old 01-08-2009, 06:59 PM
JimmiOO JimmiOO is offline
 
Join Date: Nov 2007
Location: Channel Islands, Jersey
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have sussed out my problerm with the products not showing.

How you you go about sorting the currency? at the moment it shows A£ and not £
Reply With Quote
  #149  
Old 01-08-2009, 09:34 PM
JimmiOO JimmiOO is offline
 
Join Date: Nov 2007
Location: Channel Islands, Jersey
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also is there any way you can just sell the products without having to add a logo for print
Reply With Quote
  #150  
Old 01-08-2009, 11:16 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JimmiOO View Post
Also is there any way you can just sell the products without having to add a logo for print
Don't add a logo?
Reply With Quote
  #151  
Old 01-09-2009, 01:33 AM
Jman423's Avatar
Jman423 Jman423 is offline
 
Join Date: Jan 2008
Location: Tampa, FL
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had to uninstall this. I can't sell anything if the prices won't remain correct.

It is a nice mod, thank you for taking the time to work on it.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04857 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete