Support Forums

Old 04-16-2007, 01:55 PM   #1
Senior Member
 
alisa's Avatar
 
Join Date: Mar 2007
Posts: 126
Rep Power: 11
alisa is on a distinguished road
Question Rating Module

Hi,

I'm trying to include this code as per instructions...
and came up with a blank page...everywhere...

I suppose I'm not putting in the right area inside the code..

Where exactly am I supposed to place it...?

Want to rate the listing and member....

Thanks
Alisa
alisa is offline   Reply With Quote
Old 04-16-2007, 04:25 PM   #2
Moderator
 
Chaslie's Avatar
 
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 730
Rep Power: 27
Chaslie will become famous soon enough
Default

Quote:
I suppose I'm not putting in the right area inside the code..
We need more information to help you with this.

Where are you adding it and what is the name of the file in which it is being added?

What do the instructions say?

Are you using a text editor or something else?
__________________
Chaslie
V4.1 dev


68 Classifieds Important Links
Customer Area | Issue Tracker | User Manuals & Documentation

HTML Help
W3 Schools
Chaslie is offline   Reply With Quote
Old 04-16-2007, 04:35 PM   #3
Senior Member
 
alisa's Avatar
 
Join Date: Mar 2007
Posts: 126
Rep Power: 11
alisa is on a distinguished road
Default

This is what it says on the website ... files are named and where...
but does not tell me location within the code itself...

Manual Template Changes

Member Rating
To enable the rating of members add the following code in your member.tpl.php file:

{assign var="rating" value=$smarty.const.FILESYSTEM_PATH}
{include file="$rating/modules/member_rating/templates/member_rating.tpl.php"}

Listing Rating
To enable the listing rating add the following code in your viewlisting.tpl.php file:

{assign var="rating" value=$smarty.const.FILESYSTEM_PATH}
{include file="$rating/modules/member_rating/templates/listing_rating.tpl.php"}

If you would like to restrict reviews to only registered users you could open the template file member_rating.tpl.php and add this:

{if $smarty.session.username<>""}
{$smarty.const.LANG_WRITE_REVIEW}</a>
{else}
Please login to add a review.
{/if}
alisa is offline   Reply With Quote
Old 04-16-2007, 06:03 PM   #4
Moderator
 
Chaslie's Avatar
 
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 730
Rep Power: 27
Chaslie will become famous soon enough
Default

You can add it anywhere you wish so long as it is within a table cell. ie: <td>add it here</td>.
Quote:
EDIT: <td>add it here</td>. is incorrect - will get back to this further down.
Quote:
If you would like to restrict reviews to only registered users you could open the template file member_rating.tpl.php and add this:
Are you adding your 'suggested' code first ... or have you initially added just that code suggested in the instructions?
__________________
Chaslie
V4.1 dev


68 Classifieds Important Links
Customer Area | Issue Tracker | User Manuals & Documentation

HTML Help
W3 Schools
Chaslie is offline   Reply With Quote
Old 04-16-2007, 06:49 PM   #5
Senior Member
 
alisa's Avatar
 
Join Date: Mar 2007
Posts: 126
Rep Power: 11
alisa is on a distinguished road
Default

I was adding the code in the instructions...
as I thought it was literal...

Do most folks suggest rating from registered users over rating from all users???

I think I'm very lost right now...

I guess I need to know a bit more detail as to where to add and what code to surround it with....

and does it go inside my template folder bluejs or other?

Alisa
alisa is offline   Reply With Quote
Old 04-16-2007, 07:39 PM   #6
Moderator
 
Chaslie's Avatar
 
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 730
Rep Power: 27
Chaslie will become famous soon enough
Default

Do you know where the 'member.tpl.php' and 'viewlisting.tpl.php' files are located?
__________________
Chaslie
V4.1 dev


68 Classifieds Important Links
Customer Area | Issue Tracker | User Manuals & Documentation

HTML Help
W3 Schools
Chaslie is offline   Reply With Quote
Old 04-16-2007, 08:51 PM   #7
Senior Member
 
alisa's Avatar
 
Join Date: Mar 2007
Posts: 126
Rep Power: 11
alisa is on a distinguished road
Default

I assume the ones that are in the module folder and inside the template folder...
alisa is offline   Reply With Quote
Old 04-16-2007, 09:29 PM   #8
Moderator
 
Chaslie's Avatar
 
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 730
Rep Power: 27
Chaslie will become famous soon enough
Default

These two files are in your template folder: /templates/bluejs/......
There are no files called 'member.tpl.php' and 'viewlisting.tpl.php' in your ratings module folder.

Now in 'viewlisting.tpl.php', add this at the very bottom of the page:
Quote:
{assign var="rating" value=$smarty.const.FILESYSTEM_PATH}
{include file="$rating/modules/member_rating/templates/listing_rating.tpl.php"}
Save it and upload to your server.

In administration, go to the Manage Modules area, then 'initiate' then 'activate' member rating (if you have not already done so).

After you have done this, go to a 'listing' at the front end of your site.

Q1: At the very bottom of this page, is there a 'Review' box and link present?
Q2: .... and does the link open a new window in which a review can be added?
__________________
Chaslie
V4.1 dev


68 Classifieds Important Links
Customer Area | Issue Tracker | User Manuals & Documentation

HTML Help
W3 Schools
Chaslie is offline   Reply With Quote
Old 04-17-2007, 10:16 AM   #9
Senior Member
 
alisa's Avatar
 
Join Date: Mar 2007
Posts: 126
Rep Power: 11
alisa is on a distinguished road
Red face

OK this is long...but did several thing and then updated my post...

Actually when we selected the bluejs template...
I guess its pulling all the files from default...because I only have layout in there...

and when I downloaded the rating module...there was a template file included with these files in there....

add_review.tpl.php
admin_rating.tpl.php
admin_settings.tpl.php
listing_rating.tpl.php
member_rating.tpl.php

Look at your code that I inserted...the absolute path does include a template folder withing the rating module....
_____
file="$rating/modules/member_rating/templates/listing_rating.tpl.php"}
________
Sorry if I'm being dense....but I will do what you say first and put the file in there with your code and see what it does....
I placed it inside my templates/bluejs folder so it is not looking at the default folder anymore..


Back again...I put in your code where you told me too...
Yes everything shows up...I'm able to write the reviews...
but the count does not show up..it just stays at zero...
Tried submitting as a guest...which worked...and also logged in and submitted a review...let me do it several times...but it does not show up under the count....

The page read is tallying up though...

Back again....I did receive emails telling me I have a review...
this is what it says...
"A new review has been added to your classifieds website. Please visit your administration to validate it."

So I logged in and there is not area to validate...not sure where to do that...
I'm assuming (so many assumptions!) that it will not tally up the count unless I verify...?

But then if I find an unreasonable rating...I will probably not want to do so!
Perhaps I'm getting ahead of myself.
Most likely I am....
Alisa

Last edited by alisa; 04-17-2007 at 10:57 AM.
alisa is offline   Reply With Quote
Old 04-19-2007, 10:00 AM   #10
Moderator
 
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,178
Rep Power: 59
juven14 is a jewel in the rough
Default

I think the area is under the admin link for that particular module.
__________________
TemplateCodes.com
juven14 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modification: Rating Module Eric Barnes v3.1 Modules & Modifications 13 02-28-2008 11:19 PM


All times are GMT -4. The time now is 07:13 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0