Review Ratings On Other Modules
-
- Posts: 152
- Joined: Sun Jan 06, 2013 3:03 pm
Review Ratings On Other Modules
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
This is on my todo list. My intention is to add the possibility to enable/disable it in admin (per module).
-
- Posts: 152
- Joined: Sun Jan 06, 2013 3:03 pm
Re: Review Ratings On Other Modules
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.
I will stick some dummy rating stars on there I think for now or I might use my version until you get it sorted.
-
- Posts: 152
- Joined: Sun Jan 06, 2013 3:03 pm
Re: Review Ratings On Other Modules
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:
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.
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']);
}
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
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.
It created issues with some servers and it was hard to build in security.
-
- Posts: 152
- Joined: Sun Jan 06, 2013 3:03 pm
Re: Review Ratings On Other Modules
Ok thanks.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.
-
- Posts: 152
- Joined: Sun Jan 06, 2013 3:03 pm
Re: Review Ratings On Other Modules
Any idea what I should use here:
As you can see 'alegro' isn't working which I had from this bit of code found in session.php:
Code: Select all
if(USRRATE !== 1) {
if(!isset($_SESSION)) session_start();
if(isset($_SESSION['alegro'])) define('RATER', $_SESSION['alegro']);
}
Code: Select all
if (!$this->request->has('alegro', 'cookie')) {
setcookie('alegro', 'accept', time() + 60 * 60 * 24 * 30, '/', NULL, false);
}