Page 7 of 12 FirstFirst ... 56789 ... LastLast
Results 61 to 70 of 112
  1. #61
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: Online Zen Cart Buttons Generator

    Quote Originally Posted by tracib View Post
    I just uploaded my buttons and I'm so excited. So far the only issue I have seen is the "button_tellafriend.gif" needs to be changes to "button_TellAFriend.gif" (cap T, A, & F).

    Thanks Sir John Steed! This was so quick, easy and painless!
    Actually, when you look in:

    includes/languages/english/button_names.php

    ALL the other button name are consistent except this one. Easy to fix. You can also make your own custom buttons! Or have more than one depending on use and location...

    Same goes for icon_names.php.

    WHY they chose to use to separate files for these is odd to me. Probably left over from the "old days".

  2. #62
    Join Date
    Oct 2007
    Posts
    157
    Plugin Contributions
    0

    Default Re: Online Zen Cart Buttons Generator

    Quote Originally Posted by chadderuski View Post
    Actually, when you look in:

    includes/languages/english/button_names.php

    ALL the other button name are consistent except this one. Easy to fix. You can also make your own custom buttons!
    Thanks for the tip for making your own buttons using the button_names.php! I am still grasping all of this, and never would have thought of that.

  3. #63
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: Online Zen Cart Buttons Generator

    Sir John,

    Could sure use your help!

    I am on making the 3 state buttons as I mentioned earlier. However, I am getting stuck on the CSS markup to get this to work... I tried to modify both the standard zencart css buttons markup and Paul's CSS Buttons mod, but neither do it right.

    This is what I am trying to achieve using the sliding door method:

    http://chicagophoto.net/btest/

    Normally, the markup is SO simple, but Zencart is making a pain in the *&^%!

    Hope you have a chance to take a look! I know I must not be naming/targeting something correctly.

    chaddro.

  4. #64
    Join Date
    Jan 2005
    Posts
    29
    Plugin Contributions
    1

    Default Re: Online Zen Cart Buttons Generator

    Quote Originally Posted by chadderuski View Post
    Sir John,
    Hope you have a chance to take a look! I know I must not be naming/targeting something correctly.
    chaddro.
    Hi Chaddro,

    I doubt I'm the right person to ask here, as the question is more related to the CSS button module than to Zen Button Construction Kit. I haven't installed any of the modules anywhere, so I don't know what they do exactly to achieve their results. From looking at your example I assume you will have to do the following:

    1.) create a copy of the 4 CSS definitions for EACH of the Zen-Cart buttons; I think this will be necessary because of the background:url definition that points to a certain image file.

    2.) patch the 'zen_image_button' function in 'includes/functions/html_output.php' to return your HTML snippet with the CSS class reference ( '<div class="button_prev"><a href="#"></a></div>' ) instead of the regular image output via the 'zen_image function'. This would require PHP programming skills, it would take the $image parameter and transform it into the necessary string to reference the CSS class ( 'button_prev.gif' -> 'class="button_prev"' ). Attention: This would make changes to a core shop file, which is not recommended. Alternatively you could copy this function to one with a custom name (placed in in the folder 'extra_functions') and call it in the templates instead of 'zen_image_button'. But the easiest solution would be to just paste your HTML code pointing to the right CSS style for the respective button directly into your custom template files. All calls to 'zen_image_button' in all of the templates would have to be replaced then.

    I hope this helps a bit. If I should try to give further assistance I might need full access to your server files, as I'm not very eager to set up a test environment for this specific problem right now.

    Best regards,


    Sir John Steed
    Zen Button Construction Kit – Free Downloadable Contribution
    http://www.zen-cart.com/index.php?ma...roducts_id=743

  5. #65
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: Online Zen Cart Buttons Generator

    Sir John,

    Thanks for taking a look. I would not think this THAT hard, but the lack of a simple solution makes me wonder just what is going on under the hood of zencart.

    You made two valid points, to Redress:

    1) If you use CSS Buttons from within the Admin, simple CSS styling should need only apply. This is my target solution. The bottom line of this idea is to simply change the offset of the background for hover and active states. At most you would need to define the background image for each button, but if the buttons are well designed, you could surely use the same class for hover and active.

    2) I looked at this code closely thinking I might be able to mod it to use the image buttons by changing those to backgrounds so that idea (1) would apply... not so simple. Like you said, messing with the core, and I don't want to do that. At MOST I am thinking since the call to zen_image_button will send the $image to zenCssButton() and not have it set to empty as it is now:

    function zenCssButton($image = '', ....

    and then making a minor adjustment to THAT function to use the proper image without need to specify the background in CSS.

    The CSS Button mod by Paulm may work... looks like it should work, however I have not been successful with it either (hours and hours of fiddling), and Paul hasn't been around for some weeks.

    I posted here because I'm hoping if I can get a working solution, mayhap I'll convince you to add support for making 3-state buttons with your button generator. ;p (oh, and I'm desperate for help!)

    I'll PM you. And thank you again for taking a poke at this. Where's a CSS god when you need one?

    -chaddro.

  6. #66
    Join Date
    Feb 2008
    Posts
    28
    Plugin Contributions
    0

    Default Re: Online Zen Cart Buttons Generator

    Has anyone had the problem with the Advance Software button generator downloading a corrupt .zip file? I am running IE under Vista and can't get a valid file to be downloaded...

  7. #67
    Join Date
    Apr 2008
    Posts
    59
    Plugin Contributions
    1

    bug Re: Online Zen Cart Buttons Generator

    I got some problems with the generator.
    First of all it refuses to render in buttons UTF-8 check the attachments, i tried in IE (as u suggested... but result was very much the same)
    Second, i want to add another language which is unofficial since i have buttons from Turkish but i don't speak Turkish, so i cant guarantee they are really proper translated.

    and here are some suggestions, since i am not a very good coder (well i am not a coder at all), i don't know how hard/easy is to implement them, but that shouldn't stop me from giving em :)
    put option for user to add list for themselves... so people don't have to go to translator's page, let them just contribute by stopping by.
    allow them to include caption<->button_name links (if u want), if in the future another cart software popup, u don't need to make any significant improvements ;)
    Attached Images Attached Images  
    Lazy_666
    The One & Only
    http://www.nani-na.biz

  8. #68
    Join Date
    Mar 2006
    Posts
    194
    Plugin Contributions
    0

    Default Re: Online Zen Cart Buttons Generator

    I would love to use the Zen Button Construction Kit. I've downloaded it to use offline with WAMP. But when I go to http://localhost/zen_bck/ I get these errors at the top of the page...

    Warning: imageftbbox() [function.imageftbbox]: Invalid font filename in C:\wamp\www\zen_bck\includes\class.zen_bck.php on line 52

    Warning: imagefttext() [function.imagefttext]: Invalid font filename in C:\wamp\www\zen_bck\includes\class.zen_bck.php on line 195

    Warning: imageftbbox() [function.imageftbbox]: Invalid font filename in C:\wamp\www\zen_bck\includes\class.zen_bck.php on line 52

    Warning: imagefttext() [function.imagefttext]: Invalid font filename in C:\wamp\www\zen_bck\includes\class.zen_bck.php on line 195


    Here's line 52 of class.zen_bck.php...

    Code:
     $tbb_10 = imageFTBBox ($this->font_sz*10, 0, $this->font, $btnText, array());
    and here's line 195...

    Code:
    $tbb = imageFTText ($im, $this->font_sz*10, 0, ($x), ($y), $this->fontColor, $this->font, $btnText, array());

    Also in the "Languages to output" area at the bottom of the page are these two errors...

    Warning: ksort() expects parameter 1 to be array, null given in C:\wamp\www\zen_bck\index.php on line 322

    Warning: Invalid argument supplied for foreach() in C:\wamp\www\zen_bck\index.php on line 323


    Here's what line 322 and 323 of index.php look like...

    Code:
    ksort($languages);
    foreach($languages as $language => $val) {
    Anyone see what's wrong?

    Thanks in advance.
    TheWindCutter.com
    Professional Microphone Windscreens
    Got wind noise? We've got you covered.

  9. #69
    Join Date
    Apr 2008
    Posts
    59
    Plugin Contributions
    1

    Default Re: Online Zen Cart Buttons Generator

    Quote Originally Posted by rebekah View Post
    I would love to use the Zen Button Construction Kit. I've downloaded it to use offline with WAMP. But when I go to http://localhost/zen_bck/ I get these errors at the top of the page...

    Warning: imageftbbox() [function.imageftbbox]: Invalid font filename in C:\wamp\www\zen_bck\includes\class.zen_bck.php on line 52

    Warning: imagefttext() [function.imagefttext]: Invalid font filename in C:\wamp\www\zen_bck\includes\class.zen_bck.php on line 195

    Warning: imageftbbox() [function.imageftbbox]: Invalid font filename in C:\wamp\www\zen_bck\includes\class.zen_bck.php on line 52

    Warning: imagefttext() [function.imagefttext]: Invalid font filename in C:\wamp\www\zen_bck\includes\class.zen_bck.php on line 195


    Here's line 52 of class.zen_bck.php...

    Code:
     $tbb_10 = imageFTBBox ($this->font_sz*10, 0, $this->font, $btnText, array());
    and here's line 195...

    Code:
    $tbb = imageFTText ($im, $this->font_sz*10, 0, ($x), ($y), $this->fontColor, $this->font, $btnText, array());
    Also in the "Languages to output" area at the bottom of the page are these two errors...

    Warning: ksort() expects parameter 1 to be array, null given in C:\wamp\www\zen_bck\index.php on line 322

    Warning: Invalid argument supplied for foreach() in C:\wamp\www\zen_bck\index.php on line 323


    Here's what line 322 and 323 of index.php look like...

    Code:
    ksort($languages);
    foreach($languages as $language => $val) {
    Anyone see what's wrong?

    Thanks in advance.
    You have to copy some fonts in the /fonts directory
    i copyed all my windows font there, and it started working as a charm (or... mostly)
    Lazy_666
    The One & Only
    http://www.nani-na.biz

  10. #70
    Join Date
    Jan 2005
    Posts
    29
    Plugin Contributions
    1

    Default Re: Online Zen Cart Buttons Generator

    Rebekah,

    if you still can see the form below you can select a font from the drop down menu (you have to install some TrueType fonts first) and then submit the form again (button at the very bottom). There is a small issue right now that zen_bck doesn't know which font to use from the start, as the fonts will be provided by you. You can fix this permanently by entering a font file name (from the TrueType fonts you installed into the folder zen_bck/includes/fonts/) into the file zen_bck/presets/_default_preset.php, line which says '$btn_font = ...'. If there is another update of zen_bck I should put in a random font selector in case nothing was specified.

    The second warning should not show up at all, no clue what's going wrong here. There should be languages defined as an array as long as the file zen_bck/includes/zen_bck_config.php is present in its default state and it gets properly imported into the index.php.

    In general: you might be able to get rid of the warnings (they are non-fatal and strictly speaking not errors at all) by removing the line 3 of index.php which says 'error_reporting(E_ALL);'. I guess I had put this in for debugging purposes.

    Best regards,


    Sir John
    Zen Button Construction Kit – Free Downloadable Contribution
    http://www.zen-cart.com/index.php?ma...roducts_id=743

 

 
Page 7 of 12 FirstFirst ... 56789 ... LastLast

Similar Threads

  1. Who's Online - User gone, but Admin says online
    By johnd in forum General Questions
    Replies: 2
    Last Post: 23 Sep 2007, 01:57 AM
  2. Who is online...side admin vs online group pricing mod
    By csfound in forum General Questions
    Replies: 8
    Last Post: 18 Jul 2007, 04:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg