Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Logout issues when bridged to SMF and new password requirements  (Read 3199 times)

0 Members and 1 Guest are viewing this topic.

sc204

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Logout issues when bridged to SMF and new password requirements
« on: February 02, 2007, 05:13:14 am »

I have bridged coppermine to SMF and SMF to joomla using the smf login.  It works pretty well, new users are recognized in all three applications.  The main issue I seem to be having is that when you log out through coppermine you are redirected to SMF with the following error message.

[Session verification failed. Please try logging out and back in again, and then try again]

You can go back to coppermine and you will still be logged in.

The other issue is now all new passwords are required to be 8 characters long.  I do not see a setting for this.

Coppermine install: http://www.angelsonly.com/flyingeaglesrc2/coppermine/index.php
Coppermine version: cpg1.4.10
Forum version: SMF 1.1.1
Test user account: test3/ a12345
BridgeManager settings:
Forum URL:  http://www.angelsonly.com/flyingeaglesrc2/index.php?option=com_smf&Itemid=27    (bridged to joomla)  http://www.angelsonly.com/flyingeaglesrc2/forum/   to see it by itself
Relative path to your BBS's config file:  ../forum/ 
Use post-based groups?:  1
Cookie name/preifx (if applicable) ?????
« Last Edit: February 03, 2007, 02:36:07 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Logout issues when bridged to SMF and new password requirements
« Reply #1 on: February 02, 2007, 07:16:20 am »

Known issue when bridging with SMF (search results). As a workaround, remove the logout button from Coppermine's menu.
Logged

sc204

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Logout issues when bridged to SMF and new password requirements
« Reply #2 on: February 02, 2007, 09:11:15 am »

Thank you for the reply.
For those of you with as little knowledge of php as I have, (and after searching threads and spending 2 hours trying to remove the logout button)
here is the condensed version.  There are probably several ways to do this including copying lines from the sample/themes.php to yourtheme/themes.php and commenting them out which I could not get to work, but this did work.
Get the final_extract plugin.  It is attached to this thread http://forum.coppermine-gallery.net/index.php?topic=25197.0
unzip it and modify the codebase.php in an editor.  I removed the remove home line and changed remove login to logout.
After changing it looks like this

Code: [Select]
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2005 Coppermine Dev Team
  v1.1 originaly written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.1
  $Source: /cvsroot/cpg-contrib/master_template/codebase.php,v $
  $Revision: 1.3 $
  $Author: donnoman $
  $Date: 2005/12/08 05:46:49 $
**********************************************/

if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

$thisplugin->add_filter('page_html','final_extract_page_html');

function 
final_extract_block(&$template$block_name$subst='')
{
        
$pattern "#(<!-- BEGIN $block_name -->)(.*?)(<!-- END $block_name -->)#s";
        if ( 
preg_match($pattern$template$matches)){
            
$template str_replace($matches[1].$matches[2].$matches[3], $subst$template);
            return 
$matches[2];
        }
}

function 
final_extract_page_html($html)
{   
    
//repeat the next line for each block you would like removed
    
final_extract_block($html'logout');
return $html;
}

?>

Upload the folder to the plugins folder.
activate the plugin from the plugin manager.

Logout button is now gone.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.