And now?

Try it now

(it worked on opera, but not on firefox tongue )

This extension allow quickly edit post

Download

Demo
Login: test
Password: test

A. I believe your solution kills non-relative URLs

I forgot about this tongue

If href starts with http:// shouldn't be added PUN_ROOT at start

I added new menu item like this:

4 = <a href="test.php">Test</a>

but when i go to admin panel (or other page in subfolder) it has this href:

example.com/admin/news.php

and this page not exists.

Simply solution for this problem:
Find in function generate_navlinks()

if (preg_match_all('#([0-9]+)\s*=\s*(.*?)\n#s', $pun_config['o_additional_navlinks']."\n", $extra_links))

and replace it with:

if (preg_match_all('#([0-9]+)\s*=\s*(.*?)\n#s', str_replace('href="', 'href="'.PUN_ROOT, $pun_config['o_additional_navlinks'])."\n", $extra_links))

(line 516, functions.php)

I did it like this:

        <hook id="ft_end"><![CDATA[
if (PUN_PAGE == 'viewtopic') {
    preg_match_all("/\<div\sid\=\"p(\d*)\"\s.*\>/", $tpl_main, $output);
    foreach($output[1] as $s) {
        $str = substr($tpl_main, strpos($tpl_main, '<div id="p'.$s.'"'));
        $str = substr($str, 0, strpos($str, '</p>'));
        $old = $str;
        $str = str_replace('<p>', '<p id="postmsg'.$s.'">', $str);
        $tpl_main = str_replace($old, $str, $tpl_main);
    }
}
]]></hook>

big_smile It was quick and easy to create tongue

I tried port this my mod for punbb 1.3, but i don't know how get element which contain post message. In 1.2 i added id for this element, but how do this as extension for 1.3?

In 1.3 it's look like:

<div class="post-entry">
                        <h4 class="entry-title">Topic: Test post</h4>
                        <div class="entry-content">
                            <p>If you are looking at this (which I guess you are), the install of PunBB appears to have worked! Now log in and head over to the administration control panel to configure your forum.</p>
                        </div>
                    </div>

I changed link

This extensions will add browser and system icons to each post

Demo
Download

chriloi wrote:

I hope that such a plugin won't be needed with 1.3 anymore! wink

I know but...

http://img215.imageshack.us/img215/1174/screen12fi8.th.jpg

This plugin patches punbb source - it's doing instructions from readme.txt (or install.txt) file for modification

readme.txt wrote:

This is alpha version of Mod installer admin plugin for PunBB 1.2.x. BEFORE PATCHING BACKUP YOUR PUNBB SOURCE.

This plugin not works on some modifications. Succesfully patches Mark Topics As Read which is included in plugins/mod_installer/mod directory (i modified one section (#5)).

1. Installation
Upload "lang" and "plugins" directory to PunBB root directory
Directory _extras contain Polish language file


2. Using
Backup your PunBB source directory (you could use Backups admin plugin, backups are creating in plugins/mod_installer/backups directory, it's ZIP archive).
Go to section Mod Installer in Admin Panel and select modification or upload new (zip archive, all modifications are in plugins/mod_installer/mod directory). Click on the Start patch button. After patching run install_mod.php.

Download

Sorry for my very bad English big_smile I hope you understand me big_smile

187

(3 replies, posted in PunBB 1.3 troubleshooting)

http://punbb.org/forums/viewtopic.php?id=18180

188

(1 replies, posted in PunBB 1.2 troubleshooting)

Change premissions of single file (cache/cache_bans.php) or remove it

Below add:

header('Location: http://www.url/do/wordpress/wp-admin/profile.php');

Yes. I think so, before "if ($action == 'change_pass')" as you can see in my post before.

Below, not before wink

(sorry for refreshing topic)

Try this:

DIV.postleft, DIV.postfootleft, DIV.blockpost LABEL {border-right: 1px solid white; padding-right: 1px}

Basics on http://punbb.org/update/manifest/hotfix_13svn_test.xml i wrote small extension which add link to options section

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

<extension engine="1.0">
    <id>test</id>
    <title>Example</title>
    <version>1.0</version>
    <description>ble ble.</description>
    <author>Daris</author>
    <minversion>1.3</minversion>
    <maxtestedon>1.3</maxtestedon>
    <note type="install" timing="pre">example</note>
    
    <hooks>
        <hook id="ca_admin_menu_new_sublink"><![CDATA[
            include('../extensions/test/test.php');
        ]]></hook>
    </hooks>
</extension>

and test.php

<?        
if (PUN_PAGE_SECTION == 'options')
    $adnav_sublinks[] = '<li><a href="../extensions/test/test.php">Test ext</a></li>';
?>

Sorry for my English, it's very poor tongue