151

(119 replies, posted in PunBB 1.3 extensions)

I created small workaround for this problem. Here is manifest.xml. Upload it to extenions/portal directory and install in admin panel

152

(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

(119 replies, posted in PunBB 1.3 extensions)

Try replace:

<?

with

<?php

in extensions/portal/include/cache.php

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

(34 replies, posted in PunBB 1.3 troubleshooting)

Did you load this files via hooks?

Is it copied/replaced from my portal extension? big_smile

156

(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

(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

Next releade (1.7)

Changes:
- multi-forum news/articles
- pages.php renamed to page.php

$_POST['form']['test'] is an array contain selected options

$form doesn't return selected options list, but i can get it from $_POST

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

(119 replies, posted in PunBB 1.3 extensions)

Why not add hooks instead of adding tons of features?

It's better idea

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

(119 replies, posted in PunBB 1.3 extensions)

Next release (1.6)

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

(119 replies, posted in PunBB 1.3 extensions)

New release (1.5)

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

(2 replies, posted in PunBB 1.3 extensions)

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

165

(119 replies, posted in PunBB 1.3 extensions)

and what about other things ...

wait for next release wink

166

(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

(119 replies, posted in PunBB 1.3 extensions)

Next release (1.4)

Changes:
- all files moved to extensions/portal
- some small fixes

168

(119 replies, posted in PunBB 1.3 extensions)

Smartys wrote:

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

(119 replies, posted in PunBB 1.3 extensions)

New release (1.3)

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

(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

(119 replies, posted in PunBB 1.3 extensions)

New Release (1.2)

Demo: see first post
Download: as above wink

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 tongue

172

(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

(119 replies, posted in PunBB 1.3 extensions)

Smartys wrote:

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 tongue )

There is new release (1.1)

174

(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 wink

175

(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)

Old version

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