Search found 22 matches

by Gingah
24 May 2009, 11:08
Forum: phpBB Development discussion
Topic: UID and Bitfield
Replies: 16
Views: 9560

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 i...
by Gingah
23 May 2009, 23:45
Forum: phpBB Development discussion
Topic: UID and Bitfield
Replies: 16
Views: 9560

Re: UID and Bitfield

I am now :D Set it to: $_POST['content'] = 'loremipsumdoloretcetera'; $text = $_POST['content']; But $my_text = utf8_normalize_nfc(request_var('text', '', true)) still returns empty when running var_dump($my_text) . Am I using the utf8_normalize_nfc function wrongly? As far as I can tell from the fu...
by Gingah
23 May 2009, 22:51
Forum: phpBB Development discussion
Topic: UID and Bitfield
Replies: 16
Views: 9560

Re: UID and Bitfield

Ok, cleaned it up somewhat and shortened it for testing purposes: <?php define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../phpbb3/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); $text = 'loremipsumdoloretce...
by Gingah
23 May 2009, 17:33
Forum: phpBB Development discussion
Topic: UID and Bitfield
Replies: 16
Views: 9560

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).
by Gingah
23 May 2009, 11:19
Forum: phpBB Development discussion
Topic: UID and Bitfield
Replies: 16
Views: 9560

Re: UID and Bitfield

Using var_dump($data) on this array: generate_text_for_storage($my_text, $uid, $bitfield, $options, true, true, true); $data = array( 'bbcode_bitfield' => $bitfield, 'bbcode_uid' => $uid, ); Produced the following: array(2) { ["bbcode_bitfield"]=> string(0) "" ["bbcode_uid&q...
by Gingah
22 May 2009, 18:06
Forum: phpBB Development discussion
Topic: UID and Bitfield
Replies: 16
Views: 9560

Re: UID and Bitfield

So, using this: generate_text_for_storage($my_text, $uid, $bitfield, $options, true, true, true); Does not actually generate the values? Looking at the example you posted, it would seem that the $data array in my code above would generate them, as it holds both bbcode_bitfield and bbcode_uid like th...
by Gingah
21 May 2009, 14:25
Forum: phpBB Development discussion
Topic: UID and Bitfield
Replies: 16
Views: 9560

UID and Bitfield

Hello there, I've been working the past days to make a bbcode-parser from phpBB's own functions, to be used in cooperation with a generic blogsystem (parse standard html to bbcode, then insert it into the a forum as a normal post), but I always seem to run into trouble with the UID and the Bitfield....

Go to advanced search