(170 replies, posted in PunBB 1.3 extensions)

can some one help me...
I´m using punbb 1.3 and i get this:

Notice: Undefined index: avatar in index.php on line 1105 
Notice: Use of undefined constant FORUM_AVATAR_GIF - assumed 'FORUM_AVATAR_GIF' in index.php on line 1107 
Notice: Use of undefined constant FORUM_AVATAR_JPG - assumed 'FORUM_AVATAR_JPG' in index.php on line 1111 
Notice: Use of undefined constant FORUM_AVATAR_PNG - assumed 'FORUM_AVATAR_PNG' in index.php on line 1115 
Notice: Use of undefined constant FORUM_AVATAR_NONE - assumed 'FORUM_AVATAR_NONE' in index.php on line 1119

It´s here i get the error:

switch ($forum_user['avatar'])
        case FORUM_AVATAR_GIF:
            $avatar_filename = $forum_user['id'].'.gif';

        case FORUM_AVATAR_JPG:
            $avatar_filename = $forum_user['id'].'.jpg';

        case FORUM_AVATAR_PNG:
            $avatar_filename = $forum_user['id'].'.png';

        case FORUM_AVATAR_NONE:
            $noavatar = TRUE;
            $noavatar = TRUE;
<?php echo $lang_portal['Welcome'] ?>: <strong><?php echo forum_htmlencode($forum_user['username']) ?></strong>

<?php if(!isset($noavatar)) { ?>
<p style="text-align: center"><img src="<?php echo($base_url); ?>/<?php echo($forum_config['o_avatars_dir']); ?>/<?php echo($avatar_filename); ?>" id="whoavatar"/></p>
<?php }


Nice script.
I´m wondering one thing ... is there anyway to make the script to show on another page.
I have build a webpage, and now i´m trying to integration the punbb to the page.

I have manage to add the login script, search, forum topics with avatar.

Now i whant to add ( 1 )  when some one is typing a private PM in the meny on the top where the text " Dina meddelanden " 
And where the image under the " senast inloggad  " is I vhant to show the last member that whas on the page.
To show his avatar..

Hope there is someone that can help me...

Image can be find here : http://www.swedishpower.se/punbb/

take the url and paste the image file after punbb/



I´m building a custom page around punbb...
I have manage to ad custom login on the first page.

But i whant to add that when some one is sending a PM i whant to se it in the custom page.
Not in the Punbb site.


(2 replies, posted in PunBB 1.3 discussion)


I mean Menu.

Im going to try to explane, but my english is not so good.

I use the login code from WIKI...

Login - forget password

And when i have login i whant to have:
Logged in as volvo_owner - Profile - Gallery


(2 replies, posted in PunBB 1.3 discussion)


I have a custom loggin, on the first main page ( custom build page )...
based on punbb

If I whant the meny to change to another meny.

like first meny
<div>meny 1</div>

then when you login i whant to show meny 2
<div>meny 2</div>

Im using this script.

// Define the path to the forum root
define('FORUM_ROOT', './forum/');
require FORUM_ROOT.'include/common.php';
// Where will we go after login?
$forum_page['redirect_url'] = 'http://your_site.com/forum/';
$forum_page['form_action'] = forum_link($forum_url['login']);
$forum_page['hidden_fields'] = array(
    'form_sent'    => '<input type="hidden" name="form_sent" value="1" />',
    'redirect_url'    => '<input type="hidden" name="redirect_url" value="'.forum_htmlencode($forum_page['redirect_url']).'" />',
    'csrf_token'    => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />'
<form method="post" action="<?php echo $forum_page['form_action'] ?>">
    <?php echo implode("\n\t\t", $forum_page['hidden_fields'])."\n" ?>
    <input type="text" id="fld1" name="req_username" value="" />
    <br />
    <input type="password" id="fld2" name="req_password" value="" />
    <br />
    <input type="checkbox" id="fld3" name="save_pass" value="1" />
    <label for="fld3">Log me in automatically each time I visit.</label>
    <br />
    <input type="submit" name="login" value="Login" />


(0 replies, posted in PunBB 1.3 extensions)


I´m wondering one thing, How can i add a "Post new topic" in the misc.php that show the news.

And remove the Mark as news in the post.php

I whant only add news on the news page.

Hope thee is someone that can help me, sorry for man english.


(0 replies, posted in PunBB 1.3 discussion)


I´m trying to integrate punbb to a webpage i have make, but nothing works...

I have follow this tutorial: http://punbb.informer.com/wiki/punbb13/integration

I have manage to add the 10 last topics, but i whant to have the categories and forums onn the page...

PLEASE can someone help me please....