Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Adding frame ( mask ) to slider
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: Adding frame ( mask ) to slider
#33768
Re:Adding frame ( mask ) to slider 12 Years, 1 Month ago Karma: 0
I upload an print-screen to view. I want a mask ..(frame) behind the slideshow
Last Edit: 2012/11/06 16:07 By topy.
The administrator has disabled public write access.
 
#33771
Re:Adding frame ( mask ) to slider 12 Years, 1 Month ago Karma: 760
Decrease width to of the slider to 898 (it is necessary to resize image too) or increase width of container in site template and add the following CSS rule:

Code:


#latestnews .ari-image-slider-wrapper
{
 border: 1px solid yellow;
}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#39442
Re:Adding frame ( mask ) to slider 11 Years, 8 Months ago Karma: 0
Can u please check this site out
GusDoeMatik

I'm trying to put a frame/mask on the slider... It sort of works.. but the frame is behind the slider I want it on top...

How can I do this?

this is my CSS
Code:



._gdm {
background: url(images/layoutObjects/cityGrungeFrame.png) no-repeat;
width: 971px;
height: 480px;
margin-right: auto;
margin-left: auto;
padding-top: 73px;
padding-left: 10px;
display: block;
}

The administrator has disabled public write access.
 
#39452
Re:Adding frame ( mask ) to slider 11 Years, 8 Months ago Karma: 0
Ok I learned how to do this myself.. lol and I don't know coding...

So for anyone that wants to do this I have a step by step instruction guide.

First you need to locate this file:
modules/mod_ariimageslider/tmpl/default.php

We are going to edit this file by adding 2 divs into this file.

so find and locate:
Code:

$theme = $params->get('theme');
if (empty($theme))
$theme = 'default';
$controlNav = (bool)$params->get('opt_controlNav');
?>


right after that line of code insert this:
Code:

<div id="<?php echo $sliderId; ?>_frameHolder"> 


Next you will scroll all the way to the bottom of the document and find this code:
Code:

<?php
endif; 
?>
</div>

And then you will insert this code right after it:
Code:

<div id="<?php echo $sliderId; ?>_myFrame"></div>
</div>


Then save the file...

So now your code should look like this:
Code:

<?php
/*
 * ARI Image Slider Joomla! module
 *
 * @package ARI Image Slider Joomla! module.
 * @version 1.0.0
 * @author ARI Soft
 * @copyright Copyright (c) 2009 www.ari-soft.com. All rights reserved
 * @license GNU/GPL (http://www.gnu.org/copyleft/gpl.html)
 * 
 */

defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.');

$baseUri = JURI::base(true);
$cssClass = $params->get('cssClass');
$startSlide = intval($params->get('opt_startSlide'), 10);
$enableNav = (bool)$params->get('opt_controlNav');
$slideCnt = count($slides);
if ($startSlide < 0 || $startSlide > $slideCnt - 1) $startSlide = 0;

$theme = $params->get('theme');
if (empty($theme))
$theme = 'default';
$controlNav = (bool)$params->get('opt_controlNav');
?>
<div id="<?php echo $sliderId; ?>_frameHolder">
<div id="<?php echo $sliderId; ?>_wrapper" class="ari-image-slider-wrapper ari-is-theme-<?php echo $theme; ?><?php if ($cssClass):?> <?php echo $cssClass; ?><?php endif; ?><?php if ($controlNav):?> ari-image-slider-wCtrlNav<?php endif; ?>">
<div id="<?php echo $sliderId; ?>" class="ari-image-slider nivoSlider">
<?php
$slideIdx = 0;
foreach ($slides as $slide):
$isLink = !empty($slide['link']);
$imgAttrs = $slide['imgAttrs'];

if ($slideIdx != $startSlide)
{
if (!isset($imgAttrs['style']))
$imgAttrs['style'] = array();
$imgAttrs['style']['display'] = 'none';
}
?>
<?php
if ($isLink):
?>
<a<?php echo AriHtmlHelper::getAttrStr($slide['lnkAttrs']); ?>>
<?php
endif;
?>
<img<?php echo AriHtmlHelper::getAttrStr($imgAttrs); ?> />
<?php
if ($isLink):
?>
</a>
<?php
endif; 
?>
<?php
++$slideIdx;
endforeach;
?>
</div>
<?php
if ($enableNav):
?>
<div class="nivo-controlNavHolder">
<div class="nivo-controlNav">
<?php
$slideIdx = 0;
foreach ($slides as $slide):
$thumbNav = !empty($slide['nav']);
$nav = $thumbNav ? $slide['nav'] : null;
$navEl = $thumbNav ? '<img' . AriHtmlHelper::getAttrStr(array('src' => $nav['image'], 'width' => $nav['width'], 'height' => $nav['height'], 'alt' => $nav['alt'])) . '/>' : $slideIdx;
?>
<a rel="<?php echo $slideIdx; ?>" class="nivo-control<?php if ($startSlide == $slideIdx):?> active<?php endif; ?>">
<span<?php echo AriHtmlHelper::getAttrStr(array('style' => array('width' => $nav['width'] . 'px', 'height' => $nav['height'] . 'px'), 'class' => 'nivo-thumbNavWrapper')); ?>>
<?php echo $navEl; ?>
<span class="nivo-arrow-border"></span>
<span class="nivo-arrow"></span>
</span>
</a>
<?php
++$slideIdx;
endforeach; 
?>
</div>
</div>
<?php
endif; 
?>
</div>
<div id="<?php echo $sliderId; ?>_myFrame"></div>
</div>



Then in the actual module you will place your own custom CSS code:

Code:


#ais_104_frameHolder {
width: 971px;
height: 460px;
position: relative;
margin-right: auto;
margin-left: auto;
top: 30px;
}
#ais_104_myFrame {
width: 971px;
height: 480px;
background: url(images/layoutObjects/cityGrungeFrame.png) no-repeat;
display: block;
z-index: 10000;
position: absolute;
bottom: 25px;
float: left;
}



ais_104 is a unique code for each ARI Image Slider that is created. that way you can put a DIFFERENT custom frame OVER each ARI Image Slider threw out your site...

NOTE: In order to find the unique code you will have to publish the page, view source code and search for _myFrame or _frameHolder and in front of each will be the unique code.

Also you will need to edit the css code above just a tiny bit to match your particular FRAME/MASK that you intend to place over your slider... So if you got this far the rest should be easy...

It would be cool if ARI adds that line of code into the actual ARI Image Slider, and give us a way to view the unique code, that's generated, in the module itself so we don't have to go digging for it...

I hope you guys enjoy this...
Last Edit: 2013/04/09 08:18 By GusDoeMatik.Reason: grammer
The administrator has disabled public write access.
 
#39453
Re:Adding frame ( mask ) to slider 11 Years, 8 Months ago Karma: 0
Also 1 more thing... I tried to save the CSS that I made into a custom theme and it won't work!!!

But it works if the Custom CSS is placed in the module... I think that should be fixed too to some how force joomla to read the theme CSS before anything else that way it will display... and that way i can save all my themes in the and save me time... plus themes could be shared...
The administrator has disabled public write access.
 
#39462
Re:Adding frame ( mask ) to slider 11 Years, 8 Months ago Karma: 760
Hello,

Where do you save your CSS styles and what exactly doesn't work?

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 123