Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • 5268311 Friend
    #192497

    Hi! I need to insert a banner module position. please see the image attach.

    Thanks for your help


    1. banner_position
    pavit Moderator
    #513297

    Hi

    In this file templatesja_teline_iiiblocksheader.php

    now you have at line 17

    [PHP] <?php $this->genBlockBegin ($block) ?>
    <div class=”inner clearfix”>
    <?php[/PHP]

    add a new block as showed below

    [PHP] <?php $this->genBlockBegin ($block) ?>
    <div class=”inner clearfix”>
    <?php if($this->countModules(‘banner1’)) : ?>
    <div id=”ja-banner1″>
    <jdoc:include type=”modules” name=”banner1″ />
    </div>
    <?php endif; ?>
    <?php[/PHP]

    where banner1 is your module name

    Then in this file templatesja_teline_iiitemplateDetails.xml add the new position

    <position>banner1</position>

    Then to customize css for your new position add this at the end of your templatesja_teline_iiicsstemplate.css

    #ja-banner1 {
    HERE your customization as background image
    }

    5268311 Friend
    #513970

    thank you very much!!! for your Help!!!

    regards

    5268311

    mjandia Friend
    #516072

    Hello,

    I’ve tried your solution to put banner in the position of ” 5268311 “. That runs congratulation but It remains one thing in the template. You said : Then to customize css for your new position add this at the end of your templatesja_teline_iiicsstemplate.css

    #ja-banner1 {
    HERE your customization as background image
    }

    But i don’t know what add because it’s not an image but these code as a banner :

    <object style=”display: block; margin-left: auto; margin-right: auto;” width=”690″ height=”85″ data=”flashvortex.swf” type=”application/x-shockwave-flash”><param name=”quality” …………………………<param name=”pluginspage” value=”http://www.macromedia.com/go/getflashplayer” /><param name=”allowscriptaccess” value=”sameDomain” /></object>

    May you help me please because I have that error :

    Thank you for your help.
    Regards


    1. banner
    pavit Moderator
    #516086

    Hi

    You need to create a custom-html module – inside it add the code you posted above and then publish it in the banner1 position

    First to add your content in the custom-html module disable your editor from the global configuration settings

    then save it and enable again the editor

    mjandia Friend
    #516087

    But I have error in template as shown in the screenshot and it not depend on how to make a custom module.

    Regards

    TomC Moderator
    #516097

    mjandia:

    Perhaps THIS TUTORIAL may be of some further assistance to you.

    mjandia Friend
    #516098

    As I wrote I dont’t know how code I have to put in that following line :

    #ja-banner1 {
    HERE your customization as background image
    }

    I’ve tried a lot of code and it doesn’t run. Thank for your help.

    TomC Moderator
    #516100

    <em>@mjandia 402813 wrote:</em><blockquote>As I wrote I dont’t know how code I have to put in that following line :

    </blockquote>

    You don’t need to know how to code . . . that’s why I wrote the tutorial I posted above.
    Read through it – I think you will (should) be able to follow along and understand the process.

    In fact, you’re in more luck, because the tutorial uses the Teline template as an example. 🙂

    pavit Moderator
    #516103

    <blockquote>As I wrote I dont’t know how code I have to put in that following line </blockquote>

    You don’t need to add nothing in the template.css file
    The style for your module is already contained in the code you posted above , so you need only of the new position created then add a custom-html module containing your code and publish the module in the banner1 position

    mjandia Friend
    #516104

    Sorry but I did that what wrong with the following code please :
    div class="inner clearfix">

    that appears in my website in frontpage and also all pages. The date at the top is on the left position as you can see in screenshot.
    Thank you for your help.

    Regards

    pavit Moderator
    #516106

    check correctly the code seems that a closure for the div is missing

    Also would be better if you send via Private Message a super user account to your backend in this way i can better check what is happening

    mjandia Friend
    #516108

    My responsability. Thank you. You’re right. The
    <
    was missing. All is fine now. For my part, post closed.

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

This topic contains 13 replies, has 4 voices, and was last updated by  mjandia 10 years, 11 months ago.

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