Page 1 of 1

Review Ratings On Other Modules

Posted: Tue Feb 05, 2013 5:27 am
by Bluesplayer
I will be looking to see if I can sort this out as well as my front page needs some additional graphics to give it more colour. What I am thinking of is to show the Review Rating stars above the 'Add To Cart' or 'Options Available' button on all the modules. Empty stars to begin with obviously until a review has been writen but even empty stars will provide nice looking graphics. I can do this with an ajax script myself but it wouldn't be tied into the built in review rating system the cart has.

Re: Review Ratings On Other Modules

Posted: Tue Feb 05, 2013 5:53 am
by leo
This is on my todo list. My intention is to add the possibility to enable/disable it in admin (per module).

Re: Review Ratings On Other Modules

Posted: Tue Feb 05, 2013 6:23 am
by Bluesplayer
Perfect :) .

I will stick some dummy rating stars on there I think for now or I might use my version until you get it sorted.

Re: Review Ratings On Other Modules

Posted: Tue Feb 05, 2013 7:44 am
by Bluesplayer
I have added the ratings system to my site now so you can how it looks.

I have set it for now so that anyone can vote but I will alter that soon and make it so that visitors will have to login. I will need to know the session name for this bit of code:

Code: Select all

define('USRRATE', 1);
if(USRRATE !== 1) {
  if(!isset($_SESSION)) session_start();
  if(isset($_SESSION['username'])) define('RATER', $_SESSION['username']);
}
If you could let me know what it is then I can apply it.

Make sure to keep refreshing the page when you visit my site as I am altering the css all the time.

Re: Review Ratings On Other Modules

Posted: Tue Feb 05, 2013 8:13 am
by Brent
I think you need to look at session.php in library. We do not use the standard PHP Session.
It created issues with some servers and it was hard to build in security.

Re: Review Ratings On Other Modules

Posted: Tue Feb 05, 2013 8:16 am
by Bluesplayer
Brent wrote:I think you need to look at session.php in library. We do not use the standard PHP Session.
It created issues with some servers and it was hard to build in security.
Ok thanks.

Re: Review Ratings On Other Modules

Posted: Tue Feb 05, 2013 3:36 pm
by Bluesplayer
Any idea what I should use here:

Code: Select all

if(USRRATE !== 1) {
  if(!isset($_SESSION)) session_start();
  if(isset($_SESSION['alegro'])) define('RATER', $_SESSION['alegro']);
}
As you can see 'alegro' isn't working which I had from this bit of code found in session.php:

Code: Select all

		if (!$this->request->has('alegro', 'cookie')) {
	    	setcookie('alegro', 'accept', time() + 60 * 60 * 24 * 30, '/', NULL, false);
		}