Page Index Toggle Pages: 1 [2] 3 4 5 Send TopicPrint
Very Hot Topic (More than 25 Replies) Link IP Mod (Read 10900 times)
Mongo
Full Member
***
Offline


Mongo only pawn in game
of life.

Posts: 197
Location: Hampstead
Joined: Jun 23rd, 2005
Gender: Male
Re: Link IP Mod
Reply #15 - Oct 13th, 2005 at 10:49pm
Print Post  
gus wrote on Oct 13th, 2005 at 9:41pm:
You know, I was just going to request the Link IP for the error log.

Now that you've added it, I'm going to request it for the Forum Log.  Wink


Ahhh...ahead of the curve on one end and way behind it on the other.   Grin

Ok, I'll work on that tomorrow.  And before someone else hits me up with another request, are there any other mods/places I need to look? 

I missed the forum log simply because I've never actually used it and I never knew it to have IP addresses (although I should've guessed it did).  Again, I'll work on it tomorrow.

Thanks for the suggestion, gus.
  

--I no longer have time to work on my mods.  If anyone wants to continue what I've started, be my guest.  Please read my notes in my profile for more information.

--Mongo
Back to top
 
IP Logged
 
Mongo
Full Member
***
Offline


Mongo only pawn in game
of life.

Posts: 197
Location: Hampstead
Joined: Jun 23rd, 2005
Gender: Male
Re: Link IP Mod
Reply #16 - Oct 14th, 2005 at 12:35pm
Print Post  
OK gus, I'm stumped.  I was looking through my board last night and couldn't find what you were talsking about (re - Forum Log).  Give me a hint so I know what to look for or, better yet, give me the action listed on your board's URL in the location you're talking about (ex. *url*/*cgi-bin*/*yabb2*/AdminIndex.pl?action=).
  

--I no longer have time to work on my mods.  If anyone wants to continue what I've started, be my guest.  Please read my notes in my profile for more information.

--Mongo
Back to top
 
IP Logged
 
gus
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 43
Joined: Aug 12th, 2005
Re: Link IP Mod
Reply #17 - Oct 14th, 2005 at 1:27pm
Print Post  
AdminIndex.pl?action=showclicks

I think it's in the file Admin.pl, in the sub ClickLog.
  
Back to top
 
IP Logged
 
Mongo
Full Member
***
Offline


Mongo only pawn in game
of life.

Posts: 197
Location: Hampstead
Joined: Jun 23rd, 2005
Gender: Male
Re: Link IP Mod
Reply #18 - Oct 14th, 2005 at 4:13pm
Print Post  
Ok gus, I found out what you were talking about.  The zip file containing the mods have been updated and can be accessed by that link (I didn't change version numbers just out of sheer laziness.)  Wink

If you want to manually implement this part of the mod, here's what you do:

Open Admin.pl and look for these 2 lines around lines 524-525:
Code
Select All
		if ($newiplist[$i]->[0] =~ /\S+/ && $newiplist[$i]->[0] =~ /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/) {
			$guestiplist .= qq~$newiplist[$i]->[0]&nbsp;<span style="color: #FF0000;">(<i>$newiplist[$i]->[1]</i>)</span><br />~; 


and replace them with this:
Code
Select All
## start link IP mod - define $iplink ##
		if($iputil eq 0){$iputil = 'ptr';}
		if($iputil eq 1){$iputil = 'whois';}
		if($iputil eq 2){$iputil = 'city';}
		if($iputil eq 3){$iputil = 'tracert';}
 		  $iplink = qq~<a href="http://www.dnsstuff.com/tools/$iputil.ch?ip=$newiplist[$i]->[0]" target="_blank" style="text-decoration: underline;">$newiplist[$i]->[0]</a>~;
## end link IP mod ##

		if ($newiplist[$i]->[0] =~ /\S+/ && $newiplist[$i]->[0] =~ /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/) {
			$guestiplist .= qq~$iplink&nbsp;<span style="color: #FF0000;">(<i>$newiplist[$i]->[1]</i>)</span><br />~; 



If you don't want to manually implement it, uninstall the current version of this mod, download the new "fix" from the link on the first page and then install it.

Now the guest IP addresses in the click log/forum log will be linked.
  

--I no longer have time to work on my mods.  If anyone wants to continue what I've started, be my guest.  Please read my notes in my profile for more information.

--Mongo
Back to top
 
IP Logged
 
gus
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 43
Joined: Aug 12th, 2005
Re: Link IP Mod
Reply #19 - Oct 15th, 2005 at 1:09am
Print Post  
Thanks!  Works great!
  
Back to top
 
IP Logged
 
Mongo
Full Member
***
Offline


Mongo only pawn in game
of life.

Posts: 197
Location: Hampstead
Joined: Jun 23rd, 2005
Gender: Male
Re: Link IP Mod
Reply #20 - Oct 15th, 2005 at 1:35am
Print Post  
You're welcome, gus, and thanks for your input.  Actually, thanks to all who have made comments/suggestions.  That's the fun thing about open-source software - everyone gets to contribute.  Smiley

I'll let this mod sit in beta mode for a little while longer.  If nobody has anything else to add comment or suggestion-wise, I'll throw it out as a final.
  

--I no longer have time to work on my mods.  If anyone wants to continue what I've started, be my guest.  Please read my notes in my profile for more information.

--Mongo
Back to top
 
IP Logged
 
delrick
Senior Member
****
Offline


Write more...talk less

Posts: 362
Location: Fort Smith
Joined: Nov 28th, 2002
Gender: Male
Re: Link IP Mod
Reply #21 - Oct 15th, 2005 at 2:29am
Print Post  
the adminindex.pl is giving me fits. When I add the mod and upload the files, I get a 500 server error. I can then uninstall the mod and upload again and still get it. The only way to revert is to go to a back up of the file.

Any Idea on what I am dealing with.
  

Delrick Gist
Writer's Block

WRITERSBLOCK.COM
Back to top
IP Logged
 
Mongo
Full Member
***
Offline


Mongo only pawn in game
of life.

Posts: 197
Location: Hampstead
Joined: Jun 23rd, 2005
Gender: Male
Re: Link IP Mod
Reply #22 - Oct 15th, 2005 at 2:45am
Print Post  
delrick wrote on Oct 15th, 2005 at 2:29am:
the adminindex.pl is giving me fits. When I add the mod and upload the files, I get a 500 server error. I can then uninstall the mod and upload again and still get it. The only way to revert is to go to a back up of the file.

Any Idea on what I am dealing with.


Email me a copy of your AdminIndex.pl file (after applying the mod) and I'll try to debug it for you.
  

--I no longer have time to work on my mods.  If anyone wants to continue what I've started, be my guest.  Please read my notes in my profile for more information.

--Mongo
Back to top
 
IP Logged
 
delrick
Senior Member
****
Offline


Write more...talk less

Posts: 362
Location: Fort Smith
Joined: Nov 28th, 2002
Gender: Male
Re: Link IP Mod
Reply #23 - Oct 15th, 2005 at 4:32am
Print Post  
You've got mail!
  

Delrick Gist
Writer's Block

WRITERSBLOCK.COM
Back to top
IP Logged
 
delrick
Senior Member
****
Offline


Write more...talk less

Posts: 362
Location: Fort Smith
Joined: Nov 28th, 2002
Gender: Male
Re: Link IP Mod
Reply #24 - Oct 15th, 2005 at 4:46pm
Print Post  
Tried again today to modify the adminindex.pl. no luck.

When does the file link_ip.txt get created?

and what should the CHMod settings be for the files uploaded?
  

Delrick Gist
Writer's Block

WRITERSBLOCK.COM
Back to top
IP Logged
 
delrick
Senior Member
****
Offline


Write more...talk less

Posts: 362
Location: Fort Smith
Joined: Nov 28th, 2002
Gender: Male
Re: Link IP Mod
Reply #25 - Oct 15th, 2005 at 6:42pm
Print Post  
I removed the line:

Code
Select All
require "$vardir/link_ip.txt";  ## link IP mod 



and all works well
  

Delrick Gist
Writer's Block

WRITERSBLOCK.COM
Back to top
IP Logged
 
Mongo
Full Member
***
Offline


Mongo only pawn in game
of life.

Posts: 197
Location: Hampstead
Joined: Jun 23rd, 2005
Gender: Male
Re: Link IP Mod
Reply #26 - Oct 15th, 2005 at 11:49pm
Print Post  
delrick wrote on Oct 15th, 2005 at 6:42pm:
I removed the line:

Code
Select All
require "$vardir/link_ip.txt";  ## link IP mod 



and all works well


Alrighty then.  Go ahead and replace it with this:
Code
Select All
if (-e("$vardir/link_ip.txt"))  {
	require "$vardir/link_ip.txt";  ## link IP mod
} 



I'll update the mod on Monday.

Thanks for finding the bug.  Smiley
  

--I no longer have time to work on my mods.  If anyone wants to continue what I've started, be my guest.  Please read my notes in my profile for more information.

--Mongo
Back to top
 
IP Logged
 
Mongo
Full Member
***
Offline


Mongo only pawn in game
of life.

Posts: 197
Location: Hampstead
Joined: Jun 23rd, 2005
Gender: Male
Re: Link IP Mod
Reply #27 - Oct 17th, 2005 at 12:34pm
Print Post  
Updated mod to reflect the changes shown in previous post.  The link in my very first post will have the latest changes.

Again, thanks delrick for finding the bug.  It worked as me "as is" only because I had already set the link_ip.txt file before adding in the requirement in AdminIndex.pl.  With the correction, the file will only be required if it exists.
  

--I no longer have time to work on my mods.  If anyone wants to continue what I've started, be my guest.  Please read my notes in my profile for more information.

--Mongo
Back to top
 
IP Logged
 
Xavier
Senior Member
****
Offline



Posts: 442
Location: Ipswich
Joined: Apr 5th, 2005
Gender: Male
Re: Link IP Mod
Reply #28 - Nov 11th, 2005 at 10:04pm
Print Post  
can u upload your display.pl and yabb.pl so that i can have a look at the. it really weird as i have 51 mods on my forum and none of them clash
  
Back to top
WWWYIM  
IP Logged
 
windnwaves
Full Member
***
Offline


Keep Smiling

Posts: 143
Location: UK
Joined: Apr 13th, 2004
Gender: Male
Re: Link IP Mod
Reply #29 - Nov 11th, 2005 at 10:55pm
Print Post  
very strange I thought I would check again so as to not waste your time Xavier and all is well.

Don't think I did any thing different from last time

I will remove my post

thanks anyway

windy
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 4 5
Send TopicPrint