Results 1 to 9 of 9

Thread: Any "Tell-A-Friend" and "Bookmark This Site" components?

  1. #1
    john
    Guest

    Default Re: Any "Tell-A-Friend" and "Bookmark This Site" components?

    Hi!

    Your script seems useful but can it be used for spam? I don't know enough
    PHP to make things secure enough so i'm always worried about things like
    that...


    "LBA" <webdesigns@no2spamabramsnet.com> wrote in message
    news:duq4qi$5um11@news01.netobjects.com...
    > There's a superfluous line in there. Delete...
    > $email = $to;
    >
    > Laurence
    >
    > LBA wrote:
    >
    > > I just wrote a pretty simple Tell-A-Friend script in PHP that uses
    > > this form page...
    > > http://www.petpeevescollector.com/ht...-a-friend.html and then
    > > this short piece of code...
    > > <?
    > > $first = $_POST["first"];
    > > $last = $_POST["last"];
    > > $to = $_POST["to"];
    > > $from = $_POST["from"];
    > > $comments = $_POST["comments"];
    > > $subject = "Site recommendation from " . $first;
    > > $message = $comments . "\n\n" . "http://www.domain_name.com/";
    > > $email = $to;
    > > $headers = "From: $first $last <$from>";
    > > mail($to, $subject, $message, $headers);
    > > ?>
    > >
    > > To have it show whatever page the viewer is viewing, (instead of
    > > hardcoded the way it is above), you might try to replace...
    > > "http://www.domain_name.com/"
    > > with...
    > > $currentPage="http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
    > >
    > > Laurence
    > >
    > > Gary Sanders wrote:
    > >
    > >> Hello:
    > >>
    > >> I need to add features to a web site I am working on for a client....
    > >>
    > >> The two things I need are....
    > >>
    > >> - "Bookmark This Site" Button / Option
    > >> - "Tell A Friend" Button / Option
    > >>
    > >> They would need to work with both NOF7 and NOF9. FREE, as a cost,
    > >> would be
    > >> better if at all possible... Does anyone know of any code / scripts

    /
    > >> components that will do these? The "Tell A Freind" option would be
    > >> nice if
    > >> it would send the exact URL of the page it was sent from and not just
    > >> a"boiler-plate" home page type URL.
    > >>
    > >> Thanks...
    > >>
    > >> Gary Sanders
    > >> e-mail: gsandersATnbnet.nb.ca (You may e-mail me directly)
    > >>
    > >>
    > >>
    > >>




  2. #2
    Nancy O
    Guest

    Default Re: Any "Tell-A-Friend" and "Bookmark This Site" components?

    Hi Gary,
    "To bookmark this page, hit Ctrl+D" works in all browsers.

    Or copy and paste this code into a text box (Ctrl+T) on your page to create
    a form button that adds to favorites folder. This works with IE but not
    Firefox.

    <FORM>
    <INPUT TYPE="button" VALUE="Add to Favorites"
    onClick='window.external.AddFavorite(location.href , document.title);'>
    </FORM>


    --Nancy


    "Gary Sanders" <gsanders@nbnet.nb.ca> wrote in message
    news:dupi7m$5on5@news01.netobjects.com...
    > Hello:
    >
    > I need to add features to a web site I am working on for a client....
    >
    > The two things I need are....
    >
    > - "Bookmark This Site" Button / Option
    > - "Tell A Friend" Button / Option
    >
    > They would need to work with both NOF7 and NOF9. FREE, as a cost, would

    be
    > better if at all possible... Does anyone know of any code / scripts /
    > components that will do these? The "Tell A Freind" option would be nice

    if
    > it would send the exact URL of the page it was sent from and not just
    > a"boiler-plate" home page type URL.
    >
    > Thanks...
    >
    > Gary Sanders
    > e-mail: gsandersATnbnet.nb.ca (You may e-mail me directly)
    >
    >




  3. #3
    LBA
    Guest

    Default Re: Any "Tell-A-Friend" and "Bookmark This Site" components?

    There's a superfluous line in there. Delete...
    $email = $to;

    Laurence

    LBA wrote:

    > I just wrote a pretty simple Tell-A-Friend script in PHP that uses
    > this form page...
    > http://www.petpeevescollector.com/ht...-a-friend.html and then
    > this short piece of code...
    > <?
    > $first = $_POST["first"];
    > $last = $_POST["last"];
    > $to = $_POST["to"];
    > $from = $_POST["from"];
    > $comments = $_POST["comments"];
    > $subject = "Site recommendation from " . $first;
    > $message = $comments . "\n\n" . "http://www.domain_name.com/";
    > $email = $to;
    > $headers = "From: $first $last <$from>";
    > mail($to, $subject, $message, $headers);
    > ?>
    >
    > To have it show whatever page the viewer is viewing, (instead of
    > hardcoded the way it is above), you might try to replace...
    > "http://www.domain_name.com/"
    > with...
    > $currentPage="http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
    >
    > Laurence
    >
    > Gary Sanders wrote:
    >
    >> Hello:
    >>
    >> I need to add features to a web site I am working on for a client....
    >>
    >> The two things I need are....
    >>
    >> - "Bookmark This Site" Button / Option
    >> - "Tell A Friend" Button / Option
    >>
    >> They would need to work with both NOF7 and NOF9. FREE, as a cost,
    >> would be
    >> better if at all possible... Does anyone know of any code / scripts /
    >> components that will do these? The "Tell A Freind" option would be
    >> nice if
    >> it would send the exact URL of the page it was sent from and not just
    >> a"boiler-plate" home page type URL.
    >>
    >> Thanks...
    >>
    >> Gary Sanders
    >> e-mail: gsandersATnbnet.nb.ca (You may e-mail me directly)
    >>
    >>
    >>
    >>


  4. #4
    LBA
    Guest

    Default Re: Any "Tell-A-Friend" and "Bookmark This Site" components?

    I just wrote a pretty simple Tell-A-Friend script in PHP that uses this
    form page... http://www.petpeevescollector.com/ht...-a-friend.html
    and then this short piece of code...
    <?
    $first = $_POST["first"];
    $last = $_POST["last"];
    $to = $_POST["to"];
    $from = $_POST["from"];
    $comments = $_POST["comments"];
    $subject = "Site recommendation from " . $first;
    $message = $comments . "\n\n" . "http://www.domain_name.com/";
    $email = $to;
    $headers = "From: $first $last <$from>";
    mail($to, $subject, $message, $headers);
    ?>

    To have it show whatever page the viewer is viewing, (instead of
    hardcoded the way it is above), you might try to replace...
    "http://www.domain_name.com/"
    with...
    $currentPage="http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];

    Laurence

    Gary Sanders wrote:

    >Hello:
    >
    >I need to add features to a web site I am working on for a client....
    >
    >The two things I need are....
    >
    >- "Bookmark This Site" Button / Option
    >- "Tell A Friend" Button / Option
    >
    >They would need to work with both NOF7 and NOF9. FREE, as a cost, would be
    >better if at all possible... Does anyone know of any code / scripts /
    >components that will do these? The "Tell A Freind" option would be nice if
    >it would send the exact URL of the page it was sent from and not just
    >a"boiler-plate" home page type URL.
    >
    >Thanks...
    >
    >Gary Sanders
    >e-mail: gsandersATnbnet.nb.ca (You may e-mail me directly)
    >
    >
    >
    >


  5. #5
    gotFusion Extended Support
    Guest

    Default Re: Any "Tell-A-Friend" and "Bookmark This Site" components?

    Gary Sanders said:
    | Hello:
    |
    | I need to add features to a web site I am working on for a client....
    |
    | The two things I need are....
    |
    | - "Bookmark This Site" Button / Option
    | - "Tell A Friend" Button / Option


    You can find basic javascripts for both of these on any of the scripts
    repository sites.

    http://www.dynamicdrive.com/
    http://www.hotscripts.com/

    I have written custom scripts for both of these functions that are in the
    members area of the gotFusion site as well as tutorials that cover how to
    get them into Fusion.

    --
    Mike - (a.k.a. turtle) - gotFusion Extended Support
    http://www.gotfusion.com

    Start receiving gotFusion extended product support today
    http://www.gotfusion.com/subscriptions/

    View the gotFusion tutorial list
    http://www.gotfusion.com/menu/tuts_by_topic.cfm

    --





  6. #6
    Gary Sanders
    Guest

    Default Any "Tell-A-Friend" and "Bookmark This Site" components?

    Hello:

    I need to add features to a web site I am working on for a client....

    The two things I need are....

    - "Bookmark This Site" Button / Option
    - "Tell A Friend" Button / Option

    They would need to work with both NOF7 and NOF9. FREE, as a cost, would be
    better if at all possible... Does anyone know of any code / scripts /
    components that will do these? The "Tell A Freind" option would be nice if
    it would send the exact URL of the page it was sent from and not just
    a"boiler-plate" home page type URL.

    Thanks...

    Gary Sanders
    e-mail: gsandersATnbnet.nb.ca (You may e-mail me directly)



  7. #7
    gotFusion Extended Support
    Guest

    Default Re: Any "Tell-A-Friend" and "Bookmark This Site" components?

    john said:
    | Hi!
    |
    | Your script seems useful but can it be used for spam? I don't know
    | enough PHP to make things secure enough so i'm always worried about
    | things like that...


    You can always add an image verification to any form submit, you know... the
    ones that bring up a garbled image with alpha/numeric barely readable
    content that someone has to squint to enter.

    Here is one for PHP (since the original example is in PHP)

    http://www.planet-source-code.com/vb...d=739&lngWId=8

    --
    Mike - (a.k.a. turtle) - gotFusion Extended Support

    For more helpful information visit
    http://www.gotfusion.com

    View the entire gotFusion tutorial list
    http://www.gotfusion.com/menu/tuts_by_topic.cfm

    --





  8. #8
    LBA
    Guest

    Default Re: Any "Tell-A-Friend" and "Bookmark This Site" components?

    I'm not sure exactly what you mean by that question. Yes, anyone could
    provide a recipient email address and a real or fake return address and
    then send this message to one person. Frankly, I don't know if there is
    any practical way for a spammer to abuse this setup.

    Laurence

    john wrote:

    >Hi!
    >
    >Your script seems useful but can it be used for spam? I don't know enough
    >PHP to make things secure enough so i'm always worried about things like
    >that...
    >
    >
    >"LBA" <webdesigns@no2spamabramsnet.com> wrote in message
    >news:duq4qi$5um11@news01.netobjects.com...
    >> There's a superfluous line in there. Delete...
    >> $email = $to;
    >>
    >> Laurence
    >>
    >> LBA wrote:
    >>
    >> > I just wrote a pretty simple Tell-A-Friend script in PHP that uses
    >> > this form page...
    >> > http://www.petpeevescollector.com/ht...-a-friend.html and then
    >> > this short piece of code...
    >> > <?
    >> > $first = $_POST["first"];
    >> > $last = $_POST["last"];
    >> > $to = $_POST["to"];
    >> > $from = $_POST["from"];
    >> > $comments = $_POST["comments"];
    >> > $subject = "Site recommendation from " . $first;
    >> > $message = $comments . "\n\n" . "http://www.domain_name.com/";
    >> > $email = $to;
    >> > $headers = "From: $first $last <$from>";
    >> > mail($to, $subject, $message, $headers);
    >> > ?>
    >> >
    >> > To have it show whatever page the viewer is viewing, (instead of
    >> > hardcoded the way it is above), you might try to replace...
    >> > "http://www.domain_name.com/"
    >> > with...
    >> > $currentPage="http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
    >> >
    >> > Laurence
    >> >
    >> > Gary Sanders wrote:
    >> >
    >> >> Hello:
    >> >>
    >> >> I need to add features to a web site I am working on for a client....
    >> >>
    >> >> The two things I need are....
    >> >>
    >> >> - "Bookmark This Site" Button / Option
    >> >> - "Tell A Friend" Button / Option
    >> >>
    >> >> They would need to work with both NOF7 and NOF9. FREE, as a cost,
    >> >> would be
    >> >> better if at all possible... Does anyone know of any code / scripts

    >/
    >> >> components that will do these? The "Tell A Freind" option would be
    >> >> nice if
    >> >> it would send the exact URL of the page it was sent from and not just
    >> >> a"boiler-plate" home page type URL.
    >> >>
    >> >> Thanks...
    >> >>
    >> >> Gary Sanders
    >> >> e-mail: gsandersATnbnet.nb.ca (You may e-mail me directly)
    >> >>
    >> >>
    >> >>
    >> >>

    >
    >
    >
    >


  9. #9
    john
    Guest

    Default Re: Any "Tell-A-Friend" and "Bookmark This Site" components?

    Ok

    Thank you for your replies! Like i said i don't know enough php so i try to
    play it carefully




    "LBA" <webdesigns@no2spamabramsnet.com> wrote in message
    news:dus3ph$6g42@news01.netobjects.com...
    > I'm not sure exactly what you mean by that question. Yes, anyone could
    > provide a recipient email address and a real or fake return address and
    > then send this message to one person. Frankly, I don't know if there is
    > any practical way for a spammer to abuse this setup.
    >
    > Laurence
    >
    > john wrote:
    >
    > >Hi!
    > >
    > >Your script seems useful but can it be used for spam? I don't know enough
    > >PHP to make things secure enough so i'm always worried about things like
    > >that...
    > >
    > >
    > >"LBA" <webdesigns@no2spamabramsnet.com> wrote in message
    > >news:duq4qi$5um11@news01.netobjects.com...
    > >> There's a superfluous line in there. Delete...
    > >> $email = $to;
    > >>
    > >> Laurence
    > >>
    > >> LBA wrote:
    > >>
    > >> > I just wrote a pretty simple Tell-A-Friend script in PHP that uses
    > >> > this form page...
    > >> > http://www.petpeevescollector.com/ht...-a-friend.html and then
    > >> > this short piece of code...
    > >> > <?
    > >> > $first = $_POST["first"];
    > >> > $last = $_POST["last"];
    > >> > $to = $_POST["to"];
    > >> > $from = $_POST["from"];
    > >> > $comments = $_POST["comments"];
    > >> > $subject = "Site recommendation from " . $first;
    > >> > $message = $comments . "\n\n" . "http://www.domain_name.com/";
    > >> > $email = $to;
    > >> > $headers = "From: $first $last <$from>";
    > >> > mail($to, $subject, $message, $headers);
    > >> > ?>
    > >> >
    > >> > To have it show whatever page the viewer is viewing, (instead of
    > >> > hardcoded the way it is above), you might try to replace...
    > >> > "http://www.domain_name.com/"
    > >> > with...
    > >> > $currentPage="http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
    > >> >
    > >> > Laurence
    > >> >
    > >> > Gary Sanders wrote:
    > >> >
    > >> >> Hello:
    > >> >>
    > >> >> I need to add features to a web site I am working on for a

    client....
    > >> >>
    > >> >> The two things I need are....
    > >> >>
    > >> >> - "Bookmark This Site" Button / Option
    > >> >> - "Tell A Friend" Button / Option
    > >> >>
    > >> >> They would need to work with both NOF7 and NOF9. FREE, as a cost,
    > >> >> would be
    > >> >> better if at all possible... Does anyone know of any code /

    scripts
    > >/
    > >> >> components that will do these? The "Tell A Freind" option would be
    > >> >> nice if
    > >> >> it would send the exact URL of the page it was sent from and not

    just
    > >> >> a"boiler-plate" home page type URL.
    > >> >>
    > >> >> Thanks...
    > >> >>
    > >> >> Gary Sanders
    > >> >> e-mail: gsandersATnbnet.nb.ca (You may e-mail me directly)
    > >> >>
    > >> >>
    > >> >>
    > >> >>

    > >
    > >
    > >
    > >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •