Topics

User Functions

Events

There are no upcoming events

What's New

Stories last 2 weeks

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Friday, April 25 2014 @ 03:10 AM EDT

CMS Bridge for Geeklog

Announcements
  • Monday, November 18 2002 @ 05:09 PM EST
  • Contributed by:
    Anonymous
  • Views:
    8,994
CMS Bridge - Middleware layer for CMS Systems

CMS Bridge is a free software product that allows any CMS to share login information with any application.

The goal of CMS Bridge is to make it easy to write applications that hook into CMS systems, without writing them as dependent modules that work with only one CMS.

A CMS Bridged application will work with any CMS that supports CMS bridge. This currently includes phpWebsite, Postnuke and Geeklog.

Demo: http://geeklog.dbserve.net Support and Download: http://cmsb.dbserve.net

bobt-at-elmwood-dot-com

UPDATE: If you have attempted to install CMS Bridge you may have noticed that you do not have access to the PHPBB Admin control panel (does not seem to happen to everyone). You need to apply the following change in order for PHPBB to see the Geeklog Admin also as the PHPBB Admin.

In lib-common file ...

Change:

if (SEC_inGroup('admin')) 
To:
if (SEC_inGroup('Root'))

...then the admin panel will work.

 //cmsb section 
    include_once("/home/dbserve/www/gklog1290x/www/bridge/set_handshake.php");  //cmsb handshake 
    $cms_name=$_USER['username']; 

    //if (pnSecAuthAction(0,'','',ACCESS_ADMIN)) 
    if (SEC_inGroup('Root')) 
      { $cmsb_user_level = 4 ; }     set_cmsb_login($i_login_name="$cms_name" 
          ,$i_user_id="" 
          ,$i_user_level="$cmsb_user_level"); 
//end cmsb section 

The following comments are owned by whomever posted them. This site is not responsible for what they say.

  • Bridge to phpBB2
  • Authored by:Anonymous on Tuesday, November 19 2002 @ 06:50 AM EST
I should have added to the announcement that CMSB will allow you to integrate phpBB v2.0.3 into your geeklog site.

There is one change to one geeklog file, lib-common.php.

bobt at elmwood dot com
  • Bridge to phpBB2
  • Authored by:Tony on Tuesday, November 19 2002 @ 08:23 AM EST
Does this bridge accomplish this by maintaining user tables for each application and tying them together somehow or did you implement your own single credential set system?

---
The reason people blame things on previous generations is that there's only one other choice.
  • Bridge to phpBB2
  • Authored by:Anonymous on Tuesday, November 19 2002 @ 08:44 AM EST
It moves authorization data from the CMS into the native tables of the bridged application. In phpBB, for instance, users are created and logged in automatically when a user logged into Geeklog activates the link to phpBB.

After that event, all navigation and control is native to phpBB The phpBB DB schema is not changed, nor is the Geeklog schema. They are just piped together. Data flows from Geeklog to phpBB, but not the other way.

Over time, it may be useful to have a middleware table that allows granularity of permissions, like you have in geeklog. This would allow users to be authorized at different levels to the application, assuming both the CMS and the application supported levels.


  • Bridge to phpBB2
  • Authored by:squatty on Tuesday, November 19 2002 @ 08:54 PM EST
I\'ve got the bridge and phpBB running on Squatty.com. Great work! I\'m having some issues understanding the wrap_url and dynamic menu code/instructions. Are there any how-to documents available?
  • Bridge to phpBB2
  • Authored by:Anonymous on Tuesday, November 19 2002 @ 09:02 PM EST
There is doc on wrap_url at the support web site http://cmsb.dbserve.net

Wrap_url is not an essential part of CMSBridge. It was knid of the grandfather of CMSB, but now CMSB has departed from the restrictions of wrap_url and gone off to seek its fortune independently.

It is still a useful menuing system, however.
  • Bridge to phpBB2
  • Authored by:Tony on Wednesday, November 20 2002 @ 09:21 AM EST
Geeklog2 will boast a robust authentication and authorization system (A&A). The A&A system can be used apart from Geeklog2 with other applications and can support single credential sets OR separate them. This may make your CMS bridge easier to do in the future. I should have a beta ready in a week or so.

---
The reason people blame things on previous generations is that there's only one other choice.
  • Wrapping bridge phpBB inside Geeklog
  • Authored by:jlhughes on Thursday, November 21 2002 @ 12:03 AM EST
I've developed a quick solution to wrapping a bridged phpBB inside Geeklog.

1. Install the bridge and phpBB and make sure phpBB is recognizing the user AND the Root level access of the user.

2. Create a file with the following contents:


<?PHP 
//import geeklog functions 
//this assumes file is in same directory with lib-common 
require_once('lib-common.php'); 
$display .=COM_siteHeader(); 
$display .= "<iframe src='http://yourdomain.com/bridge/phpBB203/index.php' name='phpBB' id='phpBB' width='100%' height='100%' frameborder='0'></iframe>"; 
echo $display; 
?> 

Change "yourdomain.com" to your domain name. This assumes the standard bridge/phpBB203 install.

I've done only limited testing, but this appears to accomplish the goal of getting the Geeklog header and left blocks wrapped around the phpBB203 output.

  • resizing IFRAME problem
  • Authored by:jlhughes on Thursday, November 21 2002 @ 08:55 AM EST
Some browsers (IE on Win) don\'t like to have the browser window resized with an IFRAME element. When you resize the browser window, the IFRAME reverts to the default height, which is something like 10 rows.

The low-tech solution is to reload the page after resizing.

