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

Reply
 
Thread Tools
Cafe Press Details »»
Cafe Press
Version: 2.0.8, by Dylanblitz Dylanblitz is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.7.x Rating:
Released: 06-13-2008 Last Update: 07-21-2008 Installs: 97
Re-useable Code Additional Files  
No support by the author.

At this time this mod is not functioning correctly. Cafepress has redone their free site template and it will take a rewrite of this mod to get it to work again. Not extremely difficult, just time consuming. Unfortunately, 2 jobs, a sick kid and commercial work leaves free time few and far between nowadays. I will try and work on it when I can. If any other coder out there is interested they are free to take what I have and run with it, just like Creed posted on his original code.


This is a reworked version of the abandoned Cafe Press mod done by Creed.

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

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

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

Basic Store Demo

Basic Store Single Item Demo

If you have at least 2.0.3 installed then only change needed is to replace the shop.php file. You do not need to reimport the product.

PREMIUM OWNERS PLEASE READ!!
I will not be able to officially support the shops of premium owners. The main problem is that there is no standardization on the templates available to premium users, especially in the css and notes markup which is what I count on for the script, and it's unrealistic to try and code for each one. The shop works for premium shops with the default template and no css added. A lot of the templates mess up the formatting.

I will help with what I can but there is only so much I can do.
When asking for help please include the following:
path to your shop.php file
store id
template used (if possible)


Version History
v2.0.8 - [Tue 22th July 2008]
Removed Call-time pass-by-reference
Modified code to be xhtml valid (Thanks Enclave)

v2.0.7 - [Fri 11th July 2008]
Fixed category links

v2.0.6 - [Fri 27th June 2008]
Fixed link to create your own online shop

v2.0.5 - [Fri 27th June 2008]
Moved View Cart button to get it out of the Add to Cart form
Fixed hard code from store.php to shop.php
Added security for GET variable *Thanks Tim

v2.0.4 - [Fri 27th June 2008]
Removed cream background color on item view
Added navbar link to go back to main shop
Fixed mouseover color changes
Fixed Larger Image link

v2.0.3 - [Thur 26th June 2008]
Changed into a VB Product
Moved settings to AdminCP
Added AdSense capabilities
fixed bug with accessing some images on local drive instead of cafepress

v2.0.1 - [Sat 14th June 2008]
Changed qualification to pull in content to deal with multiple page types
(shop.php File Change only, nothing else needed)

v2.0.0 - [Fri 13th June 2008]
Initial Release

Show Your Support

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

Comments
  #102  
Old 07-08-2008, 12:15 PM
SuperGLS SuperGLS is offline
 
Join Date: Nov 2004
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dylanblitz View Post
You might want to start from scratch. You don't need to modify anything in the file itself. Just put the file in your forum root directory, go into the admincp and set the store name in the vb options.
Hahaha, I see, I'm stupid (thought you had to modify the php file). Thanks. Working great.

Great mod, great support.
Reply With Quote
  #103  
Old 07-09-2008, 08:38 PM
Soliloquy's Avatar
Soliloquy Soliloquy is offline
 
Join Date: Mar 2006
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed and was amazed at the ease of use. A few things though:

1. I see in the code it's supposed to display the forum name in the title before "Cafe Press Store", but that part isn't showing up. I added my forum name manually.

2. Like a previous poster, clicking on a category link still displays all products.

3. Also, on the category page all the store names are displayed in the navbar, stretching out the page. (See screenshot, first arrow.) It would be better to have the store name as set in the control panel.

Suggestions:
1. I'd like to install this on a couple other forums, but I have a bunch of young kids on one and their parents would not take kindly to having the Intimate Apparel category there, even if it's empty. It would be nice if we could remove links to the categories we don't use.

2. A way to disable logo display would be nice as well. Since I have it in my forum header, it looks silly displayed on the page.

3. Showing all the products on the first page makes for a very long page, both in length and time to load. Maybe you could add a way to display only a few select items (say, four or six) there, specified in the control panel options by ID number? Or a few random items?

Thanks!:up:
Reply With Quote
  #104  
Old 07-10-2008, 07:35 AM
Dylanblitz Dylanblitz is offline
 
Join Date: Oct 2005
Location: OC, California
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Soliloquy View Post
Just installed and was amazed at the ease of use. A few things though:

1. I see in the code it's supposed to display the forum name in the title before "Cafe Press Store", but that part isn't showing up. I added my forum name manually.

2. Like a previous poster, clicking on a category link still displays all products.

3. Also, on the category page all the store names are displayed in the navbar, stretching out the page. (See screenshot, first arrow.) It would be better to have the store name as set in the control panel.
1. Can you post the code that you edited? It should be showing the forum. It also might of messed with the code and caused #3 because I don't have the store id showing up there at all. The store name should be showing down below, not even with the forum name like you have it.

2. I'm working on these, trying to figure out a decent way to get it done.
I've attached what I see when I use your shop info



Quote:
Originally Posted by Soliloquy View Post
Suggestions:
1. I'd like to install this on a couple other forums, but I have a bunch of young kids on one and their parents would not take kindly to having the Intimate Apparel category there, even if it's empty. It would be nice if we could remove links to the categories we don't use.

2. A way to disable logo display would be nice as well. Since I have it in my forum header, it looks silly displayed on the page.

3. Showing all the products on the first page makes for a very long page, both in length and time to load. Maybe you could add a way to display only a few select items (say, four or six) there, specified in the control panel options by ID number? Or a few random items?

Thanks!:up:
A lot of these things I cannot do. It's just a lack of usable code.
Here is what the script does. The script basically sucks the code from your cafe press store like your looking at a browser into itself. I then strip off a chunk of it to get rid of the header and footer. Then I do some parsing to fix some links and stick that data in a vb template page.
If I could get xml or something else from cafe press then I could do some fancy stuff, but with what I have available, all I can do is present what you have on your storefront on a vb page.
The reason it's showing intimate apparel is because one of your stores, bananasplitny, has it as a category.
Reply With Quote
  #105  
Old 07-10-2008, 01:41 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 Soliloquy View Post
2. A way to disable logo display would be nice as well. Since I have it in my forum header, it looks silly displayed on the page.
You can get around that by coming up with a unique logo for your store. I already happened to have on for my store which just a derivative of the original with "Online Store" appended to the site name. Looks pretty good.
Reply With Quote
  #106  
Old 07-11-2008, 01:10 AM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would be great for a zazzle shop as well. Anyone know of any that might be compatible with zazzle?
Reply With Quote
  #107  
Old 07-14-2008, 04:36 AM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any upcoming upgrade or I just install the 2.0.7?
Reply With Quote
  #108  
Old 07-14-2008, 04:45 AM
Dylanblitz Dylanblitz is offline
 
Join Date: Oct 2005
Location: OC, California
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iogames View Post
Any upcoming upgrade or I just install the 2.0.7?
Nothing coming down the pike soon, haven't had a chance to code any want to haves
Reply With Quote
  #109  
Old 07-14-2008, 08:28 AM
Enclave Enclave is offline
 
Join Date: Jun 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well the whole code is not valid and shows funny things... I will change the code to a xhtml valid one and post it soon.

Thanks for the mod.

http://www.kitesurfmaniac.com/forum/shop.php

Cheers
J?r?me
Reply With Quote
  #110  
Old 07-14-2008, 02:31 PM
Dylanblitz Dylanblitz is offline
 
Join Date: Oct 2005
Location: OC, California
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Enclave View Post
well the whole code is not valid and shows funny things... I will change the code to a xhtml valid one and post it soon.

Thanks for the mod.

http://www.kitesurfmaniac.com/forum/shop.php

Cheers
J?r?me
If I put your store in a vanilla vb forum I don't have the same problems I see on your site. But yeah, if you see a better way to do it then feel free, I'm reaching my limit on what I can do to make it run better
Reply With Quote
  #111  
Old 07-14-2008, 03:02 PM
Enclave Enclave is offline
 
Join Date: Jun 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will send you the new php file asap, if that is alright?! It looks good and works well, but I like valid code.
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:42 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04722 seconds
  • Memory Usage 2,316KB
  • 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
  • (6)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