Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 11-28-2005, 08:46 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by noonespecial
$userinfo[field27] is what I need parsed
So ... have you tried to parse that?
Reply With Quote
  #22  
Old 11-28-2005, 08:47 AM
noonespecial noonespecial is offline
 
Join Date: Nov 2002
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
So ... have you tried to parse that?
Yah, and I get this on the profile page...

HTML Code:
&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;l t;b&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; amp;amp; amp;amp; amp;amp; amp;amp; amp;amp; amp;gt;S pread the AbsolutePunk.net Banner!&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;lt ;/b&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; amp;amp; amp;amp; amp;amp; amp;amp; amp;amp; amp;lt;b r /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;g t;&amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;g t;&amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;g t;&amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;l t;br /&amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;gt;&amp;amp;amp;lt;br /&amp;amp;amp;gt;&amp;amp;lt;br /&amp;amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;l t;di v align=&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp ;amp ;amp ;amp ;amp ;amp ;amp ;amp ;amp ;amp ;amp ;amp ;quo t;ri ght&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;am p;am p;am p; amp;amp; amp;amp; amp;amp; amp;amp; quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; amp; amp; amp; amp; amp; amp; amp; amp; am p;amp;amp;gt ;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; lt;a href=&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; quot ;htt p://&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;q uot; http : //www.absolutepunk.net/index.php?sub=banners&amp;amp;amp;amp;amp;amp;amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; quot ;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; amp; amp; amp; amp; amp; amp; amp; am p;amp;am p;quot; target=&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;qu ot;_ blan k&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; amp; amp; amp; am p;amp;am p;amp;am p;amp;am p;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;am p;am p;am p;am p;am p;am p;am p;am p;am p; amp;amp;amp; gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;lt ;i mg src=&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;q uot; http ://images.absolutepunk.net/images/banners/125x125.gif&amp;amp;amp;amp;amp;amp;amp;amp;amp;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;qu ot; border=&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;qu ot;0 &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a m p ;amp;amp ;amp;amp ;amp;amp ;amp;quo t; alt=&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;q uot; &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a m p ;amp;amp ;amp;amp ;amp;amp ;amp;amp ;quot; /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;lt ;/a&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; amp;amp; amp;amp; amp;amp; amp;amp; amp;amp; amp;lt ;/div&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;gt ;
using: $userinfo[field27] = $parser->do_parse($userinfo[field27]);
Reply With Quote
  #23  
Old 11-28-2005, 08:49 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lot's of entities

What's the content of field27?
Reply With Quote
  #24  
Old 11-28-2005, 08:52 AM
noonespecial noonespecial is offline
 
Join Date: Nov 2002
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
Lot's of entities

What's the content of field27?
this:

Code:
[.b]Spread the AbsolutePunk.net Banner![./b]
[.right][.url="http://www.absolutepunk.net/index.php?sub=banners"][.img]http://images.absolutepunk.net/images/banners/125x125.gif[./img][./url][./right]
Is what I have in there to test the BBCode.

You can see it not working in action here: http://www.absolutepunk.net/member.php?u=1083

However:

$userinfo[field27] = $parser->do_parse($userinfo[field27], 1, 1, 1, 1, 0, 0);

Works because it allows HTML (right?) (fixing those weird errors above); however, I really don't want to allow HTML on the profile pages - only BBCode.

Edit: It appears that code (above) doesn't allow HTML ...
Reply With Quote
  #25  
Old 11-28-2005, 09:06 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've attached a small script that should give you an idea of what you did wrong
Attached Files
File Type: php weirdparsing.php (448 Bytes, 11 views)
Reply With Quote
  #26  
Old 11-28-2005, 09:34 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by noonespecial
this:

Code:
[.b]Spread the AbsolutePunk.net Banner![./b]
[.right][.url="http://www.absolutepunk.net/index.php?sub=banners"][.img]http://images.absolutepunk.net/images/banners/125x125.gif[./img][./url][./right]
Is what I have in there to test the BBCode.

You can see it not working in action here: http://www.absolutepunk.net/member.php?u=1083

However:

$userinfo[field27] = $parser->do_parse($userinfo[field27], 1, 1, 1, 1, 0, 0);

Works because it allows HTML (right?) (fixing those weird errors above); however, I really don't want to allow HTML on the profile pages - only BBCode.

Edit: It appears that code (above) doesn't allow HTML ...
Shouldn't html be off by default?
Reply With Quote
  #27  
Old 11-28-2005, 09:36 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
I've attached a small script that should give you an idea of what you did wrong
Does this look better, Andreas?
Attached Files
File Type: xml Parse_BBCode_in_profile_fields.xml (1.2 KB, 10 views)
Reply With Quote
  #28  
Old 11-28-2005, 10:04 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The XML looks strange (how did you manage to export this? doesn't import ...), but yeah - that's the way to go
Reply With Quote
  #29  
Old 11-28-2005, 10:11 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
The XML looks strange (how did you manage to export this? doesn't import ...), but yeah - that's the way to go
hehe I actually edited the xml you posted earlier. I guess my editor must have done something screwy. You know it couldn't be me messing up, right?

HTML is turned off by default, isn't it?
Reply With Quote
  #30  
Old 11-28-2005, 10:20 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, HTML is off be default.

I thought you manually edited it and somehow managed to screw it up
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:25 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.04517 seconds
  • Memory Usage 2,298KB
  • Queries Executed 12 (?)
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
  • (2)bbcode_code
  • (1)bbcode_html
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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
  • (2)postbit_attachment
  • (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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete