Forums / Templates, Stylesheets, Page Layout / New pages and page specific customisation

New pages and page specific customisation

Locked

Views: 2,434

Results 1 to 20 of 24
This thread is locked. New replies are disabled.
20 Feb 2010, 1:07 PM
#1
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

New pages and page specific customisation

Hi, I am just trying to figure out how to deal with the following:

  1. I created a flash banner for the header of the main page but want it to appear only in the main page and place a single image/s in the header sections of the rest of the pages.

  2. Since I placed the flash banner in the header, when I click on ‘log in’ in the upper left of the page, the whole page moves to right in a blink of an eye and back to its initial position. Why would this happen?

  3. How can create more pages in the 'Information' side-box, i.e. 'About us' and delete (or temporarily disable until needed) some pages in here?

Thanks

20 Feb 2010, 1:19 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: New pages and page specific customisation

  1. I created a flash banner for the header of the main page but want it to appear only in the main page and place a single image/s in the header sections of the rest of the pages.
    No link - So we can not see what or how you have this implemented
  1. Since I placed the flash banner in the header, when I click on ‘log in’ in the upper left of the page, the whole page moves to right in a blink of an eye and back to its initial position. Why would this happen?
    No link so we can not even see this to maybe offer some ideas
  2. How can create more pages in the 'Information' side-box, i.e. 'About us' and delete (or temporarily disable until needed) some pages in here?
    New pages require about 8 file additions/edits
    Thre is a 3rd party module for about us that one can use and also see what creating another would entail

It is in the free software addons link at the top of this page

Zen-Venom Get Bitten

20 Feb 2010, 2:02 PM
#3
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Re: New pages and page specific customisation

My site is not live yet, still developing locally. If you need any code that I used and/or info, then I can forwrd these.

Regarding my last question about 'disabling some pages' temporarily, do you have any suggestions?

20 Feb 2010, 2:18 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

Re: New pages and page specific customisation

acummins:

My site is not live yet, still developing locally. If you need any code that I used and/or info, then I can forwrd these.

Regarding my last question about 'disabling some pages' temporarily, do you have any suggestions?

Try your admin's Configuration->Define Page Status. You can turn on/off most of the stuff in the Information sidebox there.

20 Feb 2010, 2:29 PM
#5
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Re: New pages and page specific customisation

Thanks lat, I got it..:smile:

21 Feb 2010, 12:33 PM
#6
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Re: New pages and page specific customisation

I placed the following code right under <!--bof-branding display--> in tpl_header.php:

<script type="text/javascript" src="includes/templates/mytemplate/jscript/swfobject.js"></script> <div id="flashcontent"> <center> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/pub/shockwave/cabs/flash2/...ersion=4,0,0,0" id="banner" width="550" height="200" ALIGN="right"> <param name="movie" value="banner.swf"> <param name="quality" value="high"> <param name="bgcolor" value="#000000"> <embed name="banner.swf" src="includes/templates/mytemplate/images/banner.swf" quality="high" bgcolor="#000000" width="550" height="200" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed> </object> </center> <script type="text/javascript"> var so = new SWFObject("includes/templates/mytemplate/images/banner.swf", "untitled", "550", "200", "7", "#000000"); so.write("flashcontent"); </script> </div>

Swfobject.js file (just a single file) was also put in jscript folder. Clicking on log in still moves the page back and forth. I also tried another code which is;

<object type="application/x-shockwave-flash" data="includes/templates/mytemplate/images/banner.swf" width="550" height="200" align="right"> <param name="movie" value="includes/templates/mytemplate/images/banner.swf" /> <param name="quality" value="high"><param name="BGCOLOR" value="#000000"> <param name="menu" value="false"> </object>

but no chance. Am i doing something wrong or using a depreceated code. Can anyone help me out of this?

21 Feb 2010, 3:17 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: New pages and page specific customisation

but no chance. Am i doing something wrong or using a depreceated code. Can anyone help me out of this?
What is the path to your template?
What is the path to the file you are editing?

Zen-Venom Get Bitten

21 Feb 2010, 5:52 PM
#8
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Re: New pages and page specific customisation

kobra:

What is the path to your template?
What is the path to the file you are editing?

Kobra, sorry I don't get you clearly. What do you exactly mean by that? I thought I have already given the paths in my previous post. :dontgetit

22 Feb 2010, 9:28 AM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: New pages and page specific customisation

See the tutorial and find section on
"Adding Extra Javascript to a specific page"

This applies to any js

https://www.zen-cart.com/tutorials/index.php?article=36

Then you do not code it inline

Zen-Venom Get Bitten

22 Feb 2010, 10:02 AM
#10
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Re: New pages and page specific customisation

I've looked at the url and found useful. However, my second question takes priority over the first one. So if you have any suggestions on this, I would be grateful.

22 Feb 2010, 10:26 AM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: New pages and page specific customisation

However, my second question takes priority over the first one.
Already answered!!
Previously:

New pages require about 8 file additions/edits
Thre is a 3rd party module for about us that one can use and also see what creating another would entail

It is in the free software addons link at the top of this page

Zen-Venom Get Bitten

22 Feb 2010, 10:33 AM
#12
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Re: New pages and page specific customisation

sorry Kobra, the second and third numbers are duplicated (two 2s) :smile:. I've already sorted out the last one. Thanks for that. Any idea for the 'middle' one?

22 Feb 2010, 10:35 AM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: New pages and page specific customisation

Will need a link to the page
Add ONE space to brak link as in
http ://www.zen-cart.com/

Zen-Venom Get Bitten

22 Feb 2010, 10:43 AM
#14
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Re: New pages and page specific customisation

I'm absolutely lost :blink:.

22 Feb 2010, 10:51 AM
#15
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: New pages and page specific customisation

I'm absolutely lost
2. Since I placed the flash banner in the header, when I click on ‘log in’ in the upper left of the page, the whole page moves to right in a blink of an eye and back to its initial position. Why would this happen?
Can't even try to offer a solution to spmething we can njot see

Need a link to your site where this is happening

Zen-Venom Get Bitten

22 Feb 2010, 11:08 AM
#16
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Re: New pages and page specific customisation

As I said in the previous posts, my site is not live yet, still developing it in my home computer. Could it be the way I handle the codes for the flash file. Having read so many posts, examples, etc., I feel confused a bit. It seems that every single one is suggesting different ways of handling this flash issue. I really dont know what to do.

I have already posted the codes I used. Do I have to create a sepearte jscript folder and put something in it? Coz, many people say we should do so. Without this folder, my flash banner still runs nicely but messes with the page as i said.

22 Feb 2010, 1:00 PM
#17
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: New pages and page specific customisation

Could be the speed your local server it???

Zen-Venom Get Bitten

22 Feb 2010, 2:05 PM
#18
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Re: New pages and page specific customisation

If so, is there anything I can do about it?

22 Feb 2010, 8:26 PM
#19
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: New pages and page specific customisation

If so, is there anything I can do about it?
Don't worry about it on a local server and see if you still see it once on a hosted production server

Zen-Venom Get Bitten

22 Feb 2010, 10:02 PM
#20
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Re: New pages and page specific customisation

I am not too sure but could this be a fouc issue? I see many suffer from this bug which generally hits ie users but there are also many FF users (like me) out there having trouble with this issue. Anyone wondering what this fouc bug is may visit: http://www.bluerobot.com/web/css/fouc.asp/.

The strange thing is this thing, whatever it is, affects only 2-3 pages in my site. :dontgetit. I wonder if anyone has a workaround for this problem?