|
|
#1 |
|
Senior Member
Join Date: May 2009
Posts: 123
Rep Power: 3 ![]() |
Maybe someone can help me with this.
In the readme file that comes with the ratings module, the foillowing is indicated ..... -------------------------------------------------------------------------------------- <p>For listing rating add the following code in your viewlistings.tpl file</p> <pre>{assign var="rating" value=$smarty.const.FILESYSTEM_PATH}<br />{include file="$rating/modules/rating/templates/listing_rating.tpl"}</pre> <hr /> <p>If you would like to restrict reviews to only registered users you could open the template file rating.tpl and add this:</p> <pre>{if $smarty.session.username<>""}<br />{$smarty.const.LANG_WRITE_REVIEW}<br />{else}<br />Please login to add a review.<br />{/if}</pre> <hr /> ------------------------------------------------------------------------------------ The first line of code works just fine. HOWEVER .... The second part that talks about only allowing registered users to post ratings has got me stuck. It mentions putting that code in the .... ratings.tpl .... file, which there isn't one that I can find anywhere on the site. If this is a typo, would someone know what file is in question, and where in that file would I put the code. Thanks.
__________________
MrGForce Currently running 68Classifieds v4.1.3 Developer Edition ... Purple Template |
|
|
|
|
|
#2 | |
|
68 Evangelist & Developer
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,591
Rep Power: 46 ![]() ![]() |
What version of the member rating module do you have. V1.1 says:
Quote:
__________________
Mike-N-Tosh IndianaPC.org - A community website (v3.1.10 Developer - heavily modified) Sandbox (v3.1.10, v4.0.9, 4.1.3) Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs Web Hosting | Web Design & Development | 68 Classifieds Customizations I am not a 68C employee, just a user and try to help out |
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: May 2009
Posts: 123
Rep Power: 3 ![]() |
This is from the config file ....
* @copyright Eric L Barnes * * @author EricBarnes * @version $Revision: 78 $ * @package Modules * * @Updated: $Date: 2009-06-09 11:29:25 -0400 (Tue, 09 Jun 2009) $ */ $data['module']['name'] = "rating"; $data['module']['displayname'] = "Comments"; $data['module']['description'] = "Allows users to send comments to users or listings."; $data['module']['version'] = "v1.6"; $data['module']['admin_capable'] = "1"; $data['module']['user_capable'] = "1"; --------------------------------------------------------------------------------------------------- If it is the listing_rating file, where would you put the restriction code compared to the code that displays the ratings? Thanks for your help Mike. .
__________________
MrGForce Currently running 68Classifieds v4.1.3 Developer Edition ... Purple Template |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: May 2009
Posts: 123
Rep Power: 3 ![]() |
Mike;
I figured it out. In the viewlisting.tpl file, I put the following code where we wanted the Ratings to display. It also keeps unregistered guests from even seeing the Ratings, which is what we wanted. ------------------------------------------------------------------ {if $smarty.session.username<>""}{assign var="rating" value=$smarty.const.FILESYSTEM_PATH}<br />{include file="$rating/modules/rating/templates/listing_rating.tpl"} {else}<center><b>Ratings Not Displayed. For Registered Member viewing Only.</b></center>{/if} ------------------------------------------------------------------ Thanks again for your continuing support. I really appreciate it. Now all I need to figure out is why the submit form will not supply the TO: info to the email, which makes the email fail to send.
__________________
MrGForce Currently running 68Classifieds v4.1.3 Developer Edition ... Purple Template |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rating Module | Eric Barnes | Modification Release | 1 | 11-30-2008 07:08 AM |
| Module - Rating Mod | Eric Barnes | Modules / Plugins / Modifications | 7 | 08-26-2008 08:31 AM |
| Regarding Rating Module | nomadant | v3.1 Questions & Support | 17 | 02-08-2008 10:12 AM |
| Rating module... | pschievink | v3.1 Questions & Support | 0 | 06-02-2007 06:27 AM |
| Rating Module | alisa | v3.1 Modules & Modifications | 9 | 04-19-2007 10:00 AM |