Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Feb 2009
    Posts
    95
    Plugin Contributions
    0

    Default Re: part of footer is gone

    If you are going to add that script to your footer, and your footer is used globally on your site, then you may as well use the zen-cart built in method for adding javascript. These instruction can be found in your docs folder.
    All you would have to do is rename the filename.js files to jscript_filename.js and put in your jscript folder.

  2. #12
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: part of footer is gone

    wow.

    i feel so stupid!
    i had NO idea that all that data was there for zencart on "how to"... i had just been using google, wikipedia, tutorials, faq and the forums...

    wow.

    ok, so i understand this just fine now, i have uploaded the files to the correct jscript folder, and have created the correct tags:

    <script language="javascript" src="includes/templates/darkness/jscript/jscript_add-event.js"></script>

    <script language="javascript" src="includes/templates/darkness/jscript/jscript_popup.js"></script>

    what i DO not know, and this is just my lack of basic php knowledge talking here...

    when it says to insert "as if you had inserted the following into an HTML page".... what is the "html" portion of a php page? i know that there are separate areas for <head> and <body> in an html page, but there are no references to this in my existing .php page...

    given that you said this "If that is tpl_footer.php, then you have some serious code issues. First you have <head></head> tags within the <body></body> tags and then you end your html with this </html> before your links can be displayed." last time i tried to put in html... LOL i OBVIOUSLY still have a LOT of learning to do!

    basically, where would tags like above go on the page, so as not to interfere with anything else?

  3. #13
    Join Date
    Feb 2009
    Posts
    95
    Plugin Contributions
    0

    Default Re: part of footer is gone

    If you take your jscript_add-event.js and jscript_popup.js and put them in your jscript folder, then that's all you need to do. You don't need those lines anymore.:

    <script language="javascript" src="includes/templates/darkness/jscript/jscript_add-event.js"></script>

    <script language="javascript" src="includes/templates/darkness/jscript/jscript_popup.js"></script>

    If you added these lines in addition, then you would be trying to load those jscripts twice.

    After you add those files to your jscript folder, look at the source code of your page and you should see them being loaded in your head section. Zen-cart automatically loads any jscript you put in this folder as long as it's appended with "jscript_".

    From that point it's just a matter of formatting the link correctly to use the jscript popups and for that I would suggest going back to reference the source from where you got this jscript.

  4. #14
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: part of footer is gone

    freaking perfect!! :)

    kudos to me for AGAIN making things more complicated than they needed to be! worked just fine, just renamed the files to have the jscript_ prefix.

    (id kiss ya if you wouldnt take it the wrong way !!!!!!!)


  5. #15
    Join Date
    Feb 2009
    Posts
    95
    Plugin Contributions
    0

    Default Re: part of footer is gone

    (id kiss ya if you wouldnt take it the wrong way !!!!!!!)
    Well, I guess that would depend on whether you were a guy or a girl.

    In any case, glad you got it worked out.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 Footer is gone
    By JDAhlbom in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Jun 2013, 07:48 PM
  2. v150 My footer is gone
    By In2Deep in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 2 Oct 2012, 10:13 PM
  3. Contact form gone and footer missing!
    By Lippyme in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Mar 2012, 09:15 PM
  4. Footer problesm's - Its gone!
    By priceys in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Nov 2007, 05:33 PM
  5. 2 part question on background and footer
    By v.kirk in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Jun 2006, 05:52 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR