Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 17

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 22.11.2005, 15:28   #1 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 8
skiordie is on a distinguished road
Default request with rating

Hi,

i'm writing a module, which shows the 5 latest content entries. my db request looks like:

PHP Code:
$query "SELECT    c.*, 

                    cc.name AS category,
                    cc.id,
                    s.name AS section,
                    s.id,
                    g.name AS groups,
                    g.id,
                    u.name as author,
                    u.usertype,
                    ROUND(v.rating_sum/v.rating_count) AS rating, 
                    v.rating_count
          FROM      #__content AS c,
                    #__users AS u,
                    #__categories AS cc,
                    #__sections AS s,
                    #__groups AS g,
                    #__content_rating AS v
          WHERE     c.catid = cc.id
                    AND
                    cc.section = s.id
                    AND
                    c.access = g.id
                    AND
                    u.id = c.created_by
                    AND
                    c.state = '1' 
                    AND 
                    c.checked_out = '0' 
                    AND 
                    c.sectionid > '0'
                    AND   
                      ( c.publish_up = '0000-00-00 00:00:00' 
                    OR 
                      c.publish_up <= '"
$now ."' )
                    AND   
                      ( c.publish_down = '0000-00-00 00:00:00' 
                    OR 
                      c.publish_down >= '"
$now ."' )
          ORDER BY  c.created ASC "

i have two problems:

1. when i use the request this way, i get only the latest entries which were already rated-> but i want to show also the unrated

2. i give the result of the request to the function
PHP Code:
    BlogOutput$rows$params$gid$access$pop$menu ); 
. the output seems ok, but when i click on read more, i get the
Code:
You are not authorized to view this resource.
You need to login.
error.

can anyone help?

thanks,
tom
skiordie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wierd bugs in web links & rating system agent.smith Mambo 4.5 Bugs 5 06.02.2006 05:26
Frontpage article rating nogo r3dbaron Mambo 4.5.1 'How Do I' Questions 1 24.08.2005 05:48
Simple Rating... J543o1 Mambo 4.5.1 'How Do I' Questions 1 03.08.2005 19:08
Mambo Rating System Missing On Front End xgeekx Mambo 4.5.1 General Talk 7 31.03.2005 19:15
Modify Table View To Show Rating, Preview? nickm Mambo 4.5.1 'How Do I' Questions 0 08.03.2005 03:04


All times are GMT +2. The time now is 09:01.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.