Search found 1386 matches

by T0ny
Wed Feb 17, 2016 12:40 pm
Forum: [3.1.x] Support Forum
Topic: After upgrading, Fatal error: Call to a member function header() on a non-object in session.php
Replies: 3
Views: 440

Re: After upgrading, Fatal error: Call to a member function header() on a non-object in session.php

According to the p8pBB website, support for phpBB 3.1.x wasn't added till version 3.2.9
08 November 2014 - ver. 3.2.9:

Fix: broken search plugin.
Feature: phpBB 3.1 compatibility.
by T0ny
Sun Aug 30, 2015 11:47 am
Forum: Extension Writers Discussion
Topic: SQL error Unknown column 't.topic_aproved'
Replies: 8
Views: 1335

Re: SQL error Unknown column 't.topic_aproved'

The line

Code: Select all

str_replace(array('p.', 'post_'), array('t.', 'topic_'), $m_approve_fid_sql)
changes p.post_approved to t.topic_approved
by T0ny
Sun Jul 12, 2015 3:34 pm
Forum: phpBB Discussion
Topic: "Custom Profile Fields"-antispam method not working in 3.1.x cause of "cheat-arrows"
Replies: 17
Views: 1679

Re: "Custom Profile Fields"-antispam method not working in 3.1.x cause of "cheat-arrows"

That would affect ALL integer CPFs, not recommended. It is better to use a string CPF instead. The MOD in question already affects all integer CPFs by altering the out of range messages to a "value incorrect" message. A string CPF wouldn't work as there is no way to reject registration if...
by T0ny
Sun Jul 12, 2015 2:00 pm
Forum: phpBB Discussion
Topic: "Custom Profile Fields"-antispam method not working in 3.1.x cause of "cheat-arrows"
Replies: 17
Views: 1679

Re: "Custom Profile Fields"-antispam method not working in 3.1.x cause of "cheat-arrows"

You could just edit /styles/prosilver/template/profilefields/int.html and remove the min="{int.FIELD_MINLEN}" max="{int.FIELD_MAXLEN}" parameters from the input tag
by T0ny
Thu Jun 11, 2015 1:53 pm
Forum: Extension Writers Discussion
Topic: Why can't I query my database in 3.1.x with this code...?
Replies: 1
Views: 461

Re: Why can't I query my database in 3.1.x with this code...?

post_approved=1 should be post_visibility=1
by T0ny
Wed Jun 03, 2015 11:55 pm
Forum: [3.1.x] Support Forum
Topic: { CLOSED } Cannot redeclare class phpbb\db\migration\
Replies: 11
Views: 1160

Re: Cannot redeclare class phpbb\db\migration\

in /home/sumato/public_html/phpbb/db/migration/data/v30x/v314rc2.php on line 32
There shouldn't be a file called v314rc2.php in phpbb/db/migration/data/v30x/
by T0ny
Sun May 24, 2015 7:58 pm
Forum: Extension Writers Discussion
Topic: Get replies count
Replies: 3
Views: 1138

Re: Get replies count

assuming you only want the replies a regular user can see (i.e. not unapproved/soft deleted posts) <?php define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); $to...
by T0ny
Thu Apr 23, 2015 10:09 am
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 4671

Re: Working with session and post form variables

Yes, you have to call session_start() before the request class is instantiated. e.g. <?php session_start(); // WORKS HERE define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common...
by T0ny
Wed Apr 22, 2015 11:37 am
Forum: [3.0.x] Support Forum
Topic: php bb forum wont load
Replies: 19
Views: 1814

Re: php bb forum wont load

The reason nothing is diplaying at the URL you posted is that the /styles/proSpecial/template/overall_header.html file is corrupted (it ends partway through a CSS block)
by T0ny
Wed Apr 08, 2015 3:01 pm
Forum: [3.1.x] Support Forum
Topic: Find a portion code after registering
Replies: 5
Views: 394

Re: Find a portion code after registering

lines 355 and 414 of includes/ucp/ucp_register.php would appear to be what you're looking for.

$message = $user->lang['ACCOUNT_ADDED'];

trigger_error($message);
by T0ny
Thu Apr 02, 2015 6:00 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Adapting bbcode to non-topic content
Replies: 8
Views: 1514

Re: Adapting bbcode to non-topic content

generate_text _for_edit only takes 3 parameters: function generate_text_for_edit($text, $uid, $flags) so no need to pass the bitfield (also remember it returns an array, not a string) The 3 boolean parameters to generate_text_for_storage() determine which elements are processed, so setting each to f...
by T0ny
Thu Apr 02, 2015 3:18 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Adapting bbcode to non-topic content
Replies: 8
Views: 1514

Re: Adapting bbcode to non-topic content

everything it needs is included when you include the common.php file or by the generate_text_* functions themselves
by T0ny
Thu Apr 02, 2015 2:40 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Adapting bbcode to non-topic content
Replies: 8
Views: 1514

Re: Adapting bbcode to non-topic content

Here's a quick example of using the generate_text_* functions in phpBB <?php define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); // Start session management $us...
by T0ny
Wed Apr 01, 2015 2:25 pm
Forum: [3.1.x] Support Forum
Topic: db:migrate Error "This program must be run from the command line."
Replies: 10
Views: 4364

Re: db:migrate Error "This program must be run from the command line."

Your server is using the webserver (CGI) version of php to execute the script instead of the command line (CLI) version. You'll need to ask your host to fix this.

Go to advanced search