-
AuthorPosts
-
ukfraternite Friend
ukfraternite
- Join date:
- May 2008
- Posts:
- 294
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 61
- Thanked:
- 10 times in 1 posts
December 29, 2008 at 2:57 pm #136573Hello,
I have seen these modules on Olivine Template.
Latest News and
Popular NewsI would like to incorporate these modules into my Teline 2. I tried to make a custom html but I found out they are not the same.
Also, as you can see, the title of the module “Latest News” has 2 colours: Grey and Orange. Same as Polupar news. Also, the Latest News and the Popular can display small pictures.
Please reply. Thank you in addvance.
ukfraternite Friendukfraternite
- Join date:
- May 2008
- Posts:
- 294
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 61
- Thanked:
- 10 times in 1 posts
December 31, 2008 at 12:49 am #284359can anyone help, please?
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
December 31, 2008 at 2:52 am #284366The modules you are looking for come pre-installed in Joomla. You just have to enable them and publish them to a module position and set them to display on whichever pages you want.
sunrise Friendsunrise
- Join date:
- February 2007
- Posts:
- 920
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 103
- Thanked:
- 166 times in 114 posts
December 31, 2008 at 8:05 am #284381The modules come with each of the templates you are referring to. If you want a module that is not in the template you want to use, take that template from the extentions folder from the template that has that extension. Install it into the new template you are using. The assing that module to the module position you want it to have. Some modules also have some css code that goes with them. Then go to the template.css file, find the section that refers to the module you are using and copy it to the new template.css file. Then make any adjustments to color or size that might be needed in the css. I hope this is a help. I had to to the same when I wanted Higslide in a site with Fagus template. It took a while to find out how, but it worked. Good luck!
ukfraternite Friendukfraternite
- Join date:
- May 2008
- Posts:
- 294
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 61
- Thanked:
- 10 times in 1 posts
February 8, 2009 at 2:36 pm #290107I have to say, I tried to follow the instructions but I got lost and confused.
Could I, please, have a simpler explanation as I am not an expert in this? Maybe a step-by-step.
What I am more interested in is the 2 colours: Grey and Orange. see attachment.
questbg Friendquestbg
- Join date:
- May 2008
- Posts:
- 1912
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 146
- Thanked:
- 339 times in 197 posts
February 8, 2009 at 2:53 pm #290111I can’t help with the colour issue, however, in Telline II, if you go to Module Manager you should have two modules:
“Latest”
“Popular”Which are set to publish into User6 position (the mootabs). Enable them and see what happens!
Cheers
Chrisukfraternite Friendukfraternite
- Join date:
- May 2008
- Posts:
- 294
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 61
- Thanked:
- 10 times in 1 posts
February 11, 2009 at 2:14 pm #290675I have enabled those but my main interest is on the mixture of colours on the title.
Just like this: Latest News
questbg Friendquestbg
- Join date:
- May 2008
- Posts:
- 1912
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 146
- Thanked:
- 339 times in 197 posts
February 11, 2009 at 2:25 pm #290676Ah. I’m busy at the mo but I imagine this is in the mootabs .css file? I’ll try dig around later if you haven’t found it by then!
Cheers
Chrissunrise Friendsunrise
- Join date:
- February 2007
- Posts:
- 920
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 103
- Thanked:
- 166 times in 114 posts
February 11, 2009 at 3:48 pm #290692I immagine that if you want to have two words with different colors in the same heading, it will create some problems since they usually would be under the same H3 or same div. They would have to be divided up somehow, but I don’t know how I would do that. The module headings are usually treated as one item. Any ideas anyone?
ukfraternite Friendukfraternite
- Join date:
- May 2008
- Posts:
- 294
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 61
- Thanked:
- 10 times in 1 posts
February 13, 2009 at 11:31 am #291095Any idea, please?
anisjolly Friendanisjolly
- Join date:
- April 2008
- Posts:
- 661
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 33
- Thanked:
- 96 times in 55 posts
February 13, 2009 at 3:37 pm #291152just out of curiosity – if you’re looking for slightly more advanced modules and components which allow you to do what you want as explained above, then just visit:
you’ll find tons of them there. I personally don’t use the latest news module which comes pre-installed as it limits me from doing certain things – which i’d like, so I use a different one with advanced features.
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
February 13, 2009 at 11:43 pm #291256ukfraternite;111258I have enabled those but my main interest is on the mixture of colours on the title.
Just like this: Latest News
This is done with javascript.
BACKUP FIRST!Step one: Open templates/ja_teline_ii/js/ja.script.js and find…
function preloadImages () {
var imgs = new Array();
for (var i = 0; i < arguments.length; i++) {
var imgsrc = arguments;
imgs = new Image();
imgs.src = imgsrc;
}
}
On a new blank line after paste…
//Add span to module title
function addSpanToTitle () {
//var colobj = document.getElementById ('ja-col');
//if (!colobj) return;
var modules = getElementsByClass ('module.*', null, "div");
if (!modules) return;
for (var i = 0; i<modules.length; i++) {
var module = modules;
var title = module.getElementsByTagName ("h3")[0];
if (title) {
text = title.innerHTML;
var pos = text.indexOf(' ');
if (pos!=-1) {
title.innerHTML = "<span>"+text.substr(0,pos)+"</span>"+text.substr(pos);
}else{
title.innerHTML = "<span>"+text+"</span>";
}
}
}
}
Step two: Open templates/ja_teline_ii/index.php and at the very end find…
</body>
</html>
Change to…
<script type="text/javascript">
addSpanToTitle();
</script>
</body></html>
Step three: Open templates/ja_teline_ii/css/template.css and find on line 792…
/* HEADER
--------------------------------------------------------- */
and change to…
div.moduletable h3 span,
div.moduletable_menu h3 span,
div.moduletable_text h3 span,
div.moduletable_hilite h3 span {
color: #A0522D;
}/* HEADER
--------------------------------------------------------- */
This will not work if the module title is a link.1 user says Thank You to scotty for this useful post
ukfraternite Friendukfraternite
- Join date:
- May 2008
- Posts:
- 294
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 61
- Thanked:
- 10 times in 1 posts
February 14, 2009 at 5:51 pm #291402Hi Scotty,
Your explanation was of great help. I would like to say THANK YOU again.
AuthorPostsViewing 13 posts - 1 through 13 (of 13 total)This topic contains 13 replies, has 5 voices, and was last updated by ukfraternite 15 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Need some modules
Viewing 13 posts - 1 through 13 (of 13 total)