Support Forums


Go Back   68 Classifieds Forums > Help & Support > v4.1 Questions & Support

Notices

 
LinkBack Thread Tools Display Modes
Old 07-17-2009, 04:50 PM   #1
Senior Member
 
MrGForce's Avatar
 
Join Date: May 2009
Posts: 123
Rep Power: 3
MrGForce is on a distinguished road
Default Rating Module question....

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
MrGForce is offline   Reply With Quote
Old 07-17-2009, 06:55 PM   #2
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,591
Rep Power: 46
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

What version of the member rating module do you have. V1.1 says:
Quote:
If you would like to restrict reviews to only registered users you could open the template file member_rating.tpl and add this:
Anyway, that would be in the templates folder of the module folder
__________________
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
Mike-N-Tosh is offline   Reply With Quote
Old 07-17-2009, 07:02 PM   #3
Senior Member
 
MrGForce's Avatar
 
Join Date: May 2009
Posts: 123
Rep Power: 3
MrGForce is on a distinguished road
Default

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
MrGForce is offline   Reply With Quote
Old 07-17-2009, 07:43 PM   #4
Senior Member
 
MrGForce's Avatar
 
Join Date: May 2009
Posts: 123
Rep Power: 3
MrGForce is on a distinguished road
Default

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
MrGForce 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
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


All times are GMT -4. The time now is 12:37 AM.


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