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

0 Members and 1 Guest are viewing this topic.

Offline Gabi

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.gabis-traum.de
Cockies-Einstellung im phpbb
« Reply #180 on: February 28, 2003, 03:22:07 PM »
Quote from: Jan
So einfach gehts das nicht. Dazu musst Du auch den entsprechenden PHP Code hinzufügen. Den Abschnitt findest glaube ich in der phpBB-Datei includes/page_header.php.

Jan


Hier kannst du einstellen, was für Cookies zum Browser gesendet werden. Meistens stimmen die Standardeinstellungen. Solltest du sie ändern müssen, tue es mit Bedacht, ansonsten kann sich niemand mehr im Forum einloggen.


Cookie-Domain  ????? z.Zt.    http://www.model-voting.de
Cookie-Name  ?????    z.Zt.    phpbb2mysql
Cookie-Pfad  ?????      z.Zt:    /


Was muss ich hier einstellen ???

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #181 on: February 28, 2003, 04:40:08 PM »
Nee, nee. So einfach ist PHP dann doch nicht als das man einfach Code von einer Software in die andere kopieren kann. Vielleicht solltest Du ein neues Thema eröffnen und jemand mit etwas PHP-Kenntnissen hat auch Interesse an einer solchen Modifikation und hilft Dir dabei.

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

Offline Gabi

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.gabis-traum.de
Integration 4images 1.7 / phpBB
« Reply #182 on: February 28, 2003, 05:55:47 PM »
Quote from: Jan
Nee, nee. So einfach ist PHP dann doch nicht als das man einfach Code von einer Software in die andere kopieren kann. Vielleicht solltest Du ein neues Thema eröffnen und jemand mit etwas PHP-Kenntnissen hat auch Interesse an einer solchen Modifikation und hilft Dir dabei.

Jan


Danke für den Tip. Na dann schau mer mal obs noch jemand haben will :-)

lg
Gabi

Offline Gabi

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.gabis-traum.de
und nu auf deutsch ?????
« Reply #183 on: February 28, 2003, 07:44:45 PM »
Quote from: Jan
If the user has cookies enabled, he should stay logged in. If not, you have to append the session id to the link.

For phpBB, open includes/page_header.php and add this line
Code: [Select]
'U_4IMAGES' => append_sid('<the_url_to_4images>'),
below this line
Code: [Select]
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
After that, you can use {U_4IMAGES} in your phpBB templates, i.e.
Code: [Select]
<a href="{U_4IMAGES}">Go to the Gallery</a>

The same now for 4images. Add in includes/page_header.php this line
Code: [Select]
"url_phpbb" => $site_sess->url("<your_url_to_phpBB"),
below this line
Code: [Select]
"url_home" => $site_sess->url(ROOT_PATH."index.php"),
Now you can use {url_phpbb} in the 4images templates, ie
Code: [Select]
<a href="{url_phpbb}">Go to the Forum</a>
Jan


Löst das mein Prob, das ich immer wieder abgemeldet bin wenn ich vom Forum zurück in die Gallerie gehe ???? Wenn ja kannst du mir das noch mal in detsch übersetzen  :oops:

lg

Gabi

Offline Gabi

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.gabis-traum.de
Das funzt auch net
« Reply #184 on: February 28, 2003, 08:57:37 PM »
Habe mir den Cod ins phpbb 2.0.4 eingebaut. Wenn ich nun vom Forum zurückgehen will, wird wieder ein falscher Link erzeugt der so aussieht :

http://www.model-voting.de/forum/<http://www.model-voting.de>?sid=497a33eea731190bf961784ace9c9dfc

