Search found 5677 matches

by igorw
Sun Jan 02, 2011 1:50 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Password Encryption Hiccup
Replies: 2
Views: 724

Re: Password Encryption Hiccup

phpBB uses phpass for it's password hashing: http://www.openwall.com/phpass/ You can either use that directly or use the phpBB3 wrappers (by including common.php as explained by Brf) phpbb_hash($password) and phpbb_check_hash($password, $hash). Note that you cannot directly compare $hash to phpbb_ha...
by igorw
Fri Dec 31, 2010 1:47 pm
Forum: [3.0.x] Styles in Development
Topic: [StylesDB] subsilver3
Replies: 30
Views: 8740

Re: [Dev] subsilver3 (phpBB 3.0.8)

Looks impressive. Any chance of using template inheritance?
by igorw
Fri Dec 31, 2010 12:30 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Encoding Password
Replies: 15
Views: 10581

Re: Encoding Password

Try removing this line:

Code: Select all

require("/My_Forums/includes/functions.php");
common.php already includes includes/functions.php, you should not include it again yourself.
by igorw
Tue Dec 21, 2010 3:57 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: request_var and multidimensional array
Replies: 2
Views: 386

Re: request_var and multidimensional array

Try this:

Code: Select all

$search = utf8_normalize_nfc(request_var('search', array(
   'title'      => '',
   'char'       => '',
   'order'      => '',
   'platform'   => array(0 => 0),
), true));
The default value is relative to the var you are requesting, not to GET/POST/REQUEST directly.
by igorw
Tue Dec 14, 2010 3:32 pm
Forum: phpBB Discussion
Topic: From Outlook to phpBB?
Replies: 5
Views: 1027

Re: From Outlook to phpBB?

export all the emails to a CSV spreadsheet. This. I found this ruby library which makes parsing emails extremely easy (scroll down to "Reading an Email"). Not sure if something like this exists for PHP. You could use that to produce a YAML, XML, JSON, CSV or other format file, which then ...
by igorw
Tue Dec 07, 2010 10:05 am
Forum: [3.0.x] MOD Writers Discussion
Topic: user_add() isn't work
Replies: 5
Views: 181

Re: user_add() isn't work

First read Erik's link. Then

After:

Code: Select all

function phpBB_regis($username,$password,$email) {
Add:

Code: Select all

global $db;
Posting it here because it may not be quite obvious in this case.
by igorw
Fri Dec 03, 2010 1:11 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: how to use template variable in jQuery ?
Replies: 4
Views: 895

Re: how to use template variable in jQuery ?

You have 3 things you need to look at here. Initial page PHP Initial page template (incl. JavaScript) AJAX-requested page PHP The initial page is loaded, the PHP code is executed. It uses the template to then render that page. After that, you use AJAX (jQuery's $.ajax) to request the second page. On...
by igorw
Tue Nov 30, 2010 10:51 am
Forum: [3.0.x] MOD Writers Discussion
Topic: validate_data(); question
Replies: 1
Views: 167

Re: validate_data(); question

It does not make sense to validate a boolean. You just pass a boolean as second arg to request_var which will automatically cast it. For other validate_* functions just take a look at includes/functions_user.php.
by igorw
Sat Nov 27, 2010 7:39 am
Forum: [3.0.x] MOD Writers Discussion
Topic: [GIT] primer
Replies: 4
Views: 452

Re: [GIT] primer

Cool! Thanks for sharing! Here's another recent introductory guide I came across just recently: http://www.alistapart.com/articles/get- ... -with-git/
by igorw
Wed Nov 24, 2010 8:07 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: [GIT] push or pull request ?
Replies: 4
Views: 1675

Re: [GIT] push or pull request ?

Hi, 'git push origin branchname' is just the general command you use to push your current branch to your fork on GitHub. It's addressed at everyone and is a very basic concept of git. So once you pushed your changes to your fork on GitHub, everyone can see them. You should make these changes on a to...
by igorw
Wed Nov 24, 2010 8:40 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Adds CAPTCHA
Replies: 4
Views: 1015

Re: Adds CAPTCHA

1. Define your own CAPTCHA constant in includes/constants.php, I will use "blog" as an example: define('CONFIRM_BLOG', 55); 2. On your page, initialize the CAPTCHA. This page needs to be (session) integrated into phpBB3. if ($config['enable_confirm']) { include($phpbb_root_path . 'includes...
by igorw
Tue Nov 23, 2010 9:59 pm
Forum: phpBB Discussion
Topic: Template System Support in phpBB 4?
Replies: 2
Views: 810

Re: Template System Support in phpBB 4?

First off, almost any statement regarding phpBB4 at this point is pure speculation. The phpBB 3.1 template system will use the same syntax as 3.0. Symfony includes some view handling (slots, etc) that use plain PHP syntax. Since the Twig template engine is remotely related to the Symfony family -- i...
by igorw
Sat Nov 20, 2010 5:59 pm
Forum: phpBB Discussion
Topic: Discuss phpBB-3.0.8 released
Replies: 142
Views: 16776

Re: Discuss phpBB-3.0.8 released

Callum95 wrote:I hate flash anyway XD
Note that this issue is not directly related to flash itself.
by igorw
Sat Nov 20, 2010 1:17 am
Forum: phpBB Discussion
Topic: phpBB's GNU license.
Replies: 3
Views: 283

Re: phpBB's GNU license.

AdamR wrote:2) You must similarly release the work under the terms of the GPL.
And thus also make the source code available to whom you distribute it. There are no commercial restrictions.

The GNU GPL FAQ (frequently asked questions) explains lots of aspects and special cases of the license.
by igorw
Fri Nov 19, 2010 2:25 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: How are forum posts stored in phpbb?
Replies: 3
Views: 1982

Re: How are forum posts stored in phpbb?

Posts are stored in the phpbb_posts table, topics are stored in phpbb_topics. A topic has many posts.

Reading the posts is done in viewtopic.php, storing them is handled by the submit_post() function which is located in includes/functions_posting.php.

Go to advanced search