Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #16  
Old 10 Oct 2005, 23:00
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Wrong Thread.
Please post a new Thread in vB 3.5 Modification Questions and attach the Code you are using.
These errors mean that the vBulletin Registry Object ($vbulletin) does not have a valid reference for the database object.

Last edited by KirbyDE; 10 Oct 2005 at 23:11.
Reply With Quote
  #17  
Old 10 Oct 2005, 23:09
Man1c M0g's Avatar
Man1c M0g Man1c M0g is offline
 
Join Date: Jan 2004
Originally Posted by KirbyDE
Wrong Thread.
Please post a new Thread in vB 3.5 Modification Questions and attach the Code you are using.
These errors mean the the vBulletin Registry Object ($vbulletin) does not have a valid reference for the database object.
Actually... what you just said goes a long way towards solving the problem! Thanks!
Reply With Quote
  #18  
Old 19 Oct 2005, 18:57
CommuneZoom CommuneZoom is offline
 
Join Date: Sep 2005
Originally Posted by Man1c M0g
Actually... what you just said goes a long way towards solving the problem! Thanks!
Something small I noticed, which is probably more than obvious for those more experienced, although unless I specifically define true or false in the parse line, it will not convert the BBCode.

It will not parse simply by including the variables.
Reply With Quote
  #19  
Old 20 Oct 2005, 19:28
MetalAges MetalAges is offline
 
Join Date: Jun 2004
I'm trying to get an index page (www.ultimatemetal.com) to work with the same code I used to have. It worked fine in 3.0.7 . The only issue is the bbcode stuff (which is why I am in this thread ). I exchanged the code I had:

require_once('includes/functions_bbcodeparse.php');

with the code at the beginning of this post:

require_once('includes/class_bbcode.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$parsed_text = $parser->do_parse($text, $do_html, $do_smilies, $do_bbcode, $do_imgcode, $do_nl2br, $cachable);;

I get this same error message with both:

Fatal error: Call to undefined function: parse_bbcode() in /home/mahke/public_html/index-test.php on line 32
Line 32 is: $articlelength1 = parse_bbcode($articles['pagetext']);

Am I brainfarting on something here?

Originally Posted by chanzero
i should note that kirby helped me figure this out by pointing out that i did not definie $do_html, $do_smilies, $do_bbcode, $do_imgcode, etc

thanks kirby!
Maybe this is my issue? Chanzero or anyone else, can you elaborate on how to define this properly?

Last edited by MetalAges; 20 Oct 2005 at 19:35. Reason: Automerged Doublepost
Reply With Quote
  #20  
Old 20 Oct 2005, 21:30
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Well, the parse_bbcode() call needs to be $parser->do_parse() instead
Reply With Quote
  #21  
Old 20 Oct 2005, 21:32
MetalAges MetalAges is offline
 
Join Date: Jun 2004
Excellent! works....still in the middle of learning all this code so, I thank you for the help!
Reply With Quote
  #22  
Old 21 Oct 2005, 04:18
donBLACK donBLACK is offline
 
Join Date: May 2003
can this be used to allow bb code in custom titles?

nvm i got it

Last edited by donBLACK; 21 Oct 2005 at 06:00. Reason: Automerged Doublepost
Reply With Quote
  #23  
Old 23 Oct 2005, 03:42
SilverDawn SilverDawn is offline
 
Join Date: Jul 2002
nm I got it! Thanks so much!

Last edited by SilverDawn; 23 Oct 2005 at 03:47. Reason: Automerged Doublepost
Reply With Quote
  #24  
Old 06 Nov 2005, 03:50
Oreamnos's Avatar
Oreamnos Oreamnos is offline
 
Join Date: Dec 2004
Question parsing non-bbcoded url's

What do i need to do to make it turn non-bbcoded url's into links (like what vb does when you just type a url into the post without using bbcode)?
__________________
datafeedr.com - build your own ecommerce store filled with products in minutes.
Reply With Quote
  #25  
Old 11 Nov 2005, 22:04
noonespecial noonespecial is offline
 
Join Date: Nov 2002
I've been trying to get this to work in the member.php file so that bbcode will be parsed for user profiles --


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Just isn't working though.
Reply With Quote
  #26  
Old 21 Nov 2005, 02:35
noonespecial noonespecial is offline
 
Join Date: Nov 2002
Help???
Reply With Quote
  #27  
Old 21 Nov 2005, 02:47
Oreamnos's Avatar
Oreamnos Oreamnos is offline
 
Join Date: Dec 2004
Originally Posted by noonespecial
Help???
are you getting any errors?
are you sure the profile fields have things to be parsed?
are the things you are trying to parse being excluded by a 'false' default setting of the function?
__________________
datafeedr.com - build your own ecommerce store filled with products in minutes.
Reply With Quote
  #28  
Old 21 Nov 2005, 07:21
noonespecial noonespecial is offline
 
Join Date: Nov 2002
Originally Posted by Oreamnos
are you getting any errors?
are you sure the profile fields have things to be parsed?
are the things you are trying to parse being excluded by a 'false' default setting of the function?
No errors.
Yah, it just comes out as the text with bbcode showing.
Not that I know of... the code above is what I'm using and all I want is for BBcode to work for a custom profile field.
Reply With Quote
  #29  
Old 21 Nov 2005, 08:08
Oreamnos's Avatar
Oreamnos Oreamnos is offline
 
Join Date: Dec 2004
Try this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

if this doesn't work, then i have to imagine you are passing the wrong value to the function, ie. $profilefield['value']
__________________
datafeedr.com - build your own ecommerce store filled with products in minutes.
Reply With Quote
  #30  
Old 21 Nov 2005, 08:48
noonespecial noonespecial is offline
 
Join Date: Nov 2002
Originally Posted by Oreamnos
Try this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

if this doesn't work, then i have to imagine you are passing the wrong value to the function, ie. $profilefield['value']
Nope, didn't work. I assumed it was that value because of this thread: http://www.vbulletin.org/forum/showt...bbcode+profile

I know that's 3.0, so maybe it's changed? Does anyone know the correct syntax for me? I just need BBcode to be parsed in custom profile field 27.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

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


New To Site? Need Help?

All times are GMT. The time now is 22:30.

Layout Options | Width: Wide Color: