Topic: PunBB 1.2.17 and plugins

I have installed the new Pun BB 1.2.17. I would like to upgrade my forum with plugins such as "private messages" and " photo galery". Plugins that I have found aren't compatible with new version1.2.17. Do you mind help me please ? Many thanks

Re: PunBB 1.2.17 and plugins

in every plugin there is a text file explaining how to to install the mod. sum are simple and sum are very difficult to install.
i would start with something simple so that you can get the hang of it. you will need sometype of editor .
dreamweaver,notepad etc.....

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: PunBB 1.2.17 and plugins

Moved to Modifications, since that's what you want.

Re: PunBB 1.2.17 and plugins

Thanks quaker. I  tried to install plagin "private messages" but dosn't work. Is it possible to install it in 1.2.17 ?

5

Re: PunBB 1.2.17 and plugins

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

6 (edited by ZivojinMisic 2008-04-21 09:24)

Re: PunBB 1.2.17 and plugins

Thanks ! I have installed plugins with succes. BUT I have ONE more  PROBLEM !!! sad  Since I have installed "private messages"  it is INPOSsIBLE to "Log out". What I have made wrong ?

Kind Regards

Re: PunBB 1.2.17 and plugins

Its because the code in the Private Message mod is from an older version of PunBB.

Fix below...

include/functions.php

#
#---------[ 11. FIND (line: 250) ]-------------------------------------------------
#

        if ($pun_user['g_id'] > PUN_MOD) 
        { 
            if ($pun_user['g_search'] == '1') 
                $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; 

            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; 
            $links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'&csrf_token='.pun_hash($pun_user['id'].pun_hash(get_remote_address())).'">'.$lang_common['Logout'].'</a>'; 
        } 
        else 
        { 
            $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; 
            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; 
            $links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>'; 
            $links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'&csrf_token='.pun_hash($pun_user['id'].pun_hash(get_remote_address())).'">'.$lang_common['Logout'].'</a>'; 
        }
    
#
#---------[ 12. REPLACE WITH ]---------------------------------------------------------
#

        if ($pun_user['g_id'] > PUN_MOD) 
        { 
            if ($pun_user['g_search'] == '1') 
                $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; 

            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; 
            require(PUN_ROOT.'include/pms/functions_navlinks.php');
            $links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'&csrf_token='.pun_hash($pun_user['id'].pun_hash(get_remote_address())).'">'.$lang_common['Logout'].'</a>'; 
        } 
        else 
        { 
            $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; 
            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; 
            $links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>'; 
            require(PUN_ROOT.'include/pms/functions_navlinks.php');
            $links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'&csrf_token='.pun_hash($pun_user['id'].pun_hash(get_remote_address())).'">'.$lang_common['Logout'].'</a>'; 
        }

8 (edited by ZivojinMisic 2008-04-21 12:47)

Re: PunBB 1.2.17 and plugins

Thanks smile.
I tried to remplace, but dosn't work : "unespected variable".

Actualy,I have this (line 292):

if ($pun_user['g_id'] > PUN_MOD)
        {
            if ($pun_user['g_search'] == '1')
                $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';

            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
            require(PUN_ROOT.'include/pms/functions_navlinks.php');
            $links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';
        }
        else
        {
            $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';
            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
            $links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>';
            require(PUN_ROOT.'include/pms/functions_navlinks.php');
            $links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';
        }

Re: PunBB 1.2.17 and plugins

Dear StevenBullen

Thank you so much, I have resoulved the problem. smile