test
Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • bootdisk Friend
    #358859

    <em>@tienhc 197249 wrote:</em><blockquote>To create a new position, now you go to the module manager => you create a new banner module => you type this name into the position parameter and save or follow to this entry http://docs.joomla.org/How_do_you_add_a_new_template_position%3F</blockquote>

    Hello, I would like to add a new module position to the ja_social template – following the instructions in the above post makes sense, IF you know which PHP page you need to edit!

    The /ja_social/template/index.php file contains no such code, merely code that builds the framework.

    Can you please indicate what PHP file I need to edit?

    To be even more specific, I am looking to add ‘bottom’ above the user 6/7/8/9/10 positions, in the same ‘area’ (ie the white panel) as the left/right positions. It should be as wide as the corresponding article that would appear above it.

    Thanks!

    Lee

    Saguaros Moderator
    #358885

    <em>@bootdisk 198364 wrote:</em><blockquote>Hello, I would like to add a new module position to the ja_social template – following the instructions in the above post makes sense, IF you know which PHP page you need to edit!

    The /ja_social/template/index.php file contains no such code, merely code that builds the framework.

    Can you please indicate what PHP file I need to edit?

    To be even more specific, I am looking to add ‘bottom’ above the user 6/7/8/9/10 positions, in the same ‘area’ (ie the white panel) as the left/right positions. It should be as wide as the corresponding article that would appear above it.

    Thanks!

    Lee</blockquote>
    Please follow to the post: #2 http://www.joomlart.com/forums/topic/module-place-for-banner-at-search-position/#post-357783

    Saguaros Moderator
    #358886

    <em>@msilac 198021 wrote:</em><blockquote>Now looks ok, but why is that red background at this module??

    And can it be 5-10 pix moved from logo?</blockquote>

    #ja-leftopbanner {
    background:none repeat scroll 0 0 red;
    bottom:40px;
    height:50px;
    position:absolute;
    right:0;
    width:468px;
    }

    you add value for the bottom attribute of this block http://www.joomlart.com/forums/topic/module-place-for-banner-at-search-position/#post-357783

    msilac Friend
    #359154

    When I change bottom:40; to (for example 60px9)
    the banner goes up

    When I change right:0; (for example 5px)
    the banner goes like in attachment

    What is wrong? I just want to move that module from logo to right for 5-10pix.


    1. banner_position_problem
    wicklert Friend
    #359275

    <em>@tienhc 196964 wrote:</em><blockquote>you open the file: templatesja_socialblocksheader.php and find the following code:
    [PHP] <?php $this->genBlockEnd ($block) ?>[/PHP]
    replace:
    [PHP]
    <?php if($this->countModules(‘lefttop’)) : ?>
    <div id=”ja-leftopbanner”>
    <jdoc:include type=”modules” name=”lefttop” />
    </div>
    <?php endif; ?>
    <?php $this->genBlockEnd ($block) ?>
    [/PHP]
    </blockquote>

    The code in header.php is on line 17 AND 41…….just replace only the code on line 41.

    wicklert Friend
    #359276

    <em>@msilac 198021 wrote:</em><blockquote>Now looks ok, but why is that red background at this module??

    And can it be 5-10 pix moved from logo?</blockquote>
    <em>@tienhc 198392 wrote:</em><blockquote>
    #ja-leftopbanner {
    background:none repeat scroll 0 0 red;
    bottom:40px;
    height:50px;
    position:absolute;
    right:0;
    width:468px;
    }

    </blockquote>

    Remove “red” in line 2 (background).

    msilac Friend
    #359300

    OK, that’s work.

    And about moving banner from logo for 5-10 pix. here is my attachment. Is that ok?


    1. code
    wicklert Friend
    #359302

    <em>@msilac 198908 wrote:</em><blockquote>And about moving banner from logo for 5-10 pix. here is my attachment. Is that ok?</blockquote>If I was you, I should reduce the large image a few px’s….!!

    Moving banner will show them outside main template boundaries. Asking myself if that would be neat…!!

    Editing must be done in template.css, not in header.php,


    1. joomlart
    msilac Friend
    #359306

    That’s do the trick! Thank you!

Viewing 9 posts - 16 through 24 (of 24 total)

This topic contains 24 replies, has 4 voices, and was last updated by  msilac 14 years, 2 months ago.

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