Exclusive eBooks, Software Solutions, Quality Guaranteed
 
Web NukeBiz
Welcome to NukeBiz · Members
Amazon
show cart or checkout0 items
Cart Value: 0.00

Forums » DragonflyCMS Projects » MReviews » MReview fixes
MReview fixes
A system for categorizing and managing reviews.
Topic initiation via Bugger.

Post new topic    Reply to topic    Printer Friendly Page     Forum Index »  Community » MReviews

View previous topic :: View next topic  
Author Message
rosbif
Nice Poster
Nice Poster

Offline Offline
Joined: Sep 17, 2005
Posts: 9
Location: Paris, France
PostPosted: Thu Nov 15, 2007 7:11 pm
Post subject: MReview fixes

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:

Code::
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
Code::
    $querylang = ($multilingual) ? "AND (language='$currentlang' OR language='')" : '';

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


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Vista/1.3.33/4.1.21/4.4.4/9.1.2.1
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Mon Nov 19, 2007 12:10 am
Post subject: Re: MReview fixes

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

_________________
DonationsPro for vBulletin, SMF, MyBB, DragonflyCMS


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
rosbif
Nice Poster
Nice Poster

Offline Offline
Joined: Sep 17, 2005
Posts: 9
Location: Paris, France
PostPosted: Mon Nov 19, 2007 2:18 am
Post subject: Re: MReview fixes

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!


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Vista/1.3.33/4.1.21/4.4.4/9.1.2.1
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Mon Nov 19, 2007 7:12 am
Post subject: Re: MReview fixes

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


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
rosbif
Nice Poster
Nice Poster

Offline Offline
Joined: Sep 17, 2005
Posts: 9
Location: Paris, France
PostPosted: Wed Nov 21, 2007 11:01 pm
Post subject: Re: MReview fixes

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?


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Vista/1.3.33/4.1.21/4.4.4/9.1.2.1
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Thu Nov 22, 2007 6:21 am
Post subject: Re: MReview fixes

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


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Teacup
New Poster
New Poster

Offline Offline
Joined: Nov 27, 2007
Posts: 1
Location: Norway
PostPosted: Wed Nov 28, 2007 1:04 am
Post subject: Re: MReview fixes

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

_________________


Teacup's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Vista/Apache/4.1.18/4.4.2/9.1.2.1
Back to top
View user's profile Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index »  Community » MReviews
Page 1 of 1
All times are GMT + 9.5 Hours



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum