This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

1.6 breaks stuff


avatar
me 0
From: -
1.6 breaks stuff

i did an upgrade following the instructions. you might mention that you dont want to copy over your old config.php file as the upgrade script wont work. luckily i had a backup.

anyway, seems in the previous version i could use html in stories, news, and faqs and it would be parsed even if i had the enable html formatting set to no. in 1.6, i have to turn that on for the html to parse or else it just displays raw html code. this meant i had to go and change everything to blockcode or turn that feature on and fully format using html. kinda of annoying.

also, image thumbnails dont work anymore. for example, in the faq, i have a thumbnail. the thumbnail displays but when you click to enlarge it, nothing happens. IE shows the yellow exclamation point in the lower left with "error on page". i tried this on an XP and a 2000 computer with the same results.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: 1.6 breaks stuff
avatar
OP 0
From: -
1.6 breaks stuff

cool! it worked! thanks again.
1 Re: 1.6 breaks stuff
avatar
Administrator
1340
From: Vienna, Austria
1.6 breaks stuff

one note, after adding that back in (and clearing the cache), the thumbnails didnt load at first. i got red x's. i refreshed the page and they showed up. i noticed this behavior before with 1.5x (whatever the last version was). strange, huh?

Seems like an issue with some versions of GD. Add the following line at the bottom (before ?> Winking Face of the thumb.php script:

header("Location: images/$section/thumbs/$img");
1 Re: 1.6 breaks stuff
avatar
OP 0
From: -
1.6 breaks stuff

ah, there we go. i took that whole java script piece out. i saw sidebar and mozilla in there and knew i wasnt using that so i removed it. didnt realize there was another useful function in there.

one note, after adding that back in (and clearing the cache), the thumbnails didnt load at first. i got red x's. i refreshed the page and they showed up. i noticed this behavior before with 1.5x (whatever the last version was). strange, huh?

anyway, i seem to be all fixed up. thanks for the quick help!!! its much appreciated!
1 Re: 1.6 breaks stuff
avatar
Administrator
1340
From: Vienna, Austria
1.6 breaks stuff

No, it's a JavaScriptin the HTML part of the site_header template:

<script language="JavaScript">

<!--
function FullWin(tag) {
var newWinObj = window.open(tag,'newWin','toolbar=0,location=0,directories=0,status=0, menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=950,height=680')
}
function addNetscapePanel() {
if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function"))
{
window.sidebar.addPanel ("$insert[site_name]", "$insert[site_url]/sidebar.php","");
}
else
{
var rv = window.confirm ("This page is enhanced for use with Mozilla. " + "Would you like to upgrade now?");
if (rv)
document.location.href = " http://www.mozilla.org";
}
}
//-->
</script>
1 Re: 1.6 breaks stuff
avatar
OP 0
From: -
1.6 breaks stuff

no. site header template has:

<?php
global $insert;
//include qotd
include("quotes/quotes.php");
$EST_TEMPLATE = <<<TEMPLATE
<!-- Template site_header -->


my site layout code then...

TEMPLATE;
?>



thats what it looked like previously according my my template backup.
1 Re: 1.6 breaks stuff
avatar
Administrator
1340
From: Vienna, Austria
1.6 breaks stuff

Is function FullWin in template site_header?
1 Re: 1.6 breaks stuff
avatar
OP 0
From: -
1.6 breaks stuff

thanks for the tip on the html. that worked.

im currently testing this offline before upgrading my real site. there is no way for you to access it. sorry.

here's the code though:
<a href="https://www.contentteller.com/javascript:FullWin('thumb.php?img=personalized menus1.jpg&action=full&section=faq')"><img src="https://www.contentteller.com/thumb.php" border="0"></a>
<br />"Hidden" menu (click for full size)
<br />
<br /><a href="https://www.contentteller.com/javascript:FullWin('thumb.php?img=personalized menus2.jpg&action=full&section=faq')"><img src="https://www.contentteller.com/thumb.php" border="0"></a>
<br />Expanded menu (click for full size)
dont know if that helps any.
1 Re: 1.6 breaks stuff
avatar
Administrator
1340
From: Vienna, Austria
1.6 breaks stuff

anyway, seems in the previous version i could use html in stories, news, and faqs and it would be parsed even if i had the enable html formatting set to no. in 1.6, i have to turn that on for the html to parse or else it just displays raw html code. this meant i had to go and change everything to blockcode or turn that feature on and fully format using html. kinda of annoying.

To disable this, remove the following two lines in core.php (Function DeChomp):

        $var = str_replace("<", "&lt;", $var);     

$var = str_replace(">", "&gt;", $var);


also, image thumbnails dont work anymore. for example, in the faq, i have a thumbnail. the thumbnail displays but when you click to enlarge it, nothing happens. IE shows the yellow exclamation point in the lower left with "error on page". i tried this on an XP and a 2000 computer with the same results.

Please send me a private message with the URL

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.