- Posts: 28
- Thank you received: 0
Re: Probelm Right module and central module
-
Eco
Inactive member - Topic Author
- Member
Less
More
12 years 6 months ago #18742
by Eco
Probelm Right module and central module was created by Eco
Hi Milos i want in the Hotdestination i want that the right module and the central module of templetealways give the footer and no stop first
Before thah i insert the Jomres the templete was ok... now the two modules that of the right and the center does not reach the footer
You can see in the attachment this problem ...
Can you help me?
Thanks
Before thah i insert the Jomres the templete was ok... now the two modules that of the right and the center does not reach the footer
You can see in the attachment this problem ...
Can you help me?
Thanks
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 6 months ago #18749
by ivan.milic
Replied by ivan.milic on topic Re: Probelm Right module and central module
If you use ajax loading you must do equalization function in intervals non stop, because template equalizes them on window.load event once ,and if you load some ajax content then equalization must be done again.
When you go to view source of our demo page you can see this:
<script type="text/javascript">
window.onload = function() {
BoxHeights.equalise('c5','c6','c7','c8');
BoxHeights.equalise('c9','c10','c11');
}
</script>
BoxHeights.equalise(<list of element id's>);
if function that equalizes boxes, so you need to see what is on your page and then add something like this in index.php of template below php code that generates that:
jQuery(document).ready(function(){
setTimeout(function(){
BoxHeights.equalise('c5','c6','c7','c8');
BoxHeights.equalise('c9','c10','c11');
},500);
});
this will repeat equalization every half of second.
When you go to view source of our demo page you can see this:
<script type="text/javascript">
window.onload = function() {
BoxHeights.equalise('c5','c6','c7','c8');
BoxHeights.equalise('c9','c10','c11');
}
</script>
BoxHeights.equalise(<list of element id's>);
if function that equalizes boxes, so you need to see what is on your page and then add something like this in index.php of template below php code that generates that:
jQuery(document).ready(function(){
setTimeout(function(){
BoxHeights.equalise('c5','c6','c7','c8');
BoxHeights.equalise('c9','c10','c11');
},500);
});
this will repeat equalization every half of second.
Please Log in to join the conversation.
-
Eco
Inactive member - Topic Author
- Member
Less
More
- Posts: 28
- Thank you received: 0
12 years 6 months ago #18868
by Eco
Replied by Eco on topic Re: Probelm Right module and central module
Hi Milos,
I have done this change:
the original file has this code:
<script type="text/javascript">
window.onload = function() {
<?php if($bottommodules) { ?>
BoxHeights.equalise(<?php if($showuser[5]) { ?>'c1'<?php } if($showuser[6]) { ?><?php if($showuser[5]) { ?>,<?php } ?>'c2'<?php } if($showuser[7]) { ?>,'c3'<?php } if($showuser[8]) { ?>,'c4'<?php } ?>);
<?php } ?>
<?php if($uppermodules) { ?>
BoxHeights.equalise(<?php if($showadvert[1]) { ?>'c5'<?php } if($showadvert[2]) { ?><?php if($showadvert[1]) { ?>,<?php } ?>'c6'<?php } if($showadvert[3]) { ?>,'c7'<?php } if($showadvert[4]) { ?>,'c8'<?php } ?>);
<?php } ?>
<?php if($footer1modules) { ?>
BoxHeights.equalise(<?php if($showuser[9]) { ?>'c9'<?php } if($showuser[10]) { ?><?php if($showuser[9]) { ?>,<?php } ?>'c10'<?php } if($showuser[11]) { ?>,'c11'<?php } if($showuser[12]) { ?>,'c12'<?php } ?>);
<?php } ?>
<?php if($footer2modules) { ?>
BoxHeights.equalise(<?php if($showuser[13]) { ?>'c13'<?php } if($showuser[14]) { ?><?php if($showuser[13]) { ?>,<?php } ?>'c14'<?php } if($showuser[15]) { ?>,'c15'<?php } if($showuser[16]) { ?>,'c16'<?php } ?>);
<?php } ?>
<?php if($footer3modules) { ?>
BoxHeights.equalise(<?php if($showfooter[1]) { ?>'f1'<?php } if($showfooter[2]) { ?><?php if($showfooter[2]) { ?>,<?php } ?>'f2'<?php } if($showfooter[3]) { ?>,'f3'<?php } if($showfooter[4]) { ?>,'f4'<?php } ?>);
<?php } ?>
<?php if($showleft && !$showright) { ?>
BoxHeights.equalise('column_left','content_wrap');
<?php } ?>
<?php if(!$showleft && $showright) { ?>
BoxHeights.equalise('column_right','content_wrap');
<?php } ?>
<?php if($showleft && $showright) { ?>
BoxHeights.equalise('column_left','column_right','content_wrap');
<?php } ?>
}
</script>
and I have change it like this:
<script type="text/javascript">
jQuery(document).ready(function(){
setTimeout(function(){
<?php if($bottommodules) { ?>
BoxHeights.equalise(<?php if($showuser[5]) { ?>'c1'<?php } if($showuser[6]) { ?><?php if($showuser[5]) { ?>,<?php } ?>'c2'<?php } if($showuser[7]) { ?>,'c3'<?php } if($showuser[8]) { ?>,'c4'<?php } ?>);
<?php } ?>
<?php if($uppermodules) { ?>
BoxHeights.equalise(<?php if($showadvert[1]) { ?>'c5'<?php } if($showadvert[2]) { ?><?php if($showadvert[1]) { ?>,<?php } ?>'c6'<?php } if($showadvert[3]) { ?>,'c7'<?php } if($showadvert[4]) { ?>,'c8'<?php } ?>);
<?php } ?>
<?php if($footer1modules) { ?>
BoxHeights.equalise(<?php if($showuser[9]) { ?>'c9'<?php } if($showuser[10]) { ?><?php if($showuser[9]) { ?>,<?php } ?>'c10'<?php } if($showuser[11]) { ?>,'c11'<?php } if($showuser[12]) { ?>,'c12'<?php } ?>);
<?php } ?>
<?php if($footer2modules) { ?>
BoxHeights.equalise(<?php if($showuser[13]) { ?>'c13'<?php } if($showuser[14]) { ?><?php if($showuser[13]) { ?>,<?php } ?>'c14'<?php } if($showuser[15]) { ?>,'c15'<?php } if($showuser[16]) { ?>,'c16'<?php } ?>);
<?php } ?>
<?php if($footer3modules) { ?>
BoxHeights.equalise(<?php if($showfooter[1]) { ?>'f1'<?php } if($showfooter[2]) { ?><?php if($showfooter[2]) { ?>,<?php } ?>'f2'<?php } if($showfooter[3]) { ?>,'f3'<?php } if($showfooter[4]) { ?>,'f4'<?php } ?>);
<?php } ?>
<?php if($showleft && !$showright) { ?>
BoxHeights.equalise('column_left','content_wrap');
<?php } ?>
<?php if(!$showleft && $showright) { ?>
BoxHeights.equalise('column_right','content_wrap');
<?php } ?>
<?php if($showleft && $showright) { ?>
BoxHeights.equalise('column_left','column_right','content_wrap');
<?php } ?>
},500);
});
</script>
but it don't works! Can you check it, please?
Thank you again!
I have done this change:
the original file has this code:
<script type="text/javascript">
window.onload = function() {
<?php if($bottommodules) { ?>
BoxHeights.equalise(<?php if($showuser[5]) { ?>'c1'<?php } if($showuser[6]) { ?><?php if($showuser[5]) { ?>,<?php } ?>'c2'<?php } if($showuser[7]) { ?>,'c3'<?php } if($showuser[8]) { ?>,'c4'<?php } ?>);
<?php } ?>
<?php if($uppermodules) { ?>
BoxHeights.equalise(<?php if($showadvert[1]) { ?>'c5'<?php } if($showadvert[2]) { ?><?php if($showadvert[1]) { ?>,<?php } ?>'c6'<?php } if($showadvert[3]) { ?>,'c7'<?php } if($showadvert[4]) { ?>,'c8'<?php } ?>);
<?php } ?>
<?php if($footer1modules) { ?>
BoxHeights.equalise(<?php if($showuser[9]) { ?>'c9'<?php } if($showuser[10]) { ?><?php if($showuser[9]) { ?>,<?php } ?>'c10'<?php } if($showuser[11]) { ?>,'c11'<?php } if($showuser[12]) { ?>,'c12'<?php } ?>);
<?php } ?>
<?php if($footer2modules) { ?>
BoxHeights.equalise(<?php if($showuser[13]) { ?>'c13'<?php } if($showuser[14]) { ?><?php if($showuser[13]) { ?>,<?php } ?>'c14'<?php } if($showuser[15]) { ?>,'c15'<?php } if($showuser[16]) { ?>,'c16'<?php } ?>);
<?php } ?>
<?php if($footer3modules) { ?>
BoxHeights.equalise(<?php if($showfooter[1]) { ?>'f1'<?php } if($showfooter[2]) { ?><?php if($showfooter[2]) { ?>,<?php } ?>'f2'<?php } if($showfooter[3]) { ?>,'f3'<?php } if($showfooter[4]) { ?>,'f4'<?php } ?>);
<?php } ?>
<?php if($showleft && !$showright) { ?>
BoxHeights.equalise('column_left','content_wrap');
<?php } ?>
<?php if(!$showleft && $showright) { ?>
BoxHeights.equalise('column_right','content_wrap');
<?php } ?>
<?php if($showleft && $showright) { ?>
BoxHeights.equalise('column_left','column_right','content_wrap');
<?php } ?>
}
</script>
and I have change it like this:
<script type="text/javascript">
jQuery(document).ready(function(){
setTimeout(function(){
<?php if($bottommodules) { ?>
BoxHeights.equalise(<?php if($showuser[5]) { ?>'c1'<?php } if($showuser[6]) { ?><?php if($showuser[5]) { ?>,<?php } ?>'c2'<?php } if($showuser[7]) { ?>,'c3'<?php } if($showuser[8]) { ?>,'c4'<?php } ?>);
<?php } ?>
<?php if($uppermodules) { ?>
BoxHeights.equalise(<?php if($showadvert[1]) { ?>'c5'<?php } if($showadvert[2]) { ?><?php if($showadvert[1]) { ?>,<?php } ?>'c6'<?php } if($showadvert[3]) { ?>,'c7'<?php } if($showadvert[4]) { ?>,'c8'<?php } ?>);
<?php } ?>
<?php if($footer1modules) { ?>
BoxHeights.equalise(<?php if($showuser[9]) { ?>'c9'<?php } if($showuser[10]) { ?><?php if($showuser[9]) { ?>,<?php } ?>'c10'<?php } if($showuser[11]) { ?>,'c11'<?php } if($showuser[12]) { ?>,'c12'<?php } ?>);
<?php } ?>
<?php if($footer2modules) { ?>
BoxHeights.equalise(<?php if($showuser[13]) { ?>'c13'<?php } if($showuser[14]) { ?><?php if($showuser[13]) { ?>,<?php } ?>'c14'<?php } if($showuser[15]) { ?>,'c15'<?php } if($showuser[16]) { ?>,'c16'<?php } ?>);
<?php } ?>
<?php if($footer3modules) { ?>
BoxHeights.equalise(<?php if($showfooter[1]) { ?>'f1'<?php } if($showfooter[2]) { ?><?php if($showfooter[2]) { ?>,<?php } ?>'f2'<?php } if($showfooter[3]) { ?>,'f3'<?php } if($showfooter[4]) { ?>,'f4'<?php } ?>);
<?php } ?>
<?php if($showleft && !$showright) { ?>
BoxHeights.equalise('column_left','content_wrap');
<?php } ?>
<?php if(!$showleft && $showright) { ?>
BoxHeights.equalise('column_right','content_wrap');
<?php } ?>
<?php if($showleft && $showright) { ?>
BoxHeights.equalise('column_left','column_right','content_wrap');
<?php } ?>
},500);
});
</script>
but it don't works! Can you check it, please?
Thank you again!
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 6 months ago #18881
by ivan.milic
Replied by ivan.milic on topic Re: Probelm Right module and central module
I can check if you have syntax error if you send me link, but i can not provide more help because this is customization on your own.
Please Log in to join the conversation.
-
Eco
Inactive member - Topic Author
- Member
Less
More
- Posts: 28
- Thank you received: 0
12 years 6 months ago #18919
by Eco
Replied by Eco on topic Re: Probelm Right module and central module
Hi Milic,
My web site is: www.viaggigarantiti.it
My web site is: www.viaggigarantiti.it
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 6 months ago #18928
by ivan.milic
Replied by ivan.milic on topic Re: Probelm Right module and central module
You have syntax error , so it looks like this:
jQuery(document).ready(function(){
setTimeout(function(){
/////THE EQUALIZATION FUNCTIONS ///////////////
//---put here php generated BoxHeights.equalise(....) functions---//
/////END EQUALIZATION FUNCTIONS//////////////////
},500);
});
second thing , you have rendering like this:
....
BoxHeights.equalise(,'c4');
....
also there is extra comma in front of 'c4'
jQuery(document).ready(function(){
setTimeout(function(){
/////THE EQUALIZATION FUNCTIONS ///////////////
//---put here php generated BoxHeights.equalise(....) functions---//
/////END EQUALIZATION FUNCTIONS//////////////////
},500);
});
second thing , you have rendering like this:
....
BoxHeights.equalise(,'c4');
....
also there is extra comma in front of 'c4'
Please Log in to join the conversation.
Time to create page: 0.097 seconds