Post Reply 
 
Thread Rating:
  • 1 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to enable BB codes at custom profile fields
Author Message
jeyci Offline
Member
***

Posts: 111
Joined: Aug 2009
Reputation: 0
Post: #1
How to enable BB codes at custom profile fields
Well the regular bio does not allow any tags to be used, how can I enable tags to my bio?

http://forum.philker.net/JeyCi
check the about me tab. It would be better if users can post multiple pictures making the profile look better, Big Grin

Any help?, Thanks.
(This post was last modified: 12-19-2009, 05:18 PM by jeyci)
12-19-2009, 04:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Arianna Offline
Junior Member
**

Posts: 19
Joined: Oct 2009
Reputation: 0
Post: #2
RE: How to enable BB codes at custom profile fields
I tried something like this earlier, but the only way that I got around it was letting them use HTML. Possibly you could call a parse BBcode function on displaying it. Is this something which will be displayed on the profile, or will it be displayed in other places, too?
12-20-2009, 02:26 AM
Find all posts by this user Quote this message in a reply
jeyci Offline
Member
***

Posts: 111
Joined: Aug 2009
Reputation: 0
Post: #3
RE: How to enable BB codes at custom profile fields
Just @ profile.
I wanted the bio to be a fully customizable area where they can put pictures and stuff.
12-20-2009, 02:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Arianna Offline
Junior Member
**

Posts: 19
Joined: Oct 2009
Reputation: 0
Post: #4
RE: How to enable BB codes at custom profile fields
Hmm... I think if you've already got it showing, then all that needs to be called is something which converts the bbcode. I don't know which function actually does it in myBB, I'll search and then tell you if I find it. 001_smile
I've found out this:
there is a function, parse_mycode, in inc/class_parser.php. This parses mycode. It starts like this: function parse_mycode($message, $options=array());
I think that means that it needs an array when it's submitting it or something. Anyway, this is the default array (at the top of the class_parser.php document):
PHP Code:
options = array(
    
allow_html
    allow_smilies
    allow_mycode
    nl2br
    filter_badwords
    me_username
    shorten_urls
    highlight

It could be simplified for the profile field to:
PHP Code:
options = array(
    
allow_smilies
    allow_mycode
    nl2br
    filter_badwords

All that it now needs is for it to be called from member.php. I'm trying to work out if that goes in the templates or if it goes in the actual file, but I hope this helps. 001_smile
I tried to have it so it parsed mycode inline, however that didn't work, and I ended up getting something like this:
Code:
Location:    {parse_mycode()}
Bio:    {parse_mycode(This is a biography or whatever.
[b]testing testing[/b] [i]1 2 3[/i].)}
I guess it can't tell the functions from in the templates... is there any way to get around it?
(This post was last modified: 12-20-2009, 05:32 PM by Arianna)
12-20-2009, 04:50 PM
Find all posts by this user Quote this message in a reply
jeyci Offline
Member
***

Posts: 111
Joined: Aug 2009
Reputation: 0
Post: #5
RE: How to enable BB codes at custom profile fields
SOrry:(, I'm not familiar with php/mybb system codes.
12-20-2009, 07:36 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Arianna Offline
Junior Member
**

Posts: 19
Joined: Oct 2009
Reputation: 0
Post: #6
RE: How to enable BB codes at custom profile fields
Hmm... Let's wait and see if anyone else here has an idea. 001_smile
I'm sorry I couldn't help sort it all out, but maybe I got stuff going in the right direction.
(This post was last modified: 12-20-2009, 11:54 PM by Arianna)
12-20-2009, 11:53 PM
Find all posts by this user Quote this message in a reply
jeyci Offline
Member
***

Posts: 111
Joined: Aug 2009
Reputation: 0
Post: #7
RE: How to enable BB codes at custom profile fields
(12-20-2009 11:53 PM)Arianna Wrote:  Hmm... Let's wait and see if anyone else here has an idea. 001_smile
I'm sorry I couldn't help sort it all out, but maybe I got stuff going in the right direction.

Thanks for your time. Big Grin Heart
12-22-2009, 01:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Koala Offline
Junior Member
**

Posts: 41
Joined: Nov 2009
Reputation: 1
Post: #8
RE: How to enable BB codes at custom profile fields
I will look into it really quick, I only have like 10 minutes of time though as I need to study for my driver's learners permit.

Nothing.
(This post was last modified: 12-23-2009, 10:51 AM by Koala)
12-23-2009, 10:02 AM
Find all posts by this user Quote this message in a reply
Flabaliki Offline
Junior Member
**

Posts: 2
Joined: Jan 2010
Reputation: 0
Post: #9
RE: How to enable BB codes at custom profile fields
01-15-2010, 06:35 PM
Find all posts by this user Quote this message in a reply
Andraž Rihtar Offline
Theme designer
Premium Users

Posts: 1,898
Joined: Aug 2009
Reputation: 9
Post: #10
RE: How to enable BB codes at custom profile fields
(01-15-2010 06:35 PM)Flabaliki Wrote:  http://mods.mybboard.net/view/bbcode-in-...ile-fields
Thanks for sharing this with us Flabaliki 001_smile

Andraž Rihtar - Ex-Support Team Member
01-15-2010, 10:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)