PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
svenno
New Member
New Member


Joined: Apr 02, 2004
Posts: 1

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

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 to the forums!
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 Back to top

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: 16987
Location: Kansas

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

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 to the forums!
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 Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
diabluntd
Hangin' Around


Joined: Mar 19, 2004
Posts: 31

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

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 to the forums!
View user's profile Send private message
Adis
New Member
New Member


Joined: Sep 23, 2002
Posts: 4

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

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
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Adis
New Member
New Member


Joined: Sep 23, 2002
Posts: 4

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

Arrow Thank you very much.
View user's profile Send private message
Lithium
Hangin' Around


Joined: Mar 30, 2004
Posts: 28

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

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
Hangin' Around


Joined: Mar 30, 2004
Posts: 28

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

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
View user's profile Send private message Visit poster's website
Adis
New Member
New Member


Joined: Sep 23, 2002
Posts: 4

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

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-.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-.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++;
    }
View user's profile Send private message
Lithium
Hangin' Around


Joined: Mar 30, 2004
Posts: 28

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

Thanks, this code seems to be working great.

Very Happy
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum