Results 1 to 2 of 2

send to a friend by classic email

This is a discussion on send to a friend by classic email within the vBSEO Features Archive forums, part of the vBulletin Links & Resources category; Hi, I'd like to put a link "send a friend", but I like that user (or guest) use its email ...

  1. #1
    Senior Member
    Real Name
    Franco
    Join Date
    Mar 2006
    Posts
    132
    Liked
    0 times

    send to a friend by classic email

    Hi,
    I'd like to put a link "send a friend", but I like that user (or guest) use its email software, so I added a plugin:

    product: vbulletin
    hook location: global_start
    title: send to a friend
    Plugin PHP Code:
    PHP Code:
    $pageforfriend=($_SERVER['PHP_SELF']); 
    and I put on the navbar the following code:
    PHP Code:
    <a href="mailto:?subject=See this page&body=Hallo, take a look at this: $pageforfriend">send to a friend</a
    the problem is that the link shown in the email is
    /showthread.php
    and not www. site. ext/f24/page-bla-bla.html

    How to change php plugin code?
    Thanks

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    This is bad, namely because spammers/robots will abuse this. You will have random emails coming from your server promoting spam produtcs. You should at the least, put a captcha of some sort on this.

    as for your link, run the pageforfriend var through this:

    include_once 'includes/functions_vbseo.php';
    vbseo_startup();
    $pageforfriend = vbseo_thread_url_row($thread);

    or some variation of that

Similar Threads

  1. vBSEO Email Send
    By cbichis in forum General Discussion
    Replies: 1
    Last Post: 12-30-2006, 05:47 PM
  2. I have not got my vbseo send to my email
    By jonathanyates in forum General Discussion
    Replies: 2
    Last Post: 01-08-2006, 12:07 PM

Posting Permissions

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