Forums / Templates, Stylesheets, Page Layout / Old posts, new questions

Old posts, new questions

Locked
Results 1 to 12 of 12
This thread is locked. New replies are disabled.
11 Nov 2006, 03:37
#1
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Old posts, new questions

I have a few things I'm trying to do:

1. I don't want Zen Cart to appear in the title bar. How do i get it removed

2. Also, I want to have an image point to the define pages 2. I've tried a direct link using simple ahref commands and it just isn't working. I think that's it.

Thanks!
11 Nov 2006, 05:25
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Posts:
7,017
Plugin Contributions:
12

Re: Old posts, new questions

ThePatch:

....

1. I don't want Zen Cart to appear in the title bar. How do i get it removed

Try here https://www.zen-cart.com/tutorials/index.php?article=125


2. Also, I want to have an image point to the define pages 2. I've tried a direct link using simple ahref commands and it just isn't working. I think that's it.

Can you be a bit more specific on this point?
11 Nov 2006, 06:02
#3
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: Old posts, new questions

Sure, sorry, I was falling asleep earlier, I've had a short nap now and back to work! LOL

The site I'm working on is www.divakminerals.com/store

I want to have 3 links point to the 'define page 2'. We're not going to be using 'new products' per say so I'm going to change the New products link on the template to point to define page 2. There is also an image that will appear on each page that will also need to be linked to 'define page 2'.

Does this make any more sense?

Thank you
11 Nov 2006, 06:06
#4
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: Old posts, new questions

Oh, and I'm talking about when Zen Cart! The Art of E-commerce appears in the <title></title> tags. The rest of it I've alreaady fixed. I just can't recall how to pull it out of the title tags. I've done it before, but I've slept since then.
11 Nov 2006, 06:36
#5
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Posts:
940
Plugin Contributions:
2

Re: Old posts, new questions

What version of cart are you using? On newer versions, what you're looking for has moved to meta_tags.php in includes\languages\english folder.
11 Nov 2006, 06:58
#6
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: Old posts, new questions

Sketchy I could just kiss you!

That did it. Thanks!

Now if I can just figure out my other question I'll be done and done!
11 Nov 2006, 07:28
#7
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Posts:
940
Plugin Contributions:
2

Re: Old posts, new questions

... sure if you can catch me, I'm quite shy. :laugh:

You're very welcome. I did review your other query and I wasn't sure about the custom template set up. However, if the bottom "New Products" is hard linked into the template's tpl_footer.php... perhaps, you can change the text and link direction there. Also, same as the top... if the template's tpl_header.php is the same way, then you can change the link direction and modify a new image to reflect the new link. But, the files may use PHP controlled linking and that may require more work... which I'm no good at. :(
11 Nov 2006, 07:54
#8
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: Old posts, new questions

Yea, if it was a standard html style link love i could knock it out, but it's what is below. I know how to change the header and footer to 'look' the way I want it to, and once I know how to link 'one' of them I'll know how to link all 3. I thought about trying to find the data in the 'more info' box but no luck there unless I'm looking at the wrong file.

<a href="<?=zen_href_link(FILENAME_DEFAULT)?>&cPath=74"><?=zen_image(DIR_WS_TEMPLATE.'images/ban4.jpg')?></a>
11 Nov 2006, 15:49
#9
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Posts:
7,017
Plugin Contributions:
12

Re: Old posts, new questions

You could try this:

<a href="<?php echo '<a href="' . zen_href_link(FILENAME_DEFINE_PAGE_2); ?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/ban4.jpg'); </a>
11 Nov 2006, 22:05
#10
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: Old posts, new questions

Thanks Clyde but that didn't do it. In fact, I get a blank page when I try that which i think means there is a syntax error of some sorts but since I'm not a PHP master I can't spot it.

Any other suggestions?
11 Nov 2006, 22:31
#11
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: Old posts, new questions

Woot! Woot! Woot!

I figured it out! *doing a happy dance*

<a href="<?=zen_href_link(FILENAME_DEFAULT)?>&main_page=page_2"><?=zen_image(DIR_WS_TEMPLATE.'images/ban4.jpg')?></a></div>


So what I did was I turned on the 'more information' side box, then turned on my status bar in my browser so i could see how the link to page 2 was working. I saw that it pointed to index.php?main_page=page_2 So i figured I'd add the main_page=page_2 after the & and see what happened, ROCK ON!
11 Nov 2006, 23:53
#12
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Posts:
7,017
Plugin Contributions:
12

Re: Old posts, new questions

OK,

Try this, let me know if it works.

<?php echo '<a href="' . zen_href_link(FILENAME_DEFINE_PAGE_2); ?>"><?php echo zen_image($template->get_template_dir(ban4.jpg, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . ban4.jpg, '') ?> ; </a>