Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • ukfraternite Friend
    #136573

    Hello,

    I have seen these modules on Olivine Template.
    Latest News and
    Popular News

    I 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 Friend
    #284359

    can anyone help, please?

    scotty Friend
    #284366

    The 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 Friend
    #284381

    The 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 Friend
    #290107

    I 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.


    1. untitled
    questbg Friend
    #290111

    I 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
    Chris

    ukfraternite Friend
    #290675

    I have enabled those but my main interest is on the mixture of colours on the title.

    Just like this: Latest News

    questbg Friend
    #290676

    Ah. 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
    Chris

    sunrise Friend
    #290692

    I 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 Friend
    #291095

    Any idea, please?

    anisjolly Friend
    #291152

    just 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:

    http://extensions.joomla.org

    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 Friend
    #291256

    ukfraternite;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.

    ukfraternite Friend
    #291402

    Hi Scotty,

    Your explanation was of great help. I would like to say THANK YOU again.

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

This topic contains 13 replies, has 5 voices, and was last updated by  ukfraternite 15 years, 9 months ago.

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