| Author |
Message |
NovemberRain New Member


Joined: Jul 12, 2003 Posts: 8 Location: Istanbul
|
Posted:
Sun Jul 13, 2003 8:01 am |
|
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 |
|
|
 |
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Sun Jul 13, 2003 8:53 am |
|
That's really an issue with the theme , but I will see about modifying the code. Thanks for the suggestion  |
|
|
|
 |
NovemberRain New Member


Joined: Jul 12, 2003 Posts: 8 Location: Istanbul
|
Posted:
Sun Jul 13, 2003 9:16 am |
|
but this happens with other themes too |
|
|
 |
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Sun Jul 13, 2003 9:18 am |
|
I know. I am saying that the blocks are hard coded width wise. Somehow they need to be percentage or something. |
|
|
|
 |
vocal New Member


Joined: Aug 31, 2003 Posts: 3 Location: Saskatoon, Canada
|
Posted:
Sun Aug 31, 2003 7:15 pm |
|
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. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Sun Aug 31, 2003 7:17 pm |
|
Do you want to remove it or adjust it? |
|
|
|
 |
vocal New Member


Joined: Aug 31, 2003 Posts: 3 Location: Saskatoon, Canada
|
Posted:
Sun Aug 31, 2003 7:20 pm |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Sun Aug 31, 2003 7:24 pm |
|
Almost at the end is this line | Code: | | $content .= "<center>"._SERDT."<br />$sdt (GMT $zone)</center>"; | Comment it out. |
|
|
|
 |
vocal New Member


Joined: Aug 31, 2003 Posts: 3 Location: Saskatoon, Canada
|
Posted:
Sun Aug 31, 2003 7:25 pm |
|
thank-you, your the best. |
|
|
|
 |
Buzzword New Member


Joined: Feb 25, 2004 Posts: 4 Location: San Antonio, TX
|
Posted:
Sat Feb 28, 2004 9:56 pm |
|
How about if we wanna adjust it?  |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Sat Feb 28, 2004 10:24 pm |
|
Regarding the nick length try this (i haven't tested it).
Find in the block:
| Code: | $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-.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]\">$session[uname]</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 $session[uname]\"></a> <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> <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: <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-.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]\">$suname</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 $session[uname]\"></a> <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> <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. |
|
|
|
 |
Buzzword New Member


Joined: Feb 25, 2004 Posts: 4 Location: San Antonio, TX
|
Posted:
Sun Feb 29, 2004 4:55 am |
|
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...  |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Sun Feb 29, 2004 11:26 am |
|
Which means i need to test stuff before posting it
Give me a few minutes and i'll install the block and modify it. |
|
|
|
 |
Buzzword New Member


Joined: Feb 25, 2004 Posts: 4 Location: San Antonio, TX
|
Posted:
Sun Feb 29, 2004 1:09 pm |
|
No problemo man! I just thank you for the help in the first place! Maybe someday I'll know what I'm doing and I can do it without asking for help..  |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Sun Feb 29, 2004 1:54 pm |
|
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 New Member


Joined: Feb 25, 2004 Posts: 4 Location: San Antonio, TX
|
Posted:
Sun Feb 29, 2004 6:09 pm |
|
I'm not in any hurry at all, so no big deal! Take your time!  |
|
|
|
 |
|
|
|
|