Knowledgebase
View categorized listing of all common frequently asked questions.
Video Tutorials (jReviews 2.0)
Create a Movie & TV Show review website.
Customize the jReviews themes.
Review user profiles with the Everywhere addon.
Forum
Community forum
Submit a Ticket
Use your client area email to access the ticket system.
Downloads
Guides, modules and more...
CSV Import for Joomla and jReviews
 
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 07:39:36 PM
21713 Posts in 4960 Topics by 2844 Members
Latest Member: chotchcala
News: Use your client area email when you sign up to the forum so we can identify you as a trial or licensed user. Otherwise we may not answer your questions.
 
jReviews Support Forum  |  jReviews 2.x  |  General discussion  |  Different Rating Criteria for Users and Authors « previous next »
Pages: [1]
Author Topic: Different Rating Criteria for Users and Authors  (Read 260 times)
bohica
Newbie
*
Offline Offline

Posts: 13


« on: July 22, 2008, 06:08:57 AM »

Hi,

I've tried searching for answer for this - but not had any luck Smiley

I need to configure my reviews so the Editor/Author has a different set of Ratings to the Users. Is this possible? I've gone slightly brain-dead chopping up template code over the last couple of days, so forgive me if I've missed something obvious.

Thanks,

Mark.
Logged
eskwire
Sr. Member
****
Offline Offline

Posts: 180



WWW
« Reply #1 on: July 22, 2008, 07:24:44 AM »

Hi Mark,

Sounds like you have been putting some work into the site.  I would love to see a link when you are ready to share.

Two sets of Review Criteria is an interesting idea.  I am not sure what you are asking for is possible without a lot of custom coding but I have never had to think about this problem before. :-) 

Alejandro will probably post here as well and he will know for sure.

Hope this helps!
Logged

Let Intown Web design help you with   jReviews Support
Best Headphone Reviews
bohica
Newbie
*
Offline Offline

Posts: 13


« Reply #2 on: July 22, 2008, 08:28:52 AM »

Hi - thanks for the response. I'd love to show you the site, unfortunately it's a freelance project and I can't open it until the client's ready to launch.

Basically, one of the requirements is for users to rate products, but for the site owner to produce their own, separate rating.

If it can't be done here, I'll write a script that will generate the rating image for inclusion in the page. But I'd much rather have been able to do all through JReviews - especially when it comes to making th editorial process as straightforward as possible.

Great product through - it's really making this job come to life.

Mark.
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8613


« Reply #3 on: July 22, 2008, 09:06:49 AM »

There's only one way to do this and it is to use single select, listing, custom fields for the editor ratings and turning off the built-in editor review functionality. What you would do is create one field for each criteria and then add the rating options: 1,2,3,4... and an image to go which each one.

Then in your detail and list views you can use the custom layout of fields (there's an article in the Knowledge Base for jReviews 2.x) to show the ratings and even calculate an average using php.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
bohica
Newbie
*
Offline Offline

Posts: 13


« Reply #4 on: July 22, 2008, 09:25:41 AM »

Hi Alejandro

Great to hear there's a solution. It's obvious now I see it written down.

One last thing - although it's something on my bug list I haven't reached yet. For some reason, when a review is submitted I'm getting an extra linebreak in between the summary and content, but none between paragraphs in the content (see attached image). Is this the result of me hacking templates about, or something else?

Thanks,

Mark.
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8613


« Reply #5 on: July 22, 2008, 09:49:27 PM »

Is the line break actually added in the database as well or does it just appear in the browser? Make sure there aren't any extra lines in either summary or description textareas when you submit the listing.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
bohica
Newbie
*
Offline Offline

Posts: 13


« Reply #6 on: July 23, 2008, 03:29:14 AM »

Hi Alejandro,

Problem solved. As suspected, it was user error Smiley

I'm currently in the process of building out the section pages (now I've finally finished the review templates) - and I've noticed that clicking on a review link from a (joomla) Section Blog page causes the content to load within that page. This has the effect of displaying the article with its modules, but with the section modules. As these both have different layouts and different modules, this somewhat breaks things.

Any idea what I've miss-configured to cause this? I've included the URLs below as example (the site's not live, so the pages themselves can't be accessed - let me know if you want me to set you up an account).

Section URL:
http://happyfuncorp.com/index.php?option=com_content&view=section&layout=blog&id=15&Itemid=71

Article URL:
http://happyfuncorp.com/index.php?option=com_content&view=article&id=132&catid=50:mobilephonereviews&Itemid=71

Many thanks,

Mark.
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8613


« Reply #7 on: July 23, 2008, 07:45:02 AM »

There's no fix for this as far as I know. Article links inherit their section or category Itemids in the url which determines which modules are shown. You would have to write logic around the modules in the Joomla template index.php to hide them.

This really isn't a jReviews thing, it's more about the way Joomla works.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
bohica
Newbie
*
Offline Offline

Posts: 13


« Reply #8 on: July 23, 2008, 08:09:30 AM »

Hi mate,

OK - just to get this straight.

The site structure worked like this:

Front Page/Frontpage Blog (includes modules specific to that page only)
--Section Page/Section Blog (includes modules specific to that page only)
---Category/Category Blog (has modules specific to that page)
---Blog/Blog-specific template
---News/News specific template
------Articles (has own sets of modules that do not appear anywhere else).

This structure worked fine for the entire site. However, after installing JReviews, this happens:

Clicking from the Category page to load the article seems to load the article into the Category page's com_content area. The affect of that is that the article is surround by mis-aligned modules and it's own (article page) modules naturally do not load.

This is why I get the feeling I may have mis-configured JReviews as the problem originates only when it loads an article process by JReviews.

If that's the same as the issue you've covered in previous post, then it's back to more PHP Sad

{edit}
So more of this kind of thing?

/*----------<?php if( JRequest::getVar( 'view' ) == category): ?>
      <jdoc:include type="modules" name="section1" style="xhtml" />   
 
<?php endif; ?> *------------/
« Last Edit: July 23, 2008, 12:09:10 PM by bohica » Logged
travisdh
Sr. Member
****
Offline Offline

Posts: 138


WWW
« Reply #9 on: July 23, 2008, 09:24:25 AM »

To be honest, and someone correct me if i am wrong i doubt this would be possible.

The problem is that the rating criteria are set based on the section / category etc so for you to be able to have a different criteria for users and for editors you would really have to do a big code change and alot of custom work.

Sorry it is not really the best thing to hear. I guess you could maybe have different criteria for different users in the form of custom fields, so you maybe have custom fields 1,2,3,4,5 single select for the users and have them only accessable to registered users - user group.

and then also have other custom fields 1a,2a,3a,4a,5a single select fields and you either have those fields only accessable to a different user group you could allow users to select the rating for each custom field, in this case registered users would see the fields 1,2,3,4,5 whilst administrators might see 1a,2a,3a,4a,5a you would then maybe have to write some php to average each field value etc.

Hope that helps a little big, sorry i could not be more help.
Logged

Cheers - Trav Hale (Skype Travis.mobile)

bohica
Newbie
*
Offline Offline

Posts: 13


« Reply #10 on: July 25, 2008, 06:46:55 AM »

Thanks to everyone for all their help.

The module issue is now sorted thanks to plenty of extra PHP. And the site's looking the way both myself and the client envisages.

Also, thanks for the suggestions on how to fudge a seperate ratings criteria. I think I have the way forward now. But I've had enough for this week, so I'm going back to it on Monday.

Mark.
Logged
Pages: [1]
« previous next »
    Jump to: