Eclecticthreads Themes

shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Fri, 2005-10-28 11:16

Per popular demand, I now am posting the themes from my wife's Eclecticthreads website.

There are two themes: ForSale and Eclecticthreads.
There is one colorpack: Eclecticthreads

The forsale theme is basically my rounded corners theme but allows the use of paypal to pay for the product pictured in the gallery.

The eclecticthreads theme is basically the same as the forsale theme but doesn't include rounded corners and the abilty to use paypal.

Both themes allow you to not display the root album in the breadcrumbs and they put the item actions in a drop down box at the top right. There is no sidebar with these themes.

The colorpack is purple.

Below is the text from the readme file for the ForSale theme.

Be sure you fill out the theme settings under site admin.

You will also want to add 3 Common Custom fields under site admin.
These are called: Price, Custom, Shipping

If you put a numeric value in the price field for a item or album, it will display the paypal link. If you put something that is not a number, such as the word SOLD, then it will still display Price: and the text you put in and treat the item/album as a product but it won't display the paypal link.

There is a file included called CustomOrder.php where you can modify this for your needs. You will need to change the PayPal.inc file to fit the location of your CustomOrder.php or more CustomOrder.php into the /gallery2/ directory. The Custom field expects a comma seperated list (with no comma at the end) of items that the user will customize before adding the item to the cart.

The Shipping field expects a number which is the price of shipping for an item/album. If you leave this blank it will not send a shipping price to paypal but you can use your default paypal shipping price. For each item/album, if no shipping price is defined, it will check each parent album for a shipping price and take the price from the first parent it finds with a shipping price set. This is so you can set one album that has a certain shipping price and another that has a completely different one while still being able to set the shipping for individual items if needed.

----------------UPDATED---------------
ForSale 0.1.2 is for G2.1
EclecticThreads 0.1.2 is for G2.1

AttachmentSize
ForSale 0.1.1.zip122.39 KB
Eclecticthreads 0.1.1.zip118.74 KB
Eclecticthreads.zip728 bytes
Eclecticthreads 0.1.2.zip171.65 KB
ForSale 0.1.2.zip176.95 KB
 
Makyar

Joined: 2005-09-16
Posts: 145
Posted: Fri, 2005-10-28 13:03

Does anyone have this theme running on their site that I can see?

Thanks!

Makar

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Fri, 2005-10-28 20:44

Check out http://codex.gallery2.org/index.php/Gallery2:UserContributions for demo links.

Steve Lineberry

 
hoppy02

Joined: 2005-11-23
Posts: 2
Posted: Wed, 2005-11-23 10:27

the ForSale 0.1.1.zip download seems to be corrupt

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Wed, 2005-11-23 13:17

Are you using Firefox or IE to download it?

Steve Lineberry

 
VegasBoxers

Joined: 2006-04-20
Posts: 18
Posted: Thu, 2006-04-20 01:26

So for the php challenged, where do we stick the "color.css" file once we modify it? I'd like to use your Electricthreads color.css as a template. Once I mess with the colors, what folder do I put this file in? THANKS!
Scott Faivre

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Thu, 2006-04-20 03:05

So you edit the top of the color.css file to give it a name. It should say something like

