[SUBMITTED]CafePress Mod 1.0.2

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
pollix
Registered User
Posts: 153
Joined: Tue Jul 23, 2002 6:29 pm
Location: Ridgecrest, CA
Contact:

[SUBMITTED]CafePress Mod 1.0.2

Post by pollix » Mon Dec 02, 2002 9:02 pm

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
[UPDATE] 25 AUGUST 2003 DOWNLOAD: 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"
Last edited by pollix on Tue Aug 26, 2003 1:57 am, edited 10 times in total.

netclectic
Former Team Member
Posts: 4439
Joined: Wed Mar 13, 2002 3:08 pm
Location: Omnipresent
Contact:

Post by netclectic » Mon Dec 02, 2002 10:07 pm

Nice one!

Shouldn't take much to get it more integrated using the template system.
Defend the game:
Image

pollix
Registered User
Posts: 153
Joined: Tue Jul 23, 2002 6:29 pm
Location: Ridgecrest, CA
Contact:

Post by pollix » Mon Dec 02, 2002 10:13 pm

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.


**EDIT**

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

Code: Select all

$template->set_filenames(array(
   'body' => 'my_template.tpl')
);
also:

Code: Select all

$template->pparse('body');
to cafeshop.php

Any help would be appreciated. :D

netclectic
Former Team Member
Posts: 4439
Joined: Wed Mar 13, 2002 3:08 pm
Location: Omnipresent
Contact:

Post by netclectic » Mon Dec 02, 2002 11:40 pm

Howzat? - http://www.netclectic.com/dev_forum/cafeshop.php


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

pollix
Registered User
Posts: 153
Joined: Tue Jul 23, 2002 6:29 pm
Location: Ridgecrest, CA
Contact:

Post by pollix » Mon Dec 02, 2002 11:51 pm

yeah that's exactly how I want it!! can you explain to a noob how you did it?

AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post by AbelaJohnB » Tue Dec 03, 2002 12:08 am

It's not every often John says this.... but this is one of those times.... Kool !!

netclectic
Former Team Member
Posts: 4439
Joined: Wed Mar 13, 2002 3:08 pm
Location: Omnipresent
Contact:

Post by netclectic » Tue Dec 03, 2002 12:08 am

Here's some replacement files - http://www.netclectic.com/files/cafeshop.zip
Defend the game:
Image

pollix
Registered User
Posts: 153
Joined: Tue Jul 23, 2002 6:29 pm
Location: Ridgecrest, CA
Contact:

Post by pollix » Tue Dec 03, 2002 4:53 am

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!

DEMO LINK: HERE

User avatar
scoobie
Registered User
Posts: 237
Joined: Sun May 12, 2002 6:07 pm

Post by scoobie » Tue Dec 03, 2002 9:54 pm

Wow fantastic MOD

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

cheers ;-)
You can have it all if you like... but you can pay for it the rest of your life.

User avatar
janine
Registered User
Posts: 345
Joined: Sun Mar 24, 2002 6:38 pm
Location: Pa

Post by janine » Tue Dec 03, 2002 10:14 pm

great job! I've been planning on getting a cafepress store for my site. This will work great!!

pollix
Registered User
Posts: 153
Joined: Tue Jul 23, 2002 6:29 pm
Location: Ridgecrest, CA
Contact:

Post by pollix » Wed Dec 04, 2002 4:29 am

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.

Thanks

User avatar
cdkrg
Registered User
Posts: 706
Joined: Fri Jul 12, 2002 12:35 pm
Contact:

Post by cdkrg » Wed Dec 04, 2002 4:35 am

can this be configured to open the merchandise links in a new window?

pollix
Registered User
Posts: 153
Joined: Tue Jul 23, 2002 6:29 pm
Location: Ridgecrest, CA
Contact:

Post by pollix » Wed Dec 04, 2002 5:19 am

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.

pollix
Registered User
Posts: 153
Joined: Tue Jul 23, 2002 6:29 pm
Location: Ridgecrest, CA
Contact:

Post by pollix » Wed Dec 04, 2002 10:30 pm

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.

AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post by AbelaJohnB » Wed Dec 04, 2002 10:55 pm

I'm wondering...... is ANY of this code copyright to cafeexpress? Under some license of there's?

Locked

Return to “[2.0.x] MODs in Development”