Recommend Us module question

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Recommend Us module question
tena
CZ Newbie
tena has been a member for over 20 year's 20 Year Member
usa.gif kansas.gif
Occupation: System Analyst
Age: 48
Gender: Female
Status: Offline
Joined: Jul 15, 2004
0.00 posts per day
Posts: 5
Points: 376
   
I'm trying to alter the email which is sent with the Recommend Us Module in PHPNuke 7.2. I look at the index.php file in the Recommend_Us folder. I can't tell where the code is calling the information or which other file this information is in.

I'm assuming this part of the code is where its constructed:

function SendSite($yname, $ymail, $fname, $fmail) {
global $sitename, $slogan, $nukeurl, $module_name;
$fname = removecrlf($fname);
$fmail = removecrlf($fmail);
$yname = removecrlf($yname);
$ymail = removecrlf($ymail);
$subject = ""._INTSITE." $sitename";
$message = ""._HELLO." $fname:\n\n"._YOURFRIEND." $yname "._OURSITE." $sitename "._INTSENT."\n\n\n"._FSITENAME." $sitename\n$slogan\n"._FSITEURL." $nukeurl\n";
mail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" . phpversion());
update_points(3);
Header("Location: modules.php?name=$module_name&op=SiteSent&fname=$fname");


But just how am I supposed to edit the "._HELLO." AND "._YOURFRIEND." (etc) parts of this to have it say what I want it to say?

If you need more information let me know. I appreciate anyones input and assistance.

Thanks!



Back to top Reply with quote
#2   re: Recommend Us module question
jaymullah
CZ Super Newbie
jaymullah has been a member for over 20 year's 20 Year Member
usa.gif northcarolina.gif
Occupation: Freelance Webdesign
Age: 44
Gender: Male
Website:
Status: Offline
Joined: Jan 11, 2004
0.01 posts per day
Posts: 40
Points: 3,244
 Yahoo Messenger MSN Messenger 
Look in modules/Recommend_Us/language and open the file for the language you use, i.e. lang-english.php

You will see "_HELLO" and everything else defined, and can edit it this from here. Almost all modules will use this same structure.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum