Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Parse BBCode in Custom Profile Fields Details »»
Parse BBCode in Custom Profile Fields
Version: 1.1, by ImportPassion ImportPassion is offline
Developer Last Online: Oct 2008 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-20-2005 Last Update: 12-26-2005 Installs: 38
Uses Plugins
 
No support by the author.

Why? Cause I think this should be the norm and others in this thread seem to want it. https://vborg.vbsupport.ru/showthread.php?t=101248

Be nice to also have WYSIWYG on the textareas, but that's another hack.

There are 2 versions of this.
The first one, product-parse_bbcode_in_profile_1.1.xml, is for anyone that does not have the MySpace style profile template hack installed. You can find that hack here https://vborg.vbsupport.ru/showthread.php?t=101248

The second, product-myspace_style_profile_version.xml, is for users that are using that template hack.

INSTALLATION:
Install the Product and that's it. Will install 1 new plugin. I tested as best I can, but see what happens. Can't provide 100% support, but I will see what I can do.

For non-MySpace profile template users, some options:
--------------------------------------------------------------------------
Optionally remove some code.
https://vborg.vbsupport.ru/showpost....4&postcount=18
--------------------------------------------------------------------------
If you only want certain fields, put this code for EACH fieldx u want parsed in member_customfields hook location.
https://vborg.vbsupport.ru/showpost....5&postcount=19

--------------------------------------------------------------------------

If you did this code change for 1.01, u can now remove it as it is not needed for 1.1.
v.1.01 Code Change

in admincp/profilefield.php find

PHP Code:
// #################### PRE-CACHE TEMPLATES AND DATA ###################### 
add above that

PHP Code:
define('THIS_SCRIPT''profile_admin'); 
end 1.01 code change

################################################## ##
Non-MySpace template hack
v.1.00 - Original Release
v.1.01 - Update to fix some weird issue in admincp when going to profile field manager.
v.1.1 - re-written - totally works.

MySpace Template hack version:
1.0 - Original release.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-24-2005, 03:24 AM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 7thgenCivic.Com
sorry. was building new puter and had no access.

anyway, I will check it out.
Yes please
Reply With Quote
  #13  
Old 12-24-2005, 10:45 AM
Wordplay Wordplay is offline
 
Join Date: Nov 2001
Location: Dengoku
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uninstalled it because of that bug.

is there anyway to whip up a background bbcode?
Reply With Quote
  #14  
Old 12-24-2005, 11:08 AM
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Location: Mersin
Posts: 907
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone needs this for custom profile fields just add a plugin with the following content :
hook location : member_complete
Code:
if ($userinfo['field2'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field2'] = $bbcode_parser->parse($userinfo['field2'],0, true);
}
Change field2 to suit your needs.
Reply With Quote
  #15  
Old 12-24-2005, 02:12 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lizard King
If anyone needs this for custom profile fields just add a plugin with the following content :
hook location : member_complete
Code:
if ($userinfo['field2'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field2'] = $bbcode_parser->parse($userinfo['field2'],0, true);
}
Change field2 to suit your needs.
Lizardking:

I modded my profile field #1 and it didn't work:

Is this correct?

Reply With Quote
  #16  
Old 12-24-2005, 04:20 PM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you have to add a plugin for each field. thats kinda nasty if you have like 20+
Reply With Quote
  #17  
Old 12-24-2005, 05:12 PM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I updated the Plugin. It is all rewritten and in a different hook location.
Reply With Quote
  #18  
Old 12-24-2005, 05:15 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 7thgenCivic.Com
you have to add a plugin for each field. thats kinda nasty if you have like 20+
But what if I only want it to work for ONE field?
Reply With Quote
  #19  
Old 12-24-2005, 05:16 PM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i u want to, u can remove this section from the plugin as it seems it is not necessary. But won't hurt or slow down if you keep it in there.

PHP Code:
if (!is_object($bbcode_parser))
    {
        require_once(
DIR '/includes/class_bbcode.php');
        
$bbcode_parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());
    } 
Reply With Quote
  #20  
Old 12-24-2005, 05:18 PM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TonysDesigns
But what if I only want it to work for ONE field?
try this

PHP Code:
    if($profilefieldname == "field1")
    {
     
$profilefield['value'] = $bbcode_parser->parse($userinfo["$profilefieldname"],0true);
    } 
in the same hook location
Reply With Quote
  #21  
Old 12-24-2005, 05:26 PM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@TonysDesigns: I updated the code above
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:53 PM.


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.12591 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete