Forum Support

Shape 5
March 28, 2024, 11:12:09 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 [2] 3
  Print  
Author Topic: Frontpage Display Bug! In IE7 and Opera.  (Read 3001 times)
tradewise
Jr. Member
**
Offline Offline

Posts: 7



« Reply #15 on: August 31, 2008, 09:43:18 PM »

Hmmmm I typed too soon!.

There seems to be two issues at play here, whilst I got the S5 FrontPage Display working, I then also restored Mod_Login to the Toolbar position and problem is back again.

Seems that  with the above <script defer="defer" type="text/javascript"> fix you can get S5 FrontPage Display working, BUT you can't  have Mod_Login in the Toolbar as well.  I moved Login back to Left (very ugly!) and everything works again.

To solve these issues we just need to educate the masses that IE is crap - use FireFox! - Problems Solved but alas it's not that easy!  So in the interim we'll need a fix for this.

Logged
tradewise
Jr. Member
**
Offline Offline

Posts: 7



« Reply #16 on: August 31, 2008, 09:52:04 PM »

I typed too soon again.... problem is back after clicking a few menus first few OK the dead after that.  Looks like a redesign and not use these 2 modules - such a shame bottom line is we need to make things accessible to everybody even if they do insist on using MicroCrap!.
Logged
tradewise
Jr. Member
**
Offline Offline

Posts: 7



« Reply #17 on: September 01, 2008, 01:26:26 AM »

Work Around Found.
I spent about 4 hours on this today to find a work around. The problem is not just the S5 FrontPage Display as first thought, it seems to be when the S5 FrontPage Display is on a Content Page and that content page is being accessed by a logged in user. For example having the S5 FrontPage Display on the home page will render the error almost every time.

However the S5 FrontPage Display is unaffected if
A. The User is NOT Logged In
B. The Module is not displayed on a Content Type Page - Example the Front Page.

My work around for this is as follows:
1. Move the Home Menu Item to another Menu Module that is not displayed in any module position so its hidden.
2.  Create a Second fake Home Page that points to a Non Content Page Example Contacts or Weblinks
1. Change the Login Module to to Redirect to the Fake Home on Login and to Real Home on Logout
4. Assign all the modules that normally show on the Real Home to display on the Fake one.
5. Ensure that the S5 FrontPage Display is not displayed on any content type page when a user is logged in.
6. TEST TEST TEST in both login and logged out states.

Hope this helps someone - Regards Steve!!!
Logged
lisarosemann
Jr. Member
**
Offline Offline

Posts: 3



« Reply #18 on: September 01, 2008, 07:59:55 AM »

I too am having the same exact problem. Disabling it for logged in users will not work for me, so a fix would be nice.
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #19 on: September 02, 2008, 08:01:22 AM »

To anyone else experiencing this problem another work around would be to search for the following mod_s5_frontpage_display.php in the modules folder:

<?php if ($s5_fd_show_first == "1") { ?>
s5_fd_box1();
<?php } ?>

<?php if ($s5_fd_show_first == "2") { ?>
s5_fd_box2();
<?php } ?>

<?php if ($s5_fd_show_first == "3") { ?>
s5_fd_box3();
<?php } ?>

<?php if ($s5_fd_show_first == "4") { ?>
s5_fd_box4();
<?php } ?>

<?php if ($s5_fd_show_first == "5") { ?>
s5_fd_box5();
<?php } ?>

<?php if ($s5_fd_show_first == "6") { ?>
s5_fd_box6();
<?php } ?>


and replace it with:


function s5_load_boxes() {

<?php if ($s5_fd_show_first == "1") { ?>
s5_fd_box1();
<?php } ?>

<?php if ($s5_fd_show_first == "2") { ?>
s5_fd_box2();
<?php } ?>

<?php if ($s5_fd_show_first == "3") { ?>
s5_fd_box3();
<?php } ?>

<?php if ($s5_fd_show_first == "4") { ?>
s5_fd_box4();
<?php } ?>

<?php if ($s5_fd_show_first == "5") { ?>
s5_fd_box5();
<?php } ?>

<?php if ($s5_fd_show_first == "6") { ?>
s5_fd_box6();
<?php } ?>

}

window.onload = s5_load_boxes;
Logged

Mike Knott
------------
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
lisarosemann
Jr. Member
**
Offline Offline

Posts: 3



« Reply #20 on: September 02, 2008, 04:29:58 PM »

Worked like a charm. Thanks for the speedy resolution!
Logged
gimmi80
Jr. Member
**
Offline Offline

Posts: 30



« Reply #21 on: October 04, 2008, 03:17:51 PM »

I want to try this modification but I can not locate the file. Where is it?
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #22 on: October 05, 2008, 06:45:59 AM »

Hi, it's in your modules folder, look for mod_s5_frontpage_display.php
Logged

Mike Knott
------------
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
itbythesea
Jr. Member
**
Offline Offline

Posts: 15



« Reply #23 on: October 12, 2008, 01:05:53 PM »

The problem is not only with Front Page display. If you edit the specific php you solve the current problem, but might find the same happening with another module or component.

Now, if you do the following, your fix should work with all modules:
Go To:
/libraries/joomla/html/html/behavior.php
Search for:
      $tooltipInit = '      window.addEvent(\'domready\', function(){ var JTooltips = new Tips($$(\''.$selector.'\'), '.$options.'); });';
Replace domready with load:
      $tooltipInit = '      window.addEvent(\'load\', function(){ var JTooltips = new Tips($$(\''.$selector.'\'), '.$options.'); });';
Save.
I just did it and it solved all my problems. It seems IE7 does not like domready.

Logged
Adrian
Jr. Member
**
Offline Offline

Posts: 40



« Reply #24 on: November 05, 2008, 11:54:56 PM »

Happening to me too. I replace domready with load and it working so far. I like this way, i do it by my self.
Logged

WordPress; latest version, Apache; 2.2.19, cPanel; 11.30.2, MySQL; 5.1.56, php; 5.3.
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #25 on: November 06, 2008, 08:00:13 AM »

Did you try the fix I posted above?
Logged

Mike Knott
------------
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
Adrian
Jr. Member
**
Offline Offline

Posts: 40



« Reply #26 on: November 06, 2008, 08:27:18 AM »

Yes, i said i "...Replace domready with load:..." and it is working, login with no problem.
Logged

WordPress; latest version, Apache; 2.2.19, cPanel; 11.30.2, MySQL; 5.1.56, php; 5.3.
davejohns
Jr. Member
**
Offline Offline

Posts: 7



« Reply #27 on: November 08, 2008, 08:17:50 PM »


Im unable to locate mod_s5_frontpage_display.php anywhere,

Can you point out exactly where it is in the file structure please?
Logged
Adrian
Jr. Member
**
Offline Offline

Posts: 40



« Reply #28 on: November 08, 2008, 08:29:52 PM »

Read what itbythesea said in reply 24

".....
Go To:
/libraries/joomla/html/html/behavior.php
Search for:
      $tooltipInit = '      window.addEvent(\'domready\', function(){ var JTooltips = new Tips($$(\''.$selector.'\'), '.$options.'); });';
Replace domready with load:
      $tooltipInit = '      window.addEvent(\'load\', function(){ var JTooltips = new Tips($$(\''.$selector.'\'), '.$options.'); });';
Save........"

Good Luck.
Logged

WordPress; latest version, Apache; 2.2.19, cPanel; 11.30.2, MySQL; 5.1.56, php; 5.3.
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #29 on: November 08, 2008, 11:03:23 PM »


Im unable to locate mod_s5_frontpage_display.php anywhere,

Can you point out exactly where it is in the file structure please?

Hello, this is in your modules folder
Logged

Mike Knott
------------
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
Pages: 1 [2] 3
  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.