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

0 Members and 2 Guests are viewing this topic.

Offline HMMaster

  • Pre-Newbie
  • Posts: 7
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #90 on: December 31, 2002, 01:47:03 AM »
DB Error: Bad SQL Query: UPDATE 4images_phpbb_sessions SET session_user_id = -1, session_start = 1041299286, session_time = 1041299286, session_page = 0, session_logged_in = 0 WHERE session_id = '' AND session_ip = 'cabc0a05'
Table 'the1985comm.4images_phpbb_sessions' doesn't exist

DB Error: Bad SQL Query: INSERT INTO 4images_phpbb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) VALUES ('7cfccfb8f3c32187b9f34d9c00e5b271', -1, 1041299286, 1041299286, 'cabc0a05', 0, 0)
Table 'the1985comm.4images_phpbb_sessions' doesn't exist

Warning: Cannot add header information - headers already sent by (output started at /home/t/the1985comm/public_html/album/includes/db_mysql.php:188) in /home/t/the1985comm/public_html/album/includes/sessions.php on line 325

Warning: Cannot add header information - headers already sent by (output started at /home/t/the1985comm/public_html/album/includes/db_mysql.php:188) in /home/t/the1985comm/public_html/album/includes/sessions.php on line 326

DB Error: Bad SQL Query: SELECT u.user_id, u.user_level, u.username, u.user_allow_viewonline, s.session_user_id, s.session_time, s.session_ip FROM 4images_phpbb_users u, 4images_phpbb_sessions s WHERE u.user_id = s.session_user_id AND (s.session_time >= 1041298986 OR u.user_session_time >= 1041298986) ORDER BY u.user_id ASC, s.session_ip ASC
Table 'the1985comm.4images_phpbb_users' doesn't exist

DB Error: Bad SQL Query: SELECT DISTINCT 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, c.cat_name, u.username FROM 4images_images i, 4images_categories c LEFT JOIN 4images_phpbb_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id ORDER BY RAND()
Table 'the1985comm.4images_phpbb_users' doesn't exist

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, c.cat_name, u.username FROM 4images_images i, 4images_categories c LEFT JOIN 4images_phpbb_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 1) ORDER BY i.image_date DESC LIMIT 3
Table 'the1985comm.4images_phpbb_users' doesn't exist

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/t/the1985comm/public_html/album/includes/db_mysql.php on line 116

Using 4images 1.7 and phpBB 2.0.3

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #91 on: December 31, 2002, 09:31:44 AM »
Your table names are wrong, ie "4images_phpbb_sessions" must be "phpbb_sessions". Check your settings in includes/constants.php.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #92 on: December 31, 2002, 09:36:20 AM »
@manica:
Alle Änderungen beziehen sich auf 4images. Nach der Integration nutzt 4images die User-tabelle von phpBB, d.h. alle User die sich vorher bei 4images registriert haben, existieren nicht mehr.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline HMMaster

  • Pre-Newbie
  • Posts: 7
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #93 on: December 31, 2002, 12:50:02 PM »
i changed it already.


Code: [Select]
if (!defined('ROOT_PATH')) {
  die("Security violation");
}

// If 4images has problems to find out the right URL, define it here.
// define('SCRIPT_URL', 'http://www.yourdomain.com/4images'); //no trailing slash

// Table names
define('CATEGORIES_TABLE', $table_prefix.'categories');
define('COMMENTS_TABLE', $table_prefix.'comments');
define('GROUP_ACCESS_TABLE', $table_prefix.'groupaccess');
define('GROUP_MATCH_TABLE', $table_prefix.'groupmatch');
define('GROUPS_TABLE', $table_prefix.'groups');
define('IMAGES_TABLE', $table_prefix.'images');
define('IMAGES_TEMP_TABLE', $table_prefix.'images_temp');
define('LIGHTBOXES_TABLE', $table_prefix.'lightboxes');
define('POSTCARDS_TABLE', $table_prefix.'postcards');
define('SESSIONS_TABLE', $table_prefix.'phpbb_');
define('SESSIONVARS_TABLE', $table_prefix.'sessionvars');
define('SETTINGS_TABLE', $table_prefix.'settings');
define('USERS_TABLE', $table_prefix.'phpbb_');
define('WORDLIST_TABLE', $table_prefix.'wordlist');
define('WORDMATCH_TABLE', $table_prefix.'wordmatch');