Dieses Prob hatten wir ja schon mal in ähnlicher Weise gehabt und dann durch den Hack beseitigt........Ich weis nicht mehr weiter  :(  scheinbar funzt das alls net mit der neusen Version von phpbb.


Quote from: Jan
If the user has cookies enabled, he should stay logged in. If not, you have to append the session id to the link.

For phpBB, open includes/page_header.php and add this line
Code: [Select]
'U_4IMAGES' => append_sid('<the_url_to_4images>'),
below this line
Code: [Select]
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
After that, you can use {U_4IMAGES} in your phpBB templates, i.e.
Code: [Select]
<a href="{U_4IMAGES}">Go to the Gallery</a>

The same now for 4images. Add in includes/page_header.php this line
Code: [Select]
"url_phpbb" => $site_sess->url("<your_url_to_phpBB"),
below this line
Code: [Select]
"url_home" => $site_sess->url(ROOT_PATH."index.php"),
Now you can use {url_phpbb} in the 4images templates, ie
Code: [Select]
<a href="{url_phpbb}">Go to the Forum</a>
Jan

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #185 on: March 01, 2003, 11:18:24 AM »
Sieht so aus als hättest Du die spitze Klammer < noch am Anfang der URL stehen
Code: [Select]
'U_4IMAGES' => append_sid('<the_url_to_4images>'),
Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Gabi

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.gabis-traum.de
Wie dooooooofffff
« Reply #186 on: March 01, 2003, 02:42:09 PM »
Quote from: Jan
Sieht so aus als hättest Du die spitze Klammer < noch am Anfang der URL stehen
Code: [Select]
'U_4IMAGES' => append_sid('<the_url_to_4images>'),
Jan


Mein Gott Jan,

ich glaube das ich jetzt gerade am liebsten im Erdboden versinken würde.....wie peinlich aber auch..... :oops:  :oops:  :oops:

Logo das wars auch. Nun bleibe ich eingeloggt wenn ich vom Forum zurück gehe.
Nun hab ich nur noch ein Prob,dann funzt erst mal alles. Gibt´s noch nen Trick das die Leute eingeloggt bleiben und sich net bei jedem Seitenbesuch neu anmelden müssen ?????

Viele liebe Grüße sendet Dir

Gabi

Offline party-cam.org

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • http://www.party-cam.org
Integration 4images 1.7 / phpBB
« Reply #187 on: March 01, 2003, 03:29:47 PM »
Quote from: Jan
Maybe this will help:

Search in "admin/usergroups.php" for
Code: [Select]
$user_groups = (isset($HTTP_POST_VARS['user_groups'])) ? $HTTP_POST_VARS['user_groups'] : "";
and add after
Code: [Select]
$user_id = intval($HTTP_POST_VARS['user_id']);

Jan


Hab ich probiert - funkt aber immernoch nicht...  :cry:

nochmal das Prob: zugehörigkeit der Benutzer zu Usergroups kann nicht bearbeitet werden.
ich mach das zur zeit schön umständlich per phpmyadmin  :oops:

Offline Gabi

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.gabis-traum.de
Integation von bestehender Datenbank in phpbb
« Reply #188 on: March 02, 2003, 12:05:49 PM »
Quote from: Jan
Try to change in "includes/constants.php"
Code: [Select]
define('ADMIN', 1);
back to
Code: [Select]
define('ADMIN', 9);
If you have already installed 4images, you have to go to the database and change the field "user_level" in the user table back to 9 for all current 4images admins. Hope this will work.

Jan


Hy Jan,

muß dich noch mal nerven. Nachdem die Integration vonn phpbb in meiner neuen Seite so gut geklappt hat, möchte ich dies auch für meine bestehende Homepage http://www.foto-place.de machen. Schade das ich fast null Englisch kann. Wenn ich das richtig verstanden habe geht das mit diesem Script ????


Index: includes/constants.php
===================================================================
diff -Naur includes/constants.php
--- includes/constants.php   2002-07-29 06:04:04.000000000 +0800
+++ includes/constants.php   2002-10-19 02:46:37.000000000 +0800
@@ -178,4 +178,16 @@
define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results');
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');

+// Album integration
+$album_table_prefix = '4images_';
+//define('ALBUM_INTEGRATED', 0); // Integrated album off
+define('ALBUM_INTEGRATED', 1); // Integrated album on
+define('ALBUM_USERS_TABLE', $album_table_prefix.'users');
+
+// Album User levels
+define('ALBUM_GUEST', -1);
+define('ALBUM_USER_AWAITING', 1);
+define('ALBUM_USER', 2);
+define('ALBUM_ADMIN', 9);
+
?>
Index: includes/usercp_activate.php
===================================================================
diff -Naur includes/usercp_activate.php
--- includes/usercp_activate.php   2002-05-20 01:21:38.000000000 +0800
+++ includes/usercp_activate.php   2002-10-19 03:25:49.000000000 +0800
@@ -56,6 +56,19 @@
      {
         message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql_update);
      }
+      if ( defined('ALBUM_INTEGRATED') )
+      {
+         if (ALBUM_INTEGRATED == 1)
+         {
+            $album_sql = "UPDATE " . ALBUM_USERS_TABLE . "
+               SET user_level = " . ALBUM_USER . "
+               WHERE user_id = " . $row['user_id'] . " AND user_activationkey = '" . $HTTP_GET_VARS['act_key'] . "'";
+            if ( !($result = $db->sql_query($album_sql)) )
+            {
+               message_die(GENERAL_ERROR, 'Could not update album users table', '', __LINE__, __FILE__, $sql_update);
+            }
+         }
+      }

      if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN && $sql_update_pass == '' )
      {
Index: includes/usercp_register.php
===================================================================
diff -Naur includes/usercp_register.php
--- includes/usercp_register.php   2002-09-28 12:21:18.000000000 +0800
+++ includes/usercp_register.php   2002-10-18 02:57:36.000000000 +0800
@@ -440,6 +440,13 @@
         {
            message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
         }
+         $album_sql = "UPDATE " . ALBUM_USERS_TABLE . "
+            SET " . $album_username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_homepage = '" . str_replace("\'", "''", $website) . "', user_showemail = $viewemail, user_invisible = " . (1 - $allowviewonline) . "
+            WHERE user_id = $user_id";
+         if ( !($result = $db->sql_query($album_sql)) )
+         {
+            message_die(GENERAL_ERROR, 'Could not update album users table', '', __LINE__, __FILE__, $sql);
+         }

         if ( !$user_active )
         {
@@ -499,6 +506,8 @@
         //
         $sql = "INSERT INTO " . USERS_TABLE . "   (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
            VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
+         $album_sql = "INSERT INTO " . ALBUM_USERS_TABLE . "   (user_id, user_name, user_password, user_email, user_showemail, user_allowemails, user_invisible, user_joindate, user_lastaction, user_lastvisit, user_comments, user_homepage, user_icq, user_level, user_activationkey)
+            VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', $viewemail, 1, " . (1 - $allowviewonline) . ", " . time() . ", " . time() . ", " . time() . ", 0, '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $icq) . "', ";
         if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )
         {
            $user_actkey = gen_rand_string(true);
@@ -506,10 +515,14 @@
            $key_len = ( $key_len > 6 ) ? $key_len : 6;
            $user_actkey = substr($user_actkey, 0, $key_len);
            $sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')";
+            $user_level = ALBUM_USER_AWAITING;
+            $album_sql .= $user_level . ", '" . str_replace("\'", "''", $user_actkey) . "')";
         }
         else
         {
            $sql .= "1, '')";
+            $user_level = ALBUM_USER;
+            $album_sql .= $user_level . ", '')";
         }

         if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) )
@@ -517,6 +530,11 @@
            message_die(GENERAL_ERROR, 'Could not insert data into users table', '', __LINE__, __FILE__, $sql);
         }

