[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 »</a>
</p>
</div><?PHP } ?><div id="topstories-nav" style="display: none"><a href="#" class="prev">« Vorige</a><span>1</span> / 3<a href="#" class="next">Volgende »</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 »</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
Re: [help] CMS News don't load.
Make sure the column topstory_image gets a direct url inserted in the database to an image.
Re: [help] CMS News don't load.
Quote:
Originally Posted by
nyae
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.