Home | Support Forums | Your Account | Gallery [2] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Standalone phpBB2 integration within PHPNuke
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Other PHPNuke Issues View previous topicPrinter friendly versionView next topic
Author Message
pabloe

Beginner
Beginner


Joined: Feb 19, 2006
Posts: 19

PostPosted: Fri Mar 03, 2006 6:55 pm    Post subject: Re: Standalone phpBB2 integration within PHPNuke Reply with quote

Complete beginner here and my first forum experience
Any clues anybody please not had any help so far, now would be a good time....
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Re: Standalone phpBB2 integration within PHPNuke  

Back to top
pabloe

Beginner
Beginner


Joined: Feb 19, 2006
Posts: 19

PostPosted: Sun Mar 05, 2006 11:47 pm    Post subject: Re: Standalone phpBB2 integration within PHPNuke Reply with quote

I heard say, to sumon the Dari the great for help, all you have to is.
Go to the bathroom and with the lights off in this order.
initally you need to have a 3ft bathroom mirror, small black candle 3 inches long,
three large steps

1. light a small black candle and hold the flame an inch away from your lips.

2. Take three large steps towards the bathroom mirror without blowing the candle out.

3. Then stair dead straight into the mirror for 3 long seconds, then

4. Whisper Dari, Dari, Dari without blowing the candle out.

5. And then wait 3 long seconds more.

6. Now blow the candle out and wait for Dari to manifest himself before you.

Caution this may take a while and could be dangerous and i will not be held responsible for anything that may happen.

Good Luck!
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6261
Location: Washington Township, NJ, USA

PostPosted: Mon Mar 06, 2006 7:55 am    Post subject: Re: Standalone phpBB2 integration within PHPNuke Reply with quote

heh...i'm flattered Smile

i'm busy right now w/ Gallery 2.1 related things (and new baby related things, too), so this has been put on hold for awhile. Hopefully I'll get back to it ASAP Smile
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
pabloe

Beginner
Beginner


Joined: Feb 19, 2006
Posts: 19

PostPosted: Tue Mar 07, 2006 3:31 am    Post subject: Re: Standalone phpBB2 integration within PHPNuke Reply with quote

Embarassed I burn't my lip doing that but it worked and was worth it, mumbled the idiot Shocked. Will hold out a while for your advice, but as far as i can tell all your integration works just about fine, for me it has, all good so far????... good luck and congratulations DARI....

(Can't log in as admin in phpbb2 after integration???).

what have i done wrong???
Thanx.
Back to top
Offline View user's profile Send private message
pabloe

Beginner
Beginner


Joined: Feb 19, 2006
Posts: 19

PostPosted: Sun Mar 19, 2006 11:26 pm    Post subject: Re: Standalone phpBB2 integration within PHPNuke Reply with quote

Please any help for a some what small problem with my admin login/out please.
Back to top
Offline View user's profile Send private message
pabloe

Beginner
Beginner


Joined: Feb 19, 2006
Posts: 19

PostPosted: Sun Mar 26, 2006 8:19 am    Post subject: Re: Standalone phpBB2 integration within PHPNuke Reply with quote

Hi still looking for alittle help with the integration. just have one last problem with the phpbb admin login, everytime i try to login as admin it just take me back to the phpbb main page instead in admin control panel??? any ideas anyone please.
Back to top
Offline View user's profile Send private message
pabloe

Beginner
Beginner


Joined: Feb 19, 2006
Posts: 19

PostPosted: Sun Apr 02, 2006 10:34 pm    Post subject: Re: Standalone phpBB2 integration within PHPNuke Reply with quote

Still Hanging out like a junkie here please help somebody! Sad
is there anybody who actually checks these posts??

Am i wasting my time holding out and asking for help here???

Have been very very patient but nothing or nobody has come forward with any kind or adivce any literally no response of any kind to anything???
What is up??? Is there no help avalible on for integration and where should i be looking???? It seems that there is none or very little that actually helps???

Please help, i just want to secure and finish my site and the integration.
please help somebody! Crying or Very sad
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6261
Location: Washington Township, NJ, USA

PostPosted: Mon Apr 03, 2006 7:06 am    Post subject: Re: Standalone phpBB2 integration within PHPNuke Reply with quote

sorry, but due to the changes in phpBB since the original MOD i posted, plus the fact that I'm supporting the Gallery 2.1 integration as well, I haven't had time to maintain this.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Ridicule

Beginner
Beginner


Joined: Jul 06, 2005
Posts: 4

PostPosted: Sat Apr 08, 2006 5:44 pm    Post subject: Re: Standalone phpBB2 integration within PHPNuke Reply with quote

heres how to make this work with the latest version of phpBB, it does not work with the latest ver of phpnuke so im using PHP-Nuke-7.8 also if you already have a phpBB forum you can keep all your data,

after following all the mods, for those with the "Parse error: parse error, unexpected $ in /home/.../modules/Your_Account/index.php..." error, make sure your modules/Your_Account/index.php has the following, this error is due to a } being left out here: (you may have forum instead of phpBB2)



PHP: › <?php #
#-----[ OPEN ]-----------------------------------

modules/Your_Account/index.php

#
#-----[ CHECK ]-----------------------------------

         
if ($redirect == "" ) {
            
Header("Location: modules.php?name=Your_Account&op=userinfo&bypass=1&username=$username");
        } else if (
$redirect == "phpBB") {
            
Header("Location: /phpBB2/");
        } else if (
$mode == "") {
            
Header("Location: /phpBB2/$forward");
        } else if (
$t !="") {
            
Header("Location: /phpBB2/$forward&amp;mode=$mode&amp;t=$t");
        } else {
            
Header("Location: /phpBB2/$forward&amp;mode=$mode&amp;f=$f");
        } 
    } 
// make sure you have this one.
}

#
#-----[ SAVE & CLOSE ]-----------------------------------

modules/Your_Account/index.php ?>


next we want to be able to get into the forums admin panel so do the following:

PHP: › <?php #
#-----[ OPEN ]-----------------------------------

phpBB2/login.php

#
#-----[ FIND ]-----------------------------------

else
{
    
//
    // Do a full login page dohickey if
    // user not already logged in
    //
    
if( !$userdata['session_logged_in'] || (isset($HTTP_GET_VARS['admin']) && $userdata['session_logged_in'] && $userdata['user_level'] == ADMIN))
    {
        
$page_title $lang['Login'];
        include(
$phpbb_root_path 'includes/page_header.'.$phpEx);

        
$template->set_filenames(array(
            
'body' => 'login_body.tpl')
        );

        
$forward_page '';

        if( isset(
$HTTP_POST_VARS['redirect']) || isset($HTTP_GET_VARS['redirect']) )
        {
            
$forward_to $HTTP_SERVER_VARS['QUERY_STRING'];

            if( 
preg_match("/^redirect=([a-z0-9\.#\/\?&=\+\-_]+)/si"$forward_to$forward_matches) )
            {
                
$forward_to = ( !empty($forward_matches[3]) ) ? $forward_matches[3] : $forward_matches[1];
                
$forward_match explode('&'$forward_to);

                if(
count($forward_match) > 1)
                {
                    for(
$i 1$i count($forward_match); $i++)
                    {
                        if( !
ereg("sid="$forward_match[$i]) )
                        {
                            if( 
$forward_page != '' )
                            {
                                
$forward_page .= '&';
                            }
                            
$forward_page .= $forward_match[$i];
                        }
                    }
                    
$forward_page $forward_match[0] . '?' $forward_page;
                }
                else
                {
                    
$forward_page $forward_match[0];
                }
            }
        }

        
$username = ( $userdata['user_id'] != ANONYMOUS ) ? $userdata['username'] : '';

        if(
$forward_page == "forum?") {
            
$forward_page "forum";
        }

        
$s_hidden_fields '<input type="hidden" name="op" value="login"><input type="hidden" name="redirect" value="' $forward_page '" />';
        
$s_hidden_fields .= (isset($HTTP_GET_VARS['admin'])) ? '<input type="hidden" name="admin" value="1" />' '';

        
make_jumpbox('viewforum.'.$phpEx);
        
$template->assign_vars(array(
            
'USERNAME' => $username,

            
'L_ENTER_PASSWORD' => (isset($HTTP_GET_VARS['admin'])) ? $lang['Admin_reauthenticate'] : $lang['Enter_password'],
            
'L_SEND_PASSWORD' => $lang['Forgotten_password'],

            
'U_SEND_PASSWORD' => append_sid("profile.$phpEx?mode=sendpassword"),

            
'S_HIDDEN_FIELDS' => $s_hidden_fields)
        );

        
$template->pparse('body');

        include(
$phpbb_root_path 'includes/page_tail.'.$phpEx);
    }
    else
    {
        
redirect(append_sid("index.$phpEx"true));
    }

}

#
#-----[ REPLACE WITH ]-----------------------------------

else
{
    if (
$userdata['user_level'] == ADMIN)
    {
        if( !
$userdata['session_logged_in'] || (isset($HTTP_GET_VARS['admin']) && $userdata['session_logged_in'] && $userdata['user_level'] == ADMIN))
        {
            
$page_title $lang['Login'];
            include(
$phpbb_root_path 'includes/page_header.'.$phpEx);
    
            
$template->set_filenames(array(
                
'body' => 'login_body_admin.tpl')
            );

            
$forward_page '';

            if( isset(
$HTTP_POST_VARS['redirect']) || isset($HTTP_GET_VARS['redirect']) )
            {
                
$forward_to $HTTP_SERVER_VARS['QUERY_STRING'];

                if( 
preg_match("/^redirect=([a-z0-9\.#\/\?&=\+\-_]+)/si"$forward_to$forward_matches) )
                {
                    
$forward_to = ( !empty($forward_matches[3]) ) ? $forward_matches[3] : $forward_matches[1];
                    
$forward_match explode('&'$forward_to);

                    if(
count($forward_match) > 1)
                    {
                        for(
$i 1$i count($forward_match); $i++)
                        {
                            if( !
ereg("sid="$forward_match[$i]) )
                            {
                                if( 
$forward_page != '' )
                                {
                                    
$forward_page .= '&';
                                }
                                
$forward_page .= $forward_match[$i];
                            }
                        }
                        
$forward_page $forward_match[0] . '?' $forward_page;
                    }
                    else
                    {
                        
$forward_page $forward_match[0];
                    }
                }
            }

            
$username = ( $userdata['user_id'] != ANONYMOUS ) ? $userdata['username'] : '';

            if(
$forward_page == "forum?") {
                
$forward_page "forum";
            }

            
$s_hidden_fields '<input type="hidden" name="op" value="login"><input type="hidden" name="redirect" value="' $forward_page '" />';
            
$s_hidden_fields .= (isset($HTTP_GET_VARS['admin'])) ? '<input type="hidden" name="admin" value="1" />' '';

            
make_jumpbox('viewforum.'.$phpEx);
            
$template->assign_vars(array(
                
'USERNAME' => $username,

                
'L_ENTER_PASSWORD' => (isset($HTTP_GET_VARS['admin'])) ? $lang['Admin_reauthenticate'] : $lang['Enter_password'],
                
'L_SEND_PASSWORD' => $lang['Forgotten_password'],

                
'U_SEND_PASSWORD' => append_sid("profile.$phpEx?mode=sendpassword"),

                
'S_HIDDEN_FIELDS' => $s_hidden_fields)
            );

            
$template->pparse('body');

            include(
$phpbb_root_path 'includes/page_tail.'.$phpEx);
        }
        else
        {
            
redirect(append_sid("index.$phpEx"true));
        }
    }
    else
    {
        if( !
$userdata['session_logged_in'] || (isset($HTTP_GET_VARS['admin']) && $userdata['session_logged_in'] && $userdata['user_level'] == ADMIN))
        {
            
$page_title $lang['Login'];
            include(
$phpbb_root_path 'includes/page_header.'.$phpEx);

            
$template->set_filenames(array(
                
'body' => 'login_body.tpl')
            );

            
$forward_page '';

            if( isset(
$HTTP_POST_VARS['redirect']) || isset($HTTP_GET_VARS['redirect']) )
            {
                
$forward_to $HTTP_SERVER_VARS['QUERY_STRING'];

                if( 
preg_match("/^redirect=([a-z0-9\.#\/\?&=\+\-_]+)/si"$forward_to$forward_matches) )
                {
                    
$forward_to = ( !empty($forward_matches[3]) ) ? $forward_matches[3] : $forward_matches[1];
                    
$forward_match explode('&'$forward_to);

                    if(
count($forward_match) > 1)
                    {
                        for(
$i 1$i count($forward_match); $i++)
                        {
                            if( !
ereg("sid="$forward_match[$i]) )
                            {
                                if( 
$forward_page != '' )
                                {
                                    
$forward_page .= '&';
                                }
                                
$forward_page .= $forward_match[$i];
                            }
                        }
                        
$forward_page $forward_match[0] . '?' $forward_page;
                    }
                    else
                    {
                        
$forward_page $forward_match[0];
                    }
                }
            }

            
$username = ( $userdata['user_id'] != ANONYMOUS ) ? $userdata['username'] : '';
    
            if(
$forward_page == "forum?") {
                
$forward_page "forum";
            }

            
$s_hidden_fields '<input type="hidden" name="op" value="login"><input type="hidden" name="redirect" value="' $forward_page '" />';
            
$s_hidden_fields .= (isset($HTTP_GET_VARS['admin'])) ? '<input type="hidden" name="admin" value="1" />' '';
    
            
make_jumpbox('viewforum.'.$phpEx);
            
$template->assign_vars(array(
                
'USERNAME' => $username,

                
'L_ENTER_PASSWORD' => (isset($HTTP_GET_VARS['admin'])) ? $lang['Admin_reauthenticate'] : $lang['Enter_password'],
                
'L_SEND_PASSWORD' => $lang['Forgotten_password'],

                
'U_SEND_PASSWORD' => append_sid("profile.$phpEx?mode=sendpassword"),

                
'S_HIDDEN_FIELDS' => $s_hidden_fields)
            );

            
$template->pparse('body');

            include(
$phpbb_root_path 'includes/page_tail.'.$phpEx);
        }    
        else
        {
            
redirect(append_sid("index.$phpEx"true));
        }
    }
}

#
#-----[ SAVE & CLOSE ]-----------------------------------
#
phpBB2/login.php ?>


next we need to create the login_body_admin.tpl template file (*replace with name of the template your using)

PHP: › <?php #
#-----[ CREATE FILE /phpBB2/templates/*your template/login_body_admin.tpl ]-----------------------------------

<form action="login.php" method="post">

<
table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
  <
tr
    <
td align="left" class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></td>
  </
tr>
</
table>

<
table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
  <
tr
    <
th height="25" class="thHead" nowrap="nowrap">{L_ENTER_PASSWORD}</th>
  </
tr>
  <
tr
    <
td class="row1"><table border="0" cellpadding="3" cellspacing="1" width="100%">
          <
tr
            <
td colspan="2" align="center">&nbsp;</td>
          </
tr>
          <
tr
            <
td width="45%" align="right"><span class="gen">{L_USERNAME}:</span></td>
            <
td
              <
input type="text" class="post" name="username" size="25" maxlength="40" value="{USERNAME}" />
            </
td>
          </
tr>
          <
tr
            <
td align="right"><span class="gen">{L_PASSWORD}:</span></td>
            <
td
              <
input type="password" class="post" name="password" size="25" maxlength="32" />
            </
td>
          </
tr>
          <!-- 
BEGIN switch_allow_autologin -->
          <
tr align="center"
            <
td colspan="2"><span class="gen">{L_AUTO_LOGIN}: <input type="checkbox" name="autologin" /></span></td>
          </
tr>
          <!-- 
END switch_allow_autologin -->
          <
tr align="center"
            <
td colspan="2">{S_HIDDEN_FIELDS}<input type="submit" name="login" class="mainoption" value="{L_LOGIN}" /></td>
          </
tr>
          <
tr align="center"
            <
td colspan="2"><span class="gensmall"><a href="{U_SEND_PASSWORD}" class="gensmall">{L_SEND_PASSWORD}</a></span></td>
          </
tr>
        </
table></td>
  </
tr>
</
table>

</
form>

#
#-----[ SAVE & CLOSE ]-----------------------------------
#
/phpBB2/templates/*your template/login_body_admin.tpl ?>


This should all make a working integration, if you get any problems, post back...



r|d
Back to top
Offline View user's profile Send private message
pabloe

Beginner
Beginner


Joined: Feb 19, 2006
Posts: 19

PostPosted: Wed May 17, 2006 9:37 pm    Post subject: Re: Standalone phpBB2 integration within PHPNuke Reply with quote

Crying or Very sad
Question
Phpnuke 7.8 & phpbb2 integration was working fine until my site got defaced and ruined my portal.

I was wondering if the integration would still work with patched 3.1 files for nuke to help secure my site and sentinal???

3 month of hard work down the drain!!...

Will try again soon and also try maybe with the above changes..
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6261
Location: Washington Township, NJ, USA

PostPosted: Thu May 18, 2006 6:52 am    Post subject: Re: Standalone phpBB2 integration within PHPNuke Reply with quote

my first suggestion is to restore from backup, to save you time.
but...
this should probably work, but i can't promise anything.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
pabloe

Beginner