Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

How to get more text in the personal text area on profile

Aloittaja wynnyelle, joulukuu 17, 2013, 01:04:24 IP

« edellinen - seuraava »

wynnyelle

I want to make it bigger in there so people can put a longer text if they want to. Is there an easy way to do this?

I want to let members use it as an About Me on their profile.  On mini profile maybe I could limit how long it gets, but let the whole thing display on the profile. would this be hard? On the mini profile it could just go with the "..." after too long.

But the first step is letting people get more text in there at all.

shadow82x

Colin B
Former Spammer, Customize, & Support Team Member

kat

If that's not of use, you could try this. No guarantees, though, coz I haven't checked it...

Sources>Profile-Modify.php

'personal_text' => array(
'type' => 'text',
'label' => $txt['personal_text'],
'log_change' => true,
'input_attr' => array('maxlength="50"'),
'size' => 50,
'permission' => 'profile_extra',


Change 'maxlength="50"' to suit. You MIGHT need to adjust 'size', on the next line, too.

As I said, I haven't tried this, so keep a copy of the original file, in case I've just typed a load of rubbish, woncha? ;)

wynnyelle

#3
thank you guys!!

I like the custom profile field idea for this too! How would I set that up though? I know we have the controls, but it would need to go into the correct area on the profile page--right underneath the avatar, in that same square block as the avatar and name.

Ok I created the custom field called About Me, but it isn't where I need it to be. It's way down at the bottom and I need it to be right under the avatar.

now I put text into it and it disappeared except for a tiny squish flat thing. what am i doing wrong???

wynnyelle

Lainaus käyttäjältä: K@ - joulukuu 17, 2013, 02:10:22 IP
If that's not of use, you could try this. No guarantees, though, coz I haven't checked it...

Sources>Profile-Modify.php

'personal_text' => array(
'type' => 'text',
'label' => $txt['personal_text'],
'log_change' => true,
'input_attr' => array('maxlength="50"'),
'size' => 50,
'permission' => 'profile_extra',


Change 'maxlength="50"' to suit. You MIGHT need to adjust 'size', on the next line, too.

As I said, I haven't tried this, so keep a copy of the original file, in case I've just typed a load of rubbish, woncha? ;)

This worked, by the way! Thank you!

The only problem is that it doesn't work quite right in the text box on the forum profile page. Instead of just having a text box that increases vertically with more text, it stays on one single line and gets longer and longer. There a way to fix this?

Also, there a way to let people use BBcode on it?

margarett

Use a custom profile field. It natively allows BBC, if you choose so ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

LainaaOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

wynnyelle

But I tried that and it didn't work...See up higher in this thread.

It didn't appear where it has to appear it was down at the bottom instead. It needs to be under the avatar in that block, and have its own CSS class so people can make it fancy if they like.

thanks!!!

kat

No idea how to sort that box size, I'm afraid. :(

It's possible that that's controlled in index.css. I'm really not certain, though.

wynnyelle

I don't know either but need to sort it out. Cause the custom field aint popping up where it needs to we're using the personal text as an about me.

Also, discovered that even though I set the thing to allow 400 characters it still only allows around 250. Not the worst thing in the world, but 400 would be cool, also, would it be possible to let people use BBcode on it?

They also want to be able to justify it or not. There be a way to put a little checkboxes in there to click it to centre it, justify it or left align/right align it?

Arantor

Neither making it bigger nor using bbc is recommended.

The bbc parser is the single largest - and slowest - component of SMF. It consumes half of Subs.php on its own. Running it dozens more times at once is not recommended.

Making the field bigger as it normally stands adds a performance hit to the members table, which hurts everywhere that the personal text is used. Custom fields have a slightly lower penalty in that respect though.
Holder of controversial views, all of which my own.


wynnyelle

So if I made this a custom field that would solve a lot of these issues. I saw the check box that lets you put bbcode into there.

But it's putting it at the bottom and I want it at the top under the avatar. It is supposed to be an about me text area. If I could just move it, it would be great. Do you know how?

margarett

A small tweak in Display.template.php can fix that for you ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

LainaaOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Arantor

No, it wouldn't solve much of them at all. Custom fields don't allow for two separate things to be stored at once, so that's no help to you, using bbcode is still a performance nightmare whatever you do (like I already said)

Yes, you could move the textbox up but it would have other consequences, there's no easy way to pull just one field out and move it on its own.

Though why you need to put this mini-bio on every single post seems a bit beyond me.
Holder of controversial views, all of which my own.


wynnyelle

It wouldn't need to go on the mini profile if we were using a custom profile field. Just on the main profile page would be enough.

I just need to move it to right up below the avatar, or under the avatar and icons, same basic idea.


Arantor

So use the custom field and only display in the main profile area... not sure what the problem is at this point.
Holder of controversial views, all of which my own.


wynnyelle

It won't display under the avatar that's the problem.

Arantor

Except just now you said it wouldn't need to go on the mini profile (= the one inside posts) if it were a custom field because it would be on the main profile...

Sorry, shouldn't have said anything.
Holder of controversial views, all of which my own.


wynnyelle

Yes I said that. But it is still not going under the avatar it gets stuck on the bottom. What does that have to do with the mini profile?

Do you want me to show you screenshots?

Arantor

Except the mini profile is the one in posts. So one minute you're saying it should be in there, the next you're saying it doesn't matter if it isn't.

I really should remember to ignore these threads because no good ever comes of my trying to help you
Holder of controversial views, all of which my own.


Kindred

I think she is trying to stick it under the avatar in the profile summary screen.


Personally, I'd just use the ultimate profiles mod, which already includes a personal bio area as well as many more personalizable bits and baubles.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: