[dev]Mx-Forum in only one page!
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_forum (beta team)
View previous topic :: View next topic  
Author Message
selven



Joined: 28 Nov 2003
Posts: 41

PostPosted: Fri Jul 30, 2004 11:10 pm    Post subject: [dev]Mx-Forum in only one page! Reply with quote

Ok in teory can work, but hook mod do not redirect me!
Make file mx_forum.php
Code:

<?php
//insert forum hack! insert here instead in evry ported script
//+mx_forum
if( !defined('IN_PORTAL') )
{
   die("Hacking attempt !!!");
}
include_once("includes/forum_hack.$phpEx");
//-mx_forum
//
// Get appropriate phpBB page
// NB This is volutely open to grant working with additional mod pages
if ( isset($HTTP_GET_VARS['FORUMpages']) || isset($HTTP_POST_VARS['FORUMpages']) )
{
   $FORUMpages = ( isset($HTTP_GET_VARS['FORUMpages']) ) ? $HTTP_GET_VARS['FORUMpages'] : $HTTP_POST_VARS['FORUMpages'];
   if(file_exists($module_root_path."$FORUMpages.".$phpEx))
   {
      include_once($module_root_path."$FORUMpages.".$phpEx);
   }
}
else
{
   include_once($module_root_path. 'index.'.$phpEx);

}
?>

Set value in includes/forum_pages.php
Code:

$mx_forum_pages['faq']         = "2&FORUMpages=faq";
$mx_forum_pages['groupcp']      = "2&FORUMpages=gruopcp";
$mx_forum_pages['index']      = "2&FORUMpages=index";
$mx_forum_pages['login']      = "2&FORUMpages=login";
$mx_forum_pages['memberlist']   = "2&FORUMpages=memberlist";
$mx_forum_pages['modcp']      = "2&FORUMpages=modcp";
$mx_forum_pages['posting']      = "2&FORUMpages=posting";
$mx_forum_pages['privmsg']      = "2&FORUMpages=privmsg";
$mx_forum_pages['profile']      = "2&FORUMpages=profile";
$mx_forum_pages['search']      = "2&FORUMpages=search";
$mx_forum_pages['viewforum']   = "2&FORUMpages=viewforum";
$mx_forum_pages['viewonline']   = "2&FORUMpages=viewonline";
$mx_forum_pages['viewtopic']   = "2&FORUMpages=viewtopic";

NB replace 2 with your page!
New mx_forum.pack to point to all-in-one-page
Code:

module=+:43=+:mx_forum=+:modules/mx_forum/=+:Adds mx_forum=+:1
function=+:43=+:56=+:mx_forum=+:=+:mx_forum.php=+:
block=+:48=+:mx_forum=+:=+:56=+:0=+:0=+:0

NB this part is to be deleted from all ported files:
Code:

//insert forum hack! insert here instead in evry ported script
//+mx_forum
if( !defined('IN_PORTAL') )
{
   die("Hacking attempt !!!");
}
include_once("includes/forum_hack.$phpEx");
//-mx_forum
 
Back to top
View user's profile Send private message Visit poster's website
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sat Jul 31, 2004 1:52 am    Post subject: Re: [dev]Mx-Forum in only one page! Reply with quote

Hi, selven!

I don't like the idea of "one page for all". It seems easy to implement, though you loose the power to combine different blocks depending on the phpBB script in question.

Read examples here:
http://forums.phpmix.org/viewtopic.php?p=938#938

Not to mention that... final format of this thingy will allow some kind of automation to port phpBB stuff as portal blocks. Wink

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_forum (beta team) All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum