Welcome Guest ( Log In | Register )


> IPS Related Information

This section is focused on Invision Power Services products...

IPS, widely praised for the continuous efforts aimed to a stable, fast and efficient board system has brought to us Invision Power Board, but not only that..

Invision Power Gallery & Invision Community Blog allow the forum members :

  1. Host & publish images
  2. Host and link Blogs
  3. Integrate all that to the Invision Power Board

 
Reply to this topicStart new topic
> Get Host & Ip Of New Members, on registration log e-mails
NickTheGreek
post 5 Feb 2006, 02:53 AM
Post #1


Administrator
Group Icon

Group: Admin
Posts: 118202
Joined: 3-June 05
From: Athens, Greece
Member No.: 1
Zodiac Sign: I'm a leo!
Gender: I'm a m!



If you like to get emails when a new member registers, then here is a handy little addon for you. It will add a line to your registration email telling you the member's host name. This would be the host name that you would get when running the IP address lookup tool built in to IPB.

This tutorial is designed for 2.0, but I could probably get 1.3 instructions for you if you really want them. Open lang/en/lang_email_content.php. Find:

CODE
<#MEMBER_NAME#> completed their registration on <#DATE#>


Add below:

CODE
<#MEMBER_NAME#> is a member of the following ISP: <#HOST#>


Open sources/register.php. Find (in two separate places):

CODE
'MEMBER_NAME'  => $member['name'],


Add below (add below both instances):

CODE
'HOST'     => @gethostbyaddr($member['ip_address']),


Save and upload both files. Can come in handy when certain banned members refuse to stay banned.


QUOTE
How to include the ip address used for registration in the registration email?

Thanks in advance


Open lang/en/lang_email_content.php. Find:

CODE
<#MEMBER_NAME#> completed their registration on <#DATE#>


Add below:
CODE
<#MEMBER_NAME#> has the following IP address: <#IP_ADDY#>


Open sources/register.php. Find (in two separate places):

CODE
'MEMBER_NAME'  => $member['name'],


Add below (add below both instances):

CODE
'IP_ADDY'     => $member['ip_address'],


[source]FuSoYa @ Invisionize[/source]


--------------------

c:\ When the going gets tough, the tough get going ...
Go to the top of the page
 
Bookmark this: Post to Del.icio.usPost to DiggPost to FacebookPost to GooglePost to SlashdotPost to StumbleUponPost to TechnoratiPost to YahooMyWeb
+Quote Post
NickTheGreek
post 22 Jul 2006, 01:35 AM
Post #2


Administrator
Group Icon

Group: Admin
Posts: 118202
Joined: 3-June 05
From: Athens, Greece
Member No.: 1
Zodiac Sign: I'm a leo!
Gender: I'm a m!



this also works for 2.1.x but i see problems since i upgraded InvisionGames to latest 2.1.7


--------------------

c:\ When the going gets tough, the tough get going ...
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th June 2025 - 10:13 AM
Skin and Graphics by Dan Ellis and Anubis. Hosting by Forums & More © 2005-2011.
InvisionGames - Your #1 Arcade Games Repository | AllSigs - Signatures for all | Rock Band + Guitar Hero = RockHero ! | The Remoters - Remote Assistance | FileMiners - You ask, We find