PDA

View Full Version : Custom IP: Logged


06-16-2000, 02:13 PM
Some of you may feel like I do about (IP: Logged)... a great feature but certainly an eyesore. Here's a way to semi-hide it from visitor's and still have the IP: Logged function available to admin's and mod's. A custom STYLE - (color= #000000; text decoration: none) is used to hide the link. Change the color to whatever suits your color scheme, if you remove (color= #000000;) it will default to your link color, or you could replace the style tag with a class tag from your own style sheet. Have fun, I hope some of you find this useful. :)

To see how this works hover over the post time in this thread:
http://www.mis-forums.com/vbbs/showthread.php?threadid=1289


In file SHOWTHREAD.PHP Find:
if ($logip==1) {

Change:
$iplogged="IP: <a href=\"postings.php?action=getip&postid=$postid\">Logged</a>";

To:
$iplogged="<a href=\"postings.php?action=getip&postid=$postid\" style=\"color: #000000; text-decoration: none\"><acronym title=\"IP: Logged (admin view only)\">$posttime</acronym></a>";



In template POSTBIT Find:
$foldericon

Change:
$foldericon <FONT SIZE="1" FACE="verdana,arial,helvetica">$postdate $posttime</font>

To:
$foldericon <FONT SIZE="1" FACE="verdana,arial,helvetica">$postdate $iplogged</font>

Also Change:
</td><td align="right" valign="middle" nowrap>
<FONT SIZE="1" FACE="verdana,arial,helvetica">$iplogged</font>
</td></tr>

To:
</td><td align="right" valign="middle" nowrap>
& nbsp; <----- remove space after &
</td></tr>


Larry "NgtCrwlr" Mingus
http://www.makeitsimple.com/