Page 1 of 1

[SOLVED] Another tweak needed for Tell a Friend tag

Posted: Mon Jun 18, 2007 1:15 am
by harleyquinn
I'm using the Tell a Friend tag and I figured out how to have it open up in a new window using target="_blank" -- but I can't resize the window using this method.

So, I decided to use some javascript to make it open in a new window. It works, but in the email message it only shows http://www.website.com -- I need it to show the entire page url: http://website.com/page like it did when I used target="_blank"

Can anyone give me some ideas on how to accomplish this? Unfortunately, I have trouble wrapping my head around anything related to php or javascript, so any help would be most appreciated.

Re: Another tweak needed for Tell a Friend tag

Posted: Tue Jun 19, 2007 1:38 am
by harleyquinn
I figured it out. Here's the solution incase anyone else wants their tell a friend form to open up in a popup window. Not sure if it's the best solution, but it works.

Format the Tell a Friend link on your pages with the following:

Code: Select all

<a href="yourpagewhereformlives" target="page" onClick="window.open('','page','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=325,height=450,left=50,top=50,titlebar=yes')">Send this page to a friend</a>
The above code has the window open to a specific size and only shows the titlebar. If your want to show toolbar, scrollbars etc, change the 0 to 1.

Regards,
HQ

Re: [SOLVED] Another tweak needed for Tell a Friend tag

Posted: Tue Jun 19, 2007 6:02 am
by KO
Thanks for sharing this us.

Br, K

Re: [SOLVED] Another tweak needed for Tell a Friend tag

Posted: Thu Jul 12, 2007 3:03 pm
by johnmck
ok ok,
ive downloaded the mod - how do i install it?

Re: [SOLVED] Another tweak needed for Tell a Friend tag

Posted: Thu Jul 12, 2007 4:29 pm
by harleyquinn
Upload it to your plugins folder.

Then call it on your layout with the following, changing the parameters to suit your needs.

Code: Select all

{tellafriend_form emailsubject='Check out this page!' style='true' cannedtext='I thought you might find this page interesting' captcha='true'}
For more info, in your admin go to Extensions > Tags.

HQ

Re: [SOLVED] Another tweak needed for Tell a Friend tag

Posted: Fri Jul 20, 2007 3:45 am
by carasmo
Where is this module? I can't find it.

I looked in the tags too, still don't see it.

Thanks!

Re: [SOLVED] Another tweak needed for Tell a Friend tag

Posted: Fri Jul 20, 2007 4:02 am
by carasmo
I found it. Never mind