Zen Cart Logo
Forums / Addon Templates / Apple Zen Support Thread

Apple Zen Support Thread

Views: 855,577

Results 841 to 860 of 3,042
13 Jun 2007, 9:27 AM
#841
braad avatar

braad

New Zenner

Join Date:
Oct 2006
Posts:
18
Plugin Contributions:
0

Apple Zen Support Thread

Hi, thank you for this great template,

I wonder why this new created site About Us is not listed on Site Map, would you repair this or how to solve this problem?
Thank you

13 Jun 2007, 11:42 AM
#842
symmo avatar

symmo

New Zenner

Join Date:
Jun 2007
Posts:
54
Plugin Contributions:
0

Re: Apple Zen Support Thread

Right im getting there now

just would like to know how some poeple get the links at the bottom of the main page along side home coz ive seen a few and the look kewl

thanks

symmo

https://www.temp-tattoos.co.uk

13 Jun 2007, 11:46 AM
#843
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Re: Apple Zen Support Thread

I am trying to update my apple zen and when I did so (I'm using WinMerge) I am now getting an error
> Parse error: parse error, unexpected T_VARIABLE, expecting ',' or ';' in D:\hosting\member\admin\site1\includes\classes\categories_ul_generator.php on line 28

Any idea what is causing this? $data=array(), is line 28

 
Here is the file just incase it is needed...
// $Id: categories_ul_generator.php 2004-07-11  DrByteZen $
//      based on site_map.php v1.0.1 by networkdad 2004-06-04
//

class zen_categories_ul_generator {
    var $root_category_id = 0,
    $max_level = 6
    $data = array(),
    $root_start_string = '',
    $root_end_string = '',
    $parent_start_string = '',
    $parent_end_string = '',
    
    $parent_group_start_string = '<ul%s>',
    $parent_group_end_string = '</ul>',
    
    $child_start_string = '<li%s>',
    $child_end_string = '</li>',
    
    $spacer_string = '
 ',
    $spacer_multiplier = 1;
    
    var $document_types_list = ' (3) ';// acceptable format example: ' (3, 4, 9, 22, 18) '
    
    function zen_categories_ul_generator($load_from_database = true)
    {
        global $languages_id, $db;
        $this->data = array();
        $categories_query = "select c.categories_id, cd.categories_name, c.parent_id
from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
where c.categories_id = cd.categories_id
and c.categories_status=1 " .
        " and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
        " order by c.parent_id, c.sort_order, cd.categories_name";
        $categories = $db->Execute($categories_query);
        while (!$categories->EOF) {
            $this->data[$categories->fields['parent_id']][$categories->fields['categories_id']] = array('name' => $categories->fields['categories_name'], 'count' => 0);
            $categories->MoveNext();
        }
    }
    
    function buildBranch($parent_id, $level = 1, $submenu=false)
    {    
        $result = sprintf($this->parent_group_start_string, ($submenu==true) ? ' class="level'. ($level+1) . '"' : '' );
        
        if (($this->data[$parent_id])) {
            foreach($this->data[$parent_id] as $category_id => $category) {
                $category_link = $category_id;
    
    if (($this->data[$category_id])) {
    $result .= sprintf($this->child_start_string, ($submenu==true) ? ' class="submenu"' : '');
    } 
    
    else {
                     if (($this->data[$category_id]) && ($submenu==false)) {
                          $result .= sprintf($this->parent_group_start_string, ($submenu==true) ? ' class="level'. ($level+1) . '"' : '');
                          $result .= sprintf($this->child_start_string, ($submenu==true) ? ' class="submenu"' : '');
                    
                            } else {
                              $result .= sprintf($this->child_start_string, '');
                            }
       
      }
                
                if ($level == 0) {
                    $result .= $this->root_start_string;
                }
                $result .= str_repeat($this->spacer_string, $this->spacer_multiplier * $level) . '<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $category_link) . '">';
                $result .= $category['name'];
                $result .= '</a>';
                
                if ($level == 0) {
                    $result .= $this->root_end_string;
                }
                
                if (($this->data[$category_id])) {
                    $result .= $this->parent_end_string;
                }
                
                if (($this->data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level+1))) {
                    $result .= $this->buildBranch($category_id, $level+1, $submenu);
                    
                }
                $result .= $this->child_end_string;
                
            }
        }
        
        $result .= $this->parent_group_end_string;
        
        return $result;
    }
    
    function buildTree($submenu=false)
    {
        return $this->buildBranch($this->root_category_id, '', $submenu);
    }
}
?>

I compared the old and new files and tried both of them, but I still get the same error. Thanks for your help!

13 Jun 2007, 12:14 PM
#844
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Re: Apple Zen Support Thread

Never mind....I reloaded the file and the 3rd time it worked. Why the after the 3rd time, don't know, but it works now!

13 Jun 2007, 2:18 PM
#845
symmo avatar

symmo

New Zenner

Join Date:
Jun 2007
Posts:
54
Plugin Contributions:
0

Re: Apple Zen Support Thread

also when I click on a product where there is more than 1 catergory it puts them all in a line on the page like this page -->

http://www.temp-tattoos.co.uk/shop/index.php?main_page=index&cPath=22

and it also does it on the specials page page -->

http://www.temp-tattoos.co.uk/shop/index.php?main_page=specials

Cant find out why?
Thanks in advance
Symmo

https://www.temp-tattoos.co.uk

13 Jun 2007, 2:31 PM
#846
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Apple Zen Support Thread

symmo:

also when I click on a product where there is more than 1 catergory it puts them all in a line on the page like this page -->

http://www.temp-tattoos.co.uk/shop/index.php?main_page=index&cPath=22

and it also does it on the specials page page -->

http://www.temp-tattoos.co.uk/shop/index.php?main_page=specials

Cant find out why?
Thanks in advance
Symmo

https://www.temp-tattoos.co.uk

Where did this line in your css go to?

#logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float:left;
}

My guess is, you didn't want your logo floated left, so you deleted the entire line? :P Add it back, but with #logo, removed.

13 Jun 2007, 2:46 PM
#847
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Apple Zen Support Thread

braad:

Hi, thank you for this great template,

I wonder why this new created site About Us is not listed on Site Map, would you repair this or how to solve this problem?
Thank you

Since the About Us is not a standard zen cart page, I am not going to add it to the site map page in the download, however, you can do this by opening up includes/templates/YOUR_TEMPLATE/tpl_site_map_default.php and add this wherever you'd like it:

<li><?php echo '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . HEADER_TITLE_ABOUT_US . '</a>'; ?></li>
13 Jun 2007, 2:47 PM
#848
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Apple Zen Support Thread

symmo:

Right im getting there now

just would like to know how some poeple get the links at the bottom of the main page along side home coz ive seen a few and the look kewl

thanks

symmo

https://www.temp-tattoos.co.uk

What links are you referring to?

13 Jun 2007, 2:52 PM
#849
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Apple Zen Support Thread

charmedbytina2:

Thanks again for your pointers!
Another issue:
I have an image (centerbox_bg) in the content area of my page. Right now, my girl is missing her head (sad, but true!) and I would like to set the image so it that it starts just under the bar that has "HOME" in it on the homepage.
I tried adding a padding comment but to no avail. Any ideas?

Thanks again!

Tina

http://charmsandmore.charmedbytina.com

Try changing the background position to:

background-position: center 17em;

in #centerColumnWrapper2

13 Jun 2007, 3:32 PM
#850
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: Apple Zen Support Thread

jettrue:

Try changing the background position to:

background-position: center 17em;

in #centerColumnWrapper2

Thanks! That worked like a "charm"!~:clap:

13 Jun 2007, 3:33 PM
#851
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Apple Zen Support Thread

high2K:

Hi jettrue,

Thanks for all your help and sorry that I skim-read the readme file - I hadn't realised that the narrow header layout would give me the effect I was looking for.
I've added it now and it looks perfect on Firefox but is a bit out on IE. See http://www.keela.co.uk.tango.webhoster.co.uk/catalog/
The client also wants the search button replaced by their own graphic with 'go' on it. How can i swap the button for a graphic?
I actually have the opposite problem as you, Firefox is messed, IE is fine?

Anyway, since you're not using the little striped grey border on the site, remove this section and see if that helps:

#centerColumnOuter {
margin:0 .5em;
width:70em;
height:15px;
}

Then, as for the graphic, I actually use the CSS Buttons contribution:

http://www.zen-cart.com/forum/showthread.php?t=46705

which is really nice.

But if you don't want to go through all of that,you can open up includes/templates/YOUR_TEMPLATE/sideboxes/tpl_search_header.php and make line 17 the same as line 19, and upload a button image here:
/includes/templates/YOUR_TEMPLATE/buttons/english/button_search.gif

13 Jun 2007, 3:58 PM
#852
symmo avatar

symmo

New Zenner

Join Date:
Jun 2007
Posts:
54
Plugin Contributions:
0

Re: Apple Zen Support Thread

jettrue:

Where did this line in your css go to?

#logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float:left;
}

My guess is, you didn't want your logo floated left, so you deleted the entire line? :P Add it back, but with #logo, removed.

I cant remember deleting this but hey its back in the stylesheet now without the #logo, but still they go in a straight line down the page :(
looks strange on my specials page:-
http://www.temp-tattoos.co.uk/shop/index.php?main_page=specials

the links I like at the bottom are like on thias site:-
www.mommyandbabyessentials.com

13 Jun 2007, 4:06 PM
#853
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Apple Zen Support Thread

symmo:

I cant remember deleting this but hey its back in the stylesheet now without the #logo, but still they go in a straight line down the page :(
looks strange on my specials page:-
http://www.temp-tattoos.co.uk/shop/index.php?main_page=specials

the links I like at the bottom are like on thias site:-
www.mommyandbabyessentials.com

Take a close look at where you added that css:
.centerColumn {
width:73%;
float:right;
position:relative;
margin-right:1%;
padding:1% 2% 0 2%;
text-align:left;
line-height:1.6em;

.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float:left;
}
}

13 Jun 2007, 4:08 PM
#854
high2k avatar

high2k

Zen Follower

Join Date:
May 2006
Location:
Scotland
Posts:
198
Plugin Contributions:
0

Re: Apple Zen Support Thread

jettrue:

Anyway, since you're not using the little striped grey border on the site, remove this section and see if that helps:

#centerColumnOuter {
margin:0 .5em;
width:70em;
height:15px;
}

No I'm afraid that hasn't made any difference. You can see the effect it [hasn't ]had at http://www.keela.co.uk.tango.webhoster.co.uk/catalog/

13 Jun 2007, 4:36 PM
#855
supergper avatar

supergper

New Zenner

Join Date:
Jun 2007
Posts:
3
Plugin Contributions:
0

Re: Apple Zen Support Thread

symmo:

Now just need to sort out the width in IE and I would like the white on all the page to be a lightish grey? dont know where to start?

Thanks again YOU ROCK

Did you get the IE size thing figured out? For some reason I had to convert the em to px on the #Logo{} part of stylesheet.css...so it went from:

#logo {
	width:19.1em  /* To prevent the logo from resizing, simply delete or comment out this section */
	}

to

#logo {
	width:305px  /* To prevent the logo from resizing, simply delete or comment out this section */
	}

and it fixed my logo size problem in IE. :dontgetit

13 Jun 2007, 4:41 PM
#856
symmo avatar

symmo

New Zenner

Join Date:
Jun 2007
Posts:
54
Plugin Contributions:
0

Re: Apple Zen Support Thread

jettrue:

Take a close look at where you added that css:
.centerColumn {
width:73%;
float:right;
position:relative;
margin-right:1%;
padding:1% 2% 0 2%;
text-align:left;
line-height:1.6em;

.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float:left;
}
}
I did but if remove any of te } it makes all the products even on the home page go down in a straight line ??? mmmm
I cant figure this out ! :(

https://www.temp-tattoos.co.uk

13 Jun 2007, 4:42 PM
#857
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Apple Zen Support Thread

high2K:

No I'm afraid that hasn't made any difference. You can see the effect it [hasn't ]had at http://www.keela.co.uk.tango.webhoster.co.uk/catalog/

Phew, that was hard to find:

#dropMenuWrapper {
width:70em; /* change to width:70em; for narrow header*/
/* remove float:left; for narrow header */
margin:0 auto;
text-align:center;
height:1.18em;
}

It should be 2.18em

13 Jun 2007, 4:43 PM
#858
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Apple Zen Support Thread

symmo:

I did but if remove any of te } it makes all the products even on the home page go down in a straight line ??? mmmm
I cant figure this out ! :(

https://www.temp-tattoos.co.uk

.centerColumn {
width:73%;
float:right;
position:relative;
margin-right:1%;
padding:1% 2% 0 2%;
text-align:left;
line-height:1.6em;
**}
**

.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float:left;

**} **

13 Jun 2007, 5:22 PM
#859
symmo avatar

symmo

New Zenner

Join Date:
Jun 2007
Posts:
54
Plugin Contributions:
0

Re: Apple Zen Support Thread

jettrue:

**}
**
.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float:left;

**} **

:clap:Thank you sorted the prob amazing this css how 1 little thing can make such a big headache :)
thanks again for the help this site and the template trully is kewl
Symmo

now to get them links sorted?? ;)

https://www.temp-tattoos.co.uk

p.s sugestions for the site always gratfully recieved im new to this and want the site looking as good as poss !!

13 Jun 2007, 5:32 PM
#860
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Apple Zen Support Thread

symmo:

:clap:Thank you sorted the prob amazing this css how 1 little thing can make such a big headache :)
thanks again for the help this site and the template trully is kewl
Symmo

now to get them links sorted?? ;)

https://www.temp-tattoos.co.uk

p.s sugestions for the site always gratfully recieved im new to this and want the site looking as good as poss !!

Those were done with the ez-pages contribution, just add an ez-page, and turn on the footer option for that ezpage (be sure to add a sort order).