Gallery 1.4.2 and Invision 1.3 - making progress, BUT . . .
seahorsesws
Joined: 2004-02-16
Posts: 7 |
![]() |
I'm attempting to integrate invisionboard 1.3 and gallery 1.4.2 using the gallery imbed at http://mods.ibplanet.com/db/?mod=354 I've run into several problems others have, and I have overcome some with the help of a friend, but we've got more we can't figure out. First is the error: which required changing this: Then we got another error: So on to the next error: So we change: case "invisionboard": Next problem: Looked at line 29, its part of the way invisionboard works so it doesn't look to be the problem. So I looked in init.php, and find: $std = new FUNC; I believe we're close but I don't know what to do next. |
|
Skansberget
Joined: 2003-09-25
Posts: 27 |
![]() |
Any look on this? I’m also interested in this. |
|
Anno
Joined: 2004-03-17
Posts: 1 |
![]() |
Would it be that hard to modify the existing phpBB User.php and UserDB.php files to work for IPB? Or is there more to do? |
|
KnightShade
Joined: 2004-03-22
Posts: 13 |
![]() |
seahorsesws - Are you still working on this? I'ld be willing to try to dig into it some - -KnightShade |
|
rpr
Joined: 2002-10-24
Posts: 15 |
![]() |
I will pay money to get this mod completed! I am VERY close to dumping Gallery for the gallery software that Invision Power has that's already integrated into IPB. I am offering $50US via paypal to whomever gets this to work with IVP 1.3 and Gallery 1.4.3. Tom |
|
rpr
Joined: 2002-10-24
Posts: 15 |
![]() |
No takers? |
|
ouranos
Joined: 2004-04-05
Posts: 13 |
![]() |
Hi everyone, I'll hope i can publish a release of my mod within the next 2/3 days. Ouranos |
|
rpr
Joined: 2002-10-24
Posts: 15 |
![]() |
Good timing. I just got Coppermine installed and running beautifully on my test forum, but if you can get the same or similar functionality out of Gallery, I would be very interested. (see post above... I look forward to the mod! Thanks |
|
seahorsesws
Joined: 2004-02-16
Posts: 7 |
![]() |
This is great! We gave up on integrating gallery, but I still would prefer it. I can't wait until this is done! |
|
dsko
![]()
Joined: 2002-12-02
Posts: 2 |
![]() |
ouranos wrote:
Hi everyone, This is the best news I have heard in the last day. You have no idea how happy this is going to make me. |
|
ouranos
Joined: 2004-04-05
Posts: 13 |
![]() |
Hi, Ouranos |
|
jonMEGA
Joined: 2002-10-22
Posts: 71 |
![]() |
this is great news! keep up the good work! |
|
ouranos
Joined: 2004-04-05
Posts: 13 |
![]() |
Hi everyone, Mirror : http://www.cyberatom.com/tmp/ibf-gallery_v1.1.zip It works perfectly with easyphp but I encounter a little problem with session Tell me if you have any problems and I will upgrade this mod. If you want to make donation (rpr :wink . Thx. |
|
seahorsesws
Joined: 2004-02-16
Posts: 7 |
![]() |
Waiting with bated breath. |
|
ouranos
Joined: 2004-04-05
Posts: 13 |
![]() |
If the server is down retry later because i've got a dns problem |
|
seahorsesws
Joined: 2004-02-16
Posts: 7 |
![]() |
too funny. I must have been typing as you posted. I guess I have good timing. I'll give it a try and let you know how it goes. |
|
seahorsesws
Joined: 2004-02-16
Posts: 7 |
![]() |
Or I'll try when the DNS is working. Ouranos, |
|
ouranos
Joined: 2004-04-05
Posts: 13 |
![]() |
the site is working now ;) |
|
ouranos
Joined: 2004-04-05
Posts: 13 |
![]() |
i've added a mirror site ;) |
|
seahorsesws
Joined: 2004-02-16
Posts: 7 |
![]() |
seahorsesws wrote:
Or I'll try when the DNS is working. |
|
seahorsesws
Joined: 2004-02-16
Posts: 7 |
![]() |
Okay, I don't know what the problem is with that last post, I tried editing a post and it made a new one. Okay.. A few minor problems I ran into though... Next problem... in the first modification of the init.php, right after the hack prevention, its missing the <?php ?> around it. Took me more time than I'd like to admit to figure out why it was putting the code as text at the top of the gallery. I think thats it. It seems to be working well - Although I need to play some more. But I wanted to report my findings asap. |
|
dsko
![]()
Joined: 2002-12-02
Posts: 2 |
![]() |
Ok I have followed the directions and I am still receiving the following errors Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/html/forum/sources/Drivers/mySQL.php on line 67 Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /var/www/html/forum/sources/Drivers/mySQL.php on line 70 ERROR: Cannot find database freshdisko_com_forum Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /var/www/html/forum/sources/Drivers/mySQL.php on line 103 Any ideas? |
|
ouranos
Joined: 2004-04-05
Posts: 13 |
![]() |
seahorsesws wrote:
A few minor problems I ran into though... It's the same file as the old hack, I've only copied it seahorsesws wrote:
Next problem... in the first modification of the init.php, right after the hack prevention, its missing the <?php ?> around it. Took me more time than I'd like to admit to figure out why it was putting the code as text at the top of the gallery. Oops sorry dsko wrote:
Ok I have followed the directions and I am still receiving the following errors I think you didn't install correctly ibf |
|
ouranos
Joined: 2004-04-05
Posts: 13 |
![]() |
i've installed the mod on this website If it works well on your website can you send me the link to put it as example. |
|
rchady
Joined: 2003-10-06
Posts: 17 |
![]() |
I followed your directions and hit the exact same 'session' problem you are having on your site. I took a peek at it and it is a trivial fix. Go look in init.php, you have an extra blank line is my guess. Now, just need to get skin support going. ;) Great mod, thanks much for it! -Robert |
|
ouranos
Joined: 2004-04-05
Posts: 13 |
![]() |
rchady wrote:
I followed your directions and hit the exact same 'session' problem you are having on your site. I took a peek at it and it is a trivial fix. Go look in init.php, you have an extra blank line is my guess. Yes it was a problem with session.save_path, fixed yesterday rchady wrote:
Now, just need to get skin support going. ;) Perhaps, the next version ;) Ouranos |
|
rpr
Joined: 2002-10-24
Posts: 15 |
![]() |
I will install it ASAP and let you know how it goes. I assume you would help fix any issues that may arise from 1.4.3 Final being released? And if it does what I need, I will be sending you the money. Tom |
|
ouranos
Joined: 2004-04-05
Posts: 13 |
![]() |
rpr wrote:
I will install it ASAP and let you know how it goes. I assume you would help fix any issues that may arise from 1.4.3 Final being released? Yes but holliday are finished and i'll be busy next week so you'll have to wair ;) |
|
Skansberget
Joined: 2003-09-25
Posts: 27 |
![]() |
Thanks for your work on this, most appreciate. |
|
ernsti
Joined: 2004-05-31
Posts: 1 |
![]() |
ouranos wrote:
If the server is down retry later because i've got a dns problem Your Server ist permanently down :cry: Please send me the file per email to gorian301@gmx.at
Thank you very much! |
|
ouranos
Joined: 2004-04-05
Posts: 13 |
![]() |
No the server is working |
|
bungle
Joined: 2004-05-29
Posts: 5 |
![]() |
Any news on the integration with the latest IPB, such as a success story? I`m waiting to install a fresh copy of IPB onto my database, but would ideally love to get gallery onboard too. |
|
-fiscus-
Joined: 2004-06-08
Posts: 25 |
![]() |
I have this all running on my IBP 1.3.1final fine. http://www.aussiehomebrewer.com/forum/gallery/index.php Works a charm - no issues here. Next development def has to be further skinning support - I had to hack mine up a bit to get it to work but on a vanilla IPB install it should work fine 'out of the box' |
|
bungle
Joined: 2004-05-29
Posts: 5 |
![]() |
-fiscus- wrote:
I have this all running on my IBP 1.3.1final fine. That looks superb. Would you care to share where the mods are, and what I need to install make this work. I`m not really bothered about integrating the gallery software, having it as a standalone would be fine, I just want to share the same member base as my forum (which is IPB1.3). When members click on a gallery link in the forum they`ll be automatically signed into the gallery. I used to have phpBB208, and had the latest gallery running alongside just great. |
|
ouranos
Joined: 2004-04-05
Posts: 13 |
![]() |
Just follow the readme instructions ;) I'll develop a skin integration asap but i've a lot of exam this month; Ouranos |
|
Shadow_Wolf
![]()
Joined: 2004-04-03
Posts: 181 |
![]() |
Does someone have this up on a demo or board that I can test it to see how the uploading, etc works with IPB? |
|
tenaki
Joined: 2003-04-08
Posts: 106 |
![]() |
Yes I would like to see that too |
|
Shadow_Wolf
![]()
Joined: 2004-04-03
Posts: 181 |
![]() |
Edit: Issue solved, there was some missing arguments and code from the install instructions. |
|
Shadow_Wolf
![]()
Joined: 2004-04-03
Posts: 181 |
![]() |
I've installed this Mod into my Gallery and Invision Power Board and its working. There are still some final skin issues which I'm working through. I had thought it was more of a integration similar to how Coppermine is integrated into IPB, however it is not. This Mod gives the user the ability to share the database of the message board with the Gallery, essentially not using it at all. Its fairly nice and would be better if there are some Control Panel fixes into the IPB part, I might see about doing that myself. Overall though its a great mod and saves a lot of time and registration since they only need to be registered on the message board itself. |
|
tenaki
Joined: 2003-04-08
Posts: 106 |
![]() |
Nice one that looks good. Can I ask if it is difficult to install? Limited experience with gallery/php |
|
Shadow_Wolf
![]()
Joined: 2004-04-03
Posts: 181 |
![]() |
It is easy to install and modify your Invision Board to integrate the Gallery. There are two main issues. There isn't a real support for the skins of the Gallery, that is all strictly gallery modifications. Its best if you don't have an existing Gallery. It will work with an existing gallery but you'll encounter an issue. If you have users who have albums in Gallery but not registered on message board they won't be able to get access to their galleries until they have registered on the IPB. If you have pre-existing albums as well since the member database isn't associated with the members you'll have to reset permissions for each album giving the user ownership of their albums again. Other than that its not that bad. Give me a few days to go through the install file, add in the changes that I had to to get things to work properly and I'll rezip it back up for download with some better instructions. |
|
tenaki
Joined: 2003-04-08
Posts: 106 |
![]() |
Thats very kind of you Thanks. It's about time we got this going for Invision board |
|
Shadow_Wolf
![]()
Joined: 2004-04-03
Posts: 181 |
![]() |
/* Embedding Gallery into Invision Power Board 1.3.1 Author: Shadow Wolf / Ouranos / copland 007 / windrider Version: 1.2 Updated: 07/08/2004 Website: http://www.protoculturex.com/index.php?pid=9 This hack should allow you to get Gallery v1.4.3 to use the Invision Boards Members Database information. Still could use some work (like Skin Support) and probably other AdminCP functionality. But hopefully this will be enough to get you started with having a Photo Album for your Invision Board site. Requires: InvisionBoard 1.3.1 (http://www.invisionboard.com) Gallery v1.4.3-RC2 (http://gallery.menalto.com) Credits: - Original code written by copland007. - Code changed by windrider. (mjb@braindead.net) -- Added minimal AdminCP support. -- Removed hardcoded Groups from User.php/UserDB.php Now the group access is controled from AdminCP. -- Removed other hardcoded strings. - Code modified by Ouranos (ouranos@cyberatom.com) -- Added compatibility with the latest IPB version. -- Don't need API. - Code changed by Shadow Wolf -- Corrected errors in install.txt. -- Tested with v1.4.3-RC2. For more information on embedding gallery in general you can look at: http://www.txraves.org/code/?item=embeddinggallery Things to still do: Add skin support. */ First create a "gallery" directory in your forums root and install a standalone Gallery using their install process into this directory. Once installed you can then begin to hack away. ****************************** Upload db_hack.php into forums root. (where your conf_global.php file exists) Load the db_hack.php file in your web browser. Once hack is done delete the db_hack.php file. ****************************** Make an "invisionboard" directory under <gallery dir>/classes/ Upload the supplied User.php and UserDB.php files into <gallery dir>/classes/invisionboard/ ****************************** Upload all files supplied in html_wrap into <gallery dir>/html_wrap/ These files (especially 'wrapper.header') will require a bit 'extra' modification to make it match your site until I or someone can write a good Skin integration. But they are well adapted to the default skin. ****************************** Open <forum dir>/sources/Admin/ad_groups.php Find: 'g_attach_max' => $IN['g_attach_max'], 'g_avatar_upload' => $IN['g_avatar_upload'], 'g_calendar_post' => $IN['g_calendar_post'], Add Below: 'g_gallery_createalbum' => $IN['g_gallery_createalbum'], 'g_gallery_moderate' => $IN['g_gallery_moderate'], Find: $ADMIN->html .= $SKIN->add_td_row( array( "<b>Can add events to the calendar?$guest_legend</b>" , $SKIN->form_yes_no("g_calendar_post", $group['g_calendar_post'] ) ) ); Add Below: $ADMIN->html .= $SKIN->add_td_row( array( "<b>Can create Gallery albums?</b>" , $SKIN->form_yes_no("g_gallery_createalbum", $group['g_gallery_createalbum'] ) ) ); Find: $ADMIN->html .= $SKIN->start_table( "Moderation Permissions", "Allow or deny this group moderation abilities" ); Add Below: $ADMIN->html .= $SKIN->add_td_row( array( "<b>Can moderate Gallery albums?</b>" , $SKIN->form_yes_no("g_gallery_moderate", $group['g_gallery_moderate'] ) ) ); Save your changes ****************************** Open <forum dir>/skin/s1/skin_global.php <forum dir>/skin/s1/skin_csite.php Find: & &&<img src="{$ibforums->vars['img_url']}/atb_members.gif" border="0" alt="" />&<a href='{$ibforums->base_url}act=Members'>{$ibforums->lang['tb_mlist']}</a> Add Below: & &&<img src="{$ibforums->vars['img_url']}/atb_members.gif" border="0" alt="" />&<a href='{$ibforums->vars['board_url']}/gallery/index.php'>{$ibforums->lang['tb_gallery']}</a> NB: You can replace atb_members.gif by any icon. Save your changes ****************************** Open <forum dir>/lang/en/lang_global.php (If you have additionnal languages you can edit this file : <forum dir>/lang/<language id>/lang_global.php) Find: 'tb_mlist' => "Members", Add Below: 'tb_gallery' => "Gallery", Save your changes ****************************** Open <gallery dir>/util.php Find: /* Needed for phpBB2 */ global $userdata; global $board_config; global $HTTP_COOKIE_VARS; Add Below: /* Needed for IBF */ global $ibforum; Find: $args["set_albumName"] = $gallery->session->albumName; } } Add Below: case 'invisionboard': $args["s"] = $ibforums->session_id; break; Save your changes ****************************** Open <gallery dir>/init.php Find: <? // Hack prevention. $sensitiveList = array("gallery", "GALLERY_BASEDIR"); foreach ($sensitiveList as $sensitive) { if (!empty($HTTP_GET_VARS[$sensitive]) || !empty($HTTP_POST_VARS[$sensitive]) || !empty($HTTP_COOKIE_VARS[$sensitive]) || !empty($HTTP_POST_FILES[$sensitive])) { print "Security violation\n"; exit; } } ?> Add Below: <? // START - Invision Embedding $GALLERY_EMBEDDED_INSIDE = "invisionboard"; $GALLERY_EMBEDDED_INSIDE_TYPE = "invisionboard"; $root_path = "../"; //EDIT:: Set to the path of your Forums Directory. class Debug { function startTimer() { global $starttime; $mtime = microtime (); $mtime = explode (' ', $mtime); $mtime = $mtime[1] + $mtime[0]; $starttime = $mtime; } function endTimer() { global $starttime; $mtime = microtime (); $mtime = explode (' ', $mtime); $mtime = $mtime[1] + $mtime[0]; $endtime = $mtime; $totaltime = round (($endtime - $starttime), 5); return $totaltime; } } class info { var $member = array(); var $input = array(); var $session_id = ""; var $base_url = ""; var $vars = ""; var $skin_id = "s1"; // Skin Dir name var $skin_rid = "1"; // Real skin id (numerical only) var $lang_id = "fr"; var $skin = ""; var $lang = ""; var $server_load = 0; var $version = "v1.0.1"; var $lastclick = ""; var $location = ""; function info() { global $sess, $std, $DB, $root_path, $INFO; $this->vars = &$INFO; $this->vars['TEAM_ICON_URL'] = $INFO['html_url'] . '/team_icons'; $this->vars['AVATARS_URL'] = $INFO['html_url'] . '/avatars'; $this->vars['EMOTICONS_URL'] = $INFO['html_url'] . '/emoticons'; $this->vars['mime_img'] = $INFO['html_url'] . '/mime_types'; } } //-------------------------------- // Import $INFO, now! //-------------------------------- require $root_path."/forum/conf_global.php"; //-------------------------------- // The clocks a' tickin' //-------------------------------- $Debug = new Debug; $Debug->startTimer(); //-------------------------------- // Require our global functions //-------------------------------- require $root_path."/forum/sources/functions.php"; $std = new FUNC; $print = new display(); $sess = new session(); //-------------------------------- // Load the DB driver and such //-------------------------------- $INFO['sql_driver'] = !$INFO['sql_driver'] ? 'mySQL' : $INFO['sql_driver']; $to_require = $root_path."/forum/sources/Drivers/".$INFO['sql_driver'].".php"; require ($to_require); $DB = new db_driver; $DB->obj['sql_database'] = $INFO['sql_database']; $DB->obj['sql_user'] = $INFO['sql_user']; $DB->obj['sql_pass'] = $INFO['sql_pass']; $DB->obj['sql_host'] = $INFO['sql_host']; $DB->obj['sql_tbl_prefix'] = $INFO['sql_tbl_prefix']; // Get a DB connection $DB->connect(); //-------------------------------- // Wrap it all up in a nice easy to // transport super class //-------------------------------- $ibforums = new info(); //-------------------------------- // Set up our vars //-------------------------------- $ibforums->vars['tmpl_dir'] = "../templates/"; $ibforums->input = $std->parse_incoming(); $ibforums->member = $sess->authorise(); $ibforums->skin = $std->load_skin(); $ibforums->lastclick = $sess->last_click; $ibforums->location = $sess->location; $ibforums->session_id = $sess->session_id; if ($ibforums->member['id'] and ( $std->my_getcookie('hide_sess') ) ) { $ibforums->session_id = ""; } $ibforums->base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?s='.$ibforums->session_id; $ibforums->skin_rid = $ibforums->skin['set_id']; $ibforums->skin_id = 's'.$ibforums->skin['set_id']; $ibforums->vars['img_url'] = 'style_images/' . $ibforums->skin['set_id']; //-------------------------------- // Set up our language choice //-------------------------------- $ibforums->lang_id = $ibforums->member['language'] ? $ibforums->member['language'] : 'en'; if ( ($ibforums->lang_id != 'en') and (! is_dir( $root_path."lang/".$ibforums->lang_id ) ) ) { $ibforums->lang_id = 'en'; } require $root_path."/forum/lang/".$ibforums->lang_id."/lang_global.php"; $ibforums->lang = $lang; unset($lang); //-------------------------------- require $root_path."/forum/Skin/".$ibforums->skin_id."/skin_global.php"; $skin_universal = new skin_global(); // *************************************** // END - Invision Embedding ?> Find: (around line +/- 312) if (isset($GALLERY_EMBEDDED_INSIDE)) { /* Okay, we are embedded */ switch($GALLERY_EMBEDDED_INSIDE_TYPE) { Add Below: // START - Invision Embedding case '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']}->$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']); } break; // END - Invision Embedding ?> Save your changes ****************************** Upload all the file changes if you haven't already. Go into AdminCP and modify the groups you want to have access to Gallery for creating albums and/or moderation access. SuperMods and Admins already have Moderation access to the Gallery. But also added a specific function for Gallery moderation if you need/want it. ****************************** |
|
endeavorc
Joined: 2004-07-15
Posts: 4 |
![]() |
Hello everyone. I usually just lurk around but need some help with this mod. Everything went well with the install and I am not having any problems with the integration. I do have one concern though. I have created an album where I want all members to be able to upload pictures. see the album: everyone The problem I am having is that "guests" (non members) appear to be "logged in" and are able to upload photos. Anyone who visits the site is able to upload a photo, how can I correct this? Any help would be appreciated, Thanks |
|
signe
![]()
Joined: 2003-07-27
Posts: 2322 |
![]() |
Use the 'loggedin' permission, not 'everyone'. 'Everyone' is exactly what it says... |
|
endeavorc
Joined: 2004-07-15
Posts: 4 |
![]() |
For add photo, it is set to logged in and not everyone |
|
HaLeon
Joined: 2004-07-24
Posts: 2 |
![]() |
May I know if any of you guys have gallery working in your IPB 2.0? Thanks for your attention.. do advice |
|
simonline
Joined: 2004-07-27
Posts: 3 |
![]() |
Shadow_Wolf wrote:
It is easy to install and modify your Invision Board to integrate the Gallery. There are two main issues. There isn't a real support for the skins of the Gallery, that is all strictly gallery modifications. Can you please let me know where I can download the hack. I looked everywhere here and on your site. Thanks Shadow Wolf. |
|
endeavorc
Joined: 2004-07-15
Posts: 4 |
![]() |
I am still having a problem where guests are able to upload pictures in one album. Does anyone else have an idea for this issue? Thanks in advance |
|
BloodWolf
Joined: 2004-11-02
Posts: 3 |
![]() |
I got it all hacked but at the top of my gallery I have the ENTIRE hack that I made on int.php???? Here is the error Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /board/gallery/init.php:46) in /board/gallery/session.php on line 60 Here is the page Can anyone help me here? PLEASE Thank you! |
|
BloodWolf
Joined: 2004-11-02
Posts: 3 |
![]() |
anybody??? This is quite odd and I would really like to get this to work Aaron |
|