Page 1 of 6

[SUBMITTED]CafePress Mod 1.0.2

Posted: Mon Dec 02, 2002 9:02 pm
by pollix
This mod is for phpbb webmasters who utilize CafePress to sell merchandise on your site. I was tired of my users always having to go to the CafePress website just to look at what I had to sell. I found a script that was written for a phpnuke mod and incorporated it to fit into phpbb. I'm not sure if others can use this, but I sure did!!

DESCRIPTION: With the use of this mod, webmasters will be able to intergrate there Cafe Press store into there site. When customers click on your product, they are automatically taken to Cafe Press website for further action.

DEMO: Here

Please post any bugs or problems you encounter.

**A big thanks goes out to Dean for updating the linking problems with the new cafepress templates.**

UPDATE Completely restructured cafeshop.php. You input your store id in "includes/constants.php"

Posted: Mon Dec 02, 2002 10:07 pm
by netclectic
Nice one!

Shouldn't take much to get it more integrated using the template system.

Posted: Mon Dec 02, 2002 10:13 pm
by pollix
Yeah that is the part I'm having problems with. I want a nice block around it like phpbb has, but I can't figure that out. I know I need to add a .tpl file, the problem is how? I don't understand how I can get the output into a .tpl file.


Ok.. so far.. I figured out that I need to add:

Code: Select all

   'body' => 'my_template.tpl')

Code: Select all

to cafeshop.php

Any help would be appreciated. :D

Posted: Mon Dec 02, 2002 11:40 pm
by netclectic
Howzat? -

Could probably do some work on replacing the cafepress stylesheet bits to use the forum stylesheet, but not bad for starters.

Posted: Mon Dec 02, 2002 11:51 pm
by pollix
yeah that's exactly how I want it!! can you explain to a noob how you did it?

Posted: Tue Dec 03, 2002 12:08 am
by AbelaJohnB
It's not every often John says this.... but this is one of those times.... Kool !!

Posted: Tue Dec 03, 2002 12:08 am
by netclectic
Here's some replacement files -

Posted: Tue Dec 03, 2002 4:53 am
by pollix
Thanks neclectic for your help with the template file.

**UPDATE** CafePress_Mod 0.9.1 New Version

Users that have already downloaded 0.9.0 should update to 0.9.1 to get the full benefits of this mod.

To update from 0.9.0 just upload included files. That's it!!

The CafePress_Mod 0.9.1 is available for download and is in my first post.

I added the proper language scripts to the template file and made it a full blown template!! I also added a {L_INDEX} link as well!

Please let me know what you think and if you like the mod!


Posted: Tue Dec 03, 2002 9:54 pm
by scoobie
Wow fantastic MOD

you just saved me from paying cafeshops for the customisable versions!!!

cheers ;-)

Posted: Tue Dec 03, 2002 10:14 pm
by janine
great job! I've been planning on getting a cafepress store for my site. This will work great!!

Posted: Wed Dec 04, 2002 4:29 am
by pollix
I'm glad everyone likes it. I'm going to go ahead and submit it to the Mod's Database and see if it gets approved. Then I can start working on some other features if there is a need for it.

***Question for mod's*** How/Where do I go to submit this mod once I get it ready for submission? I looked at another thread and tried to register, but I didn't receive a confirmation email.


Posted: Wed Dec 04, 2002 4:35 am
by cdkrg
can this be configured to open the merchandise links in a new window?

Posted: Wed Dec 04, 2002 5:19 am
by pollix
I'll be working on that in the next version. I just want to get this initial beta out in the streets first. :D I'm not sure if that can be done yet because I'm getting the template straight from CafePress website.

Posted: Wed Dec 04, 2002 10:30 pm
by pollix
I went ahead and submitted this mod to the database. I hope everything fare's well. :D It's now CafePress_Mod 1.0.0

Thanks to those who have downloaded and installed. I will try to get the link open in another window idea in the next version.

Posted: Wed Dec 04, 2002 10:55 pm
by AbelaJohnB
I'm wondering...... is ANY of this code copyright to cafeexpress? Under some license of there's?