-
AuthorPosts
-
ncarter Friend
ncarter
- Join date:
- July 2012
- Posts:
- 72
- Downloads:
- 2
- Uploads:
- 7
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
April 11, 2013 at 10:11 pm #186686I 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 Friendinternetix
- Join date:
- January 2012
- Posts:
- 27
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 4 times in 1 posts
April 12, 2013 at 6:11 am #489635I double that request . Maybe someone can write some instructions on how to implement corner-stamp manually ..
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 12, 2013 at 9:50 am #489659Hi,
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 Friendncarter
- Join date:
- July 2012
- Posts:
- 72
- Downloads:
- 2
- Uploads:
- 7
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
April 12, 2013 at 12:43 pm #489675Thank you very much for that Saguaros, I will be waiting for this guide.
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
April 16, 2013 at 2:00 am #489972Hi,
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.jsThe 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
1 user says Thank You to Wall Crasher for this useful post
ncarter Friendncarter
- Join date:
- July 2012
- Posts:
- 72
- Downloads:
- 2
- Uploads:
- 7
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
April 25, 2013 at 11:03 pm #491071Thanks for the support, will try to implement soonest. Thanks again.
John Wesley Brett ModeratorJohn Wesley Brett
- Join date:
- July 2013
- Posts:
- 2142
- Downloads:
- 17
- Uploads:
- 26
- Thanks:
- 175
- Thanked:
- 645 times in 426 posts
June 14, 2013 at 2:00 pm #495910As 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!
1 user says Thank You to John Wesley Brett for this useful post
-
AuthorPosts
This topic contains 7 replies, has 5 voices, and was last updated by John Wesley Brett 11 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum