1
rajaito
extend bio (extra info) length
  • 2005/2/2 3:46

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


I cannot figure out how to make the extra info field longer. It is only like 2 sentances long. That is rediculous!!! Any ideas???

thank you

2
rajaito
Re: extend bio (extra info) length
  • 2005/2/2 17:46

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


hmm....

I figured out how to go into php admin and change the bio field to longtext. That seemed to open up a whole lot. Except, no matter how long the bio entry in it wants to truncate the last word. Can anyone help me with this?

3
rajaito
Re: extend bio (extra info) length
  • 2005/2/3 6:26

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


wow... the support on this site is great.


/sarcasm



4
rajaito
Re: extend bio (extra info) length
  • 2005/2/6 21:26

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


hellooooo? Please help!!!!

5
hobbles
Re: extend bio (extra info) length
  • 2005/2/9 17:40

  • hobbles

  • Just popping in

  • Posts: 24

  • Since: 2004/1/27


In the edituser.php file find this line:

$edituser->setVar('bio', xoops_substr($bio, 0, 255));

Change that 255 to a larger number. I'm pretty sure that should fix your problem.

6
rajaito
Re: extend bio (extra info) length
  • 2005/2/17 3:30

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


Thank You Hobbles. I thought no one would ever reply. I guess I need to practice patience more. I realize that coders get burnt out on answering stupid questions. But I certainly appreciate it. I had experimented with that line of code before but didn't get it to work until it was combined with editing the database as well.

Anyway... This should be something that is adjustable for admins of XOOPS sites.

Now to figure out how to add more to the user's profile pages.

Like a shoutbox and personal calendar.

http://www.ElectroniCulture.com/index.php

7
rajaito
Re: extend bio (extra info) length
  • 2005/2/18 14:04

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


ooops that link is WRONG!!!!


Use this one here:http://www.ElectroniCulture.org/index.php

8
rajaito
Re: extend bio (extra info) length
  • 2005/6/27 4:38

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


now to bring up an old topic.....

Although, there is a ridiculous amount of text I have allowed my users to post in their bio, the box for the bio on edituser.php is only about 5 or 6 lines tall. I'd like to make it much larger please.
My xoops site: ElectroniCulture.net

9
rajaito
Re: extend bio (extra info) length
  • 2005/6/28 5:10

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


Quote:

rajaito wrote:
now to bring up an old topic.....

Although, there is a ridiculous amount of text I have allowed my users to post in their bio, the box for the bio on edituser.php is only about 5 or 6 lines tall. I'd like to make it much larger please.



thump..... anyone have a clue?
My xoops site: ElectroniCulture.net

10
wtravel
Re: extend bio (extra info) length

edited after realizing you are probably talking about 2.0.11 version

If you are using the 2.0.11 version, in the file edituser.php replace:
Quote:

$bio_tarea = new XoopsFormTextArea(_US_EXTRAINFO, 'bio', $xoopsUser->getVar('bio', 'E'));

With:
Quote:

$bio_tarea = new XoopsFormTextArea(_US_EXTRAINFO, 'bio', $xoopsUser->getVar('bio', 'E'),10,50);


10 and 50 stand for number of rows and size of the textarea. You can change them to any value you like.

-------------------------------------
If you are talking about the XOOPS nightly version...

If you change the values for textarea in the file kernel/profilefield.php in function getEditElement(&$user), this will apply to all profile fields of type textarea.

But if that is not a problem for you, you could change the values 10 and 50 in the 'case "textarea":' section to change the number of rows and the size.

Login

Who's Online

206 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 206


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits