Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Regular Coder
    Join Date
    Nov 2009
    Posts
    132
    Thanks
    42
    Thanked 0 Times in 0 Posts

    Problem with video images displaying on rating bar...

    Here is my site... www.thepriceoflust.com ... On the right side you can see the right_side bar... The bar shows the users with the highest picture and video ratings... It starts off with women pictures then men pictures... It is then supposed to display women video then men videos... For some reason the right_side bar only displays the women and men pictures... The code is displayed below... Can someone please help me fix this... Thanks
    PHP Code:
    <!-- #start rightbar -->   
    <!--[If Start !$en['hideright']]-->     
    <div id="rightbar">

    <!--[If Start $en['req'] == 'view']-->
    <!-- #start favourites --> 
        <div class="favourite">
        <!--[If Start show_favs == 0 || (show_favs == 1 && $_SESSION[user] != '') || (show_favs     == 2 && $en[m_daysleft] > 0)]-->

            <!--[Loop Start QUERY:SELECT * FROM $favstable LEFT JOIN $membtable ON m_id=f_fav LEFT JOIN $picstable ON i_user=f_fav WHERE i_status=2 AND f_user='<%mm_id%>' ORDER BY m_rating DESC]-->

            <? $en['m_rating'] = round($en['m_rating'],2); ?>
            <!--[If Start <%loops_index%> == 1]-->
                <? $en['showtops'] = 'no'?>
                <p class="title3"><%_favourites%></p>
                    <br class="clearfloat" />            
                    <ul>            
            <!--[If End]-->
                    <li>
                        <span><a href='<%dir%>view/<%m_user%>.html'><img src='<%dir%> images/small/<%f_fav%>-<%i_id%>.jpg' border=0></a></span>
                <span><a href='<%dir%>view/<%m_user%>.html'><%m_user%></a></span>
                <span><%m_rating%></span>
                <br class="clearfloat" />
                </li>
            <!--[If Start <%loops_left%> == 0]-->
                    </ul>
                    <br class="clearfloat" />
            <!--[If End]-->
            <!--[Loop End]-->
          <!--[If End]-->

        <p class="title3"><%mm_user%></p>
        <ul>
            <li>
                <a href='<%dir%>index.php?req=favs&act=add&user=<%mm_user%>'><%_add_f%> 
                <%mm_user%><%_to_favs%></a>
            </li>
            <li>
                <a href='<%dir%>index.php?req=compose&to=<%mm_user%>'>
                <%_send_msg_to%> <%mm_user%></a>
            </li>
        </ul>
    <!-- #end favourites --></div>
    <!--[If End]-->



    <!--[If Start $en['showtops'] != 'no']-->
    <!-- #start top images --> 
    <div class="women">
        <!--[Loop Start QUERY:SELECT * FROM $typetable WHERE t_enable_voting=0 ORDER BY t_order]-->
        <p class="title3"><?echo $en['t_name_plural_'.lang].' '._in_images?></p>
        <br class="clearfloat" />
        <ul>            
        <? $en['where'] = ((int)voting_type == ? (allow_more_cats == 'Yes' 'i_type=' :     'm_type=').$en['t_id'].' AND i_status=2 AND m_rating>0 AND m_ratingcnt ' :     (allow_more_cats == 'Yes' 'i_type=' 'm_type=').$en['t_id'].' AND i_status>0 AND i_rating>0 AND i_ratingcnt '); ?>
        <? $en['order'] = ((int)voting_type == 'm_rating' 'i_rating'); ?>
        <!--[Loop Start QUERY:SELECT * FROM $membtable LEFT JOIN $picstable ON i_user=m_id WHERE i_video=0 AND $en[where] >= <%min_ratings%> ORDER BY $en[order] DESC LIMIT <%list_limit%>]-->
            <? $en['m_rating'] = round(((int)voting_type == $en['m_rating'] : $en['i_rating']),2); ?>
             <li>
                <span>
                    <a href='<%dir%>view/<%m_user%>.html'>
                    <img src='<%dir%>images/small/<%m_id%>-<%i_id%>.jpg'>
                    </a>
                </span>
                <span>
                    <a href='<%dir%>view/<%m_user%>.html'>
                    <%m_user%></a>
                </span>
                <span>
                    <%m_rating%>
                </span>
                <br class="clearfloat" />
            </li>
        <!--[Loop End]-->
        </ul>
        <!--[Loop End]-->
    <!-- #end top images --></div>
    <!--[If End]-->


    <!--[If Start $en['showtops'] != 'no']-->
    <!-- #start top videos --> 
    <div class="men">
        <!--[Loop Start QUERY:SELECT * FROM $typetable WHERE t_enable_voting=0 ORDER BY t_order]-->
        <p class="title3"><?echo $en['t_name_plural_'.lang].' '._in_videos?></p>
        <br class="clearfloat" />
        <ul>            
        <? $en['where'] = ((int)voting_type == ? (allow_more_cats == 'Yes' 'i_type=' :     'm_type=').$en['t_id'].' AND i_status=2 AND m_rating>0 AND m_ratingcnt ' :     (allow_more_cats == 'Yes' 'i_type=' 'm_type=').$en['t_id'].' AND i_status>0 AND     i_rating>0 AND i_ratingcnt '); ?>
        <? $en['order'] = ((int)voting_type == 'm_rating' 'i_rating'); ?>
        <!--[Loop Start QUERY:SELECT * FROM $membtable LEFT JOIN $picstable ON i_user=m_id WHERE i_video=1 AND $en[where] >= <%min_ratings%> ORDER BY $en[order] DESC LIMIT <%list_limit%>]-->
            <? $en['m_rating'] = round(((int)voting_type == $en['m_rating'] : $en['i_rating']),2); ?>
             <li>
                <span>
                    <a href='<%dir%>view/<%m_user%>.html'>
                    <img src='<%dir%>images/thumbnails/<%m_id%>-<%i_id%>.jpg'>
                    </a>
                </span>
                <span>
                    <a href='<%dir%>view/<%m_user%>.html'>
                    <%m_user%></a>
                </span>
                <span>
                    <%m_rating%>
                </span>
                <br class="clearfloat" />
            </li>
        <!--[Loop End]-->
        </ul>
        <!--[Loop End]-->
    <!-- #end top videos --></div>
    <!--[If End]-->

    <!--[Loop Start QUERY:SELECT *,(<%time%> >= p_starts AND <%time%> <= p_expires) AS n_active FROM $polltable HAVING n_active=1 ORDER BY RAND() LIMIT 1]-->
    <div class="poll">
    <p class="title3"><%_poll%>
    <p><%p_question%></p>
    <form action="<%root%>index.php" method=post>
    <input type=hidden name=req value=post_poll>
    <input type=hidden name=poll_id value='<%p_id%>'>
    <? $en['ret'] = $_SERVER[REQUEST_URI]; ?>
    <input type=hidden name=poll_return value="<%ret%>">
    <?
            $cn 
    0;
            if (
    $_COOKIE['voted_'.$en['p_id']] || strpos($_SERVER[REQUEST_URI],'results=true')) {
               
    //already voted, show results

                  //get question count
                    
    $res sql_query("SELECT SUM(q_count) AS tot FROM $pollqtable WHERE q_poll=$en[p_id]") or die(__line__.sql_error());
                    
    $l sql_fetch_assoc($res); $tot $l[tot];

                    
    $res sql_query("SELECT * FROM $pollqtable WHERE q_poll=$en[p_id] ORDER BY q_count DESC") or die(__line__.sql_error());
                    
    $colors = array('black','red','green','blue','yellow','brown','black','#AAAAAA','red','green','blue','yellow','brown','black','#AAAAAA');
                    
    $cn 0;
                    while (
    $line sql_fetch_assoc($res)) {
                             
    $cn++;
                             echo 
    '<label>'.$line[q_question].' ('.$line[q_count].' '._votes_count.')</label><br />';
                             echo 
    '<label>'.(round(($line[q_count]/max($tot,1))*100)).'%<label><div style="width:'.(round(($line[q_count]/max($tot,1))*100)).'%; height: 10px; background-color:'.$colors[$cn].';"> </div></label><br />';
                             }
                    echo 
    '<tr><td colspan=2 align=center>'.$tot.' '._votes_total.'</td></tr>';
                    } else {
                    
    //not voted
                            
    $res sql_query("SELECT * FROM $pollqtable WHERE q_poll=$en[p_id] ORDER BY q_id ASC") or die(sql_error());
                            while (
    $li sql_fetch_assoc($res))
                                    echo 
    '<input type=radio id=poll_'.$li[q_id].' name=poll_a value='.$li[q_id].'><label for=poll_'.$li[q_id].'>'.$li[q_question].'</label><br />';
                                    echo 
    '<p class="align-center"><input type="submit" class="button" name=vote value="'._vote_poll.'">&nbsp;<input type="submit" class="button" name=results value="'._vote_results.'" ></p>';
                                    }

    ?>
    </form>
    <!-- #end poll --></div>
    <!--[Loop End]-->



    <!--[If Start $_COOKIE['last_pr'] && display_prev == 'Yes']-->
    <!--[Array $en SELECT *, m_id AS verify FROM $membtable LEFT JOIN $picstable ON m_id=i_user     WHERE i_status=2 AND m_id=$_COOKIE[last_pr]]-->
    <!--[If Start $en['verify'] == $_COOKIE['last_pr']]-->
    <!-- #start previous --> 
      <div class="previous">
        <p class="title3"><%_p_prof%></p>
        <br class="clearfloat" />    
          <ul>
           <li>
            <span>
                <a href='<%dir%>view/<%m_user%>.html'>
                    <img border=0 src='<%dir%>images/small/<%m_id%>-<%i_id%>.jpg'>
                </a>
            </span>
            <span>
                <b><a href='<%dir%>view/<%m_user%>.html'>
                    <%m_user%>
                </a></b>
            </span>
            </li>
        </ul>
    <!-- #end previous --></div>
    <!--[If End]-->
    <!--[If End]-->


    <!-- #start profile -->
    <form action='<%dir%>index.php' method=post>
    <div class="profile">
         <p class="title3"><%_get_profile%></p>
          <input type=hidden name=req value='do_get_profile'>
            <label><%_g_enter_user%></label>
               <input name="user" type="text" class="input-180" />
            <br />               
               <input name="sm" type="submit" class="button" value='<%_find_it%>'/>
    <!-- #end profile --></div>
    </form>

    <!-- #start languages -->
    <!--[If Start allow_choose_langs == 'Yes']-->
    <div class="language">
          <!--[Loop Start QUERY:SELECT * FROM $langtable WHERE l_active=1 ORDER BY l_default DESC,     l_id ASC]-->
            <!--[If Start $en['total_count'] > 1]-->
                <!--[If Start $en['loops_index'] == 1]-->
                    <p class="title3"><%_languages%></p>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">                    <tr><td align=center>
                <!--[If End]-->
                <!--[If Start lang_type == 1]-->
                    <a href='<%dir%>lang/<%l_code%>'><%l_name%></a>&nbsp;
                <!--[If Else]-->
                    <a href='<%dir%><%l_code%>'><img src='<%dir%>images/flags/<%                    l_code%>.png' border=0 alt='<%l_name%>' title='<%l_name%>'></a>&nbsp;
                <!--[If End]-->
                <!--[If Start $en['loops_left'] == 0]-->
                    </td></tr></table>
                <!--[If End]-->
            <!--[If End]-->
        <!--[Loop End]-->
    <!-- #end languages --></div>
    <!--[If End]-->
                

    <!-- #end rightbar --></div>
    <!--[If End]-->

  • #2
    Regular Coder
    Join Date
    Nov 2009
    Posts
    132
    Thanks
    42
    Thanked 0 Times in 0 Posts
    When I replace the video code with the same code as the picture code it works... Maybe there is something wrong with the location of the videos or something...

  • #3
    Regular Coder
    Join Date
    Nov 2009
    Posts
    132
    Thanks
    42
    Thanked 0 Times in 0 Posts
    No one knows?

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Here is my site... www.thepriceoflust.com ... On the right side you can see the right_side bar... The bar shows the users with the highest picture and video ratings
    I don't see any such right sidebar on that home page.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    Regular Coder
    Join Date
    Nov 2009
    Posts
    132
    Thanks
    42
    Thanked 0 Times in 0 Posts
    Im sorry I just put that intro page up... www.thepriceoflust.com/m

  • #6
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Do you think it's an html/css issue? Is the html for showing videos getting echoed to the browser?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #7
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try setting the rating bar to position:absolute and see if you can get a good position

  • #8
    Regular Coder
    Join Date
    Nov 2009
    Posts
    132
    Thanks
    42
    Thanked 0 Times in 0 Posts
    What does adjusting the position have to do with anything?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •