Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • ncarter Friend
    #186686

    I really need the corner stamp position but I have made countless customizations to my template, so many that I cant remember all of them. As such I don’t wanna upgrade and have to do all that stuff over again. How can I implement this corner stamp position manually???

    internetix Friend
    #489635

    I double that request . Maybe someone can write some instructions on how to implement corner-stamp manually ..

    Saguaros Moderator
    #489659

    Hi,

    This is complicated process since you need to change in some files both php and css code. I will report this to dev team for further consideration to provide a guide for this. Another way you can try is using our JA Extension Manager component to check the update. You can view which file need changing , which one is updated or which new one you need to add and you can decide to update or not.

    Backup your site first before proceeding update

    Regards

    ncarter Friend
    #489675

    Thank you very much for that Saguaros, I will be waiting for this guide.

    Wall Crasher Developer
    #489972

    Hi,

    I do not know which version you are using. So this is a general guide.
    You should BACKUP your site before process.

    This block code below is try to load the corner-stamp position:

    $document = JFactory::getDocument();
    $renderer = $document->loadRenderer('module');
    $modules = JModuleHelper::getModules(_CORNER_STAMP_POS);
    $params = array('style' => 'JAxhtml');
    $csexclass = JFactory::getApplication()->getTemplate(true)->params->get('jawall_cs_class', '');

    if(count($modules)) {
    echo
    '<div class="corner-stamp', (!empty($csexclass) ? ' ' . $csexclass : ''), '">',
    '<div class="corner-inner">';

    foreach ($modules as $module) {
    echo $renderer->render($module, $params);
    }

    echo
    '</div>',
    '</div>';
    }

    Now, you need to find the “masonry-container” block and insert the block code above to it.
    Just like this.
    templatesja_wallhtmlcom_contentcategoryblog.php

    <div id="masonry-container" class="clearfix">
    <?php
    $document = JFactory::getDocument();
    $renderer = $document->loadRenderer('module');
    $modules = JModuleHelper::getModules(_CORNER_STAMP_POS);
    $params = array('style' => 'JAxhtml');
    $csexclass = JFactory::getApplication()->getTemplate(true)->params->get('jawall_cs_class', '');

    if(count($modules)) {
    echo
    '<div class="corner-stamp', (!empty($csexclass) ? ' ' . $csexclass : ''), '">',
    '<div class="corner-inner">';

    foreach ($modules as $module) {
    echo $renderer->render($module, $params);
    }

    echo
    '</div>',
    '</div>';
    }
    ?>

    There will be total 11 “masonry-container” blocks in JA Wall, you should search in entire folder “templatesja_wallhtml”

    For javascript, just copy the latest javascript files and replace existing one.
    templatesja_walljswall.js
    templatesja_walljsscript.js

    The last step:
    You need to open templatesja_walltemplateDetails.xml and add this line

    <field name="jawall_cs_class" type="text" default="" label="JAWALL_CORNER_STAMP_EXCLASS" description="JAWALL_CORNER_STAMP_EXCLASS_DESC" />
    just beneath of

    <field name="jawall_autoimg" type="list" default="1" label="JAWALL_AUTOIMG_LABEL" description="JAWALL_AUTOIMG_DESC">
    <option value="1">JYES</option>
    <option value="0">JNO</option>
    </field>

    Add new position:

    <position>corner-stamp</position>

    Open languageen-GBen-GB.tpl_ja_wall.ini and add to the bottom of file.

    JAWALL_CORNER_STAMP_EXCLASS="Corner Stamp Ex Class"
    JAWALL_CORNER_STAMP_EXCLASS_DESC="Enter additional class for Corner Stamp Position, ex: grid-double, hilite, ..."

    Open templatesja_wallcsstemplate.css and add this block to the bottom of file.

    .masonry .corner-stamp {
    float: right;
    max-width: 100%;
    }

    .corner-stamp .corner-inner {
    background: white;
    border: 1px solid white;
    position: relative;
    border-radius: 3px;
    box-shadow: 0 0 2px rgba(0, 0, 0, .1);
    transition: box-shadow .2s ease 0s;
    -o-transition: box-shadow .2s ease 0s;
    -moz-transition: box-shadow .2s ease 0s;
    -webkit-transition: box-shadow .2s ease 0s;

    margin: 5px;
    padding: 0;
    }

    .corner-stamp:hover .corner-inner {
    box-shadow: 0 0 8px 2px rgba(0,0,0,.4);
    }

    Now save and assign the a module to corner-stamp position.
    Hope it helps.

    You should download the latest version of JA Wall and take it as reference.

    Regards

    ncarter Friend
    #491071

    Thanks for the support, will try to implement soonest. Thanks again.

    John Wesley Brett Moderator
    #495910

    As my mother would say, “Let this be a lesson to you, young man!” 🙂

    All of your customizations SHOULD have been added to the TEMPLATES > JA WALL>THEMES>CSS>theme.css file.
    This is the last file loaded when your website is accessed and overrides all previous stylings + it is NEVER overwritten when updating your template.

    Even now you can take your customized CSS sections and copy-and-paste them in the blank-by-default theme.css file, save, upload and then update your template.

    You should never edit core files for the very reason that when bugs are found, and updates delivered, you can keep your site running in tip-top shape. And doing so is Job #1 of keeping your website secure.

    Have fun!

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

This topic contains 7 replies, has 5 voices, and was last updated by  John Wesley Brett 11 years, 5 months ago.

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