 |

noza
User
Aug 13, 2002, 7:43 PM
Post #1 of 21
(9695 views)
Shortcut
|
tell a friend mod !
|
Can't Post
|
|
Hi I have visited many of the sites using Article Mgr., and noticed that most everyone is using the "tell a friend feature" Art. Mgr. comes with, which is basicly a "mailto:" link. Well... I wanted to share what I have done and how well is working! I installed BigNoseBird.com free "tell a friend" Birdcast script. and add it the link to the articles template. It is easy, looks nice and works great. Check it out here: http://www.almaweb.org Get the free script here: http://bignosebird.com/carchive/birdcast.shtml ***NOW IF SOMEONE WOULD LIKE TO HELP, I would love to modify the script with a Java script to make it justa pop-up window. Hope it helps Pat NozaNoze.com
|
|
|  |
 |

MalaK_3araby
User
Aug 14, 2002, 12:06 AM
Post #2 of 21
(9683 views)
Shortcut
|
|
Re: [noza] tell a friend mod !
[In reply to]
|
Can't Post
|
|
Hi noza I am a total newbie but i just tested something that will do what you want. 1- Create a Thank-You page and add a click-to-close html code:
<a href="javascript:window.close()" target="_top" style="text-decoration: none" alt="click to close this page!"> <font face="Times New Roman" size="2"><b>Close</b></a> 2- change the link in your template to open in a new page (target="_blank"). try to resize the pop-up to your table sizes. i dont remember the code now. 3- in the tell-a-friend script find:
$SCRIPT_NAME=... etc. (around line 61) and below that add:
$thanks="http://YourDomainPath/thanks.htm"; 4- find the line:
<INPUT TYPE="HIDDEN" NAME="call_by" VALUE=$ENV{'HTTP_REFERER'}> and change it to:
<INPUT TYPE="HIDDEN" NAME="call_by" VALUE=$thanks> Save the file and upload -------------- Sure you can spell it, but do you get it?
|
|
|  |
 |

noza
User
Aug 14, 2002, 11:53 AM
Post #3 of 21
(9668 views)
Shortcut
|
|
Re: [MalaK_3araby] tell a friend mod !
[In reply to]
|
Can't Post
|
|
Looks good !! I will make the changes and tested this weekend Thank you for the feedback ! Let me know if you remember the command to size the window. Pat
|
|
|  |
 |

Dave
Staff
/ Moderator

Aug 14, 2002, 3:28 PM
Post #4 of 21
(9655 views)
Shortcut
|
|
Re: [noza] tell a friend mod !
[In reply to]
|
Can't Post
|
|
I don't know of any cross-browser way that you can specify the window size with just HTML but this little bit of javascript will do it for you. Just add this to the top of your page: <script language="Javascript"><!-- function popup(url,width,height,winname) { var url, width, height; if (width == null) { width = 200; } // default width if (height == null) { height = 400; } // default height window.open(url, winname, 'toolbar=no,location=no,directories=no,status=yes,menubar=no,' +'scrollbars=yes,resizable=yes,width='+width+',height='+height); } //--></script> And where you want to link to the popup, you can do it like this: <a href="javascript:popup('http://www.interactivetools.com',600,400)">popup window</a> You can change the settings in the function (toolbar, scrollbars, etc) to change how the window will appear. Hope that helps! : ) Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

MalaK_3araby
User
Aug 14, 2002, 4:57 PM
Post #5 of 21
(9651 views)
Shortcut
|
|
Re: [noza] tell a friend mod !
[In reply to]
|
Can't Post
|
|
and you could try: <a href="#" onclick="window.open('send.cgi','send2frnd', 'width=586,height=325,scrollbars=no,header=no,titlebar=no')">clcik mE</a> -------------- Sure you can spell it, but do you get it?
|
|
|  |
 |

taylor
User
Aug 14, 2002, 5:19 PM
Post #6 of 21
(9649 views)
Shortcut
|
|
Re: [MalaK_3araby] tell a friend mod !
[In reply to]
|
Can't Post
|
|
I can't get that script to work. Sounds like a great addition to AM. I keep getting 500 Internal Server Error Messages. The file permissions are all set, too. Anyone else have a problem with this particular script? Taylor
|
|
|  |
 |

MalaK_3araby
User
Aug 14, 2002, 7:25 PM
Post #7 of 21
(9647 views)
Shortcut
|
|
Re: [taylor] tell a friend mod !
[In reply to]
|
Can't Post
|
|
Yeah it is a good script and easy to use. I wanted to attatch the cgi file i use so that you can try it .. but i lost the original version and the one i am using is all translated to Arabic .. would be so confusing for ya. I remember using having that error when i tried it on a windows server .. but worked like a breeze on a unix. Are you hosted on Windows? If all fails .. pick another scripts .. there are tons of them .. and neat ones in PHP do a quick search and you will find one you like .. and if i get time i will look in my vault to suggest one :) -Edited to attatch file- this one i like and have used before. Source? sure .. : http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=657&lngWId=8 -------------- Sure you can spell it, but do you get it?
(This post was edited by MalaK_3araby on Aug 14, 2002, 7:34 PM)
|
|
Attachments:
|
send_link.php
(2.98 KB)
|
|
|  |
 |

taylor
User
Aug 14, 2002, 8:25 PM
Post #8 of 21
(9643 views)
Shortcut
|
|
Re: [MalaK_3araby] tell a friend mod !
[In reply to]
|
Can't Post
|
|
Thanks, MalaK_3arab-- No, I am on a dedicated Unix box. If you find your original English version of the script I most appreciate it if you could post the code so I can see what I've done wrong. I really want to use this type of script with AM. I'm afraid I am ignorant when it comes to Php. Do I set permissions on a PhP file? Sorry. I've only dealt with perl scripts. Taylor
|
|
|  |
 |

noza
User
Aug 14, 2002, 8:44 PM
Post #9 of 21
(9642 views)
Shortcut
|
|
Re: [taylor] tell a friend mod !
[In reply to]
|
Can't Post
|
|
Taylor, you are talking about the Birdcast script I suggested when I open this topic right ? It's very simple, I use it in about 4 Unix servers. Double check all of your settings in the script, then double check all of your file permissions with your FTP. Include your URL here if you like and I will check it out. As soon as I have time, I may put it up for download and ready to go for Art. Mgr. but it may be about 30 days. to many things going on right now to make a living :) Pat
|
|
|  |
 |

taylor
User
Aug 14, 2002, 9:00 PM
Post #10 of 21
(9640 views)
Shortcut
|
|
Re: [noza] tell a friend mod !
[In reply to]
|
Can't Post
|
|
noza- Yeah, that's the one. I've double-checked everything. Still doesn't work for me. I emailed the guy who runs the bignosebird site and he hasn't responded. Taylor
|
|
|  |
 |

noza
User
Aug 14, 2002, 10:06 PM
Post #11 of 21
(9638 views)
Shortcut
|
|
Re: [taylor] tell a friend mod !
[In reply to]
|
Can't Post
|
|
Where is your script intall, I would like to see the error and try to help. Pat
|
|
|  |
 |

Thomas
User
Aug 15, 2002, 1:17 PM
Post #14 of 21
(9611 views)
Shortcut
|
|
Re: [noza] tell a friend mod !
[In reply to]
|
Can't Post
|
|
Here are 2 other options Mailpage - which will either * Email page as an URL * Email page as an attachement * Email page in the body of the email http://mtvwebdesign.hypermart.net/products/mailpage/ ========================================== Also, BlueSend - http://www.bluesparks.com/ A new window pops up so your user never leaves the page they were viewing. ========================================== It would be really cool if this was built in to AM so it could send something like the printer frindly page...
|
|
|  |
 | |  |
 |

DataDork
User
Aug 28, 2002, 10:51 AM
Post #16 of 21
(9301 views)
Shortcut
|
I think I may have an idea that would work, PHP-Tell (wwwo.osicodes.com). I like the fact that it is mySQL driven and it solves the pop up window issue mentioned with the BNB script. I want someones opinion. I am installing the script, ya I bought it, right now.. James Edmonds DataDork (http://www.datadork.com) "Have you hugged your pocket protector today?"
|
|
|  |
 |

MalaK_3araby
User
Aug 28, 2002, 6:01 PM
Post #17 of 21
(9286 views)
Shortcut
|
Hi DataDork There really isn't a popup issue with the BNB script. It all depends on how you code your link in html that specifies if its a normail link, blank, or a popup where you can specify height & width etc. I just had a look at PhPTell .. and it just offer logging for the referal ... who has time to look at all of that? I fail to see the importance of that in this script .. i use my statics script to track visitors and page popularity. I know you have already paid for it .. congrats .. and i hope you make a good use of it. -------------- Sure you can spell it, but do you get it?
|
|
|  |
 |

MalaK_3araby
User
Aug 29, 2002, 2:47 AM
Post #18 of 21
(9270 views)
Shortcut
|
Hi guys I've just found out that the code i gave above to popup the BNB script is invalid. When you open the script using that javascript Link it does not catch the refering page .. same applied to the code Dave gave us. They will popup the page but will not let the script know the refering page. I have never tested that and no one told me it does not work. <getting off the hock> :) I have spent about 2 hours trying to come up with a work around but no success. I fired up few browsers and went hunting .. and i got this beautiful, efficent little php script .. i tested it and it works like a charm. Attached is the script. P.S: this code goes between < head > and < /head > in ur template:
<script LANGUAGE="JAVASCRIPT"> <!-- function openform(url) { var url = url + "?url=" + document.location var NS = (document.layers) ? true : false; var IE = (document.all) ? true : false; if(NS) { window.open(url,"","scrollbars=no,menubar=no,personalbar=no,width=500,height=310,screenX=220,screenY=0"); } else if(IE) { window.open(url,"","scrollbars=no,menubar=no,personalbar=no,width=500,height=400,left=220,top=0"); } } //--> </script> (you can change the popup window height & width) and this goes in the same page to link to the script:
<a href="javascript:openform('http://URL/to/mailto.php');">E-mail this page to a colleague</a> MalaK -------------- Sure you can spell it, but do you get it?
|
|
Attachments:
|
el8.web.recommend.zip
(2.55 KB)
|
|
|  |
 |

taylor
User
Aug 29, 2002, 7:28 AM
Post #19 of 21
(9261 views)
Shortcut
|
Re: [MalaK_3araby] A Pop-Up Send-2-Friend mod
[In reply to]
|
Can't Post
|
|
MalaK_3araby-- Is that javascript cross-browser compatible? Also, what permissions do I give a php script when uploading to my server? Taylor
|
|
|  |
 | |  |
|