Author Topic: Integration 4images 1.7.x / phpBB  (Read 649719 times)

0 Members and 1 Guest are viewing this topic.

Offline medo007

  • Newbie
  • *
  • Posts: 29
  • Internet addict
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #480 on: October 22, 2006, 11:15:04 PM »

I have a big problem! My 4images gallery don't recognize GD library installed on server and phpBB is!

Is there anybody who can help me? :(
mEDO

Offline AndrewRu

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: Integration 4images 1.7.4 / phpBB 2.0.21
« Reply #481 on: October 26, 2006, 10:50:50 AM »
Hi.
As I integrated phpbb and 4images.  This worker version.
---
Gallery's and forum's bases are different ones.
Base of the forum by default - "Forum".
Administration to galleries and Administration of the forum are divided. (!) For this purpose it is necessary to create additional "user_gal_level" column in "phpbb_users" table and set "1" there for administration.
It is necessary to set "cookie path = /" in forum's preferences - elseware login will be lost.
« Last Edit: October 30, 2006, 07:30:55 AM by AndrewRu »

Offline bjoernito

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: Integration 4images 1.7 / phpBB
« Reply #482 on: November 05, 2006, 10:31:21 AM »
4images nutzt nach der Integration die Usertabelle vom phpBB. Das heisst Du kannst Dich also in 4images mit Username/Passwort vom phpBB einloggen.

Jan

hallo jan,

einloggen von phpbb - ok
einloggen/ausloggen von 4images - nicht ok

problem: http://domain.comhttp://sub.domain.com     (404 error ...  ;)

wird in der adresszeile angezeigt.

und beim abmelden von der galerie heisst es: "invald_session" (phpbb) heisst wohl das die session der galerie nicht an phpbb übertragen wird.


nutze jeweils subdomains für forum und galerie.

welche einstellungen habe ich wohl vergessen ? Wink

grüße
bjoern



hello jan,

login from phpbb - ok
login/logout from 4images - bad

problem: http://domain.comhttp://sub.domain.com   (404 error ...  ;)

is displayed in browser
and if I do a logout from the galerie - "invaid_session" is displayed (phpbb)  - seems to me that the session is not shared with phpbb.

I'am using subdomains for the galerie and forum.

which configurations did I miss ? Wink

regards
bjoern


!! diese frage kam jetzt schön öfters, konnte jedoch keine saubere antwort finden-
!! this question is not new, couldn't find a proper answer-
« Last Edit: November 05, 2006, 10:47:32 AM by bjoernito »

Offline knsin0

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #483 on: November 05, 2006, 09:28:34 PM »
how can i implemente the forum avatars in the comments?

Offline ragman81

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #484 on: November 10, 2006, 04:37:12 PM »
Tach erst ma!! ich habe ein orion-forum von cback, ist da die integration auch möglich? bei mir hats mal nicht geklappt, ich kann mich zwar über das login-form der gallery im forum anmelden- aber ich bin dann nicht in der gallery eingeloggt. habe alles nach anleitung gemacht, nur den prefix in der session.php von "phpbb_" auf "orion_"  geändert. hat jemand rat?

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Integration 4images 1.7 / phpBB
« Reply #485 on: November 10, 2006, 05:03:45 PM »
4images nutzt nach der Integration die Usertabelle vom phpBB. Das heisst Du kannst Dich also in 4images mit Username/Passwort vom phpBB einloggen.

Jan

hallo jan,

einloggen von phpbb - ok
einloggen/ausloggen von 4images - nicht ok

problem: http://domain.comhttp://sub.domain.com     (404 error ...  ;)

wird in der adresszeile angezeigt.

und beim abmelden von der galerie heisst es: "invald_session" (phpbb) heisst wohl das die session der galerie nicht an phpbb übertragen wird.


nutze jeweils subdomains für forum und galerie.

welche einstellungen habe ich wohl vergessen ? Wink

grüße
bjoern



hello jan,

login from phpbb - ok
login/logout from 4images - bad

problem: http://domain.comhttp://sub.domain.com   (404 error ...  ;)

is displayed in browser
and if I do a logout from the galerie - "invaid_session" is displayed (phpbb)  - seems to me that the session is not shared with phpbb.

I'am using subdomains for the galerie and forum.

which configurations did I miss ? Wink

regards
bjoern


!! diese frage kam jetzt schön öfters, konnte jedoch keine saubere antwort finden-
!! this question is not new, couldn't find a proper answer-

Hallo,

wenn ich micht recht erinnere....
phpbb auf 2 domains, egal ob subdomain oder nicht, macht Fehler.
Da gabs mal ein Mod für phpbb mit 2 Domains.

Meiner Meinung hat dein Problem nichts mit der Integration mit 4images zu tun

Gruß
Kurt

Offline Xaser

  • Pre-Newbie
  • Posts: 9
  • 3D CG FreeLancer
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #486 on: November 15, 2006, 08:15:24 PM »
Hi. I have about 20 modes installed from this forum and one of it shows error by integration with PHPBB when I click thumbnail on main page. Error description:
 
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, u.user_description, u.userpic, u.user_country, u.user_gender, c.cat_name, u.username, u.user_email FROM (4images_images i, 4images_categories c) LEFT JOIN phpbb_users u ON (u.user_id = i.user_id) WHERE i.image_id = 122 AND c.cat_id = i.cat_id
Unknown column 'u.user_description' in 'field list'

Warning: Cannot modify header information - headers already sent by (output started at z:\home\sync3d.com\www\includes\db_mysql.php:188) in z:\home\sync3d.com\www\includes\functions.php on line 53

Maybe a suggestion which MOD I mast delete.
3D MONSTER

Offline blank

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #487 on: November 22, 2006, 10:52:43 AM »
i'm trying also to make this mod working, i'm running a galery on 4images 1.7.4 and php 2.0.21. login is working, but not autologin, when i come back on the galery it seems that i'm not login. For the logout, we have to put the session_id in the logout url to bypass the 'invalid_sessions_datta' error. I'm working a the cookies code to find the problem.

Offline macuser

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #488 on: December 07, 2006, 04:43:13 AM »
phpBB ver. 2.0.21
4Images ver. 1.7.4
mysql running on a localhost

Followed all the steps in the installation.txt. I tried logging in to 4Images, I get this error message. Can anyone help me please?

An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.

Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\4images\includes\db_mysql.php:192) in C:\wamp\www\4images\includes\sessions.php on line 302

Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\4images\includes\db_mysql.php:192) in C:\wamp\www\4images\includes\sessions.php on line 303

An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\4images\includes\db_mysql.php on line 116

Offline dosensteck

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #489 on: December 13, 2006, 12:50:28 AM »
bei mir funktioniert auch kein autologin...

beim update von 2.0.19 zu 2.0.20 wurde in der session.php folgendes geändert:

Code: [Select]
#
#-----[ OPEN ]---------------------------------------------
#
includes/sessions.php

#
#-----[ FIND ]---------------------------------------------
# Line 175
list($sec, $usec) = explode(' ', microtime());
mt_srand((float) $sec + ((float) $usec * 100000));
$session_id = md5(uniqid(mt_rand(), true));

#
#-----[ REPLACE WITH ]---------------------------------------------
#
$session_id = md5(dss_rand());

#
#-----[ FIND ]---------------------------------------------
# Line 208
list($sec, $usec) = explode(' ', microtime());
mt_srand(hexdec(substr($session_id, 0, 8)) + (float) $sec + ((float) $usec * 1000000));
$auto_login_key = uniqid(mt_rand(), true);

#
#-----[ REPLACE WITH ]---------------------------------------------
#
$auto_login_key = dss_rand() . dss_rand();

#
#-----[ FIND ]---------------------------------------------
# Line 488
WHERE last_login < ' . (time() - (86400 * (int) $board_config['max_autologin_time']));
$db->sql_query($sql);
}

return true;

#
#-----[ AFTER, ADD ]---------------------------------------------
#
}

/**
* Reset all login keys for the specified user
* Called on password changes
*/
function session_reset_keys($user_id, $user_ip)
{
global $db, $userdata;

$key_sql = ($user_id == $userdata['user_id'] && !empty($userdata['session_key'])) ? "AND key_id != '" . md5($userdata['session_key']) . "'" : '';

$sql = 'DELETE FROM ' . SESSIONS_KEYS_TABLE . '
WHERE user_id = ' . (int) $user_id . "
$key_sql";

if ( !$db->sql_query($sql) )
{
message_die(CRITICAL_ERROR, 'Error removing auto-login keys', '', __LINE__, __FILE__, $sql);
}

$where_sql = 'session_user_id = ' . (int) $user_id;
$where_sql .= ($user_id == $userdata['user_id']) ? " AND session_id <> '" . $userdata['session_id'] . "'" : '';
$sql = 'DELETE FROM ' . SESSIONS_TABLE . "
WHERE $where_sql";
if ( !$db->sql_query($sql) )
{
message_die(CRITICAL_ERROR, 'Error removing user session(s)', '', __LINE__, __FILE__, $sql);
}

if ( !empty($key_sql) )
{
$auto_login_key = dss_rand() . dss_rand();

$current_time = time();

$sql = 'UPDATE ' . SESSIONS_KEYS_TABLE . "
SET last_ip = '$user_ip', key_id = '" . md5($auto_login_key) . "', last_login = $current_time
WHERE key_id = '" . md5($userdata['session_key']) . "'";

if ( !$db->sql_query($sql) )
{
message_die(CRITICAL_ERROR, 'Error updating session key', '', __LINE__, __FILE__, $sql);
}

// And now rebuild the cookie
$sessiondata['userid'] = $user_id;
$sessiondata['autologinid'] = $autologin_id;
$cookiename = $board_config['cookie_name'];
$cookiepath = $board_config['cookie_path'];
$cookiedomain = $board_config['cookie_domain'];
$cookiesecure = $board_config['cookie_secure'];

setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);

$userdata['session_key'] = $auto_login_key;
unset($sessiondata);
unset($auto_login_key);
}

vielleicht kann jemand die änderungen für die 4 images session.php machen?

Offline _Keith_

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://www.scikotics-ccc.com
Re: Integration 4images 1.7.x / phpBB
« Reply #490 on: December 17, 2006, 10:43:41 AM »
So is the dl updated to 2.0.21?

Offline Neil_L12

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #491 on: December 19, 2006, 10:07:45 PM »
Hi, I found an old note from Jan on how to resolve the http:// duplication and 'invalid_session' message on logout.

Just applied it to my sites running the following versions

phpBB v2.0.21
4images v1.7.3

Solves: http://domain.comhttp://sub.domain.com

Open includes/functions.php (phpBB) and add

Code: [Select]
if (stristr($url, 'http://')) { 
  header('Location: ' . $url); 
  exit; 
}

below

Code: [Select]
if (!empty($db)) 

     $db->sql_close(); 
}


If you get 'Invalid_session' during the logout, try to delete in login.php (phpBB).

Code: [Select]
if ($sid == '' || $sid != $userdata['session_id']) 

    message_die(GENERAL_ERROR, 'Invalid_session'); 
}

Jan

Offline Mahonni

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Forum Boher.cat
Re: Integration 4images 1.7.x / phpBB
« Reply #492 on: December 28, 2006, 05:33:02 PM »
It's fine, Neil_L12, but the problem we have is slightly different. The autologin doesn't work when accessing the gallery first. More information about the problem in 1 or 2 pages before this post :P.

Can anyone help us, please?  :cry:

Offline fldave850

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #493 on: January 17, 2007, 10:38:52 PM »
I am getting the following message when I log on through 4images:

-----------------------------------------------------------------------------------------------------------------------------------------------------
Not Found
The requested URL /forum/http://www.ga-amber.com/gallery/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

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

Once I am logged on and try to log out through 4images I get the following error message once it redirects to phpbb:

--------------------------------
General Error
 
Invalid_session

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

Other than these 2 errors, I don't see anything else wrong.

Any suggestions.


Thanks,

Dave

Offline neonplayer

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #494 on: February 04, 2007, 03:29:51 PM »
Hier sind nun die angekündigten Dateien für die Integration von 4images 1.7 und phpBB. Eine Installationsanleitung ist im Zip enthalten (Wichtig: Die Installations-Hinweise lesen!).
Die Integration ist experimentell. Bugs bitte hier posten.
-----
Here are the files for the integration of 4images 1.7 and phpBB. Instructions for installation are included (Important: Please read the installation notes!).
The integration experimental. Please post Bugs here.

Download: integration_phpbb.zip

----

If you have problems with redirecting back to the gallery after login (404 Error), try this:
http://www.4homepages.de/forum/index.php?topic=1658.msg31328#msg31328


Why this link doesn't work ?

If you have problems with redirecting back to the gallery after login (404 Error), try this:
http://www.4homepages.de/forum/index.php?topic=1658.msg31328#msg31328

I have that problem and logout problem also . When i logout , phpbb said invalid session ! . How can i do it please solve me . I think i only got that 2 error. Please help me