![]() |
Quote:
|
Quote:
2. They are not zero and every time I do a test sale or buy the star rating gets updated accordingly 3. seller AND buyer reviews still not showing |
Quote:
Thank you Mike Chris |
Quote:
I am sure you will get it to work and mike Michael happy |
Quote:
|
Quote:
When I'll be able to stop laughing, I'll correct it :D Chris |
Quote:
1.- Because the syntax is 100% correct 2.- It's childish error even for novice coders:eek: Well, the error is that is not really runing the query. Just adds the query in a variable. It says: Code:
$sellerwhois_sql = "SELECT * FROM ".TABLE_PREFIX."microclassifieds_orders WHERE sellerid=$userid AND showrating=1 ORDER BY sreviewdate DESC"; Code:
$sellerwhois_sql = $vbulletin->db->query_read("SELECT * FROM ".TABLE_PREFIX."microclassifieds_orders WHERE sellerid=$userid AND showrating=1 ORDER BY sreviewdate DESC"); |
Quote:
And it has nothing to do with the cron job? Only thing I could find in there was about the rating but not about the reviews: // Calculate the allowed time for rating $maxdays = $vbulletin->options["microclassifieds_rating_limit"]; $timenow = time(); $timelimit = $timenow - ($maxdays * 86400); // Update records for selldate >= timelimit $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."microclassifieds_orders SET allowrating=0, showrating=1 WHERE selldate<=$timelimit"); // Also update records where Seller and Buyer have rate each other, even if timelimit hasn't expired $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."microclassifieds_orders SET allowrating=0, showrating=1 WHERE breviewrating>0 AND sreviewrating>0"); |
Quote:
Chris |
Quote:
Chris |
All times are GMT. The time now is 05:09 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|