DragonflyCMS Projects > MReviews > MReview fixes > Community Forums > Phoenix Netology
Forum Index > Community > MReviews

MReview fixes Reply to topic


There are a couple of problems with the MReviews module update posted here.

In index.php,

The display_score function is better in the core Reviews module - to use it just replace the existing function with:

function display_score($score) { global $CPG_SESS; if (($CPG_SESS['theme'] != 'default') && is_dir("themes/$CPG_SESS[theme]/images/reviews")) { $path = "themes/$CPG_SESS[theme]/images/reviews/"; } else { $path = 'themes/default/images/reviews/'; } $halfstar = '<img src="'.$path.'halfstar.gif" alt="" />'; $star = '<img src="'.$path.'star.gif" alt="" />'; if ($score == 10) { for ($i=0; $i < 5; $i++) echo $star; } else if ($score % 2) { $score -= 1; $score /= 2; for ($i=0; $i < $score; $i++) echo $star; echo $halfstar; } else { $score /= 2; for ($i=0; $i < $score; $i++) echo $star; } }

Around line 1106 (in the function reviews($letter)) should read
$querylang = ($multilingual) ? "AND (language='$currentlang' OR language='')" : '';

That's all I've found so far though will post more when I find them...

Please enter your server specs in your user profile! 😢


The stars was a deliberate change - have you viewed Reviews in a dark theme?

Donations & Audit for DragonflyCMS

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


That would explain that phoenix - I would have thought that if it was designed to work only on dark themes (and it doesn't on my fisubsilver) that it should become a variable...

Thanks for reviving the mod though - it's one of the main ones I use, along with CPGNuCalendar and the other reviews mod!

Please enter your server specs in your user profile! 😢


Actually, it was meant to work across all themes, and I should have just increased the font size - the original stars looked bad on anything that wasn't white which was unacceptable, but I now have a better quality star graphic which I can re-introduce - very difficult to make a quality image at that size and keep it low in bytes Sad

nukebiz.com/Reviews/in..._rush.html
nukebiz.com/Reviews/in...ack3d.html

When I get more time, I shall do more work on MReviews, in particular on image upload and tidying up some code.

Thanks for all your feedback Smile

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Phoenix,

Just noticed that the reply you've given is about the Reviews module whereas I am talking about the MReviews module.

Have you seen the images in MReviews? Examplehere. Or are you talking about using the stars from the reviews module?

Please enter your server specs in your user profile! 😢


hehe, yeah, I upgraded the Reviews graphic image on this site to demonstrate the enhancement Smile

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Why did you put MReview out for downloads when it`s not working properly?
I cant post anything to this module..

Please enter your server specs in your user profile! 😢

All times are Australia/Adelaide


Jump to: