Author |
Message |
svenno
New Member


Joined: Apr 02, 2004
Posts: 1
|
Posted:
Fri Apr 02, 2004 10:02 am |
|
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! |
|
|
|
 |
diabluntd
Hangin' Around

Joined: Mar 19, 2004
Posts: 31
|
Posted:
Wed May 05, 2004 8:54 am |
|
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? |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Wed May 05, 2004 10:07 am |
|
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. |
|
|
|
 |
Raven

|
Posted:
Wed May 05, 2004 10:10 am |
|
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

|
Posted:
Wed May 05, 2004 10:31 am |
|
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


Joined: Sep 23, 2002
Posts: 4
|
Posted:
Wed May 05, 2004 2:16 pm |
|
I have problem with user names. If user name is to long it goes over the border instead of heaving "..." like here. |
|
|
|
 |
Raven

|
Posted:
Wed May 05, 2004 2:24 pm |
|
|
|
 |
Adis

|
Posted:
Wed May 05, 2004 2:34 pm |
|
Thank you very much. |
|
|
|
 |
Lithium
Hangin' Around

Joined: Mar 30, 2004
Posts: 28
|
Posted:
Sun May 09, 2004 4:59 pm |
|
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? |
|
|
|
 |
Lithium

|
Posted:
Sun May 09, 2004 9:37 pm |
|
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  |
|
|
|
 |
Adis

|
Posted:
Sun May 09, 2004 10:02 pm |
|
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: <a href=\"userinfo-.html$session[uname]\"><img src=\"images/blocks/icon_mini_profile.gif\" border=\"0\" alt=\"Check the profile of $session[uname]\"></a> <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> <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: <a href=\"userinfo-.html$session[uname]\"><img src=\"images/blocks/icon_mini_profile.gif\" border=\"0\" alt=\"Check the profile of\"></a> <a href=\"messages-post-.html$memberinfo[user_id]\"><img src=\"images/blocks/nopm.gif\" border=\"0\" alt=\"Send a quick private message to\"></a> <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: <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

|
Posted:
Mon May 10, 2004 5:28 am |
|
Thanks, this code seems to be working great.
 |
|
|
|
 |
|