Forum Support

Shape 5
March 28, 2024, 10:03:07 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: s5-frontdislpay_back.png not displaying  (Read 530 times)
imurphy
Jr. Member
**
Offline Offline

Posts: 9



« on: 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
« Last Edit: April 18, 2009, 02:52:39 PM by Integra » Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #1 on: 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,
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
imurphy
Jr. Member
**
Offline Offline

Posts: 9



« Reply #2 on: 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
Logged
imurphy
Jr. Member
**
Offline Offline

Posts: 9



« Reply #3 on: 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

Code:
<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
Code:
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
Logged
imurphy
Jr. Member
**
Offline Offline

Posts: 9



« Reply #4 on: 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.