/* <?php $colorpackName = $gallery->i18n('EclecticThreads'); ?>

Replace the EclecticThreads with the name of your colorpack. Then create a folder under modules/colorpack/packs/ with that same name and copy the color.css file into that folder.

Steve Lineberry

 
VegasBoxers

Joined: 2006-04-20
Posts: 18
Posted: Fri, 2006-04-21 05:12
Quote:
create a folder under modules/colorpack/packs/

Steve, Thanks for the quick reply!

My install doesn't have the 'colorpack/packs/' root directories. I obviously have the 'modules' directory, Do I need to create the '/colorpack/packs/' root folders inside the 'modules' directory too?

Could you have some add-in that I don't have? My install is the default Gallery v2.11a of the software.

THANK YOU!

Scott Faivre

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Fri, 2006-04-21 11:51

You need to download and install the colorpack module. http://codex.gallery2.org/index.php/Gallery2:Download#Modules

Steve Lineberry

 
VegasBoxers

Joined: 2006-04-20
Posts: 18
Posted: Wed, 2006-05-03 04:48

Steve,
thanks for all the help. I had some time to play with this and I've got the colorpacks module installed. I've created a new folder in the "packs" folder called "meyer". I renamed your eclecticthreads.CSS file to "color.css" & copied the color.css file to the new "meyer" folder. I then went into the admin panel on gallery, and set it up to use the "meyer" colorpack under the matrix theme.

Everything works perfectly! But if I open up the ...meyer/color.css and alter the colors with the 6 digit hex codes, I get no change from the default install?

If you want to see it, I'm installing on: http://www.meyerracingonline.com/new_index2.html Then click on the link for gallery.

I want the gallery to look a bit more seemless by sticking it in the main frame of the site.

THANKS!
Scott Faivre

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Wed, 2006-05-03 11:55

It doesn't look like it's using the colorpack at all. Did you set this colorpack as the colorpack for the default theme under the site admin?

Steve Lineberry

 
VegasBoxers

Joined: 2006-04-20
Posts: 18
Posted: Wed, 2006-05-03 21:28

I've been doing so much in the past 48hrs, let me see if I can remember what I did. (I'm home with my 6 yr old daughter who has the flu!)

Alright, I made a "meyer" directory in the modules/colorpack/packs directory. There I added the color.css file in the folder. It is the only file in that folder. And the only file that I uploaded.

I went into the site admin and went to the "themes" section. The theme that I have as my default is "matrix." When I went to the "matrix" tab for the themes, on the bottom there is a choice of colorpacks. In that drop down is lited "meyer". I selected that one (meyer) and that is where I left off.

I altered the color.css file in the meyer folder, but it's not showing any of the changes that I made.

Got any ideas?

Steve, thank you for being so generous with your time. I sincerely appreciate it!

Scott Faivre

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Thu, 2006-05-04 16:47

Did you change the commented out portion at the top of the color.css from EclecticThreads to meyer?

Steve Lineberry

 
VegasBoxers

Joined: 2006-04-20
Posts: 18
Posted: Mon, 2006-05-08 04:30
shocksll wrote:
So you edit the top of the color.css file to give it a name. It should say something like

/* <?php $colorpackName = $gallery->i18n('meyer'); ?>

Replace the EclecticThreads with the name of your colorpack. Then create a folder under modules/colorpack/packs/ with that same name and copy the color.css file into that folder.

Steve Lineberry

I did that, (Notice the 'meyer' name instead of 'eclecticthreads'. I'm still not sure why I can't get any changes to the colors. Any other ideas?
thanks!
Scott Faivre

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Mon, 2006-05-08 14:05

Can you post your file here, and I'll try it on my gallery2? Thanks.

Steve Lineberry

 
VegasBoxers

Joined: 2006-04-20
Posts: 18
Posted: Thu, 2006-05-11 03:40

Steve,
thanks again for all the help! I've attached my color.css file to this post.
THANKS!
Scott Faivre

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Thu, 2006-05-11 11:25

Where are all of the !important tags? Did you remove those as well when you changed the colors? You need !important after any of your color changes. Check out my colorpack again to see what i'm talking about.

Steve Lineberry

 
slate

Joined: 2005-12-02
Posts: 41
Posted: Wed, 2006-06-07 23:59

Whats with the error for: page.inc.php

Quote:
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/page.inc.php) is not within the allowed path(s): (removed my paths) in removed my paths/smarty/templates_c/%%840888838/%%3C^3CD^3CD04F4F%%album.tpl.php on line 316

Warning: include_once(/page.inc.php) [function.include-once]: failed to open stream: Operation not permitted in removed my paths/smarty/templates_c/%%840888838/%%3C^3CD^3CD04F4F%%album.tpl.php on line 316

Warning: include_once() [function.include]: Failed opening '/page.inc.php' for inclusion (include_path='removed my paths') in removed my paths/smarty/templates_c/%%840888838/%%3C^3CD^3CD04F4F%%album.tpl.php on line 316

I commented out the include_once $_SESSION['DOCUMENT_ROOT'] . "/page.inc.php"; line to get it to work..

But what is that file? and what's it used for?

 
slate

Joined: 2005-12-02
Posts: 41
Posted: Thu, 2006-06-08 00:04

Also, photo.tpl is not included in the archive (0.1.2) (forsale theme)

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Fri, 2006-06-09 04:02
slate wrote:
Whats with the error for: page.inc.php

Quote:
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/page.inc.php) is not within the allowed path(s): (removed my paths) in removed my paths/smarty/templates_c/%%840888838/%%3C^3CD^3CD04F4F%%album.tpl.php on line 316

Warning: include_once(/page.inc.php) [function.include-once]: failed to open stream: Operation not permitted in removed my paths/smarty/templates_c/%%840888838/%%3C^3CD^3CD04F4F%%album.tpl.php on line 316

Warning: include_once() [function.include]: Failed opening '/page.inc.php' for inclusion (include_path='removed my paths') in removed my paths/smarty/templates_c/%%840888838/%%3C^3CD^3CD04F4F%%album.tpl.php on line 316

I commented out the include_once $_SESSION['DOCUMENT_ROOT'] . "/page.inc.php"; line to get it to work..

But what is that file? and what's it used for?

Oops, sorry about that. That file is a custom file for my wife's website where this theme is mainly used. I've removed it out of the files for the current zip. Thanks.

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Fri, 2006-06-09 04:03
slate wrote:
Also, photo.tpl is not included in the archive (0.1.2) (forsale theme)

Sorry, oops again. It's included in the 0.1.2 version now. Thanks again!

 
slate

Joined: 2005-12-02
Posts: 41
Posted: Fri, 2006-06-09 23:06

Thank you for the hard work.

Might I recommend perhaps writing a module for the pricing/purchasing system you created?

I've actually decided against using your solution at this time cause it doesn't suit my needs, but it's very well done.

Suggestion: for the custom fields thing, perhaps make the capability to make dropdown or select lists... Would be somewhat simple.. use pipes to split the options..
Example:
Style|Shortsleeve|Longsleeve,Color|Red|Green,Bust Size,Waist Size
the first 2 would be dropdowns and the second two would be text fields.
in php, very simply done by looking for a | in each option. I'm sure it'd probably be about 5 lines more of code. :)

Last, in the readme - you have a typo

There is a file included called CustomOrder.php where you can modify this for your needs. You will need to change the PayPal.inc file to fit the location of your CustomOrder.php or more CustomOrder.php into the /galler2/ directory. The Custom field expects a comma seperated list (with no comma at the end) of items that the user will customize before adding the item to the cart.

I bolded it.

 
slate

Joined: 2005-12-02
Posts: 41
Posted: Fri, 2006-06-09 23:11

CustomOrder.php should also have this in it:

require_once("themes/ForSale/RoundedCorners.inc");

For people who move the file.... For those who don't, it should just be

require_once("RoundedCorners.inc");

 
slate

Joined: 2005-12-02
Posts: 41
Posted: Fri, 2006-06-09 23:26

I've gone ahead and implemented my suggestions and fixes for you, to save some time and perhaps help others who want these features.

Attached is CustomOrder.php and PayPal.inc as they should be set by default, with CustomOrder.php being in /themes/ForSale/

I've fixed an issue with the image not appearing due to paths. Also, I added my suggested dropdown list setting that I spoke of.

Let me know what you think.

slate

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Fri, 2006-06-09 23:47
slate wrote:
I've gone ahead and implemented my suggestions and fixes for you, to save some time and perhaps help others who want these features.

Attached is CustomOrder.php and PayPal.inc as they should be set by default, with CustomOrder.php being in /themes/ForSale/

I've fixed an issue with the image not appearing due to paths. Also, I added my suggested dropdown list setting that I spoke of.

Let me know what you think.

slate

Yea, that's cool. Thanks. I'm probably not going to change the main code right now. In the next version (probably for Gallery 2.2) I'll add your changes in and the fixes for the readme. Thanks for your help and your contribution.

 
VegasBoxers

Joined: 2006-04-20
Posts: 18
Posted: Thu, 2006-07-20 22:54

Steve,
It's been quite a while since I've last posted. I had a slew of things going on at home and work that made me have to take some time off. I just sat down to reinvestigate this situation, and I might have spotted my problem. I wasn't trying to run your entire package. I'm just trying to create my own color scheme on a default install of gallery 2.
Is there an easier way of accomplishing this?
Thanks!
Scott Faivre

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Fri, 2006-07-21 11:53

You are almost there, as I posted earlier, you need to keep those !important tags in the css so those colors will override the default colors. That's why your color pack wasn't working. Check out my original color pack css to see what i'm talking about.

Steve Lineberry

 
alpha9

Joined: 2006-07-25
Posts: 1
Posted: Tue, 2006-07-25 19:39

Guys i need some help, i cant see the add to cart or customize buttons on the site, whats wrong

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Thu, 2006-07-27 18:00

What's your url?

Steve Lineberry

 
scormeny

Joined: 2006-06-27
Posts: 68
Posted: Thu, 2006-09-28 22:53

I've used your forsale theme successfully as the basis for a site I did for a client, www.mikesouthern.com. It was useful both directly for the use of paypal, and also indirectly as a sort of tutorial on how to deal with the display of custom fields in my templates.

Thanks!

Now I'm working on a site for another client, that uses Americart for their order processing, rather than paypal. The logic is very similar in that a one-button form is used to deliver the data to Americart, but I'm not a php programmer and so I can't quite figure out how to create, eg, an "americart.inc" file. I'd be most appreciative of advice on how to adapt paypal.inc to take the contents of other custom fields and use them. And, I'm happy to share the resulting americart.inc and other adaptations with the Gallery2 community.

My work in progress is at http://joshuahellerrarebooks.managebest.net/artistsbooks/

Thank you for a great Gallery2 adaptation.

-Sara,

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Thu, 2006-09-28 22:56

I'm glad my theme has worked out for you. You'll have to check out Americarts developer area to find out what fields it needs. Then I would just copy the paypal.inc to americart.inc and all you should have to do is edit the html form in the americart.inc file. Then you would just need to edit the template files to include the americart.inc instead of the paypal.inc file. There isn't hardly any php involved for this change. The major part is just finding out what variables Americart needs. Sorry, I don't have any time to do this for you. Good Luck.

Steve Lineberry

 
scormeny

Joined: 2006-06-27
Posts: 68
Posted: Sat, 2006-09-30 01:17

Thanks for the response. Hopefully you'll be able to help me with specific questions.

I need to add one field, "ItemNumber," to the form. I have created it as a custom field in my gallery, but I don't know how to pass the field to Americart.inc . It doesn't need to be displayed on the album or photo page, but it does need to be sent in the americart form.

Also, rather than an email address, Americart takes a cartID number. Perhaps I'm getting myself in too deep, but I changed the theme.inc file to include a place for the user to fill in her Americart ID.

I don't need the form to pop up in a new window, as Americart is pretty smooth in how it sends a user back to the page she visited from. Where should I remove the javascript popup and is there other stuff I have to remove?

Finally, where all is PayPal.inc and the paypal forms called from? Anyplace that might surprise me?

I'm working on documentation of what I'm up to and hope to contribute this modification to the Gallery2 community when I'm done. Thanks for your help!

-Sara

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Sat, 2006-09-30 15:44

Check out line 93 and 177 of the album.tpl to see how I load the custom fields and where I call the paypal function.

Steve Lineberry

 
scormeny

Joined: 2006-06-27
Posts: 68
Posted: Tue, 2006-10-03 20:47

Thanks so much. Now I have another silly question.

In album.tpl and photo.tpl, where the setup for passing data to the Paypal function is done, there's a line for the title that looks pretty much like:

$this->_tpl_vars['child']['title']

(I say "looks pretty much like" because the stuff that precedes the "title" section differs slightly depending on the relative place of the item, whether it's a parent, child, album or individual item, etc.)

I want to remove the bbcode markup from that field before I pass it.

How can I change this code to make it send the contents of the title field, MINUS the bbcode?

I'm a php moron so the more specific the advice, the better.

Thanks for advice.

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Wed, 2006-10-04 11:55

Sorry I don't know that one. Maybe search for bbcode strippers on the internet.

Steve Lineberry

 
Tinkrbel

Joined: 2006-11-17
Posts: 1
Posted: Wed, 2006-12-20 03:16

When I tried to install the theme I get this:

Incompatible theme!
Core API Required: 6.0 (available: 7.3)
Theme API Required: 2.1 (available: 2.3)

Any ideas on how I can fix this?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2006-12-20 05:15

@bbcode:
{$title|markup:strip}

@incompatible theme:
the theme is compatible with gallery 2.0, not with 2.1 or 2.2. someone needs to update it.

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Wed, 2006-12-20 12:32

If you look at my notes above

ForSale 0.1.2 is for G2.1
EclecticThreads 0.1.2 is for G2.1

Steve Lineberry

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Wed, 2006-12-20 12:33

Also see http://codex.gallery2.org/index.php/Gallery2:User_Contributions for links directly to the G2.0 and G2.1 versions.

Steve Lineberry