Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • imolero Friend
    #161661

    Hi, I need 8 divs for manage the background rounded corners with transparency, 4 in the corners and 4 more in the sides, searching for the solution I found the file modules.php in <host>pluginssystemjat3jat3base-themesdefaulthtmlmodules.php,
    the original function was

    [FONT=”Courier New”]function modChrome_JArounded($module, &$params, &$attribs)
    {
    $badge = preg_match (‘/badge/’, $params->get(‘moduleclass_sfx’))?”<span class=”badge”> </span>n”:””;
    ?>
    <div class=”ja-module ja-box-br module<?php echo $params->get(‘moduleclass_sfx’); ?>” id=”Mod<?php echo $module->id; ?>”>
    <div class=”ja-box-bl”><div class=”ja-box-tr”><div class=”ja-box-tl clearfix”>
    <?php echo $badge; ?>
    <?php if ($module->showtitle != 0) : ?>
    <h3><span><?php echo $module->title; ?></span></h3>
    <?php endif; ?>
    <div class=”jamod-content ja-box-ct clearfix”>
    <?php echo $module->content; ?>
    </div>
    </div></div></div>
    </div>
    <?php
    }
    [/FONT]
    and now is:

    [FONT=”Courier New”]function modChrome_JArounded($module, &$params, &$attribs)
    {
    $badge = preg_match (‘/badge/’, $params->get(‘moduleclass_sfx’))?”<span class=”badge”> </span>n”:””;
    ?>
    <div class=”ja-module ja-box-br module<?php echo $params->get(‘moduleclass_sfx’); ?>” id=”Mod<?php echo $module->id; ?>”>
    <div class=”ja-box-bl”><div class=”ja-box-tr”><div class=”ja-box-th”><div class=”ja-box-bh”><div class=”ja-box-rv”><div class=”ja-box-lv”><div class=”ja-box-tl clearfix”>
    <?php echo $badge; ?>
    <?php if ($module->showtitle != 0) : ?>
    <h3><span><?php echo $module->title; ?></span></h3>
    <?php endif; ?>
    <div class=”jamod-content ja-box-ct clearfix”>
    <?php echo $module->content; ?>
    </div>
    </div></div></div></div></div></div></div>
    </div>
    <?php
    }
    [/FONT]

    what I did is correct???, or is a good practice???, maybe I should copy the file to another path???
    I need some advice, thanks

    thuanlq Friend
    #382687

    Hi Imolero,

    This is correct, but it is not good practice. Please do as following:
    – Copy the file “modules.php” in the folder “pluginssystemjat3jat3base-themesdefaulthtml”, paste to folder “templatesja templatehtml”
    – Custom the file in template folder.

    imolero Friend
    #382746

    really thanks you thuanlq,
    I guess it’s the same procedure with other files
    thanks again, bye

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

This topic contains 3 replies, has 2 voices, and was last updated by  imolero 13 years, 8 months ago.

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