Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Tell A Friend (Read 8383 times)
Sermonator
Junior Member
**
Offline


PastorStaff Search

Posts: 68
Location: New Waverly
Joined: Mar 13th, 2005
Gender: Male
Tell A Friend
Mar 27th, 2006 at 12:52pm
Print Post  
TELL A FRIEND

   TELLFRIEND is a very simple, yet powerful script that
   you can use to help promote your site. It features:

    1. As many recipient fields as you would like.

    2. Text area entry for the reader to send a personal note
      with the e-mail.

    3. Automatic page recognition (FULL URL!) and automatic
      return to that page upon completion of the form.

    4. Domain validation to prevent "parasitic" use by others.

    5. Maintains a logfile of date/time, calling page and e-mail
      information.

                *** INSTALLATION TELLFRIEND.PL ***

    All of the configuration options are in the configuration
    section of the script. This is an easy one!

   To install this script on your site, just do the following.

    1. Edit the TELLFRIEND.PL file so that all of the configuration
      options are set properly for your server. In addition to
      the configuration section, check for the SERMONATOR SAYS!
      located through the script for even more customization notes.

    2. Upload the script to your cgi-bin/yabb2 directory as ASCII.
      (Please, ASCII NOT Binary!)

    3. Using telnet or your FTP program, chmod 755 TELLFRIEND.PL
      This means owner has read-write-execute permission, group
      and others can read-execute.

    4. If the script does not create the logfile, place an empty
      file with the name you are using in the directory. Then
      chmod 666 the file (read-write for all). The default reflog.txt
      is included in the cgi-bin/yabb2 folder.

   
              *** INSTALLATION TELL_A_FRIEND.MOD ***

    1. Use Boardmod or manually edit the required files.

    2. IMPORTANT!!! - In the mod file edit the next to last line which reads:

      if($username ne 'Guest') { $yymenu .= qq~<a href="http://www.yourdomain.com/cgi-bin/yabb2/TellFriend.pl">$img{'tell'}</a>~; }
 
      To reflect the path to the URL of your domain!


        Added Xavier's suggestion below to mod file!

    3. Upload the modified files to your server:

     Admin/ModList.pl
     Variables/Menu0.def
     Variables/Menu1.def
     Variables/Menu2.def
      Sources/Subs.pl      

    4. Upload from the public_html directory:

     yabbfiles/ModImages/TellFriend/tell.png/gif
        (Jet Li has promised to make an updated button when he has time)



Sermonator
« Last Edit: Mar 28th, 2006 at 1:20am by Sermonator »  

tell_a_friend_b1.zip ( 8 KB | Downloads )
Back to top
WWW  
IP Logged
 
Xavier
Senior Member
****
Offline



Posts: 442
Location: Ipswich
Joined: Apr 5th, 2005
Gender: Male
Re: Tell A Friend
Reply #1 - Mar 28th, 2006 at 12:21am
Print Post  
it sted of having to change the the http://www.yourdomain.com/cgi-bin/yabb2/TellFriend.pl have it as $boardurl/TellFriend.pl so that the have no need to have to chage the setting as it set's it the board url.
  
Back to top
WWWYIM  
IP Logged
 
Sermonator
Junior Member
**
Offline


PastorStaff Search

Posts: 68
Location: New Waverly
Joined: Mar 13th, 2005
Gender: Male
Re: Tell A Friend
Reply #2 - Mar 28th, 2006 at 12:43am
Print Post  
Thanks for the suggestion!

I changed the mod file and updated the zip file.
  
Back to top
WWW  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Tell A Friend
Reply #3 - Mar 29th, 2006 at 9:29am
Print Post  
Hi
here a tell button, but dont know the font style of english button.
  

tell.png ( 0 KB | Downloads )
tell.png

greetings
Jeff
Back to top
WWW  
IP Logged
 
aerow90
Senior Member
****
Offline



Posts: 253
Joined: Mar 18th, 2006
Re: Tell A Friend
Reply #4 - Mar 29th, 2006 at 1:01pm
Print Post  
Hi , I always get Servererror 500 ! I chmoded the TellFirend to 755 and the reflog to 666 !
  
Back to top
WWW  
IP Logged
 
Sermonator
Junior Member
**
Offline


PastorStaff Search

Posts: 68
Location: New Waverly
Joined: Mar 13th, 2005
Gender: Male
Re: Tell A Friend
Reply #5 - Mar 29th, 2006 at 2:28pm
Print Post  
Check all your paths in the pl file and make sure the

#!/usr/bin/perl

call is right for your system.

You can also call the pl file directly by putting in the URL to the pl file in your browser to check if it is working. If you get 'Sorry, cant run it from here....' then it is working, only means it was not called from within Yabb.
  
Back to top
WWW  
IP Logged
 
aerow90
Senior Member
****
Offline



Posts: 253
Joined: Mar 18th, 2006
Re: Tell A Friend
Reply #6 - Mar 29th, 2006 at 5:27pm
Print Post  
Hi , when call it with the browser , i also get the 500er Error  ???
  
Back to top
WWW  
IP Logged
 
Sermonator
Junior Member
**
Offline


PastorStaff Search

Posts: 68
Location: New Waverly
Joined: Mar 13th, 2005
Gender: Male
Re: Tell A Friend
Reply #7 - Mar 30th, 2006 at 12:09am
Print Post  
can you email your pl file and let me take a look at it.

  
Back to top
WWW  
IP Logged
 
aerow90
Senior Member
****
Offline



Posts: 253
Joined: Mar 18th, 2006
Re: Tell A Friend
Reply #8 - Mar 30th, 2006 at 2:13pm
Print Post  
Of Course , can you give me your adress ? ( This one in Boardmod , could not be the right one  Wink   )
  
Back to top
WWW  
IP Logged
 
aerow90
Senior Member
****
Offline



Posts: 253
Joined: Mar 18th, 2006
Re: Tell A Friend
Reply #9 - Mar 30th, 2006 at 5:16pm
Print Post  
You have a mail  Wink
  
Back to top
WWW  
IP Logged
 
ScoobyDan
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 22
Location: Sussex, England
Joined: Mar 1st, 2006
Gender: Male
Re: Tell A Friend
Reply #10 - Apr 1st, 2006 at 8:03am
Print Post  
Sermonator,

I have the same problem. Any ideas for a solution?

Many thanks

Daniel
  
Back to top
WWW  
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: Tell A Friend
Reply #11 - May 4th, 2006 at 6:36am
Print Post  
Good Idea, but there are some problems with the mod Sad

Everyone can send spam with this mod: Just fill out a fake-name and an a fake-adress as sender and in the message your SPAM-Massage, send it and nobody knows, how was the real sender!

I would wish to change the mod, that only members can use this function and so they have to use their mailadress from the forum! A second wish is, to make the mod more adapted to yabb (lang-files for hardcoded text, var-files for variables ...)

Larian
  
Back to top
 
IP Logged
 
Xavier
Senior Member
****
Offline



Posts: 442
Location: Ipswich
Joined: Apr 5th, 2005
Gender: Male
Re: Tell A Friend
Reply #12 - May 4th, 2006 at 6:44am
Print Post  
even then people are still able to send spam another wayto prevent this is use the same measures as the posting so that they cant use another script to generate the emails. also a validation script so that the have to enter a code in to send the referal
  
Back to top
WWWYIM  
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: Tell A Friend
Reply #13 - May 4th, 2006 at 6:50am
Print Post  
But with this script its very easy to send email-spam and if someone checking, where the mailspam is from they see your forum and some mails later your server is on blacklists (i know it, some months before someone found a leak in one of my php-scripts).
With my recommended method it's lot more work to send spam and you can't use a fake-mail-adress because of pre-registering in the forum.

Larian
  
Back to top
 
IP Logged
 
ScoobyDan
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 22
Location: Sussex, England
Joined: Mar 1st, 2006
Gender: Male
Re: Tell A Friend
Reply #14 - Aug 23rd, 2006 at 9:28pm
Print Post  
Sermonator,

I had a sudden burst of inspiration today, and solved the reason for this mod not working on my forum!  Grin

At the top of the '.pl' file was this line:
Code
Select All
#!/usr/bin/perl 


I changed that line to:
Code
Select All
#!/usr/bin/perl -- 


(adding the " --" at the end)
And hey presto! It now works Cheesy

How easy would it be to modify this script, so that it takes the display name and e-mail address from the user's profile? I have already set it so that the button is only displayed to registered members (not guests), but I would like the added security (and ease for the users) of automatically completing the name and e-mail address fields from the user's profile.

Many thanks for this mod!

Daniel
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint