Tell a friend module ?

Talk about new features for CMSMS and modules.
Post Reply
siraxi

Tell a friend module ?

Post by siraxi »

Hi there

I'm so excited I've got this CMS instaleld on my new website. Wondering if there is a ready to use tell-a-friend module that I could use?

Thanks!
vaughnt
Forum Members
Forum Members
Posts: 82
Joined: Tue Jun 13, 2006 2:05 pm

Re: Tell a friend module ?

Post by vaughnt »

--
My photography: http://vaughnsphotoart.com
Festiva Resorts: http://www.festiva.travel
Pierre M.

Re: Tell a friend module ?

Post by Pierre M. »

Hello,

well done. Sorry for being grumpy, but I'd like to tell that I don't like those "tell a friend" features : I think it is too often a way for spammers to collect 2 adresses at a time from webnewbies (like my beloved sister ;).

Pierre M.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Tell a friend module ?

Post by RonnyK »

vaughnt,

thanks for providing the tag. I made a small change to the function I wanted to share. As I wanted the tag to be opened similar to the print-button I couldn't work with "REQUEST_URI" as that shows the current page. I changed the logic for $pageURL:

Code: Select all

$pageURL .= $_SERVER["HTTP_REFERER"];
This way the page I came from is the link provided and not the page that holds the tag. It might be good to have it as a variable in the tag, to choose between the current-page and the refering-page as it depends on the way you use the tag.

On my site I implemented your tag as follows:

In the template I call (in addition to {print}):

Code: Select all

<div style="float: right;"><a href="index.php?page=mailfriend"><img height="20" alt="" 
width="20" src="uploads/images/email-icon.png" />{print showbutton=true script=true}</div>
I then created a page called "mailfriend" as that is the page being called using the link (image). On the options tab, I unchecked the "visible in menu" as I don't want to show that page in menu, but it must be active to be able to call it. The content on that page is, the calling of the tag.

Code: Select all

{tellafriend_form emailsubject='Check out this page!' captcha=true}
The subject is than the calling page instead of the "mailfriend"-page. My suggestions for future development would be to call it from a link instead of a direct form, where there is an option on the page in the content, and maybe optionally the detailpage (the page where the form is to be opened).

One Karma to you.

Ronny
Last edited by RonnyK on Wed Mar 28, 2007 9:04 am, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Tell a friend module ?

Post by Nullig »

I tried it out, but it doesn't seem to send any emails.

Is there a pre-requisite to have formbuilder installed?

My CMSMailer uses SMTP and other forms send OK.

Any ideas?

Nullig
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Tell a friend module ?

Post by RonnyK »

Nullig,

did you get it working yet?

On http://test.krijt.eu I got it working with the settings described above. It isn't using the FormBuilder.

If you want I can PM you a login/pw to see the settings on that site to see by yourself what is different from your setup.

Ronny
Pierre M.

Re: Tell a friend module ?

Post by Pierre M. »

BTW, folks, don't your browsers have a "send page" or "send link" builtin feature ?
Pierre M.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Tell a friend module ?

Post by RonnyK »

Pierre,

the browsers have that function, but they use the default mail-program to send it (Outlook f.e.). The tag goes through the CMSMS mailer, so no need for a mail-client.

Ronny
Post Reply

Return to “Feature ideas”