Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Article Manager 1 Add-ons:
tell a friend mod !

 

 


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 Cool

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:

Quote
<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:

Quote
$SCRIPT_NAME=... etc. (around line 61)


and below that add:

Quote
$thanks="http://YourDomainPath/thanks.htm";


4- find the line:

Code
<INPUT TYPE="HIDDEN" NAME="call_by" VALUE=$ENV{'HTTP_REFERER'}>


and change it to:

Code
<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 Smile

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

UnsureI 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.Unsure 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


taylor
User

Aug 15, 2002, 6:46 AM

Post #12 of 21 (9630 views)
Shortcut
Re: [noza] tell a friend mod ! [In reply to] Can't Post

hey noza-

It's here:

http://www.getsigned.com/cgi-bin/sendthis.cgi

Thanks for your help,

Taylor


MalaK_3araby
User

Aug 15, 2002, 9:45 AM

Post #13 of 21 (9621 views)
Shortcut
Re: [taylor] tell a friend mod ! [In reply to] Can't Post


In Reply To
Do I set permissions on a PhP file?



Hi Taylor

Permission for php files is 644 .. BUT forget that attachement ..i made a mistake .. its not the files that i really wanted to suggest to you. i aplogize.

I attatch the cgi file i use from BigNoseBird.
Edit HTML in teh file to your liking.

--------------
Sure you can spell it, but do you get it?
Attachments: send.cgi (11.8 KB)


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...


noza
User

Aug 27, 2002, 9:52 PM

Post #15 of 21 (9327 views)
Shortcut
Re: [taylor] tell a friend mod ! [In reply to] Can't Post

Taylor, here are the links to the Birdcast cgi, i modified to email_friend.cgi to use with Articl manager. It now operates as a separate script and can actually be use anywhere in your site. I placed a link in the article template.

Here are the files:

(SCRIPT) http://www.nozanoze.com/scripts/emailfriend/email_friend.txt

(README) http://www.nozanoze.com/scripts/emailfriend/readme.txt

(SEE IT IN ACTION HERE)

http://www.almaweb.org/artimgr/publish/article_29.shtml

Again, this is not my script, I'm not a coder, I just made a few changes so it works with Article Manager.

Let me know how you do and once you integrate the pop-up featureCool Pat


DataDork
User

Aug 28, 2002, 10:51 AM

Post #16 of 21 (9301 views)
Shortcut
Another Idea [In reply to] Can't Post

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
Re: [DataDork] Another Idea [In reply to] Can't Post

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
A Pop-Up Send-2-Friend mod [In reply to] Can't Post

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:

Code
<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:

Code
<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


MalaK_3araby
User

Aug 29, 2002, 11:40 AM

Post #20 of 21 (9253 views)
Shortcut
Re: [taylor] A Pop-Up Send-2-Friend mod [In reply to] Can't Post


In Reply To
Is that javascript cross-browser compatible?
Also, what permissions do I give a php script when uploading to my server?

Taylor


Hiya Taylor ..
I am not sure .. but it look like it is.
I only tested it with IE .. maybe someoen can test it with NS.
Re. File Permission: chmod the php file to 644.

--------------
Sure you can spell it, but do you get it?


MalaK_3araby
User

Aug 31, 2002, 3:34 AM

Post #21 of 21 (9077 views)
Shortcut
Re: [noza] tell a friend mod ! [In reply to] Can't Post


In Reply To
Looks good !! I will make the changes and tested this weekend Smile

Thank you for the feedback ! Let me know if you remember the command to size the window.

Pat



Hiya pat ..
using a javascript to popup the window will not keep the http_refer that the script uses to refer the right page. We most use a regular link.
However, as a work around i thought of using a link in out template with target=_blank and then resizing the window after it opens. (simulating a popup ..lol)

below is the code you need to resize the window and you should insert it into the cgi file after the < body > tag:

Code
 <script LANGUAGE="JavaScript">  
<!-- hide from non JavaScript Browsers
var window_width = 450;
var window_height = 570;
var h = 50;
firstrun();

function firstrun() {
self.focus();
if(h < window_height) {
h = h + 5;
setTimeout ("secondrun(h)",10);
}
}
function secondrun(h) {
self.resizeTo (window_width,h);
firstrun()
}
// - stop hiding -->
</script>

Note: change height & width as needed.
i hope that helps.






Fot those who got all confused because of the above posts:
- You can use the php script in post#18, or
- find attached a zip file that contains all needed info and the BNB script itself.

--------------
Sure you can spell it, but do you get it?

(This post was edited by MalaK_3araby on Aug 31, 2002, 3:37 AM)
Attachments: snd2frnd.zip (6.75 KB)

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4