Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
NovemberRain
New Member
New Member


Joined: Jul 12, 2003
Posts: 8
Location: Istanbul

PostPosted: Sun Jul 13, 2003 8:01 am Reply with quote

hi.. i'm usign the user info block downloaded from here. and as you see when there is someone on the nick list who has a very long nick. there are problems with the tables. can it be like for example;

DiabolicalHol..
instead of
DiabolicalHolocaus

thanks
 
View user's profile Send private message ICQ Number
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Sun Jul 13, 2003 8:53 am Reply with quote

That's really an issue with the theme Smile, but I will see about modifying the code. Thanks for the suggestion Wink
 
View user's profile Send private message
NovemberRain
PostPosted: Sun Jul 13, 2003 9:16 am Reply with quote

but this happens with other themes too
 
Raven
PostPosted: Sun Jul 13, 2003 9:18 am Reply with quote

I know. I am saying that the blocks are hard coded width wise. Somehow they need to be percentage or something.
 
vocal
New Member
New Member


Joined: Aug 31, 2003
Posts: 3
Location: Saskatoon, Canada

PostPosted: Sun Aug 31, 2003 7:15 pm Reply with quote

Hi there

just curious how I go about removing the server date and time from the user_info block?

My server is different than my local time, and it may confuse things a bit.
 
View user's profile Send private message Visit poster's website
Raven
PostPosted: Sun Aug 31, 2003 7:17 pm Reply with quote

Do you want to remove it or adjust it?
 
vocal
PostPosted: Sun Aug 31, 2003 7:20 pm Reply with quote

remove preferably.
 
Raven
PostPosted: Sun Aug 31, 2003 7:24 pm Reply with quote

Almost at the end is this line
Code:
$content .= "<center>"._SERDT."<br />$sdt (GMT $zone)</center>";
Comment it out.
 
vocal
PostPosted: Sun Aug 31, 2003 7:25 pm Reply with quote

thank-you, your the best.
 
Buzzword
New Member
New Member


Joined: Feb 25, 2004
Posts: 4
Location: San Antonio, TX

PostPosted: Sat Feb 28, 2004 9:56 pm Reply with quote

How about if we wanna adjust it? Shocked
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
chatserv
Member Emeritus


Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Sat Feb 28, 2004 10:24 pm Reply with quote

Regarding the nick length try this (i haven't tested it).
Find in the block:
Code:
      $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]\">$session[uname]</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 $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]\">$session[uname]</a><br />\n";
       $who_online_now .= ($i != $member_online_num ? "  " : "");
       $i++;

Change to:
Code:
            if (strlen($session[uname]) > 7) {

            $sname = substr("$session[uname]", 0,7);
            $suname = "$sname...";
            } else {
            $suname = "$session[uname]";
            }
      $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]\">$suname</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 $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]\">$suname</a><br />\n";
       $who_online_now .= ($i != $member_online_num ? "  " : "");
       $i++;

Change the two instances of the number 7 to the max nick length you want.
 
View user's profile Send private message Visit poster's website
Buzzword
PostPosted: Sun Feb 29, 2004 4:55 am Reply with quote

Hey man I tried changing that code like you said too. but it just didn't show the names anymore, they took up the same amout of space as before but the names were just GONE!! lol so I don't know what happened... Mr. Green
 
chatserv
PostPosted: Sun Feb 29, 2004 11:26 am Reply with quote

Which means i need to test stuff before posting it Razz
Give me a few minutes and i'll install the block and modify it.
 
Buzzword
PostPosted: Sun Feb 29, 2004 1:09 pm Reply with quote

No problemo man! I just thank you for the help in the first place! Razz Maybe someday I'll know what I'm doing and I can do it without asking for help.. Shocked
 
chatserv
PostPosted: Sun Feb 29, 2004 1:54 pm Reply with quote

I'm buried in php files right now so it might take a while, oddly i can't get the string that shortens the nick to get the value of $session[uname], so if anyone else can take a look at it in the meantime
 
Buzzword
PostPosted: Sun Feb 29, 2004 6:09 pm Reply with quote

I'm not in any hurry at all, so no big deal! Take your time! Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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 ©