Forums / Addon Templates / Zen Cart Button Construction Kit 1.6.5 and up..

Zen Cart Button Construction Kit 1.6.5 and up..

Started by torvista on 21 May 2010, 6:56 AM · Views: 47,915

Results 21 to 40 of 108
21 Sep 2010, 12:43 AM
#21
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Zen Cart Button Construction Kit 1.6.5 and up..

DivaVocals:

Thanks to both of you.. Ya'll are the BEST!!!:clap: Will certainly give all of this a try this weekend (provided I can get folks to leave me alone with my geek toys..)

Nigel are you familiar with the Super Sleight script?? I have had EXCELLENT success making PNGs in IE6 behave with this script in place.. No more blue halos..

Diva the halo i am talking will happen on any browser or image program as its part of the image, not an IE handling bug in this case, the imagefill function doesn't handle alpha transparancy, you need to use imagefilledrectangle, but when i tried that it caused a few other issues namely stuffing up gifs and jpegs, so yeah the above code change improves it for pngs but its not perfect yet. if you look on the link above select the "transparent test preset"and create the buttons you see the red around them when they are on the white background

Webzings Design
Semi retired from Web Design

21 Sep 2010, 12:59 AM
#22
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Zen Cart Button Construction Kit 1.6.5 and up..

nigelt74:

Diva the halo i am talking will happen on any browser or image program as its part of the image, not an IE handling bug in this case, the imagefill function doesn't handle alpha transparancy, you need to use imagefilledrectangle, but when i tried that it caused a few other issues namely stuffing up gifs and jpegs, so yeah the above code change improves it for pngs but its not perfect yet. if you look on the link above select the "transparent test preset"and create the buttons you see the red around them when they are on the white background
Ahhhhhhh so in non-technical terms, it's not quite soup yet??:laugh::laugh::laugh:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

21 Sep 2010, 4:15 AM
#23
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Zen Cart Button Construction Kit 1.6.5 and up..

DivaVocals:

Ahhhhhhh so in non-technical terms, it's not quite soup yet??:laugh::laugh::laugh:

actually I have transparent pngs working perfectly, however it completely destroys the gif and jpeg creation scripts, trying to get all 3 working correctly is making my brain bleed

Webzings Design
Semi retired from Web Design

21 Sep 2010, 6:47 AM
#24
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Zen Cart Button Construction Kit 1.6.5 and up..

nigelt74:

actually I have transparent pngs working perfectly, however it completely destroys the gif and jpeg creation scripts, trying to get all 3 working correctly is making my brain bleed
Well PLEASE don't kill yourself on my account.. We need you alive and in one piece around here!!!:smile: I honestly and truly was asking what I thought was an "innocent" question..:laugh:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

21 Sep 2010, 7:33 AM
#25
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Zen Cart Button Construction Kit 1.6.5 and up..

no worries, all fixed now, just bug squashing

Webzings Design
Semi retired from Web Design

21 Sep 2010, 3:16 PM
#26
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Zen Cart Button Construction Kit 1.6.5 and up..

nigelt74:

no worries, all fixed now, just bug squashing
Yep.. It looks pretty good..:smile:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

25 Sep 2010, 6:53 PM
#27
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Zen Cart Button Construction Kit 1.6.5 and up..

So first off thanks BIG TIME to torvista and nigel for an OUTSTANDING update to this module.. Ya'll are smart as heck:smartalec:, and I realy admire cats like you!!

So today I was looking at ver 2.0 of this tool by the original author @: zen-bck.mediakitchen.de

For the longest time I think MANY of us in the Zen Cart community were wishing and hoping the author would change his mind and offer what looked like a BIG improvement to his tool up to the Zen Cart community.. On the surface it (v2.0) looked like it had many neat new features.. (PNG support being the one I in particular was eyeballing..)

Fast forward to today..

I've been beating the crap out of nigel's latest updates (ver 1.6.7beta) not only does he have PNGs working , but it is also cross browser compatible (with a SLIGHT -- I must stress this SLIGHT -- caching issues from everyone's FAVORITE browser:censored: -- IE).. I have personally tested the 1.6.7beta release with Firefox, IE8, Safari, and Chrome -- all work MAGNIFICENTLY!!!. The caching with IE is MINOR (nothing that a good old refresh won't fix) and is par for the course for a sub par browser.. I bet if nigel and torvista worked for old Bill Gates you all wuld beat IE into submission too!!! :laugh: shrugs (gotta LOVE IE..)

I compared ver 1.6.7beta to the v2.0 of the button generator. Funny thing I discovered is that aside from a slight cosmetic appeal (SLIGHT!!!), v2.0 of the button generator is NOT cross browser compatible (it is especially NOT compatible with IE -- in fact it flat out DOESN'T work with IE)..

My point?? Just wanted to say that I am no longer suffering from the "grass is greener" syndrome when comparing the two tools now.. The grass is not only greener HERE but we even have some flowers over in the flowerbed, and tomatoes in the garden.. My way of saying that I'm pretty stoked you two superstars took this on!!:yes:

Thanks again for doing this and more importantly for SHARING!!!!!!

PS. Torvista - Daddy's office is STILL the coolest place to be!!:laugh::laugh::laugh:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

25 Sep 2010, 9:08 PM
#28
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Zen Cart Button Construction Kit 1.6.5 and up..

1.6.7 now available for download
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=743

added button/catalog and button/admin directories so each type of button gets saved to a separate directory. Variable added to button config files to steer this. (torvista)
missing swedish folder added to enable error-free generation (torvista)
cleanup of button definition file (removal of non-standard Zen Cart buttons) to avoid errors (torvista)
additions to readme concerning font useage (torvista)
non-free fonts removed and a free one included to avoid disconcerting error on first run(torvista)
added transparent png support (nigelt74)
added ability to select admin or catalog button generation from front end (nigelt74)
added catalan support from forum post (nigelt74)

Webzings Design
Semi retired from Web Design

30 Sep 2010, 8:10 PM
#29
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Zen Cart Button Construction Kit 1.6.5 and up..

1.6.8 Submitted for download.. BIG kudos to Torvista and Nigel for the BEST version of this module yet..:clap:

Checkout the new feature list:

  • Improved user interface (module & readme) -- new tabbed layout courtesy of the Tabbed Products Pro module
  • Squashing various layout and functional bugs
  • Improved button template layout
  • Added custom button creation functionality including the ability to choose the icon to be used on your custom button
  • Javascripts and CSS files moved to the "includes" folder
  • Updated icon overlay definitions for admin buttons. Each admin button now has a defined icon--added additional silk icons to support the updated icons
  • Addition of more Droid Open Source fonts
  • Formatting changes for 100% html validation
  • W3C validation icon added to app main page and readme
  • Updates to readme (including moving the readme file to it's own directory)
    As soon as this version is approved and available I will update the community

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

4 Nov 2010, 7:54 PM
#30
sofus avatar

sofus

New Zenner

Join Date:
Sep 2008
Location:
Reykjavik Iceland
Posts:
9
Plugin Contributions:
0

Re: Zen Cart Button Construction Kit 1.6.5 and up..

Hi all.

How would one go about adding an additional language to the project? I would be willing to supply the content for an Icelandic button set.

S

4 Nov 2010, 8:45 PM
#31
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Zen Cart Button Construction Kit 1.6.5 and up..

Sofus:

Hi all.

How would one go about adding an additional language to the project? I would be willing to supply the content for an Icelandic button set.

S

Have a look at the

/zen_bck/includes/zen_bck_config_cat.php

& if you want to provide Admin translations as well

/zen_bck/includes/zen_bck_config_admin.php

It should appear fairly obvious how to make the translations

basically just copy another languages definitions

$btnText['english']['button_cancel'] = 'cancel';

and then change them to Icelandic

$btnText['icelandic']['button_cancel'] = 'hætta við';

The above won't work correctly with php 5.something an above it will generate squares where the non-english characters are

so you need to use html entities, so the above would become

$btnText['icelandic']['button_cancel'] = 'hætta við';

This page has them shown, use the html numbers Not the html names as they don't work

or just paste it here in icelandic and I'll update it

When you have the translation send it to me. PM me or paste it here, and i will add it, there are a few other hacks i need to add to other pages to get the new language working correctly


hætta við is the google translate for "Cancel", for all i know it means burnt toast
æ ð - i know the technical term isn't non-english characters, but my brain hasn't woken up yet

Webzings Design
Semi retired from Web Design

4 Nov 2010, 10:14 PM
#32
sofus avatar

sofus

New Zenner

Join Date:
Sep 2008
Location:
Reykjavik Iceland
Posts:
9
Plugin Contributions:
0

Re: Zen Cart Button Construction Kit 1.6.5 and up..

Hi

Here is the translation for Icelandic for the catalog. I already tried it by replacing it for Estonian and it worked fine on my PHP5 setup.

$btnText['icelandic']['button_add_address'] = 'Bæta við heimilisfangi';
$btnText['icelandic']['button_add_selected'] = 'Setja valdar vörur í körfu';
$btnText['icelandic']['button_add_to_cart'] = 'Setja í körfu';
$btnText['icelandic']['button_back'] = 'Til baka';
$btnText['icelandic']['button_buy_now'] = 'Kaupa strax';
$btnText['icelandic']['button_cancel'] = 'Hætta við';
$btnText['icelandic']['button_change_address'] = 'Breyta heimilisfangi';
$btnText['icelandic']['button_checkout'] = 'Greiða';
$btnText['icelandic']['button_confirm_order'] = 'Staðfesta pöntun';
$btnText['icelandic']['button_confirm_send'] = 'Staðfesta';
$btnText['icelandic']['button_continue'] = 'Áfram';
$btnText['icelandic']['button_continue_checkout'] = 'Áfram';
$btnText['icelandic']['button_continue_shopping'] = 'Versla meira';
$btnText['icelandic']['button_create_account'] = 'Nýskráning';
$btnText['icelandic']['button_delete'] = 'Eyða';
$btnText['icelandic']['button_delete_small'] = 'Eyða';
$btnText['icelandic']['button_download'] = 'Niðurhala';
$btnText['icelandic']['button_goto_prod_details'] = 'Meira um vöru';
$btnText['icelandic']['button_in_cart'] = 'Bæta í körfu';
$btnText['icelandic']['button_login'] = 'Innskráning';
$btnText['icelandic']['button_logoff'] = 'Útskráning';
$btnText['icelandic']['button_more_reviews'] = 'Fleiri umsagnir ...';
$btnText['icelandic']['button_next'] = 'Næsta';
$btnText['icelandic']['button_prev'] = 'Fyrri';
$btnText['icelandic']['button_read_reviewsInnleysa';
$btnText['icelandic']['button_return_to_product_list'] = 'Vörulisti';
$btnText['icelandic']['button_reviews'] = 'Lesa umsagnir';
$btnText['icelandic']['button_search'] = 'Leita';
$btnText['icelandic']['button_send'] = 'Senda';
$btnText['icelandic']['button_send_a_gift_cert'] = 'Senda gjafabréf';
$btnText['icelandic']['button_send_another'] = 'Senda gjafabréf';
$btnText['icelandic']['button_shipping_estimator'] = 'Áætla sendingarkostnað';
$btnText['icelandic']['button_sold_out'] = 'Uppselt';
$btnText['icelandic']['button_sold_out_sm'] = 'Uppselt';
$btnText['icelandic']['button_submit'] = 'Áfram';
$btnText['icelandic']['button_tell_a_friend'] = 'Senda vini ábendingu';
$btnText['icelandic']['button_TellAFriend'] = 'Senda vini ábendingu';
$btnText['icelandic']['button_unsubscribe'] = 'Afskrá';
$btnText['icelandic']['button_update'] = 'Uppfæra';
$btnText['icelandic']['button_update_cart'] = 'Endurreikna körfu';
$btnText['icelandic']['button_view'] = 'Skoða';
$btnText['icelandic']['button_write_review'] = 'Skrifa umsögn';
$btnText['icelandic']['search_small'] = 'Leita';
$btnText['icelandic']['small_delete'] = 'Eyða';
$btnText['icelandic']['small_edit'] = 'Breyta';
$btnText['icelandic']['small_view'] = 'Skoða';

4 Nov 2010, 10:31 PM
#33
sofus avatar

sofus

New Zenner

Join Date:
Sep 2008
Location:
Reykjavik Iceland
Posts:
9
Plugin Contributions:
0

Re: Zen Cart Button Construction Kit 1.6.5 and up..

..and here is the admin

$btnText['icelandic']['button_download_now'] = 'niðurhala';
$btnText['icelandic']['button_edit'] = 'breyta';
$btnText['icelandic']['button_edit_attribs'] = 'breyta sérkennum';
$btnText['icelandic']['button_edit_product'] = 'breyta vöru';
$btnText['icelandic']['button_email'] = 'tölvupóstfang';
$btnText['icelandic']['button_file_manager'] = 'skáarstjóri';
$btnText['icelandic']['button_gift_queue'] = 'Gjafakort';
$btnText['icelandic']['button_insert'] = 'innsetja';
$btnText['icelandic']['button_insert_before'] = 'innsetja fyrir';
$btnText['icelandic']['button_install'] = 'setja upp';
$btnText['icelandic']['button_invoice'] = 'reikningur';
$btnText['icelandic']['button_layout'] = 'skipulag';
$btnText['icelandic']['button_lock'] = 'læsa';
$btnText['icelandic']['button_module_install'] = 'setja upp';
$btnText['icelandic']['button_module_remove'] = 'fjarlægja';
$btnText['icelandic']['button_move'] = 'færa';
$btnText['icelandic']['button_new_banner'] = 'nýr borði';
$btnText['icelandic']['button_new_category'] = 'nýr flokkur';
$btnText['icelandic']['button_new_country'] = 'nýtt land';
$btnText['icelandic']['button_new_currency'] = 'nýr gjaldmiðill';
$btnText['icelandic']['button_new_file'] = 'ný skrá';
$btnText['icelandic']['button_new_folder'] = 'ný mappa';
$btnText['icelandic']['button_new_language'] = 'nýtt tungumál';
$btnText['icelandic']['button_new_newsletter'] = 'nýtt fréttabréf';
$btnText['icelandic']['button_new_product'] = 'ný vara';
$btnText['icelandic']['button_new_sale'] = 'nýtt tilboð';
$btnText['icelandic']['button_new_tax_class'] = 'nýr vöruflokkur';
$btnText['icelandic']['button_new_tax_rate'] = 'nýr skattflokkur';
$btnText['icelandic']['button_new_zone'] = 'svæði';
$btnText['icelandic']['button_next'] = 'næsta';
$btnText['icelandic']['button_option_names'] = 'heiti valkosta';
$btnText['icelandic']['button_option_values'] = 'gildi valkosta';
$btnText['icelandic']['button_order'] = 'pantanir';
$btnText['icelandic']['button_orders'] = 'pantanir';
$btnText['icelandic']['button_packingslip'] = 'pökkunarmiði';
$btnText['icelandic']['button_prev'] = 'fyrra';
$btnText['icelandic']['button_preview'] = 'forskoða';
$btnText['icelandic']['button_products_price_manager'] = 'verðstjórnun';
$btnText['icelandic']['button_release'] = 'hleypa áfram';
$btnText['icelandic']['button_release_gift'] = 'hleypa áfram gjöf';
$btnText['icelandic']['button_remove'] = '- fjarlægja';
$btnText['icelandic']['button_report'] = 'tilkynna';
$btnText['icelandic']['button_reset'] = 'endurstilla';
$btnText['icelandic']['button_reset_pwd'] = 'endurstilla aðgangsorð';
$btnText['icelandic']['button_restore'] = 'afturstilla';
$btnText['icelandic']['button_restrict'] = 'takmarka';
$btnText['icelandic']['button_save'] = 'vista';
$btnText['icelandic']['button_search'] = 'leita';
$btnText['icelandic']['button_select'] = 'velja';
$btnText['icelandic']['button_send'] = 'senda';
$btnText['icelandic']['button_send_mail'] = 'senda tölvupóst';
$btnText['icelandic']['button_shippinglabel'] = 'merkimiði';
$btnText['icelandic']['button_tax_rates'] = 'skattflokkar';
$btnText['icelandic']['button_unlock'] = 'aflæsa';
$btnText['icelandic']['button_update'] = 'uppfæra';
$btnText['icelandic']['button_update_currencies'] = 'uppfæra gjaldmiðla';
$btnText['icelandic']['button_update_sort'] = 'uppfæra flokkun';
$btnText['icelandic']['button_upload'] = 'upphala';

4 Nov 2010, 10:33 PM
#34
sofus avatar

sofus

New Zenner

Join Date:
Sep 2008
Location:
Reykjavik Iceland
Posts:
9
Plugin Contributions:
0

Re: Zen Cart Button Construction Kit 1.6.5 and up..

Is it possible to change the color of buttons? Are there like button templates I can play with?

5 Nov 2010, 1:01 AM
#35
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Zen Cart Button Construction Kit 1.6.5 and up..

Sofus:

Is it possible to change the color of buttons? Are there like button templates I can play with?
There are button templates that come with the package.. (on the "Button Template" tab).. The "Additional Hints" tab of the readme (Click the "Help" link to see the readme) covers how to add more button templates of your own..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

5 Nov 2010, 1:51 AM
#36
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Zen Cart Button Construction Kit 1.6.5 and up..

  1. you have an error on this line

$btnText['icelandic']['button_read_reviewsInnleysa';

I am guessing

$btnText['icelandic']['button_read_reviews'] = 'Innleysa';

The only templates are the ones included in the

/zen_bck/includes/templates/

There are instructions in the readme on how to create your own button templates

Have a look here
http://grumpykiwi.com/zen_buttons/zen_bck/

I have installed the Icelandic files, and i also have a few terrible button templates i created myself

note this is my test version, so it isn't pretty yet

remember when you create the buttons if they look the wrong colour on the display page, press f5 as some browsers have an issue with cacheing

-----------Edit

i will update the package in the next few days, if you PM me I'll send you an unofficial pre-release version

Webzings Design
Semi retired from Web Design

5 Nov 2010, 2:43 AM
#37
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Zen Cart Button Construction Kit 1.6.5 and up..

@Sofus

New version - with Icelandic PM me for a copy, will probably submit it to zencart sometime this week

Webzings Design
Semi retired from Web Design

5 Nov 2010, 2:23 PM
#38
sofus avatar

sofus

New Zenner

Join Date:
Sep 2008
Location:
Reykjavik Iceland
Posts:
9
Plugin Contributions:
0

Re: Zen Cart Button Construction Kit 1.6.5 and up..

Sorry about that.

Here is the block correct, there is one line missing.

$btnText['icelandic']['button_prev'] = 'Fyrri';
$btnText['icelandic']['button_read_reviews'] = 'Lesa umsagnir';
$btnText['icelandic']['button_redeem'] = 'Innleysa';
$btnText['icelandic']['button_return_to_product_list'] = 'Vörulisti';

S

nigelt74:

  1. you have an error on this line

$btnText['icelandic']['button_read_reviewsInnleysa';

I am guessing

$btnText['icelandic']['button_read_reviews'] = 'Innleysa';

The only templates are the ones included in the

/zen_bck/includes/templates/

There are instructions in the readme on how to create your own button templates

Have a look here
http://grumpykiwi.com/zen_buttons/zen_bck/

I have installed the Icelandic files, and i also have a few terrible button templates i created myself

note this is my test version, so it isn't pretty yet

remember when you create the buttons if they look the wrong colour on the display page, press f5 as some browsers have an issue with cacheing

-----------Edit

i will update the package in the next few days, if you PM me I'll send you an unofficial pre-release version

5 Nov 2010, 2:28 PM
#39
sofus avatar

sofus

New Zenner

Join Date:
Sep 2008
Location:
Reykjavik Iceland
Posts:
9
Plugin Contributions:
0

Re: Zen Cart Button Construction Kit 1.6.5 and up..

I am not getting icelandic buttons on your New version, always just show up in english. It is working fine on my installation, I just replaced the estonian code bit with icelandic translations. Cudos for a great tool, saves tons of time.

S

nigelt74:

@Sofus

New version - with Icelandic PM me for a copy, will probably submit it to zencart sometime this week

5 Nov 2010, 2:53 PM
#40
sofus avatar

sofus

New Zenner

Join Date:
Sep 2008
Location:
Reykjavik Iceland
Posts:
9
Plugin Contributions:
0

Re: Zen Cart Button Construction Kit 1.6.5 and up..

Sorry, the New version is working fine, I got confused with the preview...that is always in english.

S

Sofus:

I am not getting icelandic buttons on your New version, always just show up in english. It is working fine on my installation, I just replaced the estonian code bit with icelandic translations. Cudos for a great tool, saves tons of time.

S