I created small workaround for this problem. Here is manifest.xml. Upload it to extenions/portal directory and install in admin panel
152 2008-02-29 16:17
Re: rewrite rules (34 replies, posted in PunBB 1.3 troubleshooting)
Have you got in your manifest.xml something like this?
<hook id="re_rewrite_rules"><![CDATA[
require PUN_ROOT.'extensions/portal/include/rewrite_rules.php';
]]></hook>
<hook id="co_common"><![CDATA[
$portal_dir = PUN_ROOT.'extensions/portal/';
// Setup the URL rewriting scheme
if (file_exists($portal_dir.'include/url/'.$pun_config['o_sef'].'.php'))
require $portal_dir.'include/url/'.$pun_config['o_sef'].'.php';
else
require $portal_dir.'include/url/Default.php';
]]></hook>
Also you can debug some information using print_r($array) php function
153 2008-02-29 16:08
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
Try replace:
<?
with
<?php
in extensions/portal/include/cache.php
154 2008-02-29 14:58
Re: [extension release] Clear Cache (5 replies, posted in PunBB 1.3 extensions)
You defined:
define ( 'PUN_PAGE', 'admin-clear-cache' );
But in manifest.xml you have:
$adnav_sublinks[] = '<li'.((PUN_PAGE == 'clear_cache') ? ' class="isactive"' : '').'><a href="'.pun_link('extensions/clear_cache/clear_cache.php').'">'.$lang_clear_cache['sub link'].'</a></li>';
155 2008-02-29 14:44
Re: rewrite rules (34 replies, posted in PunBB 1.3 troubleshooting)
Did you load this files via hooks?
Is it copied/replaced from my portal extension?
156 2008-02-28 16:46
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
error when i update portal sittings :
I know about this, it's punbb issue
http://punbb.org/forums/viewtopic.php?id=18523
You can replace:
$form = array_map('trim', $_POST['form']);
with
$form = @array_map('trim', $_POST['form']);
in admin/options.php on line 44
157 2008-02-28 14:57
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
---- Latest Articles (also read my down post about rss and atom)
It's already in 1.6
Next release (1.6)
Changes:
- fixed premissions for active topics/recent posts
- 2 new panels - top posters and newest articles
Changes:
- multi-forum news/articles
- pages.php renamed to page.php
158 2008-02-28 12:41
Re: Multiple select and configuration (2 replies, posted in PunBB 1.3 troubleshooting)
$_POST['form']['test'] is an array contain selected options
$form doesn't return selected options list, but i can get it from $_POST
159 2008-02-27 17:18
Topic: Hooks after printing html code? (4 replies, posted in PunBB 1.3 troubleshooting)
An example from viewtopic.php:
while (...)
{
(...)
($hook = get_hook('vt_row_pre_display')) ? eval($hook) : null;
?>
<div class="<?php echo implode(' ', $pun_page['item_status']) ?>">
<div class="postmain">
(...)
</div>
</div>
<?php
($hook = get_hook('vt_row_end_display')) ? eval($hook) : null; // this should be added
}
And now from hooks vt_row_pre_display and vt_row_end_display we can modify output html code like this:
vt_row_pre_display:
$contents = ob_get_contents();
ob_end_clean();
ob_start();
vt_row_end_display:
$contents2 = ob_get_contents();
ob_end_clean();
$contents2 = str_replace('<div class="entry-content">', '<div class="entry-content" id="entry-'.$cur_post['id'].'">', $contents2);
ob_start();
echo $contents.$contents2;
Is it possible to add to PunBB?
160 2008-02-27 14:23
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
Why not add hooks instead of adding tons of features?
It's better idea
161 2008-02-26 19:58
Topic: Multiple select and configuration (2 replies, posted in PunBB 1.3 troubleshooting)
I'm trying add multiple select to PunBB configuration but this:
$form = array_map('trim', $_POST['form']);
shows notice:
Notice: Array to string conversion in /var/www/punbb-1.3-dev/admin/options.php on line 44
162 2008-02-26 17:32
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
Changes:
- fixed premissions for active topics/recent posts
- 2 new panels - top posters and newest articles
- link to profile/logout in menu only displayed when user is logged
163 2008-02-25 21:30
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
Changes:
- fixed links when using sef url
- portal settings moved to settings -> portal
- in portal settings input replaced with select (which contain categories and forums)
164 2008-02-25 20:38
Re: PM extension (2 replies, posted in PunBB 1.3 extensions)
165 2008-02-25 20:14
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
and what about other things ...
wait for next release
166 2008-02-25 15:47
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
make and option in the admin / portal page that from which forum you take the news in the main page and how many news ....
Admin Panel -> Settings -> Features -> 6. Customize your portal
167 2008-02-24 17:51
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
Changes:
- all files moved to extensions/portal
- some small fixes
168 2008-02-23 13:16
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
Bu how in other method set portal page as index page?
Hook into index.php, in_start.
Like this?
if (!isset($_GET['forum']))
require PUN_ROOT.'extensions/portal/index.php';
169 2008-02-22 18:54
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
Changes:
- enable/disable panels
- passes validation
- admin panel section settings/portal moved to settings/features (before Automatically check for updates)
- some small fixes
1- a little update to active topics
Code comes from viewforum.php and active topics looks as viewforum.
1. Again, the extension really shouldn't require you renaming files/uploading files outside of the extensions folder.
Bu how in other method set portal page as index page?
3. The directory traversal I talked about earlier still appears to exist
I added:
if (ereg('../', $file))
message($lang_common['Bad request']);
Did this fix problem?
5. Again, you would have been better served merging extensions/portal/admin/portal.php into hooks in admin/options.php so you don't have to replicate so much code.
Done
6. Again, you use many hook names that were already assigned (copy/paste from admin/forums and include/cache?). That is bad and sure to mess up your code as soon as someone tries using those hooks.
Now it should be fixed
7. Again, your extensions should support more than just MySQL.
I don't know what is difference with MySQL and others
170 2008-02-21 21:34
Re: Hook requests (151 replies, posted in PunBB 1.3 extensions)
At start of generate_crumbs function for modify crumbs array (i need it to add at start portal page)
edit: i didn't need this hook, because i can modify it from some header hooks
171 2008-02-20 21:15
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
Demo: see first post
Download: as above
Changes:
- added active topics on index page
- user panel renamed to who's online (and modified)
- better positions for some panels
- link in crumbs for forum pages don't redirect to index.php (it's portal page), but forum.php.
PS. One new release for a day
172 2008-02-20 15:48
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
8. Looking at the code, it seems like your "file" field allows for a directory traversal.
But where? In portal page or in admin panel?
and also advertising banner up the welcome message like the www.megapun.com
and also advertising pannel down menu ...
and also can u make affatite like www.megapun.com
and also active topics down welcome message like www.megapun.com
This portal has configurable panels so you can create new own panels as you want (you can put php code)
173 2008-02-19 23:20
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
8. Looking at the code, it seems like your "file" field allows for a directory traversal.
That's one which i can't understand (sorry, but my english isn't good )
174 2008-02-18 20:47
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
I think the portal needs to be a little better than this for wide use.
I had problem with width of left and right side so added constant width for page
175 2008-02-18 20:14
Topic: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
Adds a portal to your forum
Features:
- displays news/articles from selected forum
- customizable pages
- customizable panels (content is stored in database or in external files in panels directory)
This is the old version of my extension which is for PunBB 1.3 Beta. If you want to run this extension on stable 1.3 release, you should go here instead