Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)
Author Message
gonehaywire
Worker
Worker



Joined: May 20, 2004
Posts: 126

PostPosted: Wed Nov 17, 2004 12:48 pm Reply with quote

Hello,
Sentinel just added a new Harvest block and in the scroll block it self it put a space like a <br> then the next IP comes up is there away to fix that so there is no space in between? can view here [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Nov 17, 2004 3:02 pm Reply with quote

What has more than likely happened is that it's at maximum width and so it wrapped the new line. Not sure we can fix that but we'll look into it.
 
View user's profile Send private message
gonehaywire







PostPosted: Wed Nov 17, 2004 7:46 pm Reply with quote

Thats odd that its doing that i even tried just showing 2 **.* numbers of the ip and still samething
 
BobMarion
Former Admin in Good Standing



Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Wed Nov 17, 2004 10:49 pm Reply with quote

I just looked at your site and the block appears fine in my browser (FireFox 1.0) but 9in IE it has the line feed for some reason.

_________________
Bob Marion
Codito Ergo Sum
http://www.nukescripts.net 
View user's profile Send private message Send e-mail Visit poster's website
BobMarion







PostPosted: Wed Nov 17, 2004 10:55 pm Reply with quote

Try the following. In the scrolling block find this section of code:
Code:
  if((is_admin($admin) AND $ab_config['display_link']==1) OR ((is_user($user) OR is_admin($admin)) AND $ab_config['display_link']==2) OR $ab_config['display_link']==3) {

    $lookupip = str_replace("*", "0", $ip_addr);
    $content .= "<b><big>&middot;</big></b>&nbsp;<a href=\"".$ab_config['lookup_link']."$lookupip\" target=\"_blank\">$ip_addr</a>\n";
  } else {
    $content .= "<b><big>&middot;</big></b>&nbsp;$ip_addr\n";
  }
  if((is_admin($admin) AND $ab_config['display_reason']==1) OR ((is_user($user) OR is_admin($admin)) AND $ab_config['display_reason']==2) OR $ab_config['display_reason']==3) {
    $result2 = $db->sql_query("SELECT reason FROM $prefix"._nsnst_blockers." WHERE blocker='$ip_reason'");
    list($reason) = $db->sql_fetchrow($result2);
    $reason = str_replace("Abuse-","",$reason);
    $content .= "&nbsp;-&nbsp;$reason\n";
  }
  $content .= "<br />\n";


Replace it with:
Code:
  if((is_admin($admin) AND $ab_config['display_link']==1) OR ((is_user($user) OR is_admin($admin)) AND $ab_config['display_link']==2) OR $ab_config['display_link']==3) {

    $lookupip = str_replace("*", "0", $ip_addr);
    $content .= "<nobr><b><big>&middot;</big></b>&nbsp;<a href=\"".$ab_config['lookup_link']."$lookupip\" target=\"_blank\">$ip_addr</a>";
  } else {
    $content .= "<nobr><b><big>&middot;</big></b>&nbsp;$ip_addr";
  }
  if((is_admin($admin) AND $ab_config['display_reason']==1) OR ((is_user($user) OR is_admin($admin)) AND $ab_config['display_reason']==2) OR $ab_config['display_reason']==3) {
    $result2 = $db->sql_query("SELECT reason FROM $prefix"._nsnst_blockers." WHERE blocker='$ip_reason'");
    list($reason) = $db->sql_fetchrow($result2);
    $reason = str_replace("Abuse-","",$reason);
    $content .= "&nbsp;-&nbsp;$reason";
  }
  $content .= "</nobr><br />\n";


This wil prevent it from break the line into two lines. The side effect to this is that it may strech your sideblock a little.
 
gonehaywire







PostPosted: Thu Nov 18, 2004 4:15 pm Reply with quote

Thanks so much that did the trick Smile I tried using firefox but site looked like crap it wasnt showing css for the scroll bars showed default ones and it showed the smiles when in IE it hides them and made the iframes look wider then what they are and some other stuff didn't look good.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©