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
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.
Offline
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
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.
Offline
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:
<?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
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
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
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.
Offline