i tried both phpbb_sessions and phpbb_

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #94 on: December 31, 2002, 04:33:39 PM »
Thats wrong, please read the Installation.txt carefully. It must be
Code: [Select]
define('SESSIONS_TABLE', 'phpbb_sessions');
define('USERS_TABLE', 'phpbb_users');

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline HMMaster

  • Pre-Newbie
  • Posts: 7
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #95 on: January 01, 2003, 02:22:26 AM »
tried but still the same

Offline manica

  • Newbie
  • *
  • Posts: 41
    • View Profile
Nix geht mehr
« Reply #96 on: January 01, 2003, 05:56:55 AM »
Erst dachte ich das ich mich als Admin nur nicht mehr ins phpbb einloggen kann, aber ich stelle gerade fest das alle User sich nicht mehr einloggen können.
Aber komischerweise geht es wenn ich auch einloggen um private Nachrichten zu lesen gehe.

Offline manica

  • Newbie
  • *
  • Posts: 41
    • View Profile
irgendwas stimmt nicht
« Reply #97 on: January 01, 2003, 10:19:04 PM »
Also bei mir geht es jetzt, aber bei den Usern klappt es nicht. Wenn die bei 4images auf einloggen gehen kommt kein Fenster vom Forum.

Wird das noch behoben oder liegt es an Cookies oder sowas.

Offline Andiz

  • Pre-Newbie
  • Posts: 5
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #98 on: January 02, 2003, 11:44:07 AM »
Hallo,

ich habe folgendes Problem:

Ich schaffe es nicht mehr mich einzuloggen! Weder 4images noch phpBB2 nimmt meine Daten an! Wenn ich auf Abschicken gedrückt habe, komme ich wieder zu genau der gleichen Seite wie vorher!

Kann das an den Cookies liegen?

Bei der Integration muss man ja irgendwo nen sessionname angeben. Was genau ist damit gemeint?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #99 on: January 02, 2003, 11:55:40 AM »
Ich habe es schon ein paar Mal erklärt. Nach der Integration nutzt 4images die Usertabelle vov phpBB. D.h. man muss sich mit den Daten des phpBB einloggen. Alle existierenden User von 4images können nicht mehr verwendet werden.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Andiz

  • Pre-Newbie
  • Posts: 5
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #100 on: January 02, 2003, 12:10:41 PM »
Ja das ist mir ja auch klar! Aber ich kann mich im Forum ja auch nicht mehr einloggen!


Wie finde ich heraus, wie der Sessionname vom phpBB2 ist? Ist das der Name des Cookies, den man im Administartionsbereich vom phpBB2 angibt?

Offline Andiz

  • Pre-Newbie
  • Posts: 5
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #101 on: January 02, 2003, 12:54:28 PM »
Also, ich habe jetzt mal per phpMyAdmin in der DB den Cookienamen auf "sid" umgeändert. Was soll ich sagen, jetzt klappt alles.

Vielleicht wäre es ganz gut, wenn in der sessions.php beim Mod steht, das damit der Cookiename vom phpBB2 gemeint ist.

Offline HMMaster

  • Pre-Newbie
  • Posts: 7
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #102 on: January 02, 2003, 04:28:23 PM »
Jan, can you help? My users are complaining me... :(

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #103 on: January 03, 2003, 10:32:43 AM »
Be sure that you define the correct table names in 4images includes/constants.php
Code: [Select]
define('SESSIONS_TABLE', 'phpbb_sessions');
define('USERS_TABLE', 'phpbb_users');

That must be the the table name of the session and user table of phpBB.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Psyao

  • Pre-Newbie
  • Posts: 6
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #104 on: January 03, 2003, 12:46:17 PM »
Is there a way to give a user admin access to 4images without giving him admin access to phpbb2 with that mod?