[help] CMS News don't load.

Results 1 to 3 of 3
  1. #1
    Elite Member Mozilla2 is offline
    Member +Rank
    Apr 2012 Join Date
    The NetherlandsLocation
    223Posts

    [help] CMS News don't load.

    ( sorry for my bad English, i'm dutch)
    Hello all!

    I have a little problem with my cms, lmfao.
    You guy's now, that news thing right on the me page, right?
    Normal it show's the chosen image you want. But mine will be stay gray for some reason, and chrome console doesn't give some errors...

    screenshot : http://prntscr.com/2w0tsa

    snippet :

    PHP Code:
                    <div id="column2" class="column"><div class="habblet-container news-promo">        
                    
                    
        <div class="habblet-container news-promo">      
                                <div class="cbb clearfix notitle ">
                                    <div id="newspromo">
                                        <div id="topstories">
            <?PHP
        $sql 
    mysql_query("SELECT * FROM cms_news ORDER BY id DESC LIMIT 0,3");
        while(
    $news mysql_fetch_array($sql)) { ?>
            <div class="topstory" style="background-image: url(<?PHP echo $news['topstory_image']; ?>); display: block;"> 
                    <h4>LAATSTE NIEUWS</h4> 
                    <h3><a href="<?PHP echo $url?>/articles.php?id=<?PHP echo $news['id']; ?>"><?PHP echo $news['title']; ?></a></h3> 
                    <p class="summary"> 
                    <?PHP echo $news['snippet']; ?>
                    </p>
                    
                    <p> 
                        <a href="<?PHP echo $url?>/articles.php?id=<?PHP echo $news['id']; ?>">Lees meer &raquo;</a> 
                    </p> 
                </div><?PHP ?><div id="topstories-nav" style="display: none"><a href="#" class="prev">&laquo; Vorige</a><span>1</span> / 3<a href="#" class="next">Volgende &raquo;</a></div>        
            </div>

            
            <ul class="widelist">
                <?PHP
                $i 
    1;
    $sql mysql_query("SELECT * FROM cms_news ORDER BY id DESC LIMIT 3,2");
    while(
    $news mysql_fetch_array($sql)) { 
        
    $i++;
        if(
    IsEven($i)) {
        
    $oddeven "even";
        } else {
        
    $oddeven "odd";
        }
    ?>
    <li class="<?PHP echo $oddeven?>">
                    <a href="<?PHP echo $url?>/articles.php?id=<?PHP echo $news['id']; ?>"><?PHP echo $news['title']; ?></a><br><div class="newsitem-date"><?PHP echo $news['snippet']; ?></div>
                    </li>
    <?PHP ?>
                <li class="last"><a href="<?PHP echo $url?>/articles.php">Meer nieuws &raquo;</a></li>            
            </ul>


    </div> 


    <script type="text/javascript"> 
        document.observe("dom:loaded", function() { NewsPromo.init(); });
    </script>
    It would be awesome if someone can help me!

    Thanks also for reading this

    Have a nice day!

    - Mozilla


  2. #2
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,613Posts

    Re: [help] CMS News don't load.

    Make sure the column topstory_image gets a direct url inserted in the database to an image.

  3. #3
    Elite Member Mozilla2 is offline
    Member +Rank
    Apr 2012 Join Date
    The NetherlandsLocation
    223Posts

    Re: [help] CMS News don't load.

    Quote Originally Posted by nyae View Post
    Make sure the column topstory_image gets a direct url inserted in the database to an image.
    Ah thanks, didn't saw that, since i use phoenix instead of butterfly. Thanks for looking at it.



Advertisement