1
rewrites
xyp4all email subject line and redirect page
  • 2007/7/16 10:55

  • rewrites

  • Just popping in

  • Posts: 16

  • Since: 2005/5/18


Hi

Have searched evrywhere for info, but still no result. As someone with no PHP experience, how do i change the subject line in the xyp4all module email function from 'Hello - and then name of the title listing' e.g. 'Hello John Smith' to something like 'referal from http://www.abc.com'? I know it is in the contact.php page, but no idea how to change it.

Also, the redirect page after the email button has been clicked goes nowhere and simply redirects to url: mailto:someone@anyisp.com?subject=Hello%20Mr%20John%20Smith.

Any ideas how to change this would be very much appreciated.

Thanks in advance.

PH

2
zyspec
Re: xyp4all email subject line and redirect page
  • 2007/7/16 14:34

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


One way to accomplish this is to modify ./templates/xyp_listingfull.html

Replace:
<form name=email action='<{$xoops_url}>/modules/xyp4all/contact.php' method=get>
<
input type='hidden' name='lid' value='<{$link.id}>'>
<
input type=submit value='Email'>
form>
With:
<form>
<
input type="button" value="Email" 
  
onClick="location.href='mailto:<{$link.email}>?subject=Referral from <{$xoops_sitename}>'" />
form>


This method just pops up the email client when the Email button is pressed but doesn't force a redirect.

3
rewrites
Re: xyp4all email subject line and redirect page
  • 2007/7/17 22:02

  • rewrites

  • Just popping in

  • Posts: 16

  • Since: 2005/5/18


Hi

Thanks for the quick response on this - really appreciated! I shall put it into practice tomorrow.

Best wishes

PH

Login

Who's Online

319 user(s) are online (229 user(s) are browsing Support Forums)


Members: 0


Guests: 319


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits