Shape 5

Joomla Club Extensions => Frontpage Display Version 2 - Club => : imurphy April 16, 2009, 10:07:09 AM



: s5-frontdislpay_back.png not displaying
: imurphy April 16, 2009, 10:07:09 AM
I'm setting up a site using your design for eworld2 and am having problems with the frontpage module.

I've copied everything I can find in the configs from the siteshaper config but the s5-frontdislpay_back.png background image doesn't display.

On the siteshaper site if I examine the resulting html I can see that we have

div#module
  -> div
    -> div
      -> div
        -> div#s5_fd2_outer
        -> div#s5_fd2_wrap (which has a background of s5-frontdislpay_back.png
        -> div#s5_fd2_leftr

On the site I have set up I get

div#module
  -> div
    -> div
      -> div
        -> div#s5_fd2_outer         and then inside this div I have
          -> div#blenddiv_s5_fd2
          -> div#s5_fd2_1
          -> div#s5_fd2_2
          -> div#s5_fd2_3
          -> div#s5_fd2_4

.... the wrap div block is missing

This is obviously a config difference - but where!

I have a siteshaper installation working on my local machine
I downloaded a copy of the site into another directory and connected to it the siteshaper db

So.. I have two installs but one db.

Site shaper does not exhibit this problem, my clean install does, which means it must be due to a change in a file somewhere or other.

If i create another instance of the frontpage display module it also does not work.

Something is changing the way the module is rendering.

Ian


: Re: s5-frontdislpay_back.png not displaying
: jonahh April 24, 2009, 01:42:55 PM
Hello Ian,

It looks like you edited the module or something as its missing several DIV tags.  I would uninstall and then reinstall the module.

Regards,


: Re: s5-frontdislpay_back.png not displaying
: imurphy April 26, 2009, 02:12:42 PM
Ok, just tried downloading the 2_15 module currently available. I then uninstalled and reinstalled it. After this I put the module parameters back and placed it in the advert2 position.

The background still doesn't display correctly.

Is there anything in the module which will cause it to render differently in certain circumstances?

Ian


: Re: s5-frontdislpay_back.png not displaying
: imurphy April 27, 2009, 10:50:54 AM
I've just been digging into the php and the two sets of code are totally different, even though both contain a header which says Version 1.0

The mod_s5_frontpage_display2.php which comes with siteshaper is 13961 bytes long
The mod_s5_frontpage_display2.php which is in the downloadable module is 17935 bytes long

Having looked at the code its obviously a different module: The last few lines of Siteshaper mod_s5_frontpage_display2.php

:
<script language="javascript" type="text/javascript" src="<?php echo $LiveSite ?>/modules/mod_s5_frontpage_display2/s5_frontpage_display_2/s5_fd.js"></script>
<script type="text/javascript">//<![CDATA[
if (document.images) {
document.img0 = 0;
document.img1 = 0;
<?php if ($boxes >= "3") {?>
document.img2 = 0;
<?php }?>
<?php if ($boxes >= "4") {?>
document.img3 = 0;
<?php }?>
<?php if ($boxes >= "5") {?>
document.img4 = 0;
<?php }?>
<?php if ($boxes >= "6") {?>
document.img5 = 0;
<?php }?>
<?php if ($boxes >= "7") {?>
document.img6 = 0;
<?php }?>
<?php if ($boxes >= "8") {?>
document.img7 = 0;
<?php }?>
preloadimages() }

The last few lines of the downloaded mod_s5_frontpage_display2.php
:
var top6_hyperlink = '<?php echo $top6_hyperlink ?>';
var top6_target = '<?php echo $top6_target ?>';
var box6_pic = '<?php echo $box6_pic ?>';
var box6_pic_hover = '<?php echo $box6_pic_hover ?>';
var box6_hyperlink = '<?php echo $box6_hyperlink ?>';
var box6_target = '<?php echo $box6_target ?>';
var top7_pic = '<?php echo $top7_pic ?>';
var top7_hyperlink = '<?php echo $top7_hyperlink ?>';
var top7_target = '<?php echo $top7_target ?>';
var box7_pic = '<?php echo $box7_pic ?>';
var box7_pic_hover = '<?php echo $box7_pic_hover ?>';
var box7_hyperlink = '<?php echo $box7_hyperlink ?>';
var box7_target = '<?php echo $box7_target ?>';
var top8_pic = '<?php echo $top8_pic ?>';
var top8_hyperlink = '<?php echo $top8_hyperlink ?>';
var top8_target = '<?php echo $top8_target ?>';
var box8_pic = '<?php echo $box8_pic ?>';
var box8_pic_hover = '<?php echo $box8_pic_hover ?>';
var box8_hyperlink = '<?php echo $box8_hyperlink ?>';
var box8_target = '<?php echo $box8_target ?>';

I've excluded the last line or two in each case but they're obviously not both version 1.0

On top of this the mod_s5_frontpage_display2 subdirectory in the downloadable module only contains a single file (s5_fd.js) but the mod_s5_frontpage_display2 in siteshaper contains several image files.

I've tried just overwriting the entire directory with what is found in the (eworld2) siteshaper install but it never loads the top images.


Any suggestions?
Ian


: Re: s5-frontdislpay_back.png not displaying
: imurphy April 27, 2009, 11:01:24 AM
I've just worked out why this is not working - I hadn't realised that there are multiple parallel versions of the module available for download in different areas!

I've just pulled down the module which can be downloaded from the same area as the template and it now works.

While I can understand needing a different download to include some extra images - these versions are totally different. How about simply renaming the module or assigning it a version number which indicates that it is different.

Ian