Hello Everyone,
Please help me if you could. I manage to upload and get my java script for the banner rotator to work in the promo block.
my images are 468 x 60 pixels
But the promo block is so big --- look urly.
I can live with the width of the promo block ----- BUT THE Height is too height
How do i fix it so the height will be for example 80 pix
here is my site so you cann see what I mean
http://guitarelements.com/index.php
thanks
|
Hello, did you solve your issue with the promo block?
I myself am trying to find out how to control the timing of the images. I want the banner to switch the images a bit faster.
Sometimes communicating your problem and putting it out there is enough to solve it |
i bet deano would have this answer. and i agree with you, this promo area has always irked at me at the size of it.
Hello Everyone,
Please help me if you could. I manage to upload and get my java script for the banner rotator to work in the promo block.
my images are 468 x 60 pixels
But the promo block is so big --- look urly.
I can live with the width of the promo block ----- BUT THE Height is too height
How do i fix it so the height will be for example 80 pix
here is my site so you cann see what I mean
http://guitarelements.com/index.php
thanks
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
Hello
Hello Everyone,
Please help me if you could. I manage to upload and get my java script for the banner rotator to work in the promo block.
my images are 468 x 60 pixels
But the promo block is so big --- look urly.
I can live with the width of the promo block ----- BUT THE Height is too height
How do i fix it so the height will be for example 80 pix
here is my site so you cann see what I mean
http://guitarelements.com/index.php
thanks
I checked your site and as I see you have a number of <br /> and <p> </p> tags before and after the banner. There is no such code in default Dolphin's Promo Block. So, they were added with your custom banner rotator. I recommend you to check the code which was added.
Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV |
Hello
Hello, did you solve your issue with the promo block?
I myself am trying to find out how to control the timing of the images. I want the banner to switch the images a bit faster.
You need to edit inc/design.inc.php file and find getPromoCode function. Then you need to find the following code in the function
<script type="text/javascript"> $(document).ready( function() { $('#indexPhoto').dolPromo(8000, 1500); } ); </script>
Then replace 8000 with your own number.
Note. It should be greater then 1500.
Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV |
Hello
Hello, did you solve your issue with the promo block?
I myself am trying to find out how to control the timing of the images. I want the banner to switch the images a bit faster.
You need to edit inc/design.inc.php file and find getPromoCode function. Then you need to find the following code in the function
<script type="text/javascript"> $(document).ready( function() { $('#indexPhoto').dolPromo(8000, 1500); } ); </script>
Then replace 8000 with your own number.
Note. It should be greater then 1500.
Hello Anton, I have 7.0.9 and didn't find the code you mentioned. This is what I found on my
inc/design.inc.php :
function getPromoImagesArray() {
global $dir;
$aAllowedExt = array('jpg' => 1, 'png' => 1, 'gif' => 1, 'jpeg' => 1);
$aFiles = array();
$rDir = opendir( $dir['imagesPromo'] );
if( $rDir ) {
while( $sFile = readdir( $rDir ) ) {
if( $sFile == '.' or $sFile == '..' or !is_file( $dir['imagesPromo'] . $sFile ) )
continue;
$aPathInfo = pathinfo($sFile);
$sExt = strtolower($aPathInfo['extension']);
if (isset($aAllowedExt[$sExt])) {
$aFiles[] = $sFile;
}
}
closedir( $rDir );
}
shuffle( $aFiles );
return $aFiles;
Sometimes communicating your problem and putting it out there is enough to solve it |
the function name is getPromoCode and its located in BxBaseIndexPageView.php in 7.0.9 so much to do.... |
the function name is getPromoCode and its located in BxBaseIndexPageView.php in 7.0.9
To be exact.. templates\base\scripts\BxBaseIndexPageView.php
At line 479 you will find
$('#indexPhoto').dolPromo(8000, 1500);
Nothing to see here |
Thank you Prashank and Zarcon for your help.
It worked!!!
Sometimes communicating your problem and putting it out there is enough to solve it |