sunshine wrote:

I think I've figured out how to do it. I'm new to PunBB extensions, so I hope knowledgeable people will let me know any corrections that should be made. It seems to work for me, though. smile

--removed--

Extension released

Hello Sunshine,

Thanks for releasing the extension. Now the "Page 1" from title field is removed. Thanks again!

sunshine wrote:

I think I've figured out how to do it. I'm new to PunBB extensions, so I hope knowledgeable people will let me know any corrections that should be made. It seems to work for me, though. smile

manifest.xml looks like:

<?xml version="1.0" encoding="utf-8"?>

<extension engine="1.0">
    <id>no_page1_title</id>
    <title>No (Page 1) in page title</title>
    <description>Strips annoying (Page 1) from all forum page titles</description>
    <version>0.1</version>
    <author>Mary Fredborg</author>
    <minversion>1.3.4</minversion>
    <maxtestedon>1.3.4</maxtestedon>
    <hooks>
        <hook id="co_common"><![CDATA[
            $pun_extensions_used = array_merge(isset($pun_extensions_used) ? $pun_extensions_used : array(), array($ext_info['id']));
        ]]></hook>

        <hook id="fn_generate_crumbs_start"><![CDATA[
            // take it out, so it won't appear in page <title>
            if ($reverse == true and $forum_page['page'] == 1)
            {
                $current_page = $forum_page['page'];
                unset($forum_page['page']);
            }
        ]]></hook>
    </hooks>
</extension>

It seems to be the code will work! Can you please release this extension? or atleast let me know the steps to archieve this!

Thanks in advance.

3

(4 replies, posted in PunBB 1.3 troubleshooting)

Parpalak wrote:

The image script url is http://geekeo.fr/extensions/pun_antispam/image.php

The error message displayed there is the following:

Internal Server Error

Directory "/home/geekeo/www/extensions/pun_antispam" is writeable by group

Apparently you use pun_repository and it sets permissions for extensions directories to 777. But running scripts from a directory with such permissions is probably disabled by your hosting admins.

Now you can uninstall pun_antispam, remove it from extension directory, then upload it manually by FTP (not via pun_repository) and finally install it again.

Actually it's a question of server settings. But we'll think how to avoid setting permissions to 777 in pun_repository.

Yes. It solved the problem!

Hello,

I recently installed punbb on my website. I'm in the prcess of customizing the theme. Unfortunately I can't remove the "(Page 1)" from title. In every forum category, forum and post title (i.e., page title), it displays like this:

http://punbb.informer.com/forums/forum/ … -requests/

In the above punBB page, the title is: <title>PunBB feature requests (Page 1) - PunBB Forums</title>

How I can remove (at least change) this?