And now?
176 2008-02-13 16:40
Re: [extension release] Ajax Post Edit (15 replies, posted in PunBB 1.3 extensions)
177 2008-02-13 16:10
Re: [extension release] Ajax Post Edit (15 replies, posted in PunBB 1.3 extensions)
Try it now
(it worked on opera, but not on firefox )
178 2008-02-13 15:45
Topic: [extension release] Ajax Post Edit (15 replies, posted in PunBB 1.3 extensions)
179 2008-02-12 16:22
Re: Additional menu items and subfolders (2 replies, posted in PunBB 1.3 troubleshooting)
A. I believe your solution kills non-relative URLs
I forgot about this
If href starts with http:// shouldn't be added PUN_ROOT at start
180 2008-02-12 16:10
Topic: Additional menu items and subfolders (2 replies, posted in PunBB 1.3 troubleshooting)
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)
181 2008-02-11 23:07
Re: [js] How get post message element (5 replies, posted in PunBB 1.3 troubleshooting)
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>
It was quick and easy to create
182 2008-02-08 17:20
Topic: [js] How get post message element (5 replies, posted in PunBB 1.3 troubleshooting)
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>
183 2008-02-06 17:53
Re: [Extension release] Browser and OS icons (13 replies, posted in PunBB 1.3 extensions)
I changed link
184 2008-02-06 17:18
Topic: [Extension release] Browser and OS icons (13 replies, posted in PunBB 1.3 extensions)
185 2008-02-06 07:05
Re: [AP] Mod installer - patching PunBB source (5 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I hope that such a plugin won't be needed with 1.3 anymore!
I know but...
186 2008-02-05 19:23
Topic: [AP] Mod installer - patching PunBB source (5 replies, posted in PunBB 1.2 modifications, plugins and integrations)
This plugin patches punbb source - it's doing instructions from readme.txt (or install.txt) file for modification
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 file2. 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.
Sorry for my very bad English I hope you understand me
187 2008-01-31 07:23
Re: Styling (3 replies, posted in PunBB 1.3 troubleshooting)
188 2008-01-28 15:43
Re: "cache" permission (1 replies, posted in PunBB 1.2 troubleshooting)
Change premissions of single file (cache/cache_bans.php) or remove it
189 2008-01-27 19:39
Re: Wordpress integration plugin :) (119 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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
(sorry for refreshing topic)
190 2008-01-26 20:02
Re: I am trying to add a border to the left side of forum posts. (7 replies, posted in General discussion)
Try this:
DIV.postleft, DIV.postfootleft, DIV.blockpost LABEL {border-right: 1px solid white; padding-right: 1px}
191 2008-01-22 22:11
Re: [1.3] Simple configuration for extensions (6 replies, posted in Feature requests)
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