Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
svenno
New Member
New Member



Joined: Apr 02, 2004
Posts: 1

PostPosted: Fri Apr 02, 2004 10:02 am Reply with quote

Hey guys,

I am a total newbie and I have a stuped problem!
The contents of my site info block seem to be to wide which makes the borders go crazy!
What can I do about it?
You can get a screenshot here->
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
diabluntd
Hangin' Around



Joined: Mar 19, 2004
Posts: 31

PostPosted: Wed May 05, 2004 8:54 am Reply with quote

i just installed the site info block from this site and mine is wider then the rest of the blocks also. Anything i'm doing wrong?
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed May 05, 2004 10:07 am Reply with quote

svenno wrote:
Hey guys,

I am a total newbie and I have a stuped problem!
The contents of my site info block seem to be to wide which makes the borders go crazy!
What can I do about it?
You can get a screenshot here->
Only registered users can see links on this board! Get registered or login!
This would be theme related. As you can see on my site, depending on which theme you use, the same problem occurs.
 
View user's profile Send private message
Raven







PostPosted: Wed May 05, 2004 10:10 am Reply with quote

diabluntd wrote:
i just installed the site info block from this site and mine is wider then the rest of the blocks also. Anything i'm doing wrong?
The site block from here is just a modifed standard block. The added icons and such will push the limit depending on your theme. I just modified my themes to accomodate the few extra pixels.
 
diabluntd







PostPosted: Wed May 05, 2004 10:31 am Reply with quote

I should've described more. This may be because of the block i have above it (i'm still looking into it) but has anyone seen this before? It doesn't even happen every time. If i refresh sometimes it does it and sometimes it looks fine.

Only registered users can see links on this board! Get registered or login!
 
Adis
New Member
New Member



Joined: Sep 23, 2002
Posts: 4

PostPosted: Wed May 05, 2004 2:16 pm Reply with quote

I have problem with user names. If user name is to long it goes over the border instead of heaving "..." like here.
 
View user's profile Send private message
Raven







PostPosted: Wed May 05, 2004 2:24 pm Reply with quote

http://www.ravenphpscripts.com/posts1298-highlightsubstr.html
 
Adis







PostPosted: Wed May 05, 2004 2:34 pm Reply with quote

Arrow Thank you very much.
 
Lithium
Hangin' Around



Joined: Mar 30, 2004
Posts: 28

PostPosted: Sun May 09, 2004 4:59 pm Reply with quote

I was having the username problem and replaced the code as advised in the link above. When I did so, the usernames don't show up at all. only the IP addy's of the people not logged in. Also, the hit counters are showing up as: _BHITS New Today. Any ideas?
 
View user's profile Send private message Visit poster's website
Lithium







PostPosted: Sun May 09, 2004 9:37 pm Reply with quote

OK, I forgot to do the language additions....When I added the defines to the language files, it fixed the '_BHITS' instead of just 'hits.'

My problem now is, the registered users do not show up on the block at all, just ip addresses of guests....Can you offer any suggestions?

Thanks Smile
 
Adis







PostPosted: Sun May 09, 2004 10:02 pm Reply with quote

I have fixed that problem. Try this code.

Code:
if (is_admin($admin)) {

      $sql1 = "SELECT host_addr FROM $prefix"._session." WHERE uname='$memberinfo[username]'";
      $result1 = $db->sql_query($sql1);
      mysql_fetch_row($result1);
      $zi = "<a href=\"http://www.samspade.org/t/lookat?a=".$session[host_addr]."\" target=\"_blank\">".$zi."</a>";
   }
   ///pocetak koda za skracivanje imena ako veci od 13///Adis
 $sessionNameModified = strlen($session[uname])<13?$session[uname]:substr($session[uname],0,10)."...";
    if (!$memberinfo[user_allow_viewonline]&&!is_admin($admin)) {
      $hiddenTotal++;
   }
    elseif (!$memberinfo[user_allow_viewonline]&&is_admin($admin)) {
      $hiddenTotal++;
      $who_online_now .= "$zi:&nbsp;<a href=\"userinfo-.html$session[uname]\"><img src=\"images/blocks/icon_mini_profile.gif\" border=\"0\" alt=\"Check the profile of $session[uname]\"></a>&nbsp;<a href=\"messages-post-.html$memberinfo[user_id]\"><img src=\"images/blocks/nopm.gif\" border=\"0\" alt=\"Send a quick private message to $session[uname]\"></a>&nbsp;<A HREF=\"forums.html?file=profile&mode=viewprofile&u=$memberinfo[user_id]\">".$sessionNameModified."</a>(H)<br />\n";
       $who_online_now .= ($i != $member_online_num ? "  " : "");
       $i++;
   }
    else {
      $who_online_now .= "$zi:&nbsp;<a href=\"userinfo-.html$session[uname]\"><img src=\"images/blocks/icon_mini_profile.gif\" border=\"0\" alt=\"Check the profile of\"></a>&nbsp;<a href=\"messages-post-.html$memberinfo[user_id]\"><img src=\"images/blocks/nopm.gif\" border=\"0\" alt=\"Send a quick private message to\"></a>&nbsp;<A HREF=\"forums.html?file=profile&mode=viewprofile&u=$memberinfo[user_id]\">".$sessionNameModified."</a><br />\n";
       $who_online_now .= ($i != $member_online_num ? "  " : "");
       $i++;
   }
}

//if (!is_admin($admin)) $i = $i - $hiddenTotal;
//if ($i<0) $i=0;
$sql = "SELECT uname, guest FROM $prefix"._session." WHERE guest=1";
$result = $db->sql_query($sql);
$gmember_online_num = $db->sql_numrows($result);
$gwho_online_now = "";
while ($session = $db->sql_fetchrow($result)) {
    if (isset($session["guest"]) and $session["guest"] == 1) {
       if ($i < 10) $zi = "0$i";
       else $zi = $i;
            $gwho_online_now .= "$zi:&nbsp;<a href=\"http://www.samspade.org/t/lookat?a=". convertIP($session[uname])."\" target=\"_blank\">". convertIP($session[uname])."</a><br />\n";
            $gwho_online_now .= ($i != $gmember_online_num ? "  " : "");
            $i++;
    }
 
Lithium







PostPosted: Mon May 10, 2004 5:28 am Reply with quote

Thanks, this code seems to be working great.

Very Happy
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

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 ©