Can anyone offer a better way to get IE on Windows to automatically resize the IFRAME when it resizes the browser window?

NOTE: This problem with resizing DOES NOT occur with Netscape v.7 on Windows or with IE v.5 on a Mac.
  • resizing IFRAME solution
  • Authored by:jlhughes on Thursday, November 21 2002 @ 01:24 PM EST
The problem with IFRAME shrinking to a default 10 rows when the browser window is adjusted, can be fixed by changing the height value in the IFRAME src.

width=\'100%\' and height=\'1200\'

This keeps MSIE from collapsing and appears to be ignored by both MSIE and Netscape 7 when the window height is less than 1200. In other words, the left blocks determine the depth of the window, not the 1200 value in the IFRAME.

NOTE: Netscape v.6 on NT does not properly render the IFRAME. You get the header and left blocks, but the main window where the IFRAME should be is blank. Version 7 of Netscape on NT has no problem with the IFRAME.
  • Wrapping bridge phpBB inside Geeklog
  • Authored by:Anonymous on Thursday, November 21 2002 @ 08:22 PM EST
your file worked for me but it gave me all this at the top of the page Warning: Cannot add header information - headers already sent by (output started at /home/calvaryc/public_html/for.php:3) in /home/calvaryc/system/lib-sessions.php on line 159

Warning: Cannot add header information - headers already sent by (output started at /home/calvaryc/public_html/for.php:3) in /home/calvaryc/system/lib-sessions.php on line 171

Warning: Cannot add header information - headers already sent by (output started at /home/calvaryc/public_html/for.php:3) in /home/calvaryc/public_html/bridge/set_handshake.php on line 52

Warning: Cannot add header information - headers already sent by (output started at /home/calvaryc/public_html/for.php:3) in /home/calvaryc/public_html/bridge/set_handshake.php on line 53

Warning: Cannot add header information - headers already sent by (output started at /home/calvaryc/public_html/for.php:3) in /home/calvaryc/public_html/bridge/set_handshake.php on line 62

Warning: Cannot add header information - headers already sent by (output started at /home/calvaryc/public_html/for.php:3) in /home/calvaryc/public_html/bridge/set_handshake.php on line 63

Warning: Cannot add header information - headers already sent by (output started at /home/calvaryc/public_html/for.php:3) in /home/calvaryc/public_html/bridge/set_handshake.php on line 64

and below that was my board wrapped in my left blockks and so on..what do i need to change? thanks..t
  • CMS Bridge debug doesn\'t get along with Geeklog plugins
  • Authored by:jlhughes on Friday, November 22 2002 @ 12:13 AM EST
After installing CMS Bridge I started getting the following error:

Warning: Failed opening \'/put_debug.inc.php\' for inclusion (include_path=\'.:/usr/local/plesk/php/lib/php\') in [snip path info]httpdocs/bridge/set_handshake.php on line 33

Fatal error: Call to undefined function: put_debug() in [snip path info]httpdocs/bridge/set_handshake.php on line 42

This would NOT occur while accessing the phpBB forum. Instead, this error would occur when switching from one Geeklog plugin to another. It didn\'t happen every time, but it did appear to happen more often when switching to admin functions.

Turing off debug in the initialize_bridge didn\'t help.

Eventually I had to comment out all references to put_debug.inc.php and the function put_debug.

Since doing that (knock on wood) I haven\'t had a recurrence of the error.
  • CMS Bridge debug doesn\'t get along with Geeklog plugins
  • Authored by:chris9 on Friday, November 22 2002 @ 06:47 AM EST
Yes, this bridge has a lot of potential but I think it needs A LOT more work....
  • CMS Bridge ...
  • Authored by:Anonymous on Friday, November 22 2002 @ 05:56 PM EST
gee, thats helpful ....
  • JLHUGHES solution..anyone?
  • Authored by:Anonymous on Friday, November 22 2002 @ 06:41 PM EST
Has anyone gotten JLHughes solution to work for wrapping? I did exactly what he said and got the following....any ideas? thanks.t.
your file worked for me but it gave me all this at the top of the page Warning: Cannot add header information - headers already sent by (output started at /home/calvaryc/public_html/for.php:3) in /home/calvaryc/system/lib-sessions.php on line 159

Warning: Cannot add header information - headers already sent by (output started at /home/calvaryc/public_html/for.php:3) in /home/calvaryc/system/lib-sessions.php on line 171

Warning: Cannot add header information - headers already sent by (output started at /home/calvaryc/public_html/for.php:3) in /home/calvaryc/public_html/bridge/set_handshake.php on line 52

Warning: Cannot add header information - headers already sent by (output started at /home/calvaryc/public_html/for.php:3) in /home/calvaryc/public_html/bridge/set_handshake.php on line 53

Warning: Cannot add header information - headers already sent by (output started at /home/calvaryc/public_html/for.php:3) in /home/calvaryc/public_html/bridge/set_handshake.php on line 62

Warning: Cannot add header information - headers already sent by (output started at /home/calvaryc/public_html/for.php:3) in /home/calvaryc/public_html/bridge/set_handshake.php on line 63

Warning: Cannot add header information - headers already sent by (output started at /home/calvaryc/public_html/for.php:3) in /home/calvaryc/public_html/bridge/set_handshake.php on line 64

and below that was my board wrapped in my left blockks and so on..what do i need to change? thanks..t
  • Cookies and Iframes
  • Authored by:Anonymous on Friday, November 22 2002 @ 07:05 PM EST
Seems to me I saw some setting in IE that controlled wheather cookies are passed into Iframes. I can\'t find it now.

Just a thought...