https://github.com/MioVisman/punbb/comm … f4094eeea2

152

(85 replies, posted in News)

PunBB 1.4.4 with support PHP 5.3-8.0+ and additional fixes

Repository https://github.com/MioVisman/punbb
For issues https://github.com/MioVisman/punbb/issues

Nota Bene
New bb codes in the parser are added in two ways
1. simple code

$pattern[] = '#\[sup\](.*?)\[/sup\]#ms';
$replace[] = '<sup id="one">$1</sup>';

2. code with calculations (for example, the same one is taken)

$pattern_callback[] = '#\[sup\](.*?)\[/sup\]#ms';
$replace_callback[] = function ($matches) { return '<sup id="one">' . $matches[1] . '</sup>'; }; 

P.S.
To turn off notifications about the availability of a new version, you need to go to
Administration -> Settings -> Features -> Automatically check for updates:
Check for updates = OFF
Check for new versions = OFF

153

(2 replies, posted in PunBB 1.4 additions)

v 0.9.2
Add .webp support.

154

(13 replies, posted in PunBB 1.4 bug reports)

I can’t understand where the duplication comes from.

1. Administration → Settings → Setup → Redirect wait = 60 → Save changes
2. open /include/dblayer/sqlite3.php
before

        return (preg_match('/[\r\n]'.preg_quote($field_name).' /', $sql) === 1);

add

echo "<pre>";
var_dump($field_name, $sql);
echo "</pre>";

----------------------
after

    function add_field($table_name, $field_name, $field_type, $allow_null, $default_value = null, $after_field = 0, $no_prefix = false)
    {
        if ($this->field_exists($table_name, $field_name, $no_prefix))
            return;

        $table = $this->get_table_info($table_name, $no_prefix);

add

echo "<pre>";
var_dump($table['columns']);
echo "</pre>";

-------------------------------

after

        $old_columns = array_keys($table['columns']);
        array_insert($table['columns'], $after_field, $query.',', $field_name);

add

echo "<pre>";
var_dump($after_field, $query.',', $field_name, $table['columns']);
echo "</pre>";

-------------------------

(below, only for add_field() function)
replace

        $this->query($new_table) or error(__FILE__, __LINE__);

to

        $this->query($new_table) or exit;

save file

3. Run the installation of the extension again and copy the text here from the browser that the var_dump () commands will output.

155

(13 replies, posted in PunBB 1.4 bug reports)

You still have the wrong file.
Look at line 423 https://github.com/punbb/punbb/blob/mas … 3.php#L423

1. Download archive https://github.com/punbb/punbb/archive/master.zip
2. Take one file from it: include/dblayer/sqlite3.php
3. Copy it to your server with a replacement file.
4. Show the error again if it appears.

156

(13 replies, posted in PunBB 1.4 bug reports)

1. in config.php

// Enable DEBUG mode by removing // from the following line
//define('FORUM_DEBUG', 1);

// Enable show DB Queries mode by removing // from the following line
//define('FORUM_SHOW_QUERIES', 1);

replace to

// Enable DEBUG mode by removing // from the following line
define('FORUM_DEBUG', 1);

// Enable show DB Queries mode by removing // from the following line
define('FORUM_SHOW_QUERIES', 1);

2. use standart sqlite3.php file https://github.com/punbb/punbb/blob/mas … qlite3.php

3. Show the full text of the error that will be displayed in the message.

P.S. You can also look in the errors log of your server.

manifest.xml file in pun_approval folder
Change the line indicating the maximum version as follows:

    <maxtestedon>1.4.4</maxtestedon>

P.S. Not working with sqlite.

http://punbb.informer.com/forums/topic/ … e-help-me/

159

(47 replies, posted in PunBB 1.4 additions)

v 2.2.0

+ hearthis.at
+ vlipsy.com
* soundcloud.com - back support soundcloud.com/*/* and
soundcloud.com/*/sets/*
* zippyshare.com - flash -> iframe for
wwwNUM.zippyshare.com/v/*/file.html

160

(13 replies, posted in PunBB 1.4 bug reports)

I get error on line 552 of include/dblayer/sqlite3.php.

line 552:

        // Drop old table

?

I installed the new punbb 1.4.4 (_https://github.com/punbb/punbb/archive/master.zip) on php 7.3.5 + sqlite3 3.24.0 and took Fancy Stop SPAM 1.3.53 (_https://github.com/dimkalinux/Fancy-Extensions/archive/master.zip). There were no errors when installing it.


https://stackoverflow.com/questions/256 … e-database
https://stackoverflow.com/questions/186 … 3-to-mysql

161

(47 replies, posted in PunBB 1.4 additions)

v 2.1.0

+ lazy loading supports all types of content
* youtube - fix for black preview
* soundcloud - support only _api.soundcloud.com/(tracks|playlists)/ID
links
- deleted mail.ru

https?

phpinfo();

Show values for

$_SERVER['HTTPS']
$_SERVER['SERVER_PORT']
$_SERVER['HTTP_HOST']
$_SERVER['HTTP_X_FORWARDED_PROTO']

https://dev.mysql.com/doc/refman/8.0/en/keywords.html

GROUPS (R); added in 8.0.2 (reserved)

Probably the name of the table is the same as the word reserved.
I suggest to add the prefix to all table names and add it to config.php too.

+ add

    '/^t[\/_-]?([0-9]+).*(\.html?|\/)?$/i'                                                                        =>    'viewtopic.php?id=$1',

rewrite_rules.php?

'/^(forum|topic)[\/_-]?([0-9]+).*[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'    

create new line

    '/^t[\/_-]?([0-9]+).*[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'viewtopic.php?id=$1&p=$3',

166

(1 replies, posted in General discussion)

Ask for backup of your forum at the hoster.
And restore from it only the user table.

167

(47 replies, posted in PunBB 1.4 additions)

v 1.6.2

* IGN.com - fix for IE11
* HTTPS support for Coub and Hulkshare
- Deleted G4TV and Smotri

168

(1 replies, posted in General discussion)

http://jpegshare.net/images/68/4e/684ef9919fdf73c0b613faf76bdcbf36.jpg

https://github.com/punbb/extensions
pun_bbcode

170

(47 replies, posted in PunBB 1.4 additions)

v 1.6.0

Hidden the Download button for html5 video/audio in Chrome.

+ izlesene.com
+ dumpert.nl

+ audiomack.com

171

(47 replies, posted in PunBB 1.4 additions)

v 1.5.2

* LiveLeak (fix for new links + https support)

172

(1 replies, posted in PunBB 1.3 troubleshooting)

See in the server access log what kind of guests are: ip, useragent.
If these are bots, then block them at the level of access to the server.

For google: Fail2ban

https://stackoverflow.com/q/12050590

_www.ppbo.ws and _ppbo.ws are different domains.
The forum installs cookies for _www.ppbo.ws. These cookies are not visible on the _ppbo.ws domain.
Use only one domain and put cookies for it.

Give a link to your forum.
And also login and password for the test user.