test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • kenneth Friend
    #117547

    I really like the Cool Ads Module that is shown in Pollux. I’d like to use it on another site using the Avior template which my customer prefers graphically.

    Any way this can be done? If so, what would be the module and parameter setting for this template as the settings for Pollux (in the user guide) don’t work.

    Thanks in advance for your feedback! 🙂

    ha le-viet Developer
    #211426

    Hi kenneth,

    You need to perform a little hack to your template to make JA CoolAds work. Here’s the steps:

    1. Choose an unique position and assign it to JA CoolAds. In Pollux, it’s user5.
    2. Add these codes to your template’s index.php, where you want the ads to be appeared

    <?php if (mosCountModules('user5')) { ?>
    <div id="ja-coolads">
    <?php mosLoadModules('user5', -2); ?>
    </div>
    <?php } ?>

    3. Add these codes to your template_css.css file:

    /* JA CoolAds Module */
    #ja-coolads {
    height: 0;
    overflow: hidden;
    position: relative;
    }

    #ja-coolads-container {
    overflow: hidden;
    margin-right: 5%;
    }

    #ja-coolads-container div.moduletable {
    overflow: hidden;
    }

    Remember, if you did choose ‘user5’ for CoolAds, don’t add this position to the module list parameter of CoolAds because it will hang your webserver once run. Hope this helps.
    Regards,
    Ha Le-Viet.

    kenneth Friend
    #211468

    Hello,

    Can you clarify something for me in your message.

    “1. Choose an unique position and assign it to JA CoolAds. In Pollux, it’s user5.”

    In Avior there isn’t a ‘user5’ position. To get this module to appear in the same position (above the heading and content) just like Pollux, wouldn’t Avior need the same thing?

    If so, how do you make that happen?

    Thanks for the help.

    ha le-viet Developer
    #211473

    Hi Kenneth,

    If in Avior, there’s no ‘user5’ position, and your site doesnt have any module with ‘user5’ position, so ‘user5’ is unique 😉 So you just need to add the code to right above the load of ‘mainbody’ in the index.php file. It’s normally between

    <div id="pathway"><?php mosPathway(); ?></div>
    ...
    <?php mosMainBody(); ?>

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  ha le-viet 18 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum