InvisonBoard

hardtraining

Joined: 2003-06-08
Posts: 12
Posted: Sun, 2003-09-28 23:36

Anyone integrate with Invisionboard?

Thanks!

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Mon, 2003-09-29 05:25
 
irishblue

Joined: 2002-08-21
Posts: 19
Posted: Mon, 2003-10-13 02:16

I almost got it working save for one last error in the init.php file. I replaced the text as noted in the readme file but i still get an error:
Fatal error: Call to undefined function: settableprefix() in /home/irishblu/public_html/five/gallery/init.php on line 307

I have gallery 1.4 installed with invision 1.2. I hope the mod works with those as well. so far so good except for this settableprefix part. These are what I have around those lines.

Quote:
/* Make sure that Gallery is set up properly */
gallerySanityCheck();

// START - Invision Embedding
if (!strcmp($GALLERY_EMBEDDED_INSIDE, "invisionboard")) {
include($GALLERY_BASEDIR . "classes/Database.php");
include($GALLERY_BASEDIR . "classes/database/mysql/Database.php");
include($GALLERY_BASEDIR . "classes/invisionboard/UserDB.php");
include($GALLERY_BASEDIR . "classes/invisionboard/User.php");

$gallery->database{$INFO['sql_database']} = new MySQL_Database(
$INFO['sql_host'],
$INFO['sql_user'],
$INFO['sql_pass'],
$INFO['sql_database']);
$gallery->database{$INFO['sql_database']}->setTablePrefix($INFO['sql_tbl_prefix']);

/* Load our user database (and user object) */
$gallery->userDB = new Gallery_UserDB;

$gallery->session->username = $ibforums->member['name'];
$gallery->user = $gallery->userDB->getUserByUsername($gallery->session->username);

if ($gallery->session->username) {
// -- load user object by specifying userid instead of username
$gallery->user = $gallery->userDB->getUserByUid($ibforums->member['id']);
}
}
// END - Invision Embedding

/* If there's no specific user, they are the special Everybody user */
if (!isset($gallery->user)) {

Could someone help with debugging it? Would appreciate it lots.

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Mon, 2003-10-13 07:34

My guess is setTablePrefix() is an Invision function, right? So make sure you're including the file that contains the definition of that function somewhere.

-Beckett (

)

 
irishblue

Joined: 2002-08-21
Posts: 19
Posted: Mon, 2003-10-13 13:04

i shld think it's included within the files that were included at the top. Those in the invisionboard directory were from the mod and uploaded to the correct folder. I checked through the steps again. but i still can't seem to locate what could be wrong.

 
UberError

Joined: 2003-10-13
Posts: 2
Posted: Thu, 2003-10-16 01:16

just change it to this and it works

i found that settableprefix is no longer used by invision... i believe the substitute is "Query"

$gallery->database{$INFO['sql_database']}->$INFO['sql_tbl_prefix'];

 
irishblue

Joined: 2002-08-21
Posts: 19
Posted: Fri, 2003-10-17 11:30

Thank you very much, UberError! It almost worked.
until i replaced the wrapper-header.default file with the gallery embed one. I get this error now:
Fatal error: Cannot redeclare class info in /home/irishblu/public_html/five/forums/main.php on line 26

my main.php file around those lines has this:

Quote:
class info {

var $member = array();
var $input = array();
var $session_id = "";
var $base_url = "";
var $vars = "";
var $server_load = 0;
var $version = "v4";
var $lastclick = "";
var $location = "";

function info() {
global $sess, $std, $DB, $root_path, $INFO;

Also, got another question... what does this line mean?

Quote:
Find <!-- NAV BAR --> and change the line after to match the same line in your skin_global.php file in the BoardHeader function.

 
hardtraining

Joined: 2003-06-08
Posts: 12
Posted: Sat, 2003-11-22 16:34

Anyone integrate this with the latest versions of Invison Board?

 
Shadeaux

Joined: 2003-11-25
Posts: 12
Posted: Sun, 2004-01-25 05:16

Are their any Hacks to integrate the Gallery and Invisionboard User Data base? I want my members to be able to login to the Board, and have access with Group rights to the gallery.. permissions would be controlved via the Boards Group settings.

 
blackhat[LO]

Joined: 2003-10-26
Posts: 16
Posted: Thu, 2004-10-28 04:17

is there still a mod for this available somewhere ?

Thanks