Hello there. I am a newbie to drupal and need help. I have installed the rlisting module and i am very pleased with the functionality; however i want to change the hyperlink text to say "contact owner" vs. "contact realtor". i cannot find where in the php script to change that. I have found the breadcrumbs for the drupal interface but cannot find where hyperlink text is changed for this module. thanks in advance for any response

Comments

Fishabilly’s picture

Title: Changing the hperlink text » Changing the hyperlink text

Hello there. I am a newbie to drupal and need help. I have installed the rlisting module and i am very pleased with the functionality; however i want to change the hyperlink text to say "contact owner" vs. "contact realtor". i cannot find where in the php script to change that. I have found the breadcrumbs for the drupal interface but cannot find where hyperlink text is changed for this module. thanks in advance for any response

vegeneric’s picture

hey fishabilly...

listing.module, approximately line 940...in function theme_listing_agent, you'll find the following lines:

$contact = l(t('Contact Realtor'),'listing/contact/'.$node->uid.'/'.$node->nid,null,$destination);
$listing = l(t('Realtor Listings '),'user/'.$node->uid.'/mylisting');

since it's a theme function, i'd recommend cutting the whole function out, renaming it "function phptemplate_listing_agent" (replacing phptemplate w/ the name of your theme engine, if different), and placing the function in a file called template.php inside your theme's main directory. that way, you can alter the text without hacking the listing module.

hope that helps,

veg

Fishabilly’s picture

Thanks Veg...it worked perfectly.

vegeneric’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 199796)