-
AuthorPosts
-
November 4, 2006 at 1:05 am #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 Developerha le-viet
- Join date:
- April 2006
- Posts:
- 415
- Downloads:
- 0
- Uploads:
- 26
- Thanked:
- 5 times in 1 posts
November 4, 2006 at 2:16 am #211426Hi 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.November 6, 2006 at 6:50 pm #211468Hello,
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 Developerha le-viet
- Join date:
- April 2006
- Posts:
- 415
- Downloads:
- 0
- Uploads:
- 26
- Thanked:
- 5 times in 1 posts
November 7, 2006 at 2:22 am #211473Hi 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(); ?> -
AuthorPosts
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