Yabbo

New Member
Feb 8, 2016
5
0
Hey,
This is my first attempt at a retro and i am fairly new so need help with some problems i have ran into.
I got a problems i need help with and wondered if anyone knew the solution?

This is to do with RevCMS. i have got a guestbook on profile pages on my website and have added it to navi and correctly as it logs comments fine.
Problem i have is when you post a comment it does not show on the guestbook even though its logging in navi? what have i missed out to get the comments to appear on the guestbook?

Many Thanks.
 
Last edited:

Yabbo

New Member
Feb 8, 2016
5
0
Code:
 <div id="container">
                <div id="content" style="position: relative" class="clearfix">
                
                        <div id="column1" class="column" style="float:left;width:400px;padding-top:10px;padding-left:22px;">
                        <div class="habblet-container">
                       <div class="cbb clearfix orange ">
                        <h2 class='title' style='font-size:12px;font-family: "Tahoma",Verdana,Arial;'><?php echo mysql_num_rows($getEntries); ?> Guestbook posts</h2>
                        <div class="box-content" style="padding:10px 10px 0 10px; height:245px; overflow-x:hidden; overflow-y:scroll">
                        <div style="align:left;">
                        <?php
                        // Hent gjestebokinnlegg
                                if(mysql_num_rows($getEntries) == 0) {
                                echo "<center>There are not posts in this guestbook!</center>";
                                } else {
                                                    
                                echo '';
                                while($Entries = mysql_fetch_array($getEntries)){
                                $getUserInfo = mysql_query("SELECT * FROM users WHERE id = '".$Entries['poster_id']."'");
                                $userInfo = mysql_fetch_array($getUserInfo);
                                echo '<div style="width:400x;overflow:auto;background-color:#fff;border-radius:5px;border-style:solid;border-color:#D9D9D9;border-width:1px;padding:5px;margin-bottom:5px;">
                                <div><img src="There was a url here but cant post it ....habbo-imaging/avatarimage?figure='.$userInfo['look'].'" alt="avatar" class="rotate" align="left">
                                <br/><br/>
                                <span style="float:left"><a href="{url}/index.php?url=home&user={username}/'.$userInfo['username'].'">'.$userInfo['username'].'</a> </span></div>
                                <br>
                                <div style="">
                                <p style="text-align:justify;maxlength=32;overflow:auto;"> '.$Entries['message'].'</p>  </div>
                                </div>';
                                }
                                echo '';
                                }
                        ?></div>                                                                                                </div>
                                                                                            
                                                                                                <div class="linje"></div>
                                                                                            
                                                                                                <div style="padding: 0 10px">
                                <div style='background-color: #F5F5F5;border-radius:5px;padding:5px;'>
                                        <form method='post'>
                                <textarea name="_fullMessage" style="width:96%; max-width:96%; min-height:80px" ="Write in this guestbook "></textarea>
                                <br />
                                <div align="left">
                                <input type='submit' name='_CommentSubmit' value='Add post to guestbook'/>
                                </form>
                    
                        </div>
                        </div>
                        </div>
                        </div></div>

GzSboXd.jpg


This is the comments logging in the database sorry got the terrible quality i took it on my phone. I have done something wrong but im not sure if i have set it up in the database wrong or on the page code.
 
Last edited:

Users who are viewing this thread

Top