Support Forums

Module - Rapleaf

This is a discussion on Module - Rapleaf within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Rapleaf Module This module allows you to integrate Rapleaf's rating & reputation functionality into your website. About Rapleaf Rapleaf’s goal ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 10-19-2007, 02:13 PM   #1
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,316
Rep Power: 125
Eric Barnes is a jewel in the rough
Default Module - Rapleaf

Rapleaf Module

This module allows you to integrate Rapleaf's rating & reputation functionality into your website.

About Rapleaf

Rapleaf’s goal is to make it more profitable to be ethical. Rapleaf is the only email-based reputation lookup on the web. We encourage you to lookup people’s Rapleaf reputation before transacting, hiring, or even interacting with them. We also encourage you to endorse your friends and leave feedback on buyers and sellers.

Requirements

Minimum version 4.0.0

Instructions

Download the zip file and upload it to your modules directory. Next visit administration -> manage modules -> regenerate and activate the module.

Open the settings.php file and insert your Rapleaf API key. You can obtain an API key from here:
http://www.rapleaf.com/developer/api_key

Next modify the viewlistings template file and add this code:
Code:
<a href="{$rapleaf_profile_URL}"><img src="{$rapleaf_image_small}" border="0" /></a>
The following variables are available:
{$rapleaf_image_small} - Small Image
{$rapleaf_image} - Large Image
{$rapleaf_score} - This is the 'rapleaf score' that you see on a person's rapleaf badge on their profile. Basically, the higher the score of a person, the more feedback they have received and given.
{$rapleaf_profile_URL} - The link to the users profile.

Demo

You can see a live demo in our extensions directory here:
http://www.68classifieds.com/extensi...af-Module.html


Help & Support

If you need any help just reply below and we will try and help.

Download
Attached Files
File Type: zip rapleaf.zip (15.8 KB, 17 views)
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules

Last edited by Eric Barnes; 10-19-2007 at 02:55 PM.
Eric Barnes is offline   Reply With Quote
Old 10-22-2007, 07:45 PM   #2
Member
 
Join Date: Oct 2007
Posts: 43
Rep Power: 10
outthere is on a distinguished road
Default

where exactly would i put the code in viewlistings.tpl so it shows up like the demo? it is currently at the bottom

ok i changed it placement and it is now to the right of the username

<td>
{if $preview!="Y"}
<a href="viewmember.php?member={$owner}">{$username}</a>
{else}
{$username}
{/if}
<a href="{$rapleaf_profile_URL}"><img src="{$rapleaf_image_small}" border="0" /></a>
</td>

will this be ok? I dont want to cause errors..
thanks

Last edited by outthere; 10-22-2007 at 07:53 PM. Reason: did i fix it? lol
outthere is offline   Reply With Quote
Old 06-30-2008, 03:58 PM   #3
Member
 
 
Join Date: Jun 2007
Posts: 66
Rep Power: 12
dphibb is on a distinguished road
Exclamation How to enter the API key in settings.php?

Hi! I'm trying to get this rapleaf mod to work and I'm not seeing where I should put the API key in settings.php. I tried just slapping it in the file, but it didn't work. Is there some code that needs to go with this API key?

Thanks!
dphibb is offline   Reply With Quote
Old 06-30-2008, 04:03 PM   #4
Coder
 
Join Date: Mar 2006
Posts: 4,982
Rep Power: 121
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Hmmm.

Aside from the comments there is only one line in the file that looks like this......

$r_apikey = 'your_key_here';

You would place your API key....well.....right where it says your_key_here.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 06-30-2008, 04:07 PM   #5
Member
 
 
Join Date: Jun 2007
Posts: 66
Rep Power: 12
dphibb is on a distinguished road
Default

Ok, I am not seeing that code. Is it in administration/settings.php? Or, is there another file I'm supposed to be looking at?
dphibb is offline   Reply With Quote
Old 06-30-2008, 04:13 PM   #6
Coder
 
Join Date: Mar 2006
Posts: 4,982
Rep Power: 121
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by dphibb
Ok, I am not seeing that code. Is it in administration/settings.php? Or, is there another file I'm supposed to be looking at?
No, its in the settings.php file that comes with rapleaf. Which, you install by copying to your modules folder. so it would be in /modules/rapleaf/settings.php
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 06-30-2008, 04:17 PM   #7
Member
 
 
Join Date: Jun 2007
Posts: 66
Rep Power: 12
dphibb is on a distinguished road
Default

Oh boy! Ok, thank you so much!!!
dphibb is offline   Reply With Quote
Old 06-30-2008, 04:33 PM   #8
Member
 
 
Join Date: Jun 2007
Posts: 66
Rep Power: 12
dphibb is on a distinguished road
Default One more thing (Sorry!)

I'm sorry to bother you again, but now I am getting a broken image when I put the viewlisting.php code in. Ahhh!

If it helps, I would like to get the rapleaf_score feature.

Last edited by dphibb; 06-30-2008 at 04:39 PM.
dphibb is offline   Reply With Quote

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