1
GrodsCorp
Expanding user profile 'extra information'
  • 2005/6/14 0:02

  • GrodsCorp

  • Just popping in

  • Posts: 4

  • Since: 2005/6/13


Hi,

Just wondering if anybody could help me increase the character limit of the 'Extra Information' field in user profiles?

Thanks for your help.

2
Anonymous
Re: Expanding user profile 'extra information'
  • 2005/6/14 1:38

  • Anonymous

  • Posts: 0

  • Since:


Try
Membership Module 1.0
or wait for new features in XOOPS 2.2.

3
wcrwcr
Re: Expanding user profile 'extra information'
  • 2005/6/14 4:07

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi mate

Quote:
Just wondering if anybody could help me increase the character limit of the 'Extra Information' field in user profiles?


What is the limit that you found?
I?m asking you cauz i really can?t find an entry regarding limit on the file.

Try to open your "modules/system/users/userform.php"
Look around line 101, you?ll find

$bio_tarea = new XoopsFormTextArea(_US_EXTRAINFO"bio"$bio_value);


Did you see, nothing regarding character limit.

But if you look a bit above, for instance around line 83, you?ll find:

$interest_text = new XoopsFormText(_AM_INTEREST"user_intrest"30150$interest_value);


I tryed to put some values right after the "bio" on the line 101:

$bio_tarea = new XoopsFormTextArea(_US_EXTRAINFO"bio",80,450$bio_value);


update the system module and......nothing change

I guess that you must edit the class XoopsFormTextArea in order to get what you want. It seems that It has a default value.

Sorry It?s beyond my poor knowledge.

To the php gurus: please it was only a mind exercise, trying to find a simple answer. Don?t consider as anithing beyond that

4
rajaito
Re: Expanding user profile 'extra information'
  • 2005/6/14 6:19

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


I encountered a similar issue. See if this helps:

Quote:
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.

5
GrodsCorp
Re: Expanding user profile 'extra information'
  • 2005/6/14 9:57

  • GrodsCorp

  • Just popping in

  • Posts: 4

  • Since: 2005/6/13


Thanks for your help, guys, but these don't seem to make any difference.

6
m0nty
Re: Expanding user profile extra information
  • 2005/6/14 14:36

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


you may need to clear templates_c folder

you will also have to change the table in the database

via phpmyadmin

change xoops_users

find BIO row and change from tinytext to text

ie

ALTER TABLE `xoops_users` CHANGE `bio` `bio` TEXT NOT NULL

7
rajaito
Re: Expanding user profile extra information
  • 2005/6/14 14:44

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


oh yeah... I forgot about that.
But be assured, it is possible man!
Just check out my profile on my site:

http://raja.electroniculture.net

8
GrodsCorp
Re: Expanding user profile extra information
  • 2005/6/15 6:39

  • GrodsCorp

  • Just popping in

  • Posts: 4

  • Since: 2005/6/13


That worked perfectly. Thanks for all your help, guys. Nice profile, Raja!

Login

Who's Online

254 user(s) are online (201 user(s) are browsing Support Forums)


Members: 0


Guests: 254


more...

Donat-O-Meter

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

Latest GitHub Commits