+         if ( !($result = $db->sql_query($album_sql, BEGIN_TRANSACTION)) )
+         {
+            message_die(GENERAL_ERROR, 'Could not insert data into photo album users table', '', __LINE__, __FILE__, $album_sql);
+         }
+
         $sql = "INSERT INTO " . GROUPS_TABLE . " (group_name, group_description, group_single_user, group_moderator)
            VALUES ('', 'Personal User', 1, 0)";
         if ( !($result = $db->sql_query($sql)) )


Könntest du mir vieleicht ein wenig erklären wie ich dabei vorgehen muß ??????? Büddde büddde
 lg

Gabi

Offline Aho

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #189 on: March 02, 2003, 11:16:43 PM »
Quote from: Aho
hat einer eine geänderte header.html für subsilver parat ?


interesse besteht immer noch !

danke.

Offline BugsBunny

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://www.ninaonline.org
HILFE
« Reply #190 on: March 03, 2003, 06:18:31 AM »
Die Integration hat zwar geklaptt ... aber folgendes Problem:

wenn ich mich im phpBB mit dem User anmelde funktioniert alles
blendend - auch die UserIntegration im 4images bloss
wenn ich versuche mich über 4images anmelde werde ich auf
die

4homepages.de  weitergeleitet .... (zufälligerweise gleicher User und PW) deswegen auch ohne Probleme

WAS IS DA DANEBEN GEGANGEN?!?!?!? ich habe die Templates kontrolliert und auch die constants.php noch mal kontrolliert es wurde
alles genau so wie im MOD beschrieben gemacht ....

wo liegt der Fehler?!?!?!?!

lg Flo
mfg

Flo alias BugsBunny

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #191 on: March 03, 2003, 08:34:38 AM »
Überprüfe nochmal Schritt 3 der Installation:
Quote
3. Öffne sessions.php und passe den Konfigurationsteil am
     Dateianfang an.

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

Offline BugsBunny

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://www.ninaonline.org
vielleicht bin ich ja blöd .... :oops:
« Reply #192 on: March 03, 2003, 09:00:42 AM »
aber bei mir in der Installationsanleitung steht folgendes drin:

Quote
3. Öffne sessions.php und passe den Konfigurationsteil am Dateianfang an.
     ********************************************************
     Open sessions.php and edit the configuration part at the top
     of the file.

  4. Öffne includes/constants.php und ändere folgende Abschnitte:

 

was bitte soll ich in der sessions.php anpassen?!?!?!?!?

lg Flo

PS: ich muss dazu sagen ich kann nicht wirklich PHP - bin nur so ein kleiner Wichtigtuer der sich alles irgendwie zusammenstoppelt!
mfg

Flo alias BugsBunny

Offline BugsBunny

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://www.ninaonline.org
hab jetzt wenigstens ein Problem gelöst
« Reply #193 on: March 03, 2003, 09:43:47 AM »
hatte zwar vergessen das zu ändern:

Quote
// Set here the URL to your phpBB forum. WITH trailing slash!
$url_app = "http://www.4homepages.de/forum/";


habs jetzt richtig gestellt auf:

http://www.ninaonline.org/homepage/board_new/

aber jetzt krieg ich eine 404-error meldung!

mann jetzt funzt gar nix mehr .... wenn ich mich im 4images abmelden will geht er ins Board und bringt diese Meldung

Quote
Allgemeiner Fehler
 
Invalid_session

 


lg Flo
mfg

Flo alias BugsBunny

Offline BugsBunny

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://www.ninaonline.org
damit sich auch Windows-User auskennen
« Reply #194 on: March 03, 2003, 11:23:35 AM »
Damit sich auch Windows User auskennen habe ich die

Installation.txt für die Integration etwas modifziert (nur die Unix-Zeilenumbrüche (die kann Windows nämlich nicht lesen) entfernt.

ACHTUNG DIESE INSTALLANLEITUNG GIBT ES NUR AUF DEUTSCH!!!!

lg Flo

URL: http://www.ninaonline.org/Installation.txt
mfg

Flo alias BugsBunny