CMS News Problem

Sab

I love milfs.
Jun 25, 2011
1,212
136
Hey guys,

This is my current news on my me page:


It's only one picture, it has no slide show things. Idk what the problem is.

My news column code:
Code:
<div id="promo-box">
        <div id="promo-bullets"></div>

                <?php
                $to5 = mysql_query("SELECT * FROM cms_news ORDER BY id DESC LIMIT 5") or die(mysql_error());
                ?>

                <?php $i = 0; while($newsobject = mysql_fetch_assoc($to5)){ $i++; ?>

                        <div class="promo-container" style="background-image: url(http://sharp-hotel.com/ase/web_promo/<?php echo $newsobject['image']; ?>)<?php if($i != '1'){ ?>; display: none<?php } ?>">
                            <div class="promo-content-container">
                                <div class="promo-content">
                                    <div class="title"><?php echo $newsobject['title']; ?></div>
                                    <div class="body"><?php echo $newsobject['shortstory']; ?></div>
                                </div>
                            </div>
                            <div class="promo-link-container">
                <div class="enter-hotel-btn"              // I found this release on another forum, I just fixed it up abit.>
                <div class="open enter-btn">
                            <a href="{url}/index.php?url=news&id=<?php echo $newsobject['id']; ?>">Read the full article &raquo;</a>
                        <b></b>
                    </div>
                </div>
                <div style="color:#FFF;margin-top:25px;margin-left:10px;">Posted on: <b><?php echo date('F d, Y', $newsobject['published']); ?></b></div>
                            </div>
                        </div>

                        <?php }?>

                <script type="text/javascript">
                    document.observe("dom:loaded", function() { PromoSlideShow.init(); });
                </script>

                </div>
 

necm1

Member
Jan 27, 2014
111
16
Hey guys,

This is my current news on my me page:


It's only one picture, it has no slide show things. Idk what the problem is.

My news column code:
Code:
<div id="promo-box">
        <div id="promo-bullets"></div>

                <?php
                $to5 = mysql_query("SELECT * FROM cms_news ORDER BY id DESC LIMIT 5") or die(mysql_error());
                ?>

                <?php $i = 0; while($newsobject = mysql_fetch_assoc($to5)){ $i++; ?>

                        <div class="promo-container" style="background-image: url(http://sharp-hotel.com/ase/web_promo/<?php echo $newsobject['image']; ?>)<?php if($i != '1'){ ?>; display: none<?php } ?>">
                            <div class="promo-content-container">
                                <div class="promo-content">
                                    <div class="title"><?php echo $newsobject['title']; ?></div>
                                    <div class="body"><?php echo $newsobject['shortstory']; ?></div>
                                </div>
                            </div>
                            <div class="promo-link-container">
                <div class="enter-hotel-btn"              // I found this release on another forum, I just fixed it up abit.>
                <div class="open enter-btn">
                            <a href="{url}/index.php?url=news&id=<?php echo $newsobject['id']; ?>">Read the full article &raquo;</a>
                        <b></b>
                    </div>
                </div>
                <div style="color:#FFF;margin-top:25px;margin-left:10px;">Posted on: <b><?php echo date('F d, Y', $newsobject['published']); ?></b></div>
                            </div>
                        </div>

                        <?php }?>

                <script type="text/javascript">
                    document.observe("dom:loaded", function() { PromoSlideShow.init(); });
                </script>

                </div>
<script type="text/javascript">
    document.observe("dom:loaded", function() { PromoSlideShow.init(); });
</script>
Try this!
 

Users who are viewing this thread

Top