Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 10-26-2004, 06:06 PM
House_of_Crazed House_of_Crazed is offline
 
Join Date: May 2004
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



I'm defintely stupid.

Gimme lol ...

I spent like 2 hours on this trying different variables of the code, and just gave up, lol ...

Reply With Quote
  #12  
Old 10-26-2004, 06:13 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, so let's give it a try then

quite before the line i posted above put this:

PHP Code:
    if ($profilefield['profilefieldid'] == xx)
    {
        require_once(
'./includes/functions_bbcodeparse.php');
        
$profilefield['value'] = parse_bbcode2($profilefield['value'], 0111);
    } 
that should be all, just change the xx into the id of your profilefield which needs the parsing
Reply With Quote
  #13  
Old 10-26-2004, 07:14 PM
House_of_Crazed House_of_Crazed is offline
 
Join Date: May 2004
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OMG... I was defintely close then...

I didn't do the $profilefield['value'] line.

I knew it had to be nested somehow. *sigh*...
Reply With Quote
  #14  
Old 10-26-2004, 07:17 PM
House_of_Crazed House_of_Crazed is offline
 
Join Date: May 2004
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is what I had, LOL

PHP Code:
        if ($profilefieldid == '1'
        {
                require_once(
'./includes/functions_bbcodeparse.php');
                
parse_bbcode($profilefield['value']);
        } 
At least I was almost there... *laughs*... But after 2 hours of trying, I just had to stop trying.
Reply With Quote
  #15  
Old 10-26-2004, 08:24 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



well, as long as you learnt something, it was worth the time, don't you think?
Reply With Quote
  #16  
Old 10-26-2004, 09:11 PM
House_of_Crazed House_of_Crazed is offline
 
Join Date: May 2004
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*nods* lol

PHP isn't my thing, but am always willing to learn, lol ...
Reply With Quote
  #17  
Old 10-26-2004, 11:19 PM
House_of_Crazed House_of_Crazed is offline
 
Join Date: May 2004
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Humm...

LOL

We broke something

Apparently the biography field is spitting out <br />'s as well which is HTML code.

Here's an example from my biography field...

dfasdfasdfasf<br />asdfsadf<br />asdfsadf<br /><br />sdaasdfwewqef<br /><br />wefwefwef<br />wefwqefwef<br />wef<br />wqefwefwqef<br /><br />wqefwefqwef<br />wqef<br />weqf<br />wqef<br />qwef

*laughs* *shrugs*
Reply With Quote
  #18  
Old 10-27-2004, 12:10 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

change the 0 in my code into a 1.

as the htmlpart is already done before, two times htmlspecialchars.. will produce that bug then
Reply With Quote
  #19  
Old 07-08-2005, 02:26 PM
Hades-1 Hades-1 is offline
 
Join Date: May 2004
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey xeon, you rock dude, been looking for this forever, just tried it and its perfecto!!!!
Reply With Quote
  #20  
Old 11-11-2005, 07:27 PM
noonespecial noonespecial is offline
 
Join Date: Nov 2002
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anyway to do this in vb 3.5? I was hoping this would work, it doesn't.

HTML Code:
if ($profilefield['profilefieldid'] == 27) 
    { 
        require_once(DIR . '/includes/class_bbcode.php');
		$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); 
        $profilefield['value'] = $bbcode_parser->parse($profilefield['value'], 0, true); 
    }
Reply With Quote
Reply

Thread Tools
Display Modes

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 01:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04263 seconds
  • Memory Usage 2,249KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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