Viewing 7 posts - 31 through 37 (of 37 total)
  • Author
    Posts
  • toloekka Friend
    #423363

    Thanks once again n6rej. 🙂

    Take your time and the day off, you have helped me on the way already. Maybe you can look into this a bit later and I think we are close now. It must be a solution for Category Blog Layout also I think, when it works for Section Blog Layout, Front Page Blog Layout and for Single Article Layout……

    But I have tried this in the blog_item.php file.
    If I delete line 28 in this file:

    <div class="article-image">

    it pushes left and right colums down below the main content again (only in Category Blog Layout for Menu Item “Om oss”).

    and if I delete line 27 to 31:

    <?php if ($image) : ?>
    <div class="article-image">
    <?php echo $image ?>
    </div>
    <?php endif; ?>

    there will be no image at all.

    If I delete line 18 to 26:

    <?php
    //get images
    $regex = '#<img[^>]*>#';
    $image = '';
    if (preg_match ($regex, $this->item->text, $matches)) {
    $image = $matches[0];
    $this->item->text = str_replace ($image, '', $this->item->text);
    }
    ?>

    It seems to OK. But is this a safe way to do it? Do I break up something else and will this give some other problems?

    If I delete the hole blog_item.php file, it also seems to be OK. But I cannot just delete that file???

    I have not done any testing in the blog.php file. Deleting this file did not show me any effect.

    PS! I have done all my testing localy, so the testsite http://www.english.safarimgm.com is still Default regarding php and css files. I can give you login to that site if you want.

    Tom Løkka

    toloekka Friend
    #423718

    Do you have any comments on this n6rej, or maybe someone else?

    Tom Løkka:)

    Phill Moderator
    #423721

    Deleting lines 18 to 26 is fine but you should also be able to get rid of line 27-31 at the same time. That way you will have a clean sheet with regards to images.

    toloekka Friend
    #423723

    OK Phill. 🙂

    I now also deleted line 27-31.

    <?php if ($image) : ?>
    <div class="article-image">
    <?php echo $image ?>
    </div>
    <?php endif; ?>

    It still looks fine and I hope it will continue with that.

    Thanks!
    Tom Løkka

    Phill Moderator
    #423724

    Yep it will. That returns the setup to the default Joomla way of doing images with none of the JA overrides in place.

    The overrides are good for basic users who want everything in a uniform style but some users want more control. Developer members and JAEC members have access to the JA Thumbnail plugin that adds this sort of functionality in a more user controlled way from the Joomla back end. For those users this bit of code is overriden by the plugin.

    toloekka Friend
    #423730

    Thanks again. 🙂

    Maybe I also should be a JAEC member – hmmmm? I will have a look at the extension for the JAEC Club and see if there are many extension that is interesting.

    Tom Løkka

    designorama Friend
    #430459

    I didn’t want the images at all on the front page so on the template.css (JA_community Plus) I added display:none; on the code.
    Like that:
    div.article-image {
    display: none;
    float: left;
    margin: 10px 20px 0 0;
    width: 105px;
    }

Viewing 7 posts - 31 through 37 (of 37 total)

This topic contains 37 replies, has 6 voices, and was last updated by  designorama 12 years, 11 months ago.

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