Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2011
    Posts
    194
    Plugin Contributions
    0

    Default My mod requires I add info between the <head> </head> and<body> </body> tags. How?

    Hello,

    I have a similar question... i am trying to install the mod from geckotribe.com/expop/ which requires I add info between the <head> </head> and<body> </body> tags

    It is for a pop up advert deal...

    I am trying to get it to work for the home page and can't get it to cooperate.

    Which files do i need to edit??
    and how / where do i create the on_load_*.js file??

    includes/my template/common/html_header.php (is that the one for <head> </head> tags??


  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: My mod requires I add info between the <head> </head> and<body> </body> tags. How

    Not sure why you think you need on_load stuff. More likely just need to put the code in a properly-named jscript_xxxxxx.js file.
    Ref: http://www.zen-cart.com/wiki/index.p...s_-_Javascript
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jun 2011
    Posts
    194
    Plugin Contributions
    0

    Default Re: My mod requires I add info between the <head> </head> and<body> </body> tags. How

    correction to post above...

    Part of the code has to go just before the <body> </body> tags not between it.....

  4. #4
    Join Date
    Jun 2011
    Posts
    194
    Plugin Contributions
    0

    Default Re: My mod requires I add info between the <head> </head> and<body> </body> tags. How

    have PM'd u some info!! please help!!

  5. #5
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: My mod requires I add info between the <head> </head> and<body> </body> tags. How

    You could put the PHP code that belongs between the <head>...</head> tags into /includes/templates/YOUR_TEMPLATE_NAME/jscript/jscript_expop.php

    And the code that belongs before the closing </body> tag at the bottom of tpl_main_page.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jun 2011
    Posts
    194
    Plugin Contributions
    0

    Default Re: My mod requires I add info between the <head> </head> and<body> </body> tags. How

    Quote Originally Posted by DrByte View Post
    You could put the PHP code that belongs between the <head>...</head> tags into /includes/templates/YOUR_TEMPLATE_NAME/jscript/jscript_expop.php

    And the code that belongs before the closing </body> tag at the bottom of tpl_main_page.php
    i tried that and it doesn't work any other suggestiongs??

    Find a link to the site here

  7. #7
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: My mod requires I add info between the <head> </head> and<body> </body> tags. How

    Um ... You've set the site to use the Classic template, but you've evidently not added the jscript_expop.php file to the includes/templates/classic/jscript/ folder, nor have you edited the /includes/templates/classic/common/tpl_main_page.php file.

    Perhaps you made changes in a different template instead. In that case, you need to activate that template for it to work.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Jun 2011
    Posts
    194
    Plugin Contributions
    0

    Default Re: My mod requires I add info between the <head> </head> and<body> </body> tags. How

    Quote Originally Posted by DrByte View Post
    Um ... You've set the site to use the Classic template, but you've evidently not added the jscript_expop.php file to the includes/templates/classic/jscript/ folder, nor have you edited the /includes/templates/classic/common/tpl_main_page.php file.

    Perhaps you made changes in a different template instead. In that case, you need to activate that template for it to work.
    In my includes/templates/classic/jscript/ i have a file jscript_expop.php this has the content of <?php require_once '/homex/xxxxxxxxx/public_html/web-entrance-messenger/watcher.php'; WebEntranceHeader(); ?>

    in my includes/templates/classic/common i have a file tpl_main_page.php with <?php WebEntranceMessage(); ?> right before the </body> tag on the last line!!

    but its still not working !!

    P.S. the XXXXX's are for security to my account but are correct!!

  9. #9
    Join Date
    Jun 2011
    Posts
    194
    Plugin Contributions
    0

    Default Re: My mod requires I add info between the <head> </head> and<body> </body> tags. How

    this site is a clean install of 1.5.0 if that makes any difference - i can get the Expop (exit popup) to work by editing the files you told me

    but the web entrance message doesn't want to cooperate!! as per posts above!

 

 

Similar Threads

  1. Adding Code to HEAD and BODY tags?
    By redpanda in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 3 Nov 2021, 12:02 PM
  2. v151 Head's tags goes into body tag.
    By zadok.daniel in forum General Questions
    Replies: 3
    Last Post: 7 Jan 2014, 02:42 AM
  3. I need to put something in the <head> and <body> tag
    By milobloom in forum General Questions
    Replies: 10
    Last Post: 18 Jan 2009, 01:01 AM
  4. How to edit or add info. in to the head tags??
    By nepton in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Jul 2006, 02:34 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