Contentteller

Contentteller Support Forums
Home Forums > Contentteller > Version 1.x >

1.6 breaks stuff

Discussion in 'Version 1.x' started by me, Mar 17, 2004.

  1. me Guest

    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.
    me, Mar 17, 2004
    #1
  2. Philipp Guest

    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):

    Code:
            $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
    Philipp, Mar 17, 2004
    #2
  3. me Guest

    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="javascript:FullWin('thumb.php?img=personalized menus1.jpg&action=full&section=faq')"><img src="thumb.php?img=personalized menus1.jpg&section=faq" border="0"></a>
    <br />"Hidden" menu (click for full size)
    <br />
    <br /><a href="javascript:FullWin('thumb.php?img=personalized menus2.jpg&action=full&section=faq')"><img src="thumb.php?img=personalized menus2.jpg&section=faq" border="0"></a>
    <br />Expanded menu (click for full size)
    dont know if that helps any.
    me, Mar 17, 2004
    #3
  4. Philipp Guest

    1.6 breaks stuff

    Is function FullWin in template site_header?
    Philipp, Mar 17, 2004
    #4
  5. me Guest

    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.
    me, Mar 17, 2004
    #5
  6. Philipp Guest

    1.6 breaks stuff

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

    Code:
    <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>  
    Philipp, Mar 17, 2004
    #6
  7. me Guest

    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!
    me, Mar 17, 2004
    #7
  8. Philipp Guest

    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 ?>) of the thumb.php script:

    Code:
    header("Location: images/$section/thumbs/$img");
    Philipp, Mar 17, 2004
    #8
  9. me Guest

    1.6 breaks stuff

    cool! it worked! thanks again.
    me, Mar 17, 2004
    #9
Tweet
Facebook:
Forgot your password?
Contentteller Support Forums
Home Forums > Contentteller > Version 1.x >
  • Home
  • Forums

    Forums

    Quick Links
    • Search Forums
    • What's New?
  • Members

    Members

    Quick Links
    • Registered Members
    • Current Visitors
    • Recent Activity
  • Help

    Help

    Quick Links
    • Smilies
    • BB Codes
    • Trophies

Separate names with a comma.

Advanced search...
    Forum software by XenForo™ ©2011 XenForo Ltd.