WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • IP in the e-mail - Form Module
  • Print
Pages: [1]   Go Down

Author Topic: IP in the e-mail - Form Module  (Read 6842 times)

Offline Bramus

  • Posts: 608
  • Gender: Male
    • BRAMUS Internet Services
IP in the e-mail - Form Module
« on: August 19, 2008, 02:07:18 PM »
As I just used this snippet from Aldus for my own website, i think it comes in handy to post it in there. It was originally posted by Aldus in the german forum. I asked him if i could post it here and in the Dutch forum, and that was ok.

What does it do?
If some one sends you a message by using the form module on your website, you will see on the bottom the IP of the user who send you this. Comes in handy by blocking different IP's on your site, or for webshops as in NL this can work in advance for you if some one orders something by the website.

How to Install?
Copy the code below into rule 392 of view.php in /modules/form folder for your WebsiteBaker site.

Code: [Select]
// Now send the email
/**
*    @version    0.1.0
*    @build        1
*    @date        2008-08-15
*    @author        aldus
*    @state        @dev
*
*    Adding the request ip to the e-mail body before sending.
*
*    @note        If you are in the need of additional informations
*                you can also add other $_SERVER vars like $_SERVER['HTTP_USER_AGENT']
*
*
*/
$email_body .= "\n\nIP: ".$_SERVER['REMOTE_ADDR'];


If there are any questions just let it know here!
Logged
BRAMUS Internet Services

Offline Olli

  • Posts: 291
Re: IP in the e-mail - Form Module
« Reply #1 on: February 17, 2009, 05:19:38 PM »
maybe this can be included into the next WB release? it's just one line of code and it's very handy i think.
Logged

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8544
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: IP in the e-mail - Form Module
« Reply #2 on: February 17, 2009, 06:03:13 PM »
Hello,

already included in SVN. Look here: http://project.websitebaker2.org/changeset/889. So it will be in the next WB version.

Matthias
Logged

Offline ivanisevic82

  • Posts: 94
Re: IP in the e-mail - Form Module
« Reply #3 on: May 03, 2010, 01:40:48 AM »
Hi!
I'd like to update my form module in order to see the IP number.

I opened the view.php file, but I don't find the "rule 392".

What is this? How can I do?

Thanks!
Logged

Offline PurpleEdge

  • Posts: 231
  • Gender: Male
    • the northern beaches
Re: IP in the e-mail - Form Module
« Reply #4 on: May 05, 2010, 02:07:07 PM »
Perhaps it is Line 392  :-)
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • IP in the e-mail - Form Module
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2