You can't just echo those fields, you need to use the generate_text_for_display function which interprets the 3 fileds together.
Take a look at this wiki post: http://wiki.phpbb.com/Parsing_text
UID and Bitfield
Re: UID and Bitfield
Try using and not echo, it sometimes gives better results and more information.
How you're seeing it, also, is how it will appear in the database. If you want to see it, parsed and all, run it through generate_text_for_display(), trust me, it works. I've used it quite often.
How you're seeing it, also, is how it will appear in the database. If you want to see it, parsed and all, run it through generate_text_for_display(), trust me, it works. I've used it quite often.
Re: UID and Bitfield
Actually, you might want to take a look at this then. It handles all that for you.
http://code.assembla.com/phpbb-xerxes/s ... zephyr.php
http://code.assembla.com/phpbb-xerxes/s ... zephyr.php
Re: UID and Bitfield
That file, zephyr.php, has a lot more functionality than I need to just parse bbcode. The only problem I've run into so far is getting the uid and bitfield working, so I can use them along with the bbcodes (for the database).
Re: UID and Bitfield
Uh, just to make sure, you are passing vars through the GET or POST superglobals for the text, correct?
If you aren't, the parser won't generate the UID or bitfield.
If you aren't, the parser won't generate the UID or bitfield.
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: UID and Bitfield
No, don't access the superglobals directly. request_var should be used, and from what I can tell it is being used correctly.
- we're poor!
Re: UID and Bitfield
Even if I set it to $POST['text'] = 'loremipsumdoloretcetera', or when using just $text, it still does not produce any result in the var_dump's. Are there any other prequisites for using generate_text_for_storage, other than needing access to the functions definiton? Such as needing to be logged into phpbb etc.
Return to “phpBB Development discussion”
Who is online
Users browsing this forum: No registered users and 14 guests