Advertisement:

Author Topic: Message: 'hs' is undefined ???  (Read 2300 times)

Offline kosaic

  • Semi-Newbie
  • *
  • Posts: 86
  • Gender: Male
    • Fundy Schutzhund Club
Message: 'hs' is undefined ???
« on: June 03, 2010, 12:03:43 PM »
All,

I just upgraded Aeva Media to 1.2 .... (uninstall + re-install) All works perfectly, however I'm seeing this error on every single page in my forum ... Seems to happen in IE8 , but not Firefox?

SMF 2.0 RC3

Any thoughts as to how to fix it ?? Thanks in advance.

========================================

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; MS-RTC LM 8)
Timestamp: Thu, 3 Jun 2010 15:57:03 UTC


Message: 'hs' is undefined
Line: 17
Char: 5
Code: 0
URI: http://fundyschutzhund.ca/forums/index.php

=======================================



Offline feline

  • SMF Hero
  • ******
  • Posts: 1,560
  • Gender: Female
    • Product developer site
Re: Message: 'hs' is undefined ???
« Reply #1 on: June 03, 2010, 01:12:57 PM »
I think. this line in your index.template.php is bad...
Code: [Select]
<script language="JavaScript" type="text/javascript" src="http://fundyschutzhund.ca/forums/Themes/default/Highslide/highslide.english-utf8.js"></script>
I don't know a highslide.english-utf8.js .. normaly this is named as highslide.js

Fel
PortaMx has released version 1.51 for SMF 2 with a built in SEF engine, full support for the EU Cookie Law and a lot of new features.
Follow us on our Community


Offline kosaic

  • Semi-Newbie
  • *
  • Posts: 86
  • Gender: Male
    • Fundy Schutzhund Club
Re: Message: 'hs' is undefined ???
« Reply #2 on: June 03, 2010, 01:20:36 PM »
I cant find this in any of the index.template.php files ....

Should be the one in my active theme directory, correct ?

Offline feline

  • SMF Hero
  • ******
  • Posts: 1,560
  • Gender: Female
    • Product developer site
Re: Message: 'hs' is undefined ???
« Reply #3 on: June 03, 2010, 01:24:00 PM »
yes .. on the theme what is set as default theme for guests.

Fel
PortaMx has released version 1.51 for SMF 2 with a built in SEF engine, full support for the EU Cookie Law and a lot of new features.
Follow us on our Community


Offline kosaic

  • Semi-Newbie
  • *
  • Posts: 86
  • Gender: Male
    • Fundy Schutzhund Club
Re: Message: 'hs' is undefined ???
« Reply #4 on: June 03, 2010, 01:25:23 PM »
Code: [Select]
// * Highslide image viewer mod
echo '<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/Highslide/highslide.js"></script>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/Highslide/highslide.', $context['user']['language'], '.js"></script>
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/Highslide/highslide.css" media="screen" />
<script type="text/javascript">
    hs.graphicsDir = "', $settings['default_theme_url'], '/Highslide/";
    hs.outlineType = "rounded-white";
    hs.captionEval = "this.thumb.alt";
    hs.transitions = ["expand", "crossfade"];
    hs.numberOfImagesToPreload = 5;
    hs.dimmingOpacity = 0;
    hs.fadeInOut = false;
    hs.align = "center";
    hs.showCredits = false;
    hs.creditsText = "";
    hs.creditsHref = "";
    hs.creditsTitle = "";
    if (hs.addSlideshow) hs.addSlideshow({
        interval: 5000,
        repeat: false,
        useControls: true,
fixedControls: false,
        overlayOptions: {
        opacity: 1,
        position: "top right",
        hideOnMouseOut: false
}
    });
  </script>';


Offline feline

  • SMF Hero
  • ******
  • Posts: 1,560
  • Gender: Female
    • Product developer site
Re: Message: 'hs' is undefined ???
« Reply #5 on: June 03, 2010, 02:07:42 PM »
The file forums/Themes/default/Highslide/highslide.js is exist and redable?

also change this:
Code: [Select]
// * Highslide image viewer mod
   echo '<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/Highslide/highslide.js"></script>

to
Code: [Select]
// * Highslide image viewer mod
   echo '
   <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/Highslide/highslide.js"></script>

Fel
PortaMx has released version 1.51 for SMF 2 with a built in SEF engine, full support for the EU Cookie Law and a lot of new features.
Follow us on our Community


Offline kosaic

  • Semi-Newbie
  • *
  • Posts: 86
  • Gender: Male
    • Fundy Schutzhund Club
Re: Message: 'hs' is undefined ???
« Reply #6 on: June 03, 2010, 02:14:07 PM »
This does NOT exist (No Highslide directory here)

forums/Themes/default/Highslide/highslide.js

EDIT: I just went to a backup from 30 days ago, and this folder was not there either.
« Last Edit: June 03, 2010, 02:21:49 PM by kosaic »

Offline kosaic

  • Semi-Newbie
  • *
  • Posts: 86
  • Gender: Male
    • Fundy Schutzhund Club
Re: Message: 'hs' is undefined ???
« Reply #7 on: June 03, 2010, 02:33:20 PM »
Ok, resolved ...

I had an old install of Highslide Image Viewer 1.6,which I applied to the default theme, as well as my active theme. When I uninstalled it, it cleaned out the index.template.php in the default theme directory, but it left the code I pasted above in my current theme's index.template.php .... so I just manually deleted the code from it.

Re-uploaded and all is fine.

The reason I had to uninstall it is that it conflicts with Aeva Media and breaks it's highslide functionality when it is installed... Go figure :)

Cheers !