Make a Lasting Impression





Real name in Whos Online Block
Quite a regular
Joined:
2008/7/27 15:43
Posts: 53
Hye

i would like to use real name instead of username in online block


i changed the code

$uname 
icms::$user->getVar('uname');


to

$uname 
icms::$user->getVar('name');

in impresscms/htdocs/modules/system/blocks/system_blocks.php

and its currently working..

but the real name length is too short and most the real name of my user is cut off in the block because of their long full name..

how do i increase the length of the real name display in whos online block ?

Posted on: 4/5 6:56:57
Transfer the post to other applications Transfer


Re: Real name in Whos Online Block
Home away from home
Joined:
2009/3/3 4:18
From Belgium
Posts: 1952
The display of blocks is in many cases handled by the theme. Are you working in iTheme, or something else?

If something else, can you give the HTML that your block generates?

Posted on: 4/5 8:05:43
_________________
d-log - My personal site
Openhub profile
Transfer the post to other applications Transfer


Re: Real name in Whos Online Block
Home away from home
Joined:
2007/12/4 9:00
Posts: 4242
I don't see anything else that might restrict the length, at least not in the code or the default templates. What do you see if you switch to one of the included themes?

Posted on: 4/6 0:36:21
_________________
Steve
Twitter: @skenow
Facebook: Steve Kenow
Transfer the post to other applications Transfer


Re: Real name in Whos Online Block
Quite a regular
Joined:
2008/7/27 15:43
Posts: 53
i made a test using itheme in localhost

the real name should be Joseph Jonathan JameLindsay

frontend Output:
Open in new window


changing theme also output the same result



html output

<div class="xo-blockcontent"><b>1</buser(sare online<br /><br />Members1<br />Guests0<br /><br /> <a href="http://localhost/icms/userinfo.php?uid=1" title="Joseph Jonathan JameLinds's Profile">Joseph Jonathan JameLinds</a>,  <a href="(script removed)openWithSelfMain('http://localhost/icms/misc.php?action=showpopups&type=online','Online',420,350);" title="more...">more...</a></div>

Posted on: 4/10 6:16:26
Transfer the post to other applications Transfer


Re: Real name in Whos Online Block
Quite a regular
Joined:
2008/7/27 15:43
Posts: 53
SOLVED

i have to increase the online_uname field in the online table in database

anyway tq

Posted on: 4/10 6:29:02
Transfer the post to other applications Transfer


Re: Real name in Whos Online Block
Home away from home
Joined:
2007/12/4 9:00
Posts: 4242
I hadn't thought of database tables and fields - nice work!

Posted on: 4/14 2:57:36
_________________
Steve
Twitter: @skenow
Facebook: Steve Kenow
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]