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.
[SOLVED] Another tweak needed for Tell a Friend tag
-
- Forum Members
- Posts: 36
- Joined: Fri Dec 22, 2006 4:29 pm
- Location: Philadelphia, PA
[SOLVED] Another tweak needed for Tell a Friend tag
Last edited by harleyquinn on Tue Jun 19, 2007 1:40 am, edited 1 time in total.
-
- Forum Members
- Posts: 36
- Joined: Fri Dec 22, 2006 4:29 pm
- Location: Philadelphia, PA
Re: Another tweak needed for Tell a Friend tag
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:
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
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>
Regards,
HQ
Re: [SOLVED] Another tweak needed for Tell a Friend tag
Thanks for sharing this us.
Br, K
Br, K
Re: [SOLVED] Another tweak needed for Tell a Friend tag
ok ok,
ive downloaded the mod - how do i install it?
ive downloaded the mod - how do i install it?
-
- Forum Members
- Posts: 36
- Joined: Fri Dec 22, 2006 4:29 pm
- Location: Philadelphia, PA
Re: [SOLVED] Another tweak needed for Tell a Friend tag
Upload it to your plugins folder.
Then call it on your layout with the following, changing the parameters to suit your needs.
For more info, in your admin go to Extensions > Tags.
HQ
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'}
HQ
Re: [SOLVED] Another tweak needed for Tell a Friend tag
Where is this module? I can't find it.
I looked in the tags too, still don't see it.
Thanks!
I looked in the tags too, still don't see it.
Thanks!
Re: [SOLVED] Another tweak needed for Tell a Friend tag
I found it. Never mind