PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  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
NovemberRain
New Member
New Member


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

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

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

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

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 Visit poster's website AIM Address Yahoo Messenger
NovemberRain
New Member
New Member


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

PostPosted: Sun Jul 13, 2003 9:16 am Reply with quote Back to top

but this happens with other themes too
View user's profile Send private message ICQ Number
Raven
Site Admin/Owner


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

PostPosted: Sun Jul 13, 2003 9:18 am Reply with quote Back to top

I know. I am saying that the blocks are hard coded width wise. Somehow they need to be percentage or something.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
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 Back to top

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


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

PostPosted: Sun Aug 31, 2003 7:17 pm Reply with quote Back to top

Do you want to remove it or adjust it?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
vocal
New Member
New Member


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

PostPosted: Sun Aug 31, 2003 7:20 pm Reply with quote Back to top

remove preferably.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


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

PostPosted: Sun Aug 31, 2003 7:24 pm Reply with quote Back to top

Almost at the end is this line
Code:
$content .= "<center>"._SERDT."<br />$sdt (GMT $zone)</center>";
Comment it out.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
vocal
New Member
New Member


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

PostPosted: Sun Aug 31, 2003 7:25 pm Reply with quote Back to top

thank-you, your the best.
View user's profile Send private message Visit poster's website
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 Back to top

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
The Mouse Is Extension Of Arm


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

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

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-.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-.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-.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-.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
New Member
New Member


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

PostPosted: Sun Feb 29, 2004 4:55 am Reply with quote Back to top

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
chatserv
The Mouse Is Extension Of Arm


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

PostPosted: Sun Feb 29, 2004 11:26 am Reply with quote Back to top

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


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

PostPosted: Sun Feb 29, 2004 1:09 pm Reply with quote Back to top

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
chatserv
The Mouse Is Extension Of Arm


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

PostPosted: Sun Feb 29, 2004 1:54 pm Reply with quote Back to top

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


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

PostPosted: Sun Feb 29, 2004 6:09 pm Reply with quote Back to top

I'm not in any hurry at all, so no big deal! Take your time! Smile
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
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