|
|
#1 |
|
Senior Member
Join Date: Mar 2007
Posts: 126
Rep Power: 11 ![]() |
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 |
|
|
|
|
|
#2 | |
|
Moderator
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 730
Rep Power: 27 ![]() |
Quote:
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 |
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Mar 2007
Posts: 126
Rep Power: 11 ![]() |
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} |
|
|
|
|
|
#4 | ||
|
Moderator
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 730
Rep Power: 27 ![]() |
You can add it anywhere you wish so long as it is within a table cell. ie: <td>add it here</td>.
Quote:
Quote:
__________________
Chaslie V4.1 dev 68 Classifieds Important Links Customer Area | Issue Tracker | User Manuals & Documentation HTML Help W3 Schools |
||
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Mar 2007
Posts: 126
Rep Power: 11 ![]() |
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 |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 730
Rep Power: 27 ![]() |
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 |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Mar 2007
Posts: 126
Rep Power: 11 ![]() |
I assume the ones that are in the module folder and inside the template folder...
|
|
|
|
|
|
#8 | |
|
Moderator
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 730
Rep Power: 27 ![]() |
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:
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 |
|
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Mar 2007
Posts: 126
Rep Power: 11 ![]() |
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. |
|
|
|
|
|
#10 |
|
Moderator
|
I think the area is under the admin link for that particular module.
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |