Thread: Ads on a page

Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1
    Join Date
    Jan 2011
    Posts
    367
    Plugin Contributions
    0

    Default Ads on a page

    I can add text at top of page by using <Categories/Products> and clicking edit next to a category... How can I ad text to the bottom of the page (unique to only one category)

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Ads on a page

    Look at swguy's boilerplate file tips mentioned in numerous threads. You may want the "extra boilerplate" adaptation of that that I have done - there is info in the threads where it is discussed.
    One basic version is in Boilerplate mod- separate it from description?, post 20.
    The final version is posted in How to Add Content Below category listings?, post 5.

  3. #3
    Join Date
    Jan 2011
    Posts
    367
    Plugin Contributions
    0

    Default Re: Ads on a page

    not any help, one needs to be clicked on and ends up on top with the category description and the other one the links to see it in action don't work (I guess no longer on the web)

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Ads on a page

    What do you mean, not any help? The specific posts I pointed to are not the ones you are describing.
    The Boilerplate... post 20 code is given for use in the product info page, but its essence can easily be put wherever you want in the category listing or product listing page. It is simple and appropriate for limited use as you described (if you meant only one category needs it).

    The Extra Boilerplate will function the same for category descriptions as for product descriptions, with appropriate variable substitution as described in the post. It is suitable for widespread use in multiple categories or products.

    The Short Description mod has been regularly used (though I haven't looked at it myself), and its support thread should be able to answer any questions you have.

  5. #5
    Join Date
    Jan 2011
    Posts
    367
    Plugin Contributions
    0

    Default Re: Ads on a page

    Sorry, let me explain, I tried the second one (#5) and it was not what I wanted. the first one (#20) had no place to see it's effect, so I dont know if it is what I want. It is too much effort to load a whole mod unless I know it is what I am looking for.. I have done that before and the actual mod was not at all what I was looking for and I just don't want to add something I'm not sure is it. Any idea where I might see it online?
    also it says it is for 1.3.7 and may or may not work on 1.3.9
    Last edited by slater555; 2 Dec 2011 at 05:04 AM. Reason: adding

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Ads on a page

    The suggestions can be used to get what you describe in the OP, so you will have to explain in more detail what you want that they do not do.

  7. #7
    Join Date
    Jan 2011
    Posts
    367
    Plugin Contributions
    0

    Default Re: Ads on a page

    the one that is #5 puts a link at the top of the page for <more info> and when clicked displays the text right there... I want the text to appear at the bottom, or in a static ad that appears only on one page. I have a vendor who wants an ad to appear on only one page but I do not want it at the top, and I dont want the ad to be on every page as it is slightly large and they are only paying $50 per month. Right now the ad is at http://www.airtightsecurityplus.com/dvr-system.html which is not in my shopping cart but on a gateway page (ad is on right at bottom labeled <Airtight Ads>

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Ads on a page

    The Short Description mod is not linked in post 5 of the thread, but post 9. I believe it is supposed to give a <more info> type link, so would probably not be suitable. The Extra Boilerplate mod in post 5 can do exactly what you want, but may be a bit more complex than needed.

    Since you only want this for one location, the post 20 code will do the job effectively. Paste this snippet in your file, and make a new define file, and it will just work.
    PHP Code:
    <?php
            
    if ($current_category_id == 34)  {//replace 34 with your category id
                
    echo '<div class="advert">' ADVERT_1 '</div>'
            } 
    ?>
    /includes/languages/english/extra_definitions/advert_defines.php
    PHP Code:
    <?php
    define
    ('ADVERT_1','the HTML for the advertisement');
    ?>
    The file to put the output code in will depend on exactly what kind of page it is - category listing or product listing.
    Last edited by gjh42; 2 Dec 2011 at 06:47 AM.

  9. #9
    Join Date
    Jan 2011
    Posts
    367
    Plugin Contributions
    0

    Default Re: Ads on a page

    Thanks, sorry for the delay, was on a business trip. Which file do I put the 'snippet' in?

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Ads on a page

    The file to put the output code in will depend on exactly what kind of page it is - category listing or product listing.

    Which is it?

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v139f Full page of banner ads
    By Jeff G in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Mar 2012, 06:50 AM
  2. adding google ads to my store page
    By haroldh in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 29 Dec 2010, 07:43 PM
  3. Ads? anyway to add html ads to pages?
    By loulou99 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Aug 2007, 10:28 PM

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