(29 replies, posted in Supported extensions)

Hi, does it work for punbb 1.4.4 or any similar extension for punbb 1.4.4?

Edit : I tried with punbb 1.4.4 (in fact, punbb visman to be able to use php 7.4) and php 7.4, checked the 3 options (above, below, behind) and it seems to work fine for the moment, no problem, no error smile


(85 replies, posted in News)

Tato wrote:


How can I upgrade from 1.4.4 to 1.4.5?


The Visman version of Punbb is more updated than "Punbb 1.4.5", so, if i were you, i'll use punbb visman instead :
https://punbb.informer.com/forums/topic … 72-and-74/

Thanks, now there's no error in bbcode help and it displays correctly the help (in french in my forum) cool

As you talk about doing with an extension (i don't know how to create an extension making those changes), if you can show me some explanation how to apply some changes through an extension, i'll be glad to see that, hoping it's not too much complicated wink, i tried again the old extension del_bb 1.0 :
https://punbb.informer.com/forums/topic … ough-text/
And this time (with your punbb version), it works smile
I don't remember what was the problem, but i'm glad to see it can work again.

Edit : i have this error in the help bbcode section with that extension :

Warning: array_merge(): Expected parameter 2 to be an array, null given in /zeforums.com/help.php(92) : eval()'d code on line 17

Any idea to correct this?

In the manifest.xml, about help section, i see this code :

<hook id="he_new_bbcode_text_style"><![CDATA[
            if (!isset($del_bbc)) {
                if ($forum_user['language'] != 'English' && file_exists($ext_info['path'].'/lang/'.$forum_user['language'].'/del_bbc.php')) {
                    require $ext_info['path'].'/lang/'.$forum_user['language'].'/del_bbc.php';
                } else {
                    require $ext_info['path'].'/lang/English/del_bbc.php';
            $lang_help = array_merge($lang_help, $del_bbc);
            <div class="entry-content">
                <code>[del]<?php echo $del_bbc['text'] ?>[/del]</code><span><?php echo $lang_help['produces'] ?><br /></span>
                <?php echo $del_bbc['product'] ?>

line 17 of help.php i see that :

($hook = get_hook('he_start')) ? eval($hook) : null;

Another thing, both punbb 1.4.5 and your fixed version lack the "strikethrough text" basic function.
I remember i tried 2 years ago, a punbb version that have this function (as del_bb extension is old and didn't work) :
It worked nice, but now that version is old (2017) and lack your fixes for php until 7.4.
So i plan to apply thoses changes to your version, to integrate the "strikethrough text" function by default when installing  :
https://github.com/apmuthu/PunBB/commit … 1f196b161a
What do you think about it? Phpbb has this function by default, punbb should have, and not a heavy code.

I know, it has appeared yesterday but displaying date "2020-01-31", i've been watching the last weeks, nothing, still 1.4.4.
Like it's officiel, it appeared on my board in admin that there is a new version of PunBB.
Very strange, indeed, in github, nothing new, and looking at the changelog of punbb 1.4.5 once downloaded, nothing new, still written 1.4.4, comparing, some files have changed since 1.4.4, but very few. It seems like some little fixes for php 7.x but less than your version of punbb.

Hello, yesterday i've seen punbb published a new version : 1.4.5, my board notified me of this new version only yesterday.
So i downloaded it and  uploaded my punbb 1.4.4 that was making a lot of errors with php 7.2
There are less errors with punbb 1.4.5, but there a still one on each topic :
PHP Warning: count(): Parameter must be an array or an object that implements Countable in zeforums.com/include/parser.php on line 814

I've seen than Visman updated punbb 1.4.4 a lot for php versions on his own in github, made a lot of fixes (Thank you Visman), i decided to give a try and then updated another time with punbb visman : no error with php 7.2
I've tried with php 7.4, and still no error.
So the problem is : we know have a "punbb 1.4.5" that is less advanced than "punbb 1.4.4" by Visman.
To not receive a notification of punbb 1.4.5 available (but older for php versions), before updating to punbb 1.4.4 by visman, i just changed in admin/db_update.php (in punbb 1.4.4 by visman) :

define('UPDATE_TO', '1.4.4');

to :

define('UPDATE_TO', '1.4.5');

Very confused to see a punbb 1.4.4 more advanced than the official 1.4.5, i prefer punbb 1.4.4 by visman as it's more advanced in fixes.
i didn't see any things new in punbb 1.4.5, they are only talking of php 7.x fixes

Hello, with the "file based fancy" url option, instead of having for each post a postxx.html#pxx url, and the main topic url, would that be possible to have the topic url with just #pxx at the end of the url for each post?
As postxx.html#pxx and topiczz-my-topic.html#pxx go to the same place in the page.
Or the postxx.html is needed for PunBB?

EDIT : i see the problem, when it's in page 2 (or more) in the topic, the #pxx won't find the post because it will try in page 1 of the topic.

Thanks and sorry for asking because now that i see that, i guess it wouldn't be possible, it would have to add the correct page number when needed and the #pxx to work.


Nobody knows?

EDIT : in htaccess

Redirect 301 /myfolder/blabla http://mydomain.com/myfolder/topicxx-this-my-subject.html

If i write blabla in the url of my forum, it makes the correct redirection.

But if it's :

Redirect 301 /myfolder/?articlexx http://mydomain.com/myfolder/topicxx-this-my-subject.html

the ?articlexx url goes to index, the problem seems to bee with the ? in the url.

If it's :

Redirect 301 /myfolder/articlexx http://mydomain.com/myfolder/topicxx-this-my-subject.html

the articlexx makes the correct redirection.

I've tried to add this new line after the first one you quoted.
Thank you for trying, but it didn't change anything : urls are the same (using topic word), i created post to see if it's only with new post, same thing, it generates with topic url.

Then i tried to put this new line instead of the first one you quoted : still the same (urls using topic word, even creating new topics).
So i put back the original lines.

Hello, if i plan to change my blog to a forum, i need to redirect some urls to the topics urls, but i have a problem in htaccess, it seems like it ignores the 301 redirect instruction (instructions that works with the htaccess of my cms blog, to move an url to another place).

Here's the htaccess code of punbb :


# ----------------------------------------------------------------------
# Start rewrite engine
# ----------------------------------------------------------------------

<IfModule mod_rewrite.c>
    # MultiViews interfers with proper rewriting
    Options -MultiViews

    RewriteEngine On

    # Uncomment and properly set the RewriteBase if the rewrite rules are not working properly
    RewriteBase /myfolder

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . rewrite.php [L]

# ----------------------------------------------------------------------
# Better website experience for IE users
# ----------------------------------------------------------------------

# Force the latest IE version, in various cases when it may fall back to IE7 mode
# github.com/rails/rails/commit/123eb25#commitcomment-118920
# Use ChromeFrame if it's installed for a better experience for the poor IE folk

<IfModule mod_setenvif.c>
     <IfModule mod_headers.c>
        BrowserMatch MSIE ie
        Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie

<IfModule mod_headers.c>
    # Because X-UA-Compatible isn't sent to non-IE (to save header bytes),
    # We need to inform proxies that content changes based on UA
      Header append Vary User-Agent
    # Cache control is set only if mod_headers is enabled, so that's unncessary to declare

# ----------------------------------------------------------------------
# UTF-8 encoding
# ----------------------------------------------------------------------

# Use UTF-8 encoding for anything served text/plain or text/html
AddDefaultCharset utf-8

# Force UTF-8 for a number of file formats
AddCharset utf-8 .html .css .js .xml .json .rss

# ----------------------------------------------------------------------
# A little more security
# ----------------------------------------------------------------------

# Do we want to advertise the exact version number of Apache we're running?
# Probably not.
## This can only be enabled if used in httpd.conf - It will not work in .htaccess
# ServerTokens Prod

# "-Indexes" will have Apache block users from browsing folders without a default document
# Usually you should leave this activated, because you shouldn't allow everybody to surf through
# every folder on your server (which includes rather private places like CMS system folders).
<IfModule mod_autoindex.c>
    Options -Indexes


the rewrite.php has this code :

 * Rewrites SEF URLs to their actual files.
 * @copyright (C) 2008-2012 PunBB, partially based on code (C) 2008-2009 FluxBB.org
 * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
 * @package PunBB

define('FORUM_ROOT', './');
require FORUM_ROOT.'include/essentials.php';

// Bring in all the rewrite rules
if (file_exists(FORUM_ROOT.'include/url/'.$forum_config['o_sef'].'/rewrite_rules.php'))
    require FORUM_ROOT.'include/url/'.$forum_config['o_sef'].'/rewrite_rules.php';
    require FORUM_ROOT.'include/url/Default/rewrite_rules.php';

// Allow extensions to create their own rewrite rules/modify existing rules
($hook = get_hook('re_rewrite_rules')) ? eval($hook) : null;

// If query string is not set properly, create one and set $_GET
// E.g. lighttpd's 404 handler does not pass query string
if ((!isset($_SERVER['QUERY_STRING']) || empty($_SERVER['QUERY_STRING'])) && strpos($_SERVER['REQUEST_URI'], '?') !== false)
    $_SERVER['QUERY_STRING'] = parse_url('http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);
    $_SERVER['QUERY_STRING'] = isset($_SERVER['QUERY_STRING']['query']) ? $_SERVER['QUERY_STRING']['query'] : '';
    parse_str($_SERVER['QUERY_STRING'], $_GET);

// We determine the path to the script, since we need to separate the path from the data to be rewritten
$path_to_script = str_replace('\\', '/', dirname($_SERVER['SCRIPT_NAME']));
if (substr($path_to_script, -1) != '/')
    $path_to_script = $path_to_script.'/';

// We create our own request URI with the path removed and only the parts to rewrite included
$request_uri = substr(urldecode($_SERVER['REQUEST_URI']), strlen($path_to_script));
if (strpos($request_uri, '?') !== false)
    $request_uri = substr($request_uri, 0, strpos($request_uri, '?'));

$rewritten_url = '';
$url_parts = array();
// We go through every rewrite rule
foreach ($forum_rewrite_rules as $rule => $rewrite_to)
    // We have a match!
    if (preg_match($rule, $request_uri))
        $rewritten_url = preg_replace($rule, $rewrite_to, $request_uri);
        $url_parts = explode('?', $rewritten_url);

        // If there is a query string
        if (isset($url_parts[1]))
            $query_string = explode('&', $url_parts[1]);

            // Set $_GET properly for all of the variables
            // We also set $_REQUEST if it's not already set
            foreach ($query_string as $cur_param)
                $param_data = explode('=', $cur_param);

                // Sometimes, parameters don't set a value (eg: script.php?foo), so we set them to null
                $param_data[1] = isset($param_data[1]) ? $param_data[1] : null;

                // We don't want to be overwriting values in $_REQUEST that were set in POST or COOKIE
                if (!isset($_POST[$param_data[0]]) && !isset($_COOKIE[$param_data[0]]))
                    $_REQUEST[$param_data[0]] = urldecode($param_data[1]);

                $_GET[$param_data[0]] = urldecode($param_data[1]);

// If we don't know what to rewrite to, we show a bad request messsage
if (empty($rewritten_url))
    header('HTTP/1.1 404 Not Found');

    // Allow an extension to override the "Bad request" message with a custom 404 page
    ($hook = get_hook('re_page_not_found')) ? eval($hook) : null;

    error('Page Not found (Error 404):<br />The requested page <em>'.forum_htmlencode($request_uri).'</em> could not be found.');

// We change $_SERVER['PHP_SELF'] so that it reflects the file we're actually loading
$_SERVER['PHP_SELF'] = str_replace('rewrite.php', $url_parts[0], $_SERVER['PHP_SELF']);

require FORUM_ROOT.$url_parts[0];

Let's say i want to redirect the "blabla" (mydomain.com/blabla) url to mydomain.com/topicxx-my-subject.html

Where can i put this to work ?

I've tried

RewriteCond %{QUERY_STRING} ^blabla$
RewriteRule ^index\.php$ [url]http://mydomain.com/topicxx-my-subject.html[/url]? [L,R=301] 


RewriteCond %{QUERY_STRING} ^blabla$
RewriteRule ^rewrite\.php$ [url]http://mydomain.com/topicxx-my-subject.html[/url]? [L,R=301] 

but it doesn't work (when i try mydomain.com/blabla i get a 404 error, which normally redirect with my htaccess blog)

I tried

Redirect 301 /blabla http://mydomain.com/topicxx-my-subject.html


RedirectPermanent /blabla http://mydomain.com/topicxx-my-subject.html

Same problem, a 404 error.

What should i write, in which file?


Hello, with the "file based fancy" url schema, if i want to change to change the "topic" word with another word ("t" to be shorter or other word), is it easy to do it? How can i do it?
For example, change urls : myforum.com/topicxx-my-subject.html to myforum.com/txx-my-subject.html (where xx is the number of the topic) ?

EDIT : in /include/url/File_based_(fancy)/forum_urls.php if i change :

'topic'                            =>    'topic$1-$2.html',

to :

'topic'                            =>    't$1-$2.html',

I get the urls of the topics changed from topicxx to txx, but when i click on a topic (showing a txx url) i get a 404 error.




(85 replies, posted in News)

PanBB is a new fork of PunBB?
Edit : i have downloaded PanBB 1.4.5 and tried to install in a fresh new directory, but didn't find the install.php file. How to install? When i go in the directory, i have an "error 403 Forbidden".
Do i have to install PunBB 1.4.4 in that directory and then upload PanBB 1.4.5 and overwrite files? How do i do?


(4 replies, posted in Feature requests)

Thanks for the advice MaraKat, it's been long time ago, i'll have to try again if it works fine if i uncheck email validation, it seems logical what you said.


(4 replies, posted in Feature requests)

Hello, as it's not fixed, you have to edit database like i said, change manually the "group_id" from 0 (not active) to 3 (group of other users) for each user you would create.


(2 replies, posted in Discussions)

Hello, before trying an update, better check the php version, what is your php version and what is your host ?


(3 replies, posted in Supported extensions)

Maybe because it was made in 2011, in 2018 i guess it has to be updated.


(7 replies, posted in Discussions)

I just was making a suggestion that doesn't need any plugin, while there's not plugin payments...


(7 replies, posted in Discussions)

Paypal should be easy as it's just an https link.

Hello, it works with the latest version of wordpress ?


(33 replies, posted in News)

But PunBB 1.4.4 works fine with php 7, we just have to change one line and it's ok :
And many extensions work fine too with php 7.


(6 replies, posted in Feature requests)

Thanks i tried it, but it doesn't for me, it makes me list a list of text behind :
:yes: :bye: :hi: :pardon: :ok: :thumbsup: :bravo: :yahhoo: smile wink :jokingly: big_smile :rofl: tongue %) :crasy: o_O [:} :dance: cool :[ :no: :stop: :dont_knov: neutral :! sad :'( :sorry: :-/ mad :moo: ]:-> O:) :kissed: :-* :kissing: @}->-- :inlove: :drink: :wall: @= :help: :wassup: :-X :tired: ;D :write: :scratch:

And then all smilies don't work (they are now converted by text).
I have BBCode buttons 1.4.18 extension installed, and when i try to see features to see if i can change something, there's an error :
Warning: require(../extensions/pan_smiles/lang/English/pan_smiles.php): failed to open stream: No such file or directory in /xxx/extensions/pan_smiles/hooks/aop_features_gzip_fieldset_end.php on line 8

Fatal error: require(): Failed opening required '../extensions/pan_smiles/lang/English/pan_smiles.php' (include_path='.:/usr/lib/php7.1') in /xxx/extensions/pan_smiles/hooks/aop_features_gzip_fieldset_end.php on line 8

I took a look at my directory lang, and there's only 2 files : English.php and Russian.php, there's no subdirectory with English and no pan_smile.php file.

Edit : I've desinstalled Pan Smilies and smilies are back.


(33 replies, posted in News)

It's alive for various extensions, there are new ones, and maintained ones, but we don't know when there will be a new version of PunBB, i hope soon.


(6 replies, posted in Feature requests)

Ok, thanks, more easy to add more smilies than putting "Emoji's", in the end Emoji's are only  some kind of smilies, no ?
Edit, testing copy/paste of the first post image "victory" smilie / emoji's : ✌
I can see the image displaying the hand making victory sign, it seems to work to make a copy/paste without installing anything...

Hello, does it work with a phpbb forum with SQLite 3 ?