Announcement

  •  » Requests
  •  » A few questions to ask!

#1 2009-01-23 19:55:08

southerner
Member
2009-01-23
3

A few questions to ask!

A friend of mine recommend this to me and I have a few questions to ask!  :)

(1) can you use Charlie Content on the current vesion?
(2) is there a bridge for php webgallery and mybb?(register mybb)

If these has been asked before, please accept my apology.

TIA

Last edited by southerner (2009-01-23 20:19:24)

Offline

 

#2 2009-01-23 21:04:04

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: A few questions to ask!

1 - Charlies Content (Currently 1.7.x only).

2 - I did not try but you can have probably only one user table (and remove registering from the gallery) but your users need to connect them on myBB and on PhpWebGallery.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#3 2009-01-23 22:14:26

southerner
Member
2009-01-23
3

Re: A few questions to ask!

VDigital wrote:

1 - Charlies Content (Currently 1.7.x only).

2 - I did not try but you can have probably only one user table (and remove registering from the gallery) but your users need to connect them on myBB and on PhpWebGallery.

So in other words..have the user log in at mybb? Is that correct?
I do not have php webgallery in a sub directory of mybb. Should it be?

If the above is not correct, please explain in a step by step instruction please!  :)

I am new to php, so go easy on me!  :)


TIA

Offline

 

#4 2009-01-23 22:18:36

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: A few questions to ask!

MyBB on one side (in its directory)

PhpWebGallery on another side (in another directory)

MySQL: for an easy way
Install both with the same database


Do it and come back.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#5 2009-01-23 23:23:05

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: A few questions to ask!

PhpWebGallery integrates an "external authentication mecanism". The theory is that user accounts can be hosted in a external MySQL table (on the same server but being in the same database is not mandatory). You have to configure (using LocalFiles Editor) your local configuration with something like:

Code:

<?php
$conf['users_table'] = 'forum.mybb_users';

$conf['user_fields'] = array(
  'id' => 'uid',
  'username' => 'username',
  'password' => 'password',
  'email' => 'email'
  );

$conf['pass_convert'] = create_function('$s', 'return md5($s);');

$conf['guest_id'] = 2;

$conf['default_user_id'] = $conf['guest_id'];

$conf['webmaster_id'] = 1;

?>

I haven't found in less than 1 minute the pass_convert function for mybb, so I let you search in their source code.

Offline

 

#6 2009-01-25 10:30:13

southerner
Member
2009-01-23
3

Re: A few questions to ask!

z0rglub wrote:

PhpWebGallery integrates an "external authentication mecanism". The theory is that user accounts can be hosted in a external MySQL table (on the same server but being in the same database is not mandatory). You have to configure (using LocalFiles Editor) your local configuration with something like:

Code:

<?php
$conf['users_table'] = 'forum.mybb_users';

$conf['user_fields'] = array(
  'id' => 'uid',
  'username' => 'username',
  'password' => 'password',
  'email' => 'email'
  );

$conf['pass_convert'] = create_function('$s', 'return md5($s);');

$conf['guest_id'] = 2;

$conf['default_user_id'] = $conf['guest_id'];

$conf['webmaster_id'] = 1;

?>

I haven't found in less than 1 minute the pass_convert function for mybb, so I let you search in their source code.

Thanks, but I am totally lost in what to do!  :(
Maybe I will just look else where.

Thanks Again!!!!

Offline

 

#7 2009-03-15 11:58:18

Ruby
Member
The Netherlands
2009-03-15
18

Re: A few questions to ask!

It should be something like that:

define("IN_MYBB", 1);
require("../global.php");
    global $db, $mybb, $lang;
$sender = $mybb->user['uid'];
        if($mybb->user['uid'] == 0) {
        redirect("../index.php", "Please subscribe first");
        }
//....


-----------------

But I have an other question please, belonging to this subject:  I would like to include/embed the Piwigo Gallery to MyBB 1.4.

Could you please give me a code?

Offline

 

#8 2009-03-15 12:03:08

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: A few questions to ask!

Ruby wrote:

It should be something like that:

define("IN_MYBB", 1);
require("../global.php");
    global $db, $mybb, $lang;
$sender = $mybb->user['uid'];
        if($mybb->user['uid'] == 0) {
        redirect("../index.php", "Please subscribe first");
        }
//....


-----------------

But I have an other question please, belonging to this subject:  I would like to include/embed the Piwigo Gallery to MyBB 1.4.

Could you please give me a code?

This is not a question but part of a solution.
Please, may you explain in a new topic your problem.
Thank for readers.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 
  •  » Requests
  •  » A few questions to ask!

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact