Welcome, Guest. Please Login or Register.
April 18, 2024, 10:12:42 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2 « previous next »
Pages: 1 [2] 3 4 ... 7 Reply Ignore Print
Author Topic: [Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2  (Read 112375 times)
silentbob
Jr. Member
**
Posts: 59


Sweep This!!

WWW
Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge
« Reply #15 on: July 10, 2003, 10:41:40 AM »
Reply with quote

Quote from: Sausage on July 10, 2003, 08:49:19 AM
Okay, I've followed the instructions, but I don't appear to see any of my YaBBSE user info in the my profile tab of coppermine.  How can I check if the bridge is working?

yeah.. what he said ...  ???
Logged

First you wanna kill me, now you wanna kiss me... *spits* ... Blow.
jack-uk
Full Member
***
Posts: 118


I'm a llamatron addict

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge
« Reply #16 on: July 10, 2003, 06:56:05 PM »
Reply with quote

The Coppermine 'profile' is basically doesn't exist anymore when the bridge is in place.
To check if it's working :-

  • Check if you are logged into coppermine as a 'guest' or a user (try and create a personal gallery).
  • Check the Coppermine usergroups - 'Global Moderators' should be listed there.

    There are no code changes to make to YaBB SE to get this working, so that's why there's no references to the bridge in YaBB (and why it's not technically a YaBB mod).
Logged

jack-uk
Full Member
***
Posts: 118


I'm a llamatron addict

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #17 on: July 10, 2003, 09:11:56 PM »
Reply with quote

I have fixed one of the bugs, you should now be able to have an apostrophe as a character in a membergroup name, and have members of said group be able to access Coppermine :)

Now at version 0.9.2.

I should have the other bug fixed, and a couple of nice additions (hopefully working 'profile', 'users' and 'logout' links) sometime over the weekend :)
Logged

Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #18 on: July 10, 2003, 09:36:01 PM »
Reply with quote

sweet!!!!  :o

thank you man! I've been in need of this! :P

I'll test is this weekend :)
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
Sausage
Full Member
***
Posts: 122


I'm a llama!

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #19 on: July 11, 2003, 01:09:52 AM »
Reply with quote

Nope, I don't have a global moderators usergroup, only admins, registered, anons and banned.

I modified the include file and stuff, and there are no errors reported, so I'm still scratching my head here.
Logged
Sausage
Full Member
***
Posts: 122


I'm a llama!

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #20 on: July 11, 2003, 01:14:30 AM »
Reply with quote

I don't quite understand this line.

Quote6. Edit this and add 'define('UDB_INTEGRATION', 'yabbse');' near the top (you will see where the other ones are listed - but make sure the yabbse one is the only one that is not commented out).

There aren't any other integration types in the file. I just added the line at the top of the include file, and this is what I have.



<?php
// ------------------------------------------------------------------------- //
//  Coppermine Photo Gallery                                                 //
// ------------------------------------------------------------------------- //
//  Copyright (C) 2002,2003  Grégory DEMAR <[email protected]>               //
//  http://www.chezgreg.net/coppermine/                                      //
// ------------------------------------------------------------------------- //
//  Based on PHPhotoalbum by Henning Støverud <[email protected]>         //
//  http://www.stoverud.com/PHPhotoalbum/                                    //
// ------------------------------------------------------------------------- //
//  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.                                      //
// ------------------------------------------------------------------------- //

define('COPPERMINE_VERSION''1.1.0');

define('UDB_INTEGRATION''yabbse');

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

// Start output buffering
ob_start();

// Report all errors except E_NOTICE
// This is the default value set in php.ini
// error_reporting (E_ALL ^ E_NOTICE);
error_reporting(E_ALL);

set_magic_quotes_runtime(0);

..
..
..



Logged
jack-uk
Full Member
***
Posts: 118


I'm a llamatron addict

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #21 on: July 11, 2003, 06:23:34 AM »
Reply with quote

You have to use the development (beta) version of Coppermine. The stable releases do not have this functionality yet.
Logged

Sausage
Full Member
***
Posts: 122


I'm a llama!

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #22 on: July 11, 2003, 06:52:09 AM »
Reply with quote

Uh oh. I hope I don't lose anything if I just copy everything from the dev version into the release version I have installed.
Logged
babylonking
Full Member
***
Posts: 174


Proudly Canadian

WWW
Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #23 on: July 12, 2003, 12:13:59 AM »
Reply with quote

I installed your script today and everything is working just fine no problems with it at all......Good job man  :)

Just one question: how i disallow guests from viewing the members gallery page?

I know each member can disallow guests or even members from viewing his gallery but is there any way to disallow guests from browsing the gallery page. ???
Logged

Proudly Canadian          
Metho
Sr. Member
****
Posts: 342


I'm a llama!

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #24 on: July 12, 2003, 12:26:52 AM »
Reply with quote

I thought this was an option already, but perhaps not. Anyhow, in index.php in your GALLERY folder, you could just put something like this in there:if ($username == "Guest")
 fatal_error('Sorry, you have to be a member to view this feature.');


Or to avoid the sin of hardcoding the txt, use something like this:   if ( $username == 'Guest' )
      fatal_error($txt[1]);


You may have to global $username as well, though I would think it already would be...?
« Last Edit: July 12, 2003, 12:30:12 AM by Metho » Logged

babylonking
Full Member
***
Posts: 174


Proudly Canadian

WWW
Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #25 on: July 12, 2003, 01:04:22 AM »
Reply with quote

Hi Metho

I added the above code but i'm getting this error:Fatal error: Call to undefined function: ::)

Logged

Proudly Canadian          
Metho
Sr. Member
****
Posts: 342


I'm a llama!

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #26 on: July 12, 2003, 01:10:08 AM »
Reply with quote

Oh, looks like that yabbse.inc.php file does some stuff with the guest things. Probably have to fiddle in there as well. I'm using the coppermine mod without this bridge and the code I posted works with that, but this is a bit different now that I looked at it. I can fiddle with it a bit to get it to work, or if someone has the answer right away they can post it. :D
Logged

Metho
Sr. Member
****
Posts: 342


I'm a llama!

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #27 on: July 12, 2003, 01:14:55 AM »
Reply with quote

In that yabbse.inc.php you could try this...Find:        /* If the user is a guest, initialize all the critial user settings */
       if ($username == '' || $username == 'Guest')
       {
          $result = db_query("SELECT * FROM {$CONFIG['TABLE_USERGROUPS']} WHERE group_id = ".YS_GUEST_GROUP);
      if (!mysql_num_rows($result)) {
         $USER_DATA = $default_group;
      } else {
         $USER_DATA = mysql_fetch_array($result);
      }
          define('USER_ID', -1);
          define('USER_NAME', 'Guest');
      define('USER_GROUP_SET', '('.YS_GUEST_GROUP.')');
          define('USER_IS_ADMIN', 0);
          define('USER_CAN_SEND_ECARDS', (int)$USER_DATA['can_send_ecards']);
          define('USER_CAN_RATE_PICTURES', (int)$USER_DATA['can_rate_pictures']);
          define('USER_CAN_POST_COMMENTS', (int)$USER_DATA['can_post_comments']);
          define('USER_CAN_UPLOAD_PICTURES', (int)$USER_DATA['can_upload_pictures']);
          define('USER_CAN_CREATE_ALBUMS', 0);
      mysql_free_result($result);
       } else {
      if ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator')
         $cm_group_id = ($settings[7] == 'Administrator') ? YS_ADMIN_GROUP : YS_GMOD_GROUP;
      if ($settings[7] == '') $cm_group_id = YS_MEMBERS_GROUP;

      if (!$cm_group_id) {
         $sql = "SELECT group_id ".
               "FROM {$CONFIG['TABLE_USERGROUPS']} ".
               "WHERE group_name = '". $settings[7] . "'";
         $result = db_query($sql);
         if (mysql_num_rows($result)){
            $temp = mysql_fetch_array($result);
            $cm_group_id = $temp[0];
         } else {
            $cm_group_id = YS_MEMBERS_GROUP;
         }
      }

Change to this:        /* If the user is a guest, initialize all the critial user settings */
       if ($username == '' || $username == 'Guest')
         fatal_error($txt[1]);
/*        {
          $result = db_query("SELECT * FROM {$CONFIG['TABLE_USERGROUPS']} WHERE group_id = ".YS_GUEST_GROUP);
      if (!mysql_num_rows($result)) {
         $USER_DATA = $default_group;
      } else {
         $USER_DATA = mysql_fetch_array($result);
      }
          define('USER_ID', -1);
          define('USER_NAME', 'Guest');
      define('USER_GROUP_SET', '('.YS_GUEST_GROUP.')');
          define('USER_IS_ADMIN', 0);
          define('USER_CAN_SEND_ECARDS', (int)$USER_DATA['can_send_ecards']);
          define('USER_CAN_RATE_PICTURES', (int)$USER_DATA['can_rate_pictures']);
          define('USER_CAN_POST_COMMENTS', (int)$USER_DATA['can_post_comments']);
          define('USER_CAN_UPLOAD_PICTURES', (int)$USER_DATA['can_upload_pictures']);
          define('USER_CAN_CREATE_ALBUMS', 0);
      mysql_free_result($result);
       }*/ else {
      if ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator')
         $cm_group_id = ($settings[7] == 'Administrator') ? YS_ADMIN_GROUP : YS_GMOD_GROUP;
      if ($settings[7] == '') $cm_group_id = YS_MEMBERS_GROUP;

      if (!$cm_group_id) {
         $sql = "SELECT group_id ".
               "FROM {$CONFIG['TABLE_USERGROUPS']} ".
               "WHERE group_name = '". $settings[7] . "'";
         $result = db_query($sql);
         if (mysql_num_rows($result)){
            $temp = mysql_fetch_array($result);
            $cm_group_id = $temp[0];
         } else {
            $cm_group_id = YS_MEMBERS_GROUP;
         }
      }

And then take that code out of the index.php in gallery that you add.

Untested, no idea if it'll actually work.
Logged

jack-uk
Full Member
***
Posts: 118


I'm a llamatron addict

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #28 on: July 12, 2003, 01:52:49 AM »
Reply with quote

Quote from: babylonking on July 12, 2003, 12:13:59 AMI installed your script today and everything is working just fine no problems with it at all......Good job man  :)

Thankyou :)

QuoteJust one question: how i disallow guests from viewing the members gallery page?

I don't know .. that is more of a straight Coppermine question, than something with my bridge. A guest user is handled as part of the standard 'Anonymous' group in Coppermine (or at least, should be - if it's any different, it's a bug & please let me know).
I actually have very little experience running Coppermine (the bridge was wwritten & mostly working within 24 hrs of me first installing it ;) ), so can I suggest you ask that on the coppermine forum at http://www.chezgreg.net/
Logged

babylonking
Full Member
***
Posts: 174


Proudly Canadian

WWW
Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #29 on: July 12, 2003, 01:27:02 PM »
Reply with quote

QuoteIn that yabbse.inc.php you could try this...Find:

HI Metho

The code is not working......anways i asked my members to set their gallery Permissions to registered groups only.

QuoteI don't know .. that is more of a straight Coppermine question, than something with my bridge. A guest user is handled as part of the standard 'Anonymous' group in Coppermine (or at least, should be - if it's any different, it's a bug & please let me know).
I actually have very little experience running Coppermine (the bridge was wwritten & mostly working within 24 hrs of me first installing it  ), so can I suggest you ask that on the coppermine forum at http://www.chezgreg.net/

Thanks jack-uk  it's really nice script and my members they don't have any problem using it. ;)
Logged

Proudly Canadian          
Pages: 1 [2] 3 4 ... 7 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2 « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.085 seconds with 19 queries.