Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Bob Meetin Friend
    #171631

    See example page at: http://jtest.us/joomlart/index.php?option=com_content&view=article&id=48&Itemid=53

    With the way Droid is designed the fancy corners, top and bottom are a function of either enabling user1-3for the top and user7-10 for the bottom.

    By hacking the default.php file at: ~/www/joomlart/plugins/system/jat3/base-themes/default/page (normally the path is: ~/www/plugins/system/jat3/base-themes/default/page). I added the following lines to the page between container and middle:

    <div id=”ja-container” class=”wrap <?php echo $this->getColumnWidth(‘cls_w’)?$this->getColumnWidth(‘cls_w’):’ja-mf’; ?>”>

    <div id="ja-topsl" class="wrap "> <!-- Beginning of custom top box -->
    <!-- <div id="ja-botsl"><div class="main-inner4"> -->
    <div class="main-inner4">
    <div class="main-inner5">

    <?php $this->genBlockBegin ($this->getBlocksXML (‘middle’)) ?>

    This CSS:

    #ja-container .main-inner4 { background: url(../images/botsl-left.png)
    no-repeat 5px bottom;
    }
    #ja-container .main-inner5 {
    background: url(../images/botsl-right.png) no-repeat right bottom;
    }

    This got the effect I wanted at the top which surprised me, but the bottom fails and the 2 corner .png images float to the left or right depending on the width of the page. I tried messing with the margins in the css, but no help. What next?

    Related to this need, I am going to have to write an if statement to account for which pages to apply the effect or not, probably based upon the existence (or not) of user1, user2, or user3.

    What PHP check can I add to test to see whether any of these modules are enabled on the page in question? i.e.

    if ( $user1 ) { do this; } else { sleep; }

    I know how to use things like
    $component_option = JRequest::getVar('option');
    to get a component option, etc, but how to you check for a specific module by name, not position?

    Bob Meetin Friend
    #429098

    Anyone??? Even if I don’t get the bottom corners working correctly I could really use help with the joomla php code to check/see if the module (by name, user1, user2, user3, etc) is there? I posted a similar request on the Joomla forum many months ago and no one replied. This can’t be that difficult. maybe I should Tweet it?

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

This topic contains 2 replies, has 1 voice, and was last updated by  Bob Meetin 12 years, 11 months ago.

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