vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Parse BBCode for Custom User Profile Fields (https://vborg.vbsupport.ru/showthread.php?t=231267)

Sparky McSmith 12-26-2009 10:00 PM

Parse BBCode for Custom User Profile Fields
 
1 Attachment(s)
This mod will parse BBCode in any and all customer user profile fields you may have created for display on the profile page. It simply adds on plugin at the member_customfields hook location.

To install: Simply download and install the Product.

Please click "install" if you use it.

mandingo 12-26-2009 11:47 PM

Nice,smilies work too. Too bad custom bbcode isn't working for me though. Are there settings anywhere?

wastemytime 01-03-2010 09:05 PM

Is this also possible for Custom Profile Fields in the Postbit?

identitas 05-03-2010 02:12 PM

Quote:

Originally Posted by mandingo (Post 1939028)
Nice,smilies work too. Too bad custom bbcode isn't working for me though. Are there settings anywhere?

Change False to True in:
PHP Code:

$bbcode_parser =& new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),false); 


zeroality 05-09-2010 10:33 PM

Yeah, I would like to get this working for postbit too. Can anybody help?

I want to use my bbcoded custom profile fields in postbit. I know how to add the code to postbit, it's just not parsing properly.

Boofo 05-09-2010 11:18 PM

Quote:

Originally Posted by identitas (Post 2031130)
Change False to True in:
PHP Code:

$bbcode_parser =& new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),false); 


Isn't that kind of dangerous if you have some types of html code for bbcode?

zeroality 05-20-2010 12:09 AM

So can anybody help with getting this to work in postbit?

Zombo 06-25-2010 03:22 AM

for some reason this doesn't parse [img].

Zombo 06-27-2010 08:14 PM

when you put & in a field, it converts to &

skizer 07-15-2010 12:02 AM

Would be great if someone comes up with a solution for the postbit problem =)

RustyDogma 08-18-2010 07:46 AM

Quote:

Originally Posted by skizer (Post 2069288)
Would be great if someone comes up with a solution for the postbit problem =)

I'd love to use this in postbit :D

RustyDogma 08-18-2010 08:13 AM

Quote:

Originally Posted by Zombo (Post 2060666)
when you put & in a field, it converts to &

Ahh, aye.. having this problem too :(

red-dna 09-26-2010 07:27 AM

Anyone knows how to use that in postbit too??

GPOClan 05-08-2011 01:50 PM

I also need the [IMG] code... Would be great if you coul fix that :)

but 5 stars!

midnz 05-08-2011 11:26 PM

Quote:

Originally Posted by GPOClan (Post 2193308)
I also need the [IMG] code... Would be great if you coul fix that :)

but 5 stars!

The [img] code parses when used in profile fields. I've just tested it on external images and also with images hosted on my own server.

GPOClan 05-09-2011 05:18 PM

Quote:

Originally Posted by midnz (Post 2193463)
The [img] code parses when used in profile fields. I've just tested it on external images and also with images hosted on my own server.

Thanks for testing, but I just get a link. I want to have displayed the whole image...

midnz 05-09-2011 09:50 PM

Quote:

Originally Posted by midnz (Post 2193463)
The [img] code parses when used in profile fields. I've just tested it on external images and also with images hosted on my own server.

Quote:

Originally Posted by GPOClan (Post 2193728)
Thanks for testing, but I just get a link. I want to have displayed the whole image...

Are you using the full web address, including the preceding "http://" ?
I tested using "www.image name.gif" and doing it that way only displays a link. Using the entire web address makes the image display properly.
I tested on vB 4.0.8 PL2 in case that makes any difference.

GPOClan 05-10-2011 01:28 PM

Quote:

Originally Posted by midnz (Post 2193816)
Are you using the full web address, including the preceding "http://" ?
I tested using "www.image name.gif" and doing it that way only displays a link. Using the entire web address makes the image display properly.
I tested on vB 4.0.8 PL2 in case that makes any difference.

Yes, I am using http://www.bund-deutscher-clans.de/t...rum_old-48.png. It displays just the link to the image. Is the problem my version of vB? I am using 4.0.7, maybe it's just working with 4.0.8 P2 ...

GPOClan 05-13-2011 01:50 PM

Tested it under 4.0.8, but it did not show any effect, so it is not the version.

Are there other solutions?
Thanks for help!

tintin74 05-14-2011 11:22 AM

Quote:

Originally Posted by Zombo (Post 2060666)
when you put & in a field, it converts to &

I quote this .

DOes anyone coder could fix this please?

GPOClan 05-14-2011 11:50 AM

Yes, this would be great. Developer was last online one year ago...

tintin74 05-14-2011 01:10 PM

Solved GPOClan:

Code:

if (!is_object($bbcode_parser))
        {
            require_once(DIR . '/includes/class_bbcode.php');
            $bbcode_parser =& new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),true);
        }
        $profilefield['value'] = strip_tags($profilefield['value']);
        $profilefield['value'] = $bbcode_parser->do_parse($profilefield['value'],true,true,ture,true,false,false);


GPOClan 05-14-2011 01:50 PM

Quote:

Originally Posted by tintin74 (Post 2195561)
Solved GPOClan:

Code:

if (!is_object($bbcode_parser))
        {
            require_once(DIR . '/includes/class_bbcode.php');
            $bbcode_parser =& new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),true);
        }
        $profilefield['value'] = strip_tags($profilefield['value']);
        $profilefield['value'] = $bbcode_parser->do_parse($profilefield['value'],true,true,ture,true,false,false);


Hello,

thanks for your help, but I get this error:
Parse error: syntax error, unexpected $end in /is/htdocs/wp10584736_RU569EW3DZ/BDC/includes/functions.php(1568) : eval()'d code on line 8

tintin74 05-15-2011 12:23 PM

Quote:

if (!is_object($bbcode_parser))
{
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),true);
}
$profilefield['value'] = strip_tags($profilefield['value']);
$profilefield['value'] = $bbcode_parser->do_parse($profilefield['value'],true,true,true,true,false,false);
Try now, there was a mistake...

GPOClan 05-15-2011 12:42 PM

Quote:

Originally Posted by tintin74 (Post 2195961)
Try now, there was a mistake...

WOW! Thank you so very much dude! Great work! THANKS!!!

Moondust 08-02-2011 04:52 PM

1 Attachment(s)
There is the Code as XML with working IMG Tag and Custom BB Codes

Diana Notacat 09-30-2011 05:05 AM

Does any one else get a Permissions error when someone tries to move/edit a thread while this mod is enabled? The mod itself works, but then I get that weird error while trying to move topics! I can't figure that one out!

guitarcrazy44 12-25-2011 10:55 PM

How could In edit this plugin so that if a user selected an option called "drums" in their profile settings as an answer then it would make a picture of drums "drums.png" appear in that custom field in their user profile?


All times are GMT. The time now is 01:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01437 seconds
  • Memory Usage 1,782KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete