[SOLVED] Another tweak needed for Tell a Friend tag

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
harleyquinn
Forum Members
Forum Members
Posts: 36
Joined: Fri Dec 22, 2006 4:29 pm
Location: Philadelphia, PA

[SOLVED] Another tweak needed for Tell a Friend tag

Post 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.
Last edited by harleyquinn on Tue Jun 19, 2007 1:40 am, edited 1 time in total.
harleyquinn
Forum Members
Forum Members
Posts: 36
Joined: Fri Dec 22, 2006 4:29 pm
Location: Philadelphia, PA

Re: Another tweak needed for Tell a Friend tag

Post 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
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm
Location: Helsinki, Finland

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

Post by KO »

Thanks for sharing this us.

Br, K
johnmck
Forum Members
Forum Members
Posts: 34
Joined: Wed May 30, 2007 4:56 pm

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

Post by johnmck »

ok ok,
ive downloaded the mod - how do i install it?
harleyquinn
Forum Members
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

Post 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
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm
Location: Florida

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

Post by carasmo »

Where is this module? I can't find it.

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

Thanks!
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm
Location: Florida

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

Post by carasmo »

I found it. Never mind
Post Reply

Return to “CMSMS Core”