Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / add button to launch html page

add button to launch html page

Locked

Views: 2,384

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
20 May 2009, 10:46 AM
#1
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

add button to launch html page

How would i go about adding a button to the information menu, so that when you click it it loads an html page in a new window??

I've installed tiltviewer on my clients site and we want a link to the tiltviewer gallery in the information menu, however we just want the link to load the tiltviewer html page, and not to just link to another php page on the site.

20 May 2009, 3:15 PM
#2
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: add button to launch html page

Just as a starter for this, I'm assuming that I just need to add an extra page and menu item as per the about_us scenario, but change the target of the navigation button to point towards the html file???.... Am I correct??
Please help,

Cheers, Andy

20 May 2009, 4:07 PM
#3
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: add button to launch html page

bettsaj:

Just as a starter for this, I'm assuming that I just need to add an extra page and menu item as per the about_us scenario, but change the target of the navigation button to point towards the html file???.... Am I correct??
Please help,

Cheers, Andy

Yep. That should do it.

21 May 2009, 7:26 AM
#4
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: add button to launch html page

Ok... If you check the site you'll see that I've created a new page and nav button for gallery.

https://www.pinknblue.biz/index.php

Now I just need to know what code to alter and where to make the nav button open https://www.pinknblue.biz/tiltviewer/index.html

Also I want it to open in a new window if possible.

Cheers,

Andy

21 May 2009, 12:52 PM
#5
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: add button to launch html page

can't figure out where to put the code.. or even what to put...

Any takers please?

Andy

22 May 2009, 6:36 AM
#6
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: add button to launch html page

I've tried changing some of the code in information.php but when I do the menu just disappears.... i need some guidance on this.

22 May 2009, 6:47 AM
#7
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: add button to launch html page

bettsaj:

Ok... If you check the site you'll see that I've created a new page and nav button for gallery.

www.pinknblue.biz/index.php

Now I just need to know what code to alter and where to make the nav button open www.pinknblue.biz/tiltviewer/index.html

Also I want it to open in a new window if possible.

Cheers,

Andy

bett, when you created your nav button, where did it get this URL?: **http://pinknblue.biz/index.php?main_page=gallery****, **as that's where it's pointing to (you had to point it that dirrection, somewhere. Just change that address to your html page, or even better.....put your gallery on the page that the nav button is already pointing to.

24 May 2009, 5:39 AM
#8
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: add button to launch html page

I'm not sure whether the tiltgallery will display properly embedded into a php page, due to the size required for the tiltgallery to work. I think it would be too small.

I'll give it a go though, and see what it looks like. I still prefer the idea of the galley loading in a seperate window with the black background.

24 May 2009, 6:09 AM
#9
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: add button to launch html page

i embedded the gallery into the define_gallery.php page and it was way too small. I still think it's better to click the nav button and the gallery page loads in a seperate window full screen.

The url of the gallery page is https://www.pinknblue.biz/tiltviewer/index.html

you'll see it looks much better and at a nice resolution.

24 May 2009, 6:13 AM
#10
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: add button to launch html page

Get Em Fast:

bett, when you created your nav button, where did it get this URL?: **http://pinknblue.biz/index.php?main_page=gallery****, **as that's where it's pointing to (you had to point it that dirrection, somewhere. Just change that address to your html page, or even better.....put your gallery on the page that the nav button is already pointing to.

Where do I change that code?

24 May 2009, 9:04 AM
#11
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: add button to launch html page

Sorted after ploughing round the forum for about an hour.

changed the code in information.php.

if (DEFINE_GALLERY_STATUS <= 1) {

    $information[] = '<a href="' . zen_href_link(FILENAME_GALLERY) . '">' . BOX_INFORMATION_GALLERY . '</a>';

  }

to

if (DEFINE_ABOUT_US_STATUS <= 1) {

    $information[] = '<a href=http://www.pinknblue.biz/tiltviewer.index.html target="_blank">' . BOX_INFORMATION_ABOUT_US . '</a>';

  }