PostNuke: A Flexible Open Source Content Management System
home | forum | international support | contact us

Support Forum

Start ::  PostNuke 0.7 Support ::  Tutorials and Solutions ::  Making Banners Work Properly in PostNuke v.750

Moderated by: Support Team

Bottom
Making Banners Work Properly in PostNuke v.750

  • Link to this postingPosted: 12.01.2005, 03:14
    Profile Homepage
    quilldj
    rank:
    pnFreshman pnFreshman
    registered:
     April 2003
    Status:
    offline
    last visit:
    14.04.05
    Posts:
    27
    This tutorial is based on a recent experience of trying to get banners working under PostNuke v.750.

    I would like to thank InvalidResponse for all the help he provided me in making my banners work at http://www.neociscoug.org.

    PLEASE NOTE: This tutorial is based on the default Xanthia theme PostNukeBlue which comes with PostNuke v.750. This tutorial will not work with non-Xanthia themes.

    CREATING THE BANNERS:
    Note: You must be an administrator to complete the following.

    Main Menu - Administration --> Banners

    First, you need to create the client that will be responsible for the banner/advertisement. This is usually the company or person paying for the banners.
    Enter in all relevant information about the client and note that the "Extra information" is optional but helpful for future reference.

    O.K., Now that we have a client to work with we need to create the banner/advertisement.

    You will have a new section called "Add New Banner".

    • 1) Using the pulldown menu, choose your client's name
    • 2) "Purchased impressions" are supposed to be how many times the banner is displayed but I have yet to figure out how to make it stop without going into the negative numbers. I just set this to "0" which is "unlimited".
    • 3) "Banner Type" or "ID" is any number you desire. This is a grouping number that your banners will use when displayed. Example: Should you have 3 banners that you would like to have displayed than you would set all of them with the same "Banner Type".
    • By setting all three banners to the same type or number, this will allow them to ramdomly display in the banner area. Meaning, everytime you refresh the page you should see a different banner.
    • 4) "Image URL" is the web address of where the image or picture you would like to use in the banner. Make sure that you use the complete URL. Example: http://www.yourwebsite.com/image.gif
    • 5) "Click URL" is where you want to redirect someone when they click on the banner. Example: http://www.mywebsite.com

    Once you have all the information correctly inputted, click "Add Banner".
    You should now see the new banner appear at the top under "Active Banners".
    Here you will see the "Banner Type" which you will use later in this tutorial. So make note of it, as it will be referred to as an "ID number".
    Testing your banner image, click on the "Edit" link on the right, under "Actions". If the "Image URL" is correct you will see the image you what to display in the banner area. Otherwise, you can correct it here.

    Moving on.... Here we we will be directly editing files....

    EDITING FILES:
    There are two files that will need to be edited.

    1) ../html/themes/PostNukeBlue/templates/master.htm
    2) ../html/themes/PostNukeBlue/templates/modules/home.htm

    NOTE: Do not use the built-in editor with the Xanthia Control Panel.
    Open these files in any text editor (i.e., Notepad, UltraEdit, etc...).


    Find the following:







    and replace it with:







    Note: The ID number (id="#") will be the same a the "Banner Type" when setting up your banner. Use the number you assigned the "Banner Type" in place of the #.

    Do this with both the master.htm and home.htm so the banners will appear throughout the entire site.

    Once you have made your changes you will need to reload the template files master.htm and home.htm.

    Note: You must be an administrator to complete the following.

    Under the Main Menu - Administration --> Xanthia --> Edit Theme --> Theme Templates --> Reload Template.

    Well, as far as I know, that is it.
    I hope this help anyone needing assistance in .750 banners.
  • Link to this postingPosted: 06.02.2005, 07:21
    Profile
    larryodbc
    rank:
    Registered User Registered User
    registered:
     February 2005
    Status:
    offline
    last visit:
    06.02.05
    Posts:
    1
    Thanks! This was the one that did the trick!
  • Link to this postingPosted: 13.02.2005, 17:55
    Profile Homepage
    rcrcomputing
    rank:
    pnFreshman pnFreshman
    registered:
     July 2003
    Status:
    offline
    last visit:
    17.02.05
    Posts:
    7
    Does anyone know if this is fixed in 7.6? Might be easier if I simply upgrade..
  • Link to this postingPosted: 02.04.2005, 17:11
    Profile Homepage
    AnathemA
    rank:
    pnFreshman pnFreshman
    registered:
     December 2003
    Status:
    offline
    last visit:
    04.04.05
    Posts:
    7
    plz help me edit the function "clickbanner" to Open A New Window when click the banner .
    I don't want it's redirect to the Click URL in header .
    How can I do it ?
  • Link to this postingPosted: 19.05.2005, 22:05
    Profile Homepage
    InvalidResponse
    rank:
    pnProfessional pnProfessional
    registered:
     September 2003
    Status:
    offline
    last visit:
    21.10.07
    Posts:
    2423
    rcrcomputingDoes anyone know if this is fixed in 7.6? Might be easier if I simply upgrade..

    what's broken?


    AnathemAplz help me edit the function "clickbanner" to Open A New Window when click the banner .
    I don't want it's redirect to the Click URL in header .
    How can I do it ?

    ..it's not recommended, but if you open pnBanners.php in ./includes and find the links (ie:
    -----
    http://www.invalidresponse.com
  • Link to this postingPosted: 26.11.2007, 02:16
    Profile Homepage
    SpitfireTN
    rank:
    pnHelper pnHelper
    registered:
     August 2003
    Status:
    offline
    last visit:
    10.12.07
    Posts:
    124
    quilldjThis tutorial is based on a recent experience of trying to get banners working under PostNuke v.750.

    I would like to thank InvalidResponse for all the help he provided me in making my banners work at http://www.neociscoug.org.

    PLEASE NOTE: This tutorial is based on the default Xanthia theme PostNukeBlue which comes with PostNuke v.750. This tutorial will not work with non-Xanthia themes.

    CREATING THE BANNERS:
    Note: You must be an administrator to complete the following.

    Main Menu - Administration --> Banners

    First, you need to create the client that will be responsible for the banner/advertisement. This is usually the company or person paying for the banners.
    Enter in all relevant information about the client and note that the "Extra information" is optional but helpful for future reference.

    O.K., Now that we have a client to work with we need to create the banner/advertisement.

    You will have a new section called "Add New Banner".

    • 1) Using the pulldown menu, choose your client's name
    • 2) "Purchased impressions" are supposed to be how many times the banner is displayed but I have yet to figure out how to make it stop without going into the negative numbers. I just set this to "0" which is "unlimited".
    • 3) "Banner Type" or "ID" is any number you desire. This is a grouping number that your banners will use when displayed. Example: Should you have 3 banners that you would like to have displayed than you would set all of them with the same "Banner Type".
    • By setting all three banners to the same type or number, this will allow them to ramdomly display in the banner area. Meaning, everytime you refresh the page you should see a different banner.
    • 4) "Image URL" is the web address of where the image or picture you would like to use in the banner. Make sure that you use the complete URL. Example: http://www.yourwebsite.com/image.gif
    • 5) "Click URL" is where you want to redirect someone when they click on the banner. Example: http://www.mywebsite.com

    Once you have all the information correctly inputted, click "Add Banner".
    You should now see the new banner appear at the top under "Active Banners".
    Here you will see the "Banner Type" which you will use later in this tutorial. So make note of it, as it will be referred to as an "ID number".
    Testing your banner image, click on the "Edit" link on the right, under "Actions". If the "Image URL" is correct you will see the image you what to display in the banner area. Otherwise, you can correct it here.

    Moving on.... Here we we will be directly editing files....

    EDITING FILES:
    There are two files that will need to be edited.

    1) ../html/themes/PostNukeBlue/templates/master.htm
    2) ../html/themes/PostNukeBlue/templates/modules/home.htm

    NOTE: Do not use the built-in editor with the Xanthia Control Panel.
    Open these files in any text editor (i.e., Notepad, UltraEdit, etc...).


    Find the following:


    [/b]
    Xanthia --> Edit Theme --> Theme Templates --> Reload Template.

    Well, as far as I know, that is it.
    I hope this help anyone needing assistance in .750 banners.


    Does anyone have the missing information this post should of had to help me with adding the banner rotation to the bottom of my Xanthia themes?


    -----
    http://msmcs.net/sigs/spitfire.gif
    .:: DXRadioWorld.com / TNSMA.org ::.
  • Link to this postingPosted: 26.11.2007, 02:28
    Profile Homepage
    SpitfireTN
    rank:
    pnHelper pnHelper
    registered:
     August 2003
    Status:
    offline
    last visit:
    10.12.07
    Posts:
    124
    Nevermind, found the missing link... You need to add...

    Code
    <!--[pnbannerdisplay id=0]-->


    to the Xanthia theme to get the banners to show up!
    -----
    http://msmcs.net/sigs/spitfire.gif
    .:: DXRadioWorld.com / TNSMA.org ::.
  • Link to this postingPosted: 13.01.2008, 02:20
    Profile
    gmdistributor
    rank:
    pnFreshman pnFreshman
    registered:
     December 2007
    Status:
    offline
    last visit:
    22.01.08
    Posts:
    33
    quilldjThis tutorial is based on a recent experience of trying to get banners working under PostNuke v.750.

    I would like to thank InvalidResponse for all the help he provided me in making my banners work at http://www.neociscoug.org.

    PLEASE NOTE: This tutorial is based on the default Xanthia theme PostNukeBlue which comes with PostNuke v.750. This tutorial will not work with non-Xanthia themes.

    CREATING THE BANNERS:
    Note: You must be an administrator to complete the following.

    Main Menu - Administration --> Banners

    First, you need to create the client that will be responsible for the banner/advertisement. This is usually the company or person paying for the banners.
    Enter in all relevant information about the client and note that the "Extra information" is optional but helpful for future reference.

    O.K., Now that we have a client to work with we need to create the banner/advertisement.

    You will have a new section called "Add New Banner".

    • 1) Using the pulldown menu, choose your client's name
    • 2) "Purchased impressions" are supposed to be how many times the banner is displayed but I have yet to figure out how to make it stop without going into the negative numbers. I just set this to "0" which is "unlimited".
    • 3) "Banner Type" or "ID" is any number you desire. This is a grouping number that your banners will use when displayed. Example: Should you have 3 banners that you would like to have displayed than you would set all of them with the same "Banner Type".
    • By setting all three banners to the same type or number, this will allow them to ramdomly display in the banner area. Meaning, everytime you refresh the page you should see a different banner.
    • 4) "Image URL" is the web address of where the image or picture you would like to use in the banner. Make sure that you use the complete URL. Example: http://www.yourwebsite.com/image.gif
    • 5) "Click URL" is where you want to redirect someone when they click on the banner. Example: http://www.mywebsite.com

    Once you have all the information correctly inputted, click "Add Banner".
    You should now see the new banner appear at the top under "Active Banners".
    Here you will see the "Banner Type" which you will use later in this tutorial. So make note of it, as it will be referred to as an "ID number".
    Testing your banner image, click on the "Edit" link on the right, under "Actions". If the "Image URL" is correct you will see the image you what to display in the banner area. Otherwise, you can correct it here.

    Moving on.... Here we we will be directly editing files....

    EDITING FILES:
    There are two files that will need to be edited.

    1) ../html/themes/PostNukeBlue/templates/master.htm
    2) ../html/themes/PostNukeBlue/templates/modules/home.htm

    NOTE: Do not use the built-in editor with the Xanthia Control Panel.
    Open these files in any text editor (i.e., Notepad, UltraEdit, etc...).


    Find the following:


    [/b]
    Xanthia --> Edit Theme --> Theme Templates --> Reload Template.

    Well, as far as I know, that is it.
    I hope this help anyone needing assistance in .750 banners.

    Hi like to use this tutorial but the credical image part of this page is gone can someone updat please.??? thanks icon_confused
  • Link to this postingPosted: 13.01.2008, 04:51
    Profile
    gmdistributor
    rank:
    pnFreshman pnFreshman
    registered:
     December 2007
    Status:
    offline
    last visit:
    22.01.08
    Posts:
    33

    WHERE ON THE MASTER ? AND HOME HTML DO YOU INSERT THE FOLLOWING CODE ?? TO SHOWUP THE BANNERS???? WHAT PART OF THE PAGE ?

    SpitfireTNNevermind, found the missing link... You need to add...

    Code
    <!--[pnbannerdisplay id=0]-->


    to the Xanthia theme to get the banners to show up!

  • Link to this postingPosted: 13.01.2008, 06:02
    Profile Homepage
    AmmoDump
    rank:
    pnProfessional pnProfessional
    registered:
     December 2003
    Status:
    offline
    last visit:
    08.05.08
    Posts:
    2635
    Wherever you want them to show up...

    somewhere between body and /body

    -----
    -- David Pahl -- (PostNuke Support Team)

    <div id="me" class="none" style="none" />

  • Link to this postingPosted: 14.01.2008, 22:34
    Profile
    gmdistributor
    rank:
    pnFreshman pnFreshman
    registered:
     December 2007
    Status:
    offline
    last visit:
    22.01.08
    Posts:
    33
    AmmoDumpWherever you want them to show up...

    somewhere between body and /body





    edited by: gmdistributor, Jan 15, 2008 - 12:48 AM
  • Link to this postingPosted: 15.01.2008, 00:51
    Profile
    gmdistributor
    rank:
    pnFreshman pnFreshman
    registered:
     December 2007
    Status:
    offline
    last visit:
    22.01.08
    Posts:
    33
    gmdistributor
    AmmoDumpWherever you want them to show up...

    somewhere between body and /body

    edited by: gmdistributor, Jan 15, 2008 - 12:48 AM

    Hi im running PostNuke-0.800-RC2-FULL ,sorry i have a new big problem icon_confused :important: HOW do you make the (impressions to showup in admin and client admin ?)in the admin pannle :it dosenot count impressions at all and dosenot show clients name in no active banners

    also you cannot delet client. you have to reinstall mobual to get rid of them geta message saying
    message says,sorry deletion failed ,,
    ID Impressions Imp. left Clicks % clicks Client name Options



    edited by: gmdistributor, Jan 15, 2008 - 12:57 AM
  • Link to this postingPosted: 15.01.2008, 23:58
    Profile
    gmdistributor
    rank:
    pnFreshman pnFreshman
    registered:
     December 2007
    Status:
    offline
    last visit:
    22.01.08
    Posts:
    33
    trying to install banners and Formicula on 764pn and get these two erros????? icon_confused

    Fatal error: Class 'DBUtil' not found in /home/content/g/m/d/gmd1036/html/modules/Banners/pntables.php on line 23

    Fatal error: Class 'DBUtil' not found in /home/content/g/m/d/gmd1036/html/modules/formicula/pntables.php on line 30




    edited by: gmdistributor, Jan 15, 2008 - 11:58 PM
  • Link to this postingPosted: 16.01.2008, 11:09
    Profile Homepage
    videokid
    rank:
    pnProfessional pnProfessional
    registered:
     March 2003
    Status:
    offline
    last visit:
    07.05.08
    Posts:
    806
    You're using the wrong versions.
    PostNuke 0.7.6.4 comes with a core 'Banners'.
    You have to use Formicula 1.x, not version 2 [this is only for the 0.8.x version].

    The 'DBUtil' class is post-PN 0.7.6.x.

    - Igor

    -----
    Have a nice day
    PostNuke.be is currently running
    PN 0.8.0.0-RC3
  • Link to this postingPosted: 17.01.2008, 00:19
    Profile
    gmdistributor
    rank:
    pnFreshman pnFreshman
    registered:
     December 2007
    Status:
    offline
    last visit:
    22.01.08
    Posts:
    33

    Hi im now running PN 764 with seabreeze theme and on settings where you have to put info for footer i put banner display code and dose not showup i also put same in homehtm and master htm still nothing what do you think??


    SpitfireTNNevermind, found the missing link... You need to add...

    Code
    <!--[pnbannerdisplay id=0]-->


    to the Xanthia theme to get the banners to show up!

Start ::  PostNuke 0.7 Support ::  Tutorials and Solutions ::  Making Banners Work Properly in PostNuke v.750

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to PostNuke