4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: Jan on August 29, 2002, 05:32:54 PM



Title: Integration 4images 1.7.x / phpBB
Post by: Jan on August 29, 2002, 05:32:54 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 (http://www.4homepages.de/forumdl/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


Title: Integration 4images 1.7 / phpBB
Post by: bag53 on August 30, 2002, 09:27:11 AM
You changed:

1
2
3
4
5

define('GUEST', -1);
define('USER_AWAITING', 1);
define('USER', 2);
define('ADMIN', 9);


to

1
2
3
4
5

define('GUEST', -1);
define('USER_AWAITING', -1);
define('USER', 0);
define('ADMIN', 1);


In the installation notes you said:

Quote  [Expand]
We recommend you to use integration only with fresh new installations of 4images because of the following reason: In the 4images user-table User A has the User-ID "1". After integration 4images will use the user-table of phpBB. There, the User A has the User-ID "2" and User B the User-ID "1". All images, comments and usergroup memberships are now "owned" by User B.


If I created a user and set it to "User (Not Activated)" before I installed the mod, that user will have User-ID "1". After the mod install, that same user will still be User-ID "1" which is admin rights. Correct? Then I could go through the users and set them to the correct level.

This won't solve the comment and image ownership problems, but I would rather delete all comments then force everyone to reregister. I only have two images uploaded by someone else also.


Title: Integration 4images 1.7 / phpBB
Post by: Jan on August 30, 2002, 09:42:46 AM
No, User-ID is not User-Level. User-ID is the unique ID generated in the database. See the tabe 4images_user -> user_id.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: bag53 on August 30, 2002, 09:56:39 AM
Ahh. Ok, I get it now. I didn't think it would be that simple.


Title: Integration 4images 1.7 / phpBB
Post by: dabri on August 30, 2002, 10:35:19 AM
Hallo Jan,

wollte mich nur bedanken! Es klappt prima mit der Integration!

Selbst automatisches Login wird von beiden System erkannt. Mehr als ich erwartet habe.  :wink:  Respekt für Deine Arbeit!!


Danke & Gruß Daniel


Title: Integration 4images 1.7 / phpBB
Post by: mahou on August 30, 2002, 02:54:53 PM
Das täte mich auch interessieren. Mein 4images ist relativ neu. Die meisten User sind eh aus dem Board. Die könnte ich alle löschen und anschließend wären sie ja wieder da. Was aber ist mit mir als Admin. Ich meine ich bin Admin im Board und im Fotoalbum, allerdings mit verschiedenen Passwörtern ?

Tina


Title: Integration 4images 1.7 / phpBB
Post by: Jan on August 30, 2002, 03:06:50 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


Title: Integration 4images 1.7 / phpBB
Post by: mahou on August 30, 2002, 03:08:43 PM
Aha, demnach lösche ich mich auch im Fotoalbum und erscheine anschließend wieder.
Danke für die schnelle Antwort.

Tina


Title: Integration 4images 1.7 / phpBB
Post by: Warhead on August 31, 2002, 09:26:33 AM
HipHipHurra!!!
Danke Jan, es klappt und alle Benutzer im Forum sind mehr als zufrieden, vorallem weil es Kinder sind, die mein Forum besuchen, hat es gefreut, dass sie sich jetzt nur einmal registrieren müssen!!! :D  :D


Title: Help with phpBB MOD
Post by: giffy007 on August 31, 2002, 03:56:45 PM
Integration works only if the tables of 4images and
     phpBB are on the same database.

How do i do this please , can i just install the both of them using the same  database ? Install one and then the other ? using the same data base name.

Giffy


Title: Re: Help with phpBB MOD
Post by: Jan on August 31, 2002, 04:02:30 PM
Quote from: giffy007   [Expand]
How do i do this please , can i just install the both of them using the same  database ? Install one and then the other ? using the same data base name.

Yes

Jan


Title: Integration 4images 1.7 / phpBB
Post by: giffy007 on August 31, 2002, 04:07:29 PM
Is there any way of keeping the old members ? or will they be lost ?

giffy


Title: Integration 4images 1.7 / phpBB
Post by: Cabbage on August 31, 2002, 04:35:10 PM
You'll probably need another script that adds the users in the current 4images table to the phpbb_users table.  Then you can run the integration script.  Luckily I'm just getting my 4images database populated so i only have one user - the administrator which is the same as the one in phpBB.

I hope this works, I'll try it out later this weekend


Title: Integration 4images 1.7 / phpBB
Post by: giffy007 on August 31, 2002, 04:41:51 PM
Hi thanks Cabbage

I just took a look at your web site what is this (message bored ) hmmm

nice site

giffy


Title: Integration 4images 1.7 / phpBB
Post by: Cabbage on August 31, 2002, 07:21:36 PM
Jimmie's Chicken Shack is a rock band from Annapolis, Maryland, USA.  Their last album Bring Your Own Stereo was released in Germany also and they did a very short tour their in 2000.

I'm going to attempt the integration right now.
The board is here
http://www.jimmieschickenshack.net/phpBB2

The gallery is here
http://www.jimmieschickenshack.net/4images


Title: Integration 4images 1.7 / phpBB
Post by: giffy007 on August 31, 2002, 09:06:50 PM
Is it me or is it supposed to (message board) just thought i mention it

I take a look at your gallery

giffy


Title: Integration 4images 1.7 / phpBB
Post by: Jan on September 01, 2002, 09:39:26 AM
Sorry guys, please do chit chat in the right forum (http://www.4homepages.de/forum/viewforum.php?f=7).
Thanks,
Jan


Title: change userid
Post by: Myggan on September 01, 2002, 10:06:32 AM
Hi
I look for help to change the userid in 4images, but dont know if i only can change id in database where there is a post user_id found 12 pos. to change..
How many post in database use userid ?
i want to change to the same in the phpbb2 forum.

OR is there someone who is planning some sort of script to convert userid in the database ?


Title: Phpbb MOD
Post by: giffy007 on September 01, 2002, 05:38:11 PM
Ok Jan , he is what we got ,
1)when i register in 4images i get straight in the forum , can this be changed so i go to the index of 4images instead ?

Or do i have to change the templates in phpbb

2) when i log out it goes straight to the index page of the forum can this be change to ?

Now all this is in one data base can i just add things from 4images and put them into phpbb templates ?

giffy


Title: Login to admin
Post by: giffy007 on September 03, 2002, 07:52:10 AM
When i try to login into 4images admin enter user/password it takes me to the phpbb login ???

Is it me , or is this a bug ?

giffy


Title: Integration 4images 1.7 / phpBB
Post by: Jan on September 03, 2002, 09:46:05 AM
No, thats no bug. Login through the gallery and click on the Control Panel Link at the bottom of the site.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: giffy007 on September 03, 2002, 04:29:25 PM
Ok thanks , i got it now when i logged in into the forum admin then i have to go back into the 4images admin and then i am logged into 4images , ok

What about the logout of 4images then , is there any way i can change it to the log out page of 4images , or can i add a special page or template ??????????

Giffy


Title: Integration 4images 1.7 / phpBB
Post by: Jan on September 03, 2002, 04:33:59 PM
Quote from: giffy007   [Expand]
What about the logout of 4images then , is there any way i can change it to the log out page of 4images , or can i add a special page or template ??????????

No, sorry.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: giffy007 on September 07, 2002, 11:59:46 AM
Will there be something to take the old members and put them into this new data base  :?:

Is this the final version or will there be more added  :?:

Giffy


Title: Integration 4images 1.7 / phpBB
Post by: Jan on September 07, 2002, 12:46:41 PM
Quote  [Expand]
Will there be something to take the old members and put them into this new data base

No, thats the reason why we said that you should use this only with new installations of 4images. You should say to your users that they have to register to your forum to get access to 4images.

Quote  [Expand]
Is this the final version or will there be more added

What should be more added?

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Aho on September 08, 2002, 09:25:18 PM
kann man das ganze auch irgendwo online bewundern ?


Title: Integration 4images 1.7 / phpBB
Post by: Nicky on September 09, 2002, 07:29:56 PM
was bewundern ?
intergration ?

diese funktioniert tadellos..
ich habs auf meine seite schon laufen, nur diese ist derzeit für rest der welt nicht zum einsehen... ;)


Title: Integration 4images 1.7 / phpBB
Post by: Nicky on September 10, 2002, 04:21:34 AM
jetzt schon:
http://www.modellspielzeug.at/
bzw.
http://www.modellspielzeug.at/forum/


Title: Integration 4images 1.7 / phpBB
Post by: anantchai on September 12, 2002, 07:18:37 AM
would this mod will update to phpbb whenever the phpbb updated?


Title: Integration 4images 1.7 / phpBB
Post by: giffy007 on September 12, 2002, 08:03:46 PM
Maybe a bug in the phpbb mod , cannot seem to get the lightbox link to work , when logged in and i click on the lightbox link it says (error template) ive got to register

Can you help :?:

giffy


Title: Integration 4images 1.7 / phpBB
Post by: Nicky on September 12, 2002, 09:37:14 PM
@giffy007,
just register your self on www.modellspielzeug.at .
after login put some pics into lightbox, you will see that there is no bug ;)


Title: Integration 4images 1.7 / phpBB
Post by: giffy007 on September 12, 2002, 10:01:38 PM
Ok checked out the site ,  i see no buttons or anything to see if i can download the image in the lightbox on this site, when we click on ours it just refeshes the page and no download box appears ?Just one thing how do i get the thumbnails of new images in the index of phpbb ?

One more thing about the permissions ,Every thing works if i set the permissions to all but if i set them to private or reg then they cannot see or download  images and cat ???

giffy


Title: Integration 4images 1.7 / phpBB
Post by: Nicky on September 13, 2002, 12:04:25 AM
@giffy,

Quote from: giffy007   [Expand]
Maybe a bug in the phpbb mod , cannot seem to get the lightbox link to work , when logged in and i click on the lightbox link it says (error template) ive got to register

Can you help :?:
giffy


sorry,
but
what have this now with mine download buttons ?
there are hidden ;)

other questions, please post into random pic thread..
http://www.4homepages.de/forum/viewtopic.php?t=1703


Title: Integration 4images 1.7 / phpBB
Post by: giffy007 on September 13, 2002, 07:45:35 AM
I just wanted to see if the download button works on your site thats all , it only refreshes the page in my setup , where can i find the problem , what about the other things i mentioned. Permissions do they work as the 4images gallery , members and private permissions its seems i can only see them when i set it to ALL if i set it to REG then nothing appears strange !! Any help would be great !

And i have posted a question in the random image sticky but no answer yet maybe you could tell me how ?

giffy


Title: Integration 4images 1.7 / phpBB
Post by: Nicky on September 13, 2002, 01:49:46 PM
ohhh,

you must register your self again, to see the downloadbuttons ..

about more pics on index, i'll answer into other thread


Title: Integration 4images 1.7 / phpBB
Post by: Zazau on September 14, 2002, 03:18:28 PM
Sorry dass ich nicht englisch schreibe... mich würd sowieso niemand verstehen  :)

Ok, ich hab heute 4images komplett frisch installiert und dann die phpbb Integration drübergespielt. Wenn ich nun im Forum eingeloggt bin und ins 4images wechsle bin ich auch dort automatisch eingeloggt, aber wenn ich mich über 4images ausloggen will oder mich ins 4images Admin-Panel einloggen will komm ich zur phpBB Index-Seite. Ich muss aber dazu sagen dass ich in phpBB nicht als Admin eingetragen bin. Kann das vielleicht schuld sein? Muss ich sowohl im phpBB als auch im 4images Admin sein um ins 4images Admin-Panal zu kommen? Denn bevor ich die phpBB-Integration eingespielt habe bin ich ohne Probleme ins Admin-Menü gekommen.

Danke jetzt schon für eure Hilfe!

mfG
Zazau


Title: Integration 4images 1.7 / phpBB
Post by: Nicky on September 14, 2002, 03:37:50 PM
natürlich musst du in beiden admin sein...


Title: Integration 4images 1.7 / phpBB
Post by: Zazau on September 14, 2002, 04:01:46 PM
Danke für die schnelle Antwort!

mfG
zazau


Title: Integration 4images 1.7 / phpBB
Post by: THC-Lollipop on September 15, 2002, 02:04:26 AM
Ich hab das noch nicht so ganz gecheckt ... wie bei beiden Admin? Ich habe nämlich das gleiche Problem. Immer wenn ich mich bei 4images einloggen will, komme ich zum Login von phpbb und muss dort nochmal die Daten eingeben, das gleiche passiert beim Logout.

Geht das jetzt nur noch so rum? Oder hab ich was falsch gemacht?

Das einzige was ich verändert habe ist, dass ich meine eigene User-ID von 2 wieder auf 1 gestellt habe, damit meine hochgeladenen Bilder auf der Galerie auch meinen Namen tragen und nicht "Gast"

kann mir jmd. helfen?

MfG David


Title: Integration 4images 1.7 / phpBB
Post by: Jan on September 15, 2002, 09:16:06 AM
Der Control Panel Login finktioniert leider nach der Integration nicht mehr. Am bsten loggst Du Dich innerhalb der Galerie ein und klickst dann unten auf den CP-Link.

Gruß Jan


Title: Integration 4images 1.7 / phpBB
Post by: THC-Lollipop on September 15, 2002, 09:39:21 AM
Hhhhmmm, was heisst den bei Dir innerhalb der Galerie? Ich kann mich schon im Forum anmelden und bin dann auch Admin bei 4images -> das funktinoiert ja alles.

Nur spült mich die user_box von 4images immer zum login bzw. logut des forums. und das ist nicht nur so bei mir als Admin sondern auch bei den normalen Usern. Ist halt irgendwie blöd. Müssen sich erst im Forum einloggen und dann müsste ich da im Forum einen Link zurück auf die Galerie setzten.

Ntürlich könnte ich auch die ganze user_box entfernen, aber dann ist der Leuchtkasten auch weg, und den wollte ich eigentlich behalten. Kann man das nicht irgenwie machen, dass das über das 4images-login auch funktioniert?

MfD David


Title: Integration 4images 1.7 / phpBB
Post by: Jan on September 15, 2002, 10:01:48 AM
Der Login über die Galerie sollte schon funktionieren. Hast Du das Template erstzt?

Gruß Jan


Title: Integration 4images 1.7 / phpBB
Post by: THC-Lollipop on September 15, 2002, 10:09:10 AM
Jo, hab ich ersetzt, in der user_loginform.html steht nun folgendes:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<table width="100%" border="0" cellpadding="4" cellspacing="0">
  <tr>
    <td valign="top" align="left">
      <form action="{url_login}" method="post">
        {lang_user_name}<br />
        <input type="text" size="10" name="username" class="logininput" />
        <br />
        {lang_password}<br />
        <input type="password" size="10" name="password" class="logininput" />
        <br />
        <table border="0" cellspacing="0" cellpadding="0">
          <tr valign="top">
            <td><input type="checkbox" name="autologin" value="1" /></td>
            <td><span class="smalltext">{lang_auto_login}</span></td>
          </tr>
        </table>
        <br />
<input type="hidden" name="redirect" value="{self_full}" />
<input type="hidden" name="login" value="1" />
<input type="submit" value="{lang_login}" class="button" />
      </form>
      &raquo; <a href="{url_lost_password}">{lang_lost_password}</a><br />
 &raquo; <a href="{url_register}">{lang_register}</a></td>
  </tr>
</table>


Das ist die geupdatete Datei? Ich stehe echt vor nem Rätsel, wenn Du sagst, dass das eigentlich gehen müsste. Hab alles so gemacht, wie in der Datei beschrieben .... *komisch*  Hast Du vielleicht noch ne andere Idee?


Title: Integration 4images 1.7 / phpBB
Post by: THC-Lollipop on September 15, 2002, 10:15:35 AM
Vielleicht hilfts Dir, wenn Du Dir die Seite mal anschauen kannst. hier die URL: http://www.abitury.de.vu


hab nen test account für dich erstellt ---> benutzer: test; pass: test

*hoff*

MfG David


Title: Integration 4images 1.7 / phpBB
Post by: Jan on September 15, 2002, 01:23:50 PM
Ich vermute mal, es liegt daran, dass Du mit diesen Subdomains arbeitest. Versuche mal in 4images die Verweise zum Forum mit den richtigen URL's anzugeben.
Also:
http://www.e-u-v.de/abitury/forum/
statt
http://www.abitury.de.vu/forum

Gruß Jan


Title: Integration 4images 1.7 / phpBB
Post by: THC-Lollipop on September 15, 2002, 02:24:46 PM
Du bist ein Gott ... danke. Lag echt daran *doohhh*

Mach bloß weiter so ... will noch ein paar Plugins bzw. Mods haben :-)

Wie wäre es eigentlich mal, wenn Du 4images als PostNuke-Plugin machen würdest?

Weil die Seite an sich ist ja relativ eigenständig und es ist ziemlich kompliziert, neue Sections einzufügen. Mit PostNuke ist das effektiver... wenn man jetzt dafür noch nen 4images-Mod hätte .... *träum*

Naja, jetzt funktinoiert auf jeden Fall alles ... riesengroßes Dankeschön nochmal für die schnelle und helfende Hilfe  :lol:


Title: Integration 4images 1.7 / phpBB
Post by: dabri on September 22, 2002, 11:06:40 PM
Hallo,

auf meiner Homepage funktioniert die Kombination einwandfrei, man kann sich problemlos einloggen usw.

Nur ich habe ein Problem, ich habe in 4images einen Bereich auf privat gestellt. Nun will ich auf diesen Bereich nur eine festgelgte Usergruppe zugreifen lassen. Im Prinzip funktioniert es auch. Nur wenn sich Jemand bei mir neu anmeldet ist er automatisch in der Usergruppe!

Also funktioniert der Schutz nicht.

Hab mich erstmal damit geholfen, das nicht auf Gruppen sondern User-weise freizuschalten, ist dann aber später bei mehreren Bereichen doch anstrengend.

Mach ich was falsch, ist das ein Bug? Also habe die Usergruppe im CP von 4images angelegt.

Gruß Daniel


Title: Integration 4images 1.7 / phpBB
Post by: Jan on September 23, 2002, 10:12:15 AM
Das kann eigentlich nicht sein. User können ja nur per Hand einer bestimmtem Usergruppe zugeordnet werden. Beschreibe nochmal Schritt für Schritt wie Du genau vorgegangen bist, wahrscheinlich hast Du was falsch gemacht.

Gruß Jan


Title: Integration 4images 1.7 / phpBB
Post by: dabri on September 23, 2002, 11:09:35 AM
Ich habe vor der Umstellung unter 4images eine Usergruppe erstellt, und diese dann einigen Usern unter 4images zugeteilt.

Danach habe ich die 4images/phpBB Integration drübergespielt. Danach habe ich im Forum einige neue User angemeldet und habe dann im CP von 4images festgestellt, das die User automatisch in der vorher angelegten Gruppe angemeldet waren.

Nun habe ich gerade die Gruppe gelöscht und sie einfach wieder neu angelegt und einen neuen User angemeldet. Jetzt ging es, der neue User war nicht in der Usergruppe angemeldet.

Also alles ist gut, vielleicht ist bei meiner Umstellung irgendetwas falsch gelaufen. Nun klappt es prima.

Danke für Deine Antwort.

Gruß Daniel


Title: Integration 4images 1.7 / phpBB
Post by: WhiteFang on September 28, 2002, 08:51:31 AM
I'm having problem on changing my web's domain name in the 4image/phpbb intergration system.
I can only change domain name settings on phpbb system, not on 4images.
what can I do to chang the domain name setting in 4images?

thanks in advance!


Title: Integration 4images 1.7 / phpBB
Post by: Jan on September 28, 2002, 09:09:33 AM
Normally 4images detects the domain atuomatically. If this does'nt work, set the domain in "includes/constants.php":
1
define('SCRIPT_URL', 'http://www.yourdomain.com/4images');


Title: problem
Post by: Poptard on October 04, 2002, 07:39:52 PM
the integration is working well for me, 4images detects all of my phpbb users and the sessions are working properly. My problem is when I goto do group management.. I attempt to add ANY of my 98 users to a 4images group and I get these errors:

1
2
3
4
5
6
7
8
9
10

DB Error: Bad SQL Query: DELETE FROM 4images_groupmatch WHERE user_id = AND group_id IN (1, 2, 3, 6)
You have an error in your SQL syntax near 'AND group_id IN (1, 2, 3, 6)' at line 2

DB Error: Bad SQL Query: INSERT INTO 4images_groupmatch (group_id, user_id, groupmatch_startdate, groupmatch_enddate) VALUES (1, , UNIX_TIMESTAMP('2002-10-04 10:43:05'), 0)
You have an error in your SQL syntax near ' UNIX_TIMESTAMP('2002-10-04 10:43:05'), 0)' at line 4

DB Error: Bad SQL Query: INSERT INTO 4images_groupmatch (group_id, user_id, groupmatch_startdate, groupmatch_enddate) VALUES (2, , UNIX_TIMESTAMP('2002-10-04 12:38:36'), 0)
You have an error in your SQL syntax near ' UNIX_TIMESTAMP('2002-10-04 12:38:36'), 0)' at line 4
User edited


for whatever reason it's not seeing my user_id's and is just trying to insert them into the database as a blank.

in my includes/constants.php I have defined:

1
define('USERS_TABLE', 'phpbb_users');


to point to my users directory, and it seems to work for everything but group management. Thanks for any input!


Title: Integration 4images 1.7 / phpBB
Post by: Jan on October 05, 2002, 09:25:26 AM
Maybe this will help:

Search in "admin/usergroups.php" for
1
$user_groups = (isset($HTTP_POST_VARS['user_groups'])) ? $HTTP_POST_VARS['user_groups'] : "";

and add after
1
$user_id = intval($HTTP_POST_VARS['user_id']);


Jan


Title: Integration 4images 1.7 / phpBB
Post by: Poptard on October 05, 2002, 07:00:57 PM
that works, thanks!


Title: Integration 4images 1.7 / phpBB
Post by: claw on October 08, 2002, 08:03:43 PM
The user level is hard to control with your existing mod. Would you take another approche that you will mod the phpbb2 instead? Say you register in the phpbb2 and automatically insert the user name and password into 4images? That will be better to handle the picture group that has access control.


Title: Integration 4images 1.7 / phpBB
Post by: Poptard on October 09, 2002, 06:35:27 AM
just in case this comes up for anyone else, I had a similar problem with deleting groups from my database.. the error I was receiving was:

1
2
3
4
5
6
7
8
9
DB Error: Bad SQL Query: DELETE FROM 4images_groups WHERE group_id =
You have an error in your SQL syntax near '' at line 2

DB Error: Bad SQL Query: DELETE FROM 4images_groupaccess WHERE group_id =
You have an error in your SQL syntax near '' at line 2

DB Error: Bad SQL Query: DELETE FROM 4images_groupmatch WHERE group_id =
You have an error in your SQL syntax near '' at line 2
Error while deleting User Group


once again for whatever reason the program was not reading the $group_id variable so it was attempting to insert it as a blank, which resulted in an SQL error.

my resolution was to look for:
1
if ($action == "deletegroup") {


and add this on the next line:
1
2

$group_id = intval($HTTP_POST_VARS['group_id']);


just a heads up..


Title: Integration 4images 1.7 / phpBB
Post by: Term on October 14, 2002, 09:45:02 PM
OK... I got a wierd proplem..

If I log in my phpbb forum then i also log in on 4images but when i try to log out on 4 images...

the url is...

http://www.4homepages.de

instead of my domain name...

What went wrong?
What do I need to do?


Title: Integration 4images 1.7 / phpBB
Post by: Term on October 14, 2002, 09:47:14 PM
Nevermind... i didnt configure the sessions.php


Title: problems
Post by: Term on October 17, 2002, 07:25:34 AM
When i log out of 4images Im taking to the phpbb board... this shouldnt be.... ???

And.. ever since I added this modification nothing works in the admin center... all the pages load but no functions will work... I can edit images.. add images... validated images.. etc. it all says 0 entries found etc..

HELP!!! Anyone?


Title: Integration 4images 1.7 / phpBB
Post by: Jan on October 17, 2002, 08:21:15 AM
Do you use version 1.7?

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Term on October 17, 2002, 06:03:32 PM
Yep... just installed 4images like 2 weeks ago.


Title: Integration 4images 1.7 / phpBB
Post by: Jan on October 17, 2002, 06:12:32 PM
Thats because you use now the user table of the phpBB. That's why we recommend to use intagration onyl with fresh new installations.

It's a little hard to explain on english for me. Just simple: the image table contains now wron user id's.
The only way is to update the user table with on user id, for example your admin id you have in phpBB. Most times the user id is 2, but check this.

Run this query with phpMyAdmin:
1
UPDATE 4images_images SET user_id = <admin_user_id_of_phpbb>;

Replace <admin_user_id_of_phpbb> with id of the admin.

Now all images are owned by the admin of phpBB.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Term on October 17, 2002, 06:13:19 PM
OK... I figured out its just the images.. it won't let me add or edit images.. im not positive about add because i havent tried but when i try to edit an image it says 0 entries found when i have 70 images.


Title: Integration 4images 1.7 / phpBB
Post by: Thierry on November 03, 2002, 12:18:43 AM
I cannot login through 4images. Whenever I enter my details and hit login, I just keep getting back to the same page.

However, when I'm logged in at my forum and I return to the gallery, I am logged in.


Title: Here is another integration mod...
Post by: claw on November 06, 2002, 06:36:31 PM
I think that is is somewhat troublesome to modify the 4images to use phpbb users db. And I find a lot of trouble to use the group in 4images after I use the previous mod.
Here is my modification that I make my phpbb to create the same user id in 4images.

Below is the patch to make the phpbb2 that will insert the account into 4images. Also, when phpbb activate the account, it will also activate the 4images account.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104

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)) )



Title: Integration 4images 1.7 / phpBB
Post by: dninness on November 09, 2002, 05:55:14 AM
Quote from: Thierry   [Expand]
I cannot login through 4images. Whenever I enter my details and hit login, I just keep getting back to the same page.

However, when I'm logged in at my forum and I return to the gallery, I am logged in.


Look out for duplicate cookies or the wrong cookies.  It kept goofing me up.


Title: Integration 4images 1.7 / phpBB
Post by: dninness on November 09, 2002, 05:57:26 AM
Any way to use a phpBB user group as an administrative "level" within 4images after you integrate the two together?  I'd really rather not give my image gallery admins full control of my forums, too...  8O


Title: Integration 4images 1.7 / phpBB
Post by: Jan on November 09, 2002, 09:06:56 AM
Try to change in "includes/constants.php"
1
define('ADMIN', 1);

back to
1
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


Title: Integration 4images 1.7 / phpBB
Post by: dninness on November 09, 2002, 07:18:54 PM
Quote from: Jan   [Expand]
(snip)
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

 Sehr güt.  That works partly.

 However, now all my 4Images admins have to be "user_level 9", which is nice for the couple of guys who are ONLY 4Images admins, but not good for my folks who are also forum admins, "user_level 0", and cannot have both "user_level 0" and "user_level 9" assigned.

 I suppose I could do it with multiple IDs, but at that point, why did I bother to integrate the forums?  :wink:

 I'm think the more accurate description of what I'm wanting is more like a 4Images "moderator" status, based on the assignent to a specific phpBB user group.

Darin


Title: Integration 4images/phpbb
Post by: jtraf on November 10, 2002, 06:32:00 PM
What exactly does the integration do?

 Does the integration only share the user base?


Title: Integration 4images 1.7 / phpBB
Post by: Warhead on November 11, 2002, 11:20:57 AM
Ich hab ein Problem, meine Moderatoren können sich nicht die Details der Photos ansehen!
Aber die normalen Benutzer und die Administratoren schon, wie kann ich es hinkriegen, dass die Moderatoren auch erkannt werden, wenigstens als normale Benutzer! :roll:

thx in advance


Title: Integration 4images 1.7 / phpBB
Post by: Jan on November 11, 2002, 11:35:13 AM
@jtraf:
After integration 4imahes will work with the user table of phpBB.

@Warhead:
Probiere mal folgendes. In "includes/sessions.php" vor dieser Zeile
1
return $user_info;

das hier einfügen
1
2
3
if ($user_info['user_level'] != GUEST && $user_info['user_level'] != USER_AWAITING && $user_info['user_level'] != ADMIN) {
    $user_info['user_level'] = USER;
}

Jan


Title: 4images 1.7 integration w/ phpbb on a PostNuke site?
Post by: boxerbay on November 12, 2002, 04:54:13 AM
Jan the man!
Ok first they are all fresh installs.  I have a postnuke site with phpbb integrated on it.  see sourceforge.com phpbb2postnuke mod. Question: Can I now add 4 images to the same database then edit the files as shown in the install notes and it will work?  Please advise if possible before I go insane attempting this.  I am a newbie but so far so good I got postnuke and phpbb to work together but now I want to add 4images to it also.  Please help.
Thanks.
 :lol:


Title: Integration 4images 1.7 / phpBB
Post by: Jan on November 12, 2002, 07:26:57 AM
Sorry, i don't know if this will work because i'm not experienced with postnuke. Maybe other users have tried this and can help you.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Philmax on November 12, 2002, 09:40:31 PM
Kann ich 4 images komplett fertig (mit phpbb login) irgendwo runterladen?

Ich kann den ganzen PHP Kram leider noch nicht so gut, das ich es selbst alles anpassen kann.

Vielleicht kann mir jemand helfen?

MFG Philmax


Title: Integration 4images 1.7 / phpBB
Post by: Jan on November 13, 2002, 09:05:55 AM
Nein, hast Du es denn schon probiert. Du musst keine PHP sondern nur die Installationsanleitung lesen können ;)

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Andiz on November 17, 2002, 09:44:12 AM
Hallo,

ich habe es jetzt auch versucht, aber irgendwie funktioniert es nicht....

Bei 4images steht oben immer folgendes:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
DB Error: Bad SQL Query: UPDATE 4images_sessions SET session_user_id = -1, session_start = 1037521748, session_time = 1037521748, session_page = 0, session_logged_in = 0 WHERE session_id = '8baa86e2ef273822e6d06cb6890c5a44' AND session_ip = '508143c9'
Unknown column 'session_start' in 'field list'

DB Error: Bad SQL Query: INSERT INTO 4images_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) VALUES ('94dfe4e37dabf1805cfb759a0a650054', -1, 1037521748, 1037521748, '508143c9', 0, 0)
Unknown column 'session_start' in 'field list'

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_users u, 4images_sessions s WHERE u.user_id = s.session_user_id AND (s.session_time >= 1037521448 OR u.user_session_time >= 1037521448) ORDER BY u.user_id ASC, s.session_ip ASC
Unknown column 'u.username' in 'field list'

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_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()
Unknown column 'u.username' in 'field list'

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_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, 3, 1, 2, 4) ORDER BY i.image_date DESC LIMIT 3
Unknown column 'u.username' in 'field list'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/web7/html/4images/includes/db_mysql.php on line 116


Ich habe 4images nicht neu installiert. Würde das helfen?

Sowieso ist einiges noch offen:

1. Muss ich die ganzen Dateien bei 4images oder bei phpBB2 oder bei beidem ändern?

2. Darf ich phpBB2 erst installieren nachdem ich das ganze gemacht habe?

Danke schonmal im Voraus!


Anzuschauen unter:
http://web7.gutepage.net/4images
http://web7.gutepage.net/phpBB2


Title: Integration 4images 1.7 / phpBB
Post by: Jan on November 17, 2002, 10:58:50 PM
Lies Dir die Installationsanleitung nochmal durch. Du hast nicht alle nötigen Änderungen durchgeführt.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Andiz on November 18, 2002, 05:18:11 PM
Danke danke.

Irgendwie funktioniert bei meinem Texteditor kein suchen und ersetzen. Jetzt hab ichs!
  :)


Title: Postnuke to phpBB2 to 4images
Post by: boxerbay on November 19, 2002, 02:12:39 AM
Jan,
I tried it and I think I am VERY close to integrating all three.  Here's what I did.  
First I installed Postnuke.  http://www.postnuke.com

Then I installed the phpbb 2 postnuke module http://phpbb2pnmod.sourceforge.net/index.php

Got those to work fine then I did a fresh install of 4images and the integration to phpbb mod.

IT WORKS!!!  well sort of.  A few bugs that I don't think are major but unfortunately I am not a PHP'er. :(

For it to work you need to log into to POSTNUKE first.  For testing use login: tester1 password: 123456

As you can see it logs you in to postnuke but if you go to paparazzi pics (upper right block) it takes you in to 4images but you are not logged in.

BUT... if you go into the phpbb forum first then go back to the paparazzi pics it has logged you in!!!  yay!

So that's my first problem and also I have noticed that it gives an error if you try to log out from 4images.  This could be solved by eliminating the log in / log out feature in 4images since postnuke should be the one controlling the log in / out.  

Ideally I would like to have postnuke user table as the primary user table.

I hope you can help out because that would be VERY cool to get all three working.


Title: any help?
Post by: boxerbay on November 24, 2002, 09:29:25 PM
any help?


Title: Integration 4images 1.7 / phpBB
Post by: Jan on November 24, 2002, 09:48:50 PM
See my last post ;)
http://www.4homepages.de/forum/viewtopic.php?p=10973#10973

Jan


Title: I have 13,000 members
Post by: Mr Wiz on December 08, 2002, 07:51:47 AM
I have 13,000 members with 4images and I want to integrate with phpbb. Is there anyway I can do this without making them all reregister? Could editing phpbb be an alternative? Also, I cannot send an email to all of the members...is there anything I can do to the script that will allow me to send an email to them? Another thing is, I can't make backups unless I use a server control panel, the backup script doesn't work. Thanks, Aaron


Title: Integration 4images 1.7 / phpBB
Post by: sam[deluxe] on December 08, 2002, 03:21:34 PM
Hallo,

kann sein das die Frage schon gestellt wurde, keine Ahnung aber ich frage nochmal:

Ich hab dies auch eingebunden funktioniert soweit gut, klicke Ich jedoch auf einen der User in der Gallery, so komme Ich (logischerweise) zu dem Profil aus dem phpBB Board. Hier kann ich mir aber beispielsweise nicht die Bilder des User anzeigen lassen. Wie kann ich das ändern, das ich auf klick eines Users zu seinem ursprünglichen 4images Profil weitergeleitet werde?

Danke im Vorraus

sam[deluxe]


Title: Integration 4images 1.7 / phpBB
Post by: Jan on December 08, 2002, 08:54:53 PM
Das geht nicht. Du kannst aber den Link in die Profile-Seite vom phpBB einfügen.
1
http://www.dowmain.com/4images/search.php?search_user={USERNAME}

Die URL natürlich anpassen.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: sam[deluxe] on December 08, 2002, 11:11:50 PM
danke so hats geklappt


Title: help? anyone?
Post by: Mr Wiz on December 09, 2002, 01:39:26 AM
I have 13,000 members with 4images and I want to integrate with phpbb. Is there anyway I can do this without making them all reregister? Could editing phpbb be an alternative? Also, I cannot send an email to all of the members...is there anything I can do to the script that will allow me to send an email to them? Another thing is, I can't make backups unless I use a server control panel, the backup script doesn't work. Thanks, Aaron.


Title: Integration 4images 1.7 / phpBB
Post by: Jan on December 09, 2002, 08:19:40 AM
Maybe you can try to convert the 4images user table to the phpBB format.

Jan


Title: bessere lösung der anmeldeprozedur
Post by: bennos on December 11, 2002, 01:59:14 PM
Hi. habe bei mir @home alles mal installiert.
4images und phpBB

was mich ein wenig stört ist die anmeldeprozedur.
 von 4images werden die leutz jetzt einfach in forum umgeleitet.

eigentlich halb so wild. nur verbleiben sie ja auch nach der REG da.
kleiner schönheitsfehler finde ich.

könnte mann den Reg Vorgang nicht in einem PopUp Fenster öffnen, das sich nach dem vorgang wieder schliesst????

jemand ne idee oder sowas vielleicht schon realisiert.???

gruss
bennos


Title: Änderungen
Post by: manica on December 27, 2002, 04:11:33 PM
Also die Änderungen sind klar, aber bitte welche session.php wird geändert? die von 4images oder phpbb?
Und wo kommt das loginformular rein?

Dann steht da was von den UserIDs. Bezieht sich das auf 4images oder phpbb? Wenn man die ID2 nun einfach löscht was passiert dann? Ein vertauschen wäre dann ja nicht mehr möglich oder? Dann würde der eine User seine bilder verlieren aber nicht gleich alle.


Title: Integration 4images 1.7 / phpBB
Post by: HMMaster 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


Title: Integration 4images 1.7 / phpBB
Post by: Jan 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


Title: Integration 4images 1.7 / phpBB
Post by: Jan 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


Title: Integration 4images 1.7 / phpBB
Post by: HMMaster on December 31, 2002, 12:50:02 PM
i changed it already.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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_


Title: Integration 4images 1.7 / phpBB
Post by: Jan on December 31, 2002, 04:33:39 PM
Thats wrong, please read the Installation.txt carefully. It must be
1
2
define('SESSIONS_TABLE', 'phpbb_sessions');
define('USERS_TABLE', 'phpbb_users');

Jan


Title: Integration 4images 1.7 / phpBB
Post by: HMMaster on January 01, 2003, 02:22:26 AM
tried but still the same


Title: Nix geht mehr
Post by: manica 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.


Title: irgendwas stimmt nicht
Post by: manica 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.


Title: Integration 4images 1.7 / phpBB
Post by: Andiz 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?


Title: Integration 4images 1.7 / phpBB
Post by: Jan 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


Title: Integration 4images 1.7 / phpBB
Post by: Andiz 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?


Title: Integration 4images 1.7 / phpBB
Post by: Andiz 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.


Title: Integration 4images 1.7 / phpBB
Post by: HMMaster on January 02, 2003, 04:28:23 PM
Jan, can you help? My users are complaining me... :(


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 03, 2003, 10:32:43 AM
Be sure that you define the correct table names in 4images includes/constants.php
1
2
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


Title: Integration 4images 1.7 / phpBB
Post by: Psyao 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?


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 03, 2003, 06:52:34 PM
There is no easy way, sorry. Only with a lot of editing...

Jan


Title: Integration 4images 1.7 / phpBB
Post by: robertmf on January 03, 2003, 08:12:17 PM
Quote from: Cabbage   [Expand]
Jimmie's Chicken Shack is a rock band from Annapolis, Maryland, USA.  Their last album Bring Your Own Stereo was released in Germany also and they did a very short tour their in 2000.

I'm going to attempt the integration right now.
The board is here
http://www.jimmieschickenshack.net/phpBB2

The gallery is here
http://www.jimmieschickenshack.net/4images



So, did the Chicken Shack have success ?????????????????????

Bitte, Jan, Is this phpBB integration mod stable now?     ..und..

Bitte, is there a URL to an active use of this phpBB/4images integration mod ??????[/b]


Title: Integration 4images 1.7 / phpBB
Post by: robertmf on January 03, 2003, 08:13:05 PM
Quote from: Cabbage   [Expand]
Jimmie's Chicken Shack is a rock band from Annapolis, Maryland, USA.  Their last album Bring Your Own Stereo was released in Germany also and they did a very short tour their in 2000.

I'm going to attempt the integration right now.
The board is here
http://www.jimmieschickenshack.net/phpBB2

The gallery is here
http://www.jimmieschickenshack.net/4images



So, did the Chicken Shack have success ?????????????????????

Bitte, Jan, Is this phpBB integration mod stable now?     ..und..

Is there a URL to an active use of this phpBB/4images integration mod ??????


Title: Integration 4images 1.7 / phpBB
Post by: robertmf on January 03, 2003, 08:48:20 PM
Quote from: Cabbage   [Expand]
You'll probably need another script that adds the users in the current 4images table to the phpbb_users table.  Then you can run the integration script.  Luckily I'm just getting my 4images database populated so i only have one user - the administrator which is the same as the one in phpBB.

I hope this works, I'll try it out later this weekend

what about just changing the 4images login to use the phpBB username ?


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 04, 2003, 09:37:46 AM
No, not without a lot of editing...

Jan


Title: Integration 4images 1.7 / phpBB
Post by: robertmf on January 04, 2003, 04:45:59 PM
Quote from: Jan   [Expand]
No, not without a lot of editing...

Jan


Bitte, how stable is the current mod for 4images integration with phpBB?

Maybe I'll play around with the variable assignments.  I already have 4images and phpBB in the same db, so perhaps I can change the 4images login username/pw lookup to the phpBB username/pw variable.

This 4images looks very nice so far !!  ?gemutlich?  hahahaha



Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 04, 2003, 05:23:00 PM
As far as i know, its stable.

Jan

P.S.: Can you please use the normal black font color in your postings. I have to read a lot of postings each day and it hurts my eyes..


Title: Integration 4images 1.7 / phpBB
Post by: robertmf on January 04, 2003, 08:27:00 PM
Quote from: Jan   [Expand]
As far as i know, its stable.

Jan

Okay, that was a fun way to spend a Saturday AM.   Smooth enough.

..er.. So now I have 4images and phpBB lined up in a database and can log in with the same username/pw to both of them.

Now - and this may seem ein dummkopf question :D  -  but what's the advantage of this particular "integration" format?  A user still needs to log in to both 4images and phpBB.    

... or am I missing something here? :-P  

Perhaps I am thinking more of "embedding" 4images into phpBB (or vice-versa the other way around :-)   Is this possible moglich ?


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 05, 2003, 11:11:37 AM
The advantage is that you don't have to register twice. Normally you should keep logged in but you need cookies enabled.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Vraxor on January 05, 2003, 10:47:23 PM
Ok, I have a question.

I have too many members and images in my galleries too lose, but still I would like to integrate with the forum. I think this is a question many people have.

Now I think about manually copying all members from the user table of 4images to the user table of the forum. Is this possible and is there anything I should keep in mind.

I don't know what this integration is going to do, so which user table is used after the integration, or are they both used, what about table prefixes?

Could anybody shine a little light as I would like to do the integration, even if it means that I have to convert the tables by hand, just tell me how.

Cheers,
Vraxor


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 06, 2003, 10:05:38 AM
Did you have already a running phpBB forum with registered members?

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Vraxor on January 06, 2003, 10:14:07 AM
Hi Jan,

yes, I already have a Forum with member, but that does not matter. I am taking a close look at both tables and have the following in mind.
I don't care about losing the users of the forum as most users of the forum are also member of the galleries, just can't lose the images.

So what is it I plan on doing:

1. I add all missing collums to the users table of 4images so that the table structure is the same as the one of the forum.
2. I change all user levels of the members to 0 instead of 2, otherwise all members would become moderator  :wink:
3. I dumb the users table of the forum and rename the users table of 4images to the the old name of the forum users table.

I think that this should do the job, but I'm not certain. Maybe I overlook something, but I will give it a try. I plan on doing this whole move somewhere next week, this week I will make all preperations like informing all members about it.

So right now my question is basicly, is the idea I described above possible?

I also saw that you changed the sessions table to the sessions table of the forum. I don't know anything about sessions so is it necasary to copy the sessions table as well?

Cheers,
Vraxor


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 06, 2003, 10:27:01 AM
This should work. You don't have to copy the sessions table.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Madox on January 07, 2003, 01:27:13 PM
i've used the integration for a while already but noticed something peculiar

It seems that the sessions table likes to overflow and is filled to the max.  Even using the phpbb session cleanup mod only fixes the problem temporarily... is this the fault of 4images because I've yet to encounter the session overflow problem with my other phpbb installations.


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 07, 2003, 02:11:21 PM
Normally, all session should be removed automatically if they are expired (see "Session length [ seconds ]" in your phpBB settings).

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Clow Read on January 09, 2003, 05:30:01 AM
Hello Jan! ^^

i've integrated 4images 1.7 to phpbb 2.0.3 and here's my question...

how can 4images use the session id (sid) of phpbb and vice versa so that ppl won't need to login again ^^

thanx ^_~


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 09, 2003, 09:59:32 AM
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
1
'U_4IMAGES' => append_sid('<the_url_to_4images>'),

below this line
1
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

After that, you can use {U_4IMAGES} in your phpBB templates, i.e.
1
<a href="{U_4IMAGES}">Go to the Gallery</a>


The same now for 4images. Add in includes/page_header.php this line
1
"url_phpbb" => $site_sess->url("<your_url_to_phpBB"),

below this line
1
"url_home" => $site_sess->url(ROOT_PATH."index.php"),

Now you can use {url_phpbb} in the 4images templates, ie
1
<a href="{url_phpbb}">Go to the Forum</a>

Jan


Title: Integrate 4images with phpbb error message
Post by: vnunited on January 11, 2003, 02:39:22 AM
i got error message, can anyone help me?

http://www.vietvui.net/vnunited/db/index.php

Quote  [Expand]
Parse error: parse error in /home/vietvui/vietvui-www/vnunited/db/includes/constants.php on line 41

DB Error: Bad SQL Query: SELECT setting_name, setting_value FROM SETTINGS_TABLE
Table 'vietvui_net.SETTINGS_TABLE' doesn't exist


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 11, 2003, 10:33:49 AM
You've made an error while editing inlcudes/constants.php. Check line 41.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: vnunited on January 11, 2003, 12:00:55 PM
line 40 and 41

1
2
define('SESSIONS_TABLE', 'forum_sessions');
       (Maybe you should change the table prefix "forum_")


forum_ is the proefix of my phpbb database table, could this be the problem because my prefix is not pbpbb ?


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 11, 2003, 12:19:48 PM
No, delete the second line, thats not part of the code.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: vnunited on January 11, 2003, 12:32:56 PM
now i got this error:

1
2
3
4
5
6
7
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, u.user_name, c.cat_name FROM 4images_images i, forum_users u, 4images_categories c WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND u.user_id = i.user_id AND c.cat_id = i.cat_id ORDER BY RAND()
Unknown column 'u.user_name' in 'field list'

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_name, c.cat_name FROM 4images_images i, forum_users u, 4images_categories c WHERE i.image_active = 1 AND u.user_id = i.user_id AND c.cat_id = i.cat_id AND i.cat_id NOT IN (0) ORDER BY i.image_date DESC LIMIT 4
Unknown column 'u.user_name' in 'field list'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/vietvui/vietvui-www/vnunited/db/includes/db_mysql.php on line 113


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 11, 2003, 04:37:44 PM
You did something wrong with your installation of the mod. Check each step again.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: 5225 on January 11, 2003, 11:51:18 PM
I am currently getting this error on 4Images index page.  Any ideas?

Quote  [Expand]
Warning: Compilation failed: unmatched parentheses at offset 7 in /home/assault/public_html/4images/includes/template.php on line 170


Here are lines 169 through 171 on the above listed file:
Quote  [Expand]
   );
    $template = preg_replace($search_array, $replace_array, $template);
    return $template;
  }


Thanks


Title: Integration 4images 1.7 / phpBB
Post by: tradertt on January 12, 2003, 10:48:09 AM
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
DB Error: Bad SQL Query: UPDATE 4images_sessions SET session_user_id = -1, session_start = 1042364340, session_time = 1042364340, session_page = 0, session_logged_in = 0 WHERE session_id = '68af76c16d06c36b145cb43f9bc0f7c6' AND session_ip = 'ca9c0252'
Unknown column 'session_start' in 'field list'

DB Error: Bad SQL Query: INSERT INTO 4images_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) VALUES ('5dc5c73eafd5ab78076d581f66ed67e4', -1, 1042364340, 1042364340, 'ca9c0252', 0, 0)
Unknown column 'session_start' in 'field list'

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

Warning: Cannot add header information - headers already sent by (output started at /home/ahahchen/public_html/tradertt/4images/includes/db_mysql.php:188) in /home/ahahchen/public_html/tradertt/4images/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_users u, 4images_sessions s WHERE u.user_id = s.session_user_id AND (s.session_time >= 1042364040 OR u.user_session_time >= 1042364040) ORDER BY u.user_id ASC, s.session_ip ASC
Unknown column 'u.username' in 'field list'

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_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()
Unknown column 'u.username' in 'field list'

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_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) ORDER BY i.image_date DESC LIMIT 3
Unknown column 'u.username' in 'field list'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/ahahchen/public_html/tradertt/4images/includes/db_mysql.php on line 116


Can anyone tell me why I get this error? I put both databse under the same DB name and I installed 4images first then phpbb.... did I do anything wrong? I have chg the session.php too...


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 12, 2003, 03:07:59 PM
@all: Please read the installation instructions carefully and follow all steps described there!

Jan


Title: yup
Post by: vnunited on January 13, 2003, 12:08:56 AM
i can't find this line

1
2
    Ändere/Change:
       define('ADMIN_SAFE_LOGIN', 1);


in my constants.php file


Title: Integration 4images 1.7 / phpBB
Post by: Vraxor on January 13, 2003, 12:43:47 AM
Check line 108, I found it, so it should be there somewhere.

Cheers,
Vraxor


Title: Problem
Post by: scherzbold on January 16, 2003, 04:35:14 AM
Ich habe auch ein Problem mit den Cookies, die beiden wollen einfach nicht zusammenarbeiten, ich muss mich bei beiden immer und immer wieder neu einloggen wenn ich wechsle.

Ich habe auch schon versucht die Daten da zu ändern so das das mit den Links funktioniert, hat bei mir leider auch nicht geholfen. Liegt das an den Cookie Namen? Welche muss ich da nehmen bei phpbb kann ich es ja ändern aber bei 4images weiss ich leider nicht ob das geht oder überhaupt nötig ist.


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 16, 2003, 10:44:57 AM
Liegen phpBB und 4images evtl. unter verschiedenen Subdomains? Lies Dir Punkt 2 der Installations-Hinweise durch.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: scherzbold on January 16, 2003, 12:18:23 PM
Nein tun sie leider nicht, sonst hätte ich eine Möglichkeit gesehen.
Das weibe liegt:
http://web5.bigben085.server4free.de/intern/forum
das andere
http://web5.bigben085.server4free.de/intern/4images


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 16, 2003, 11:21:45 PM
So wie ich das sehe, werden überhaupt keine Cookies dort gesetzt, das merkt man daran, dass sowohl im Forum als auch bei 4images immer die Session ID an jedem Link hängt. Dürfte wohl an der Konfiguration des Hosters hängen.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: scherzbold on January 17, 2003, 01:06:10 AM
Hmm bei einer alleinigen installation werden cookies aber gesetzt und akzeptiert komischer weise


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 18, 2003, 05:06:49 PM
Bist Du sicher? An phpBB wurde ja nichts verändert und dort werden keine Cookies gesetzt.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: tradertt on January 23, 2003, 07:51:45 PM
http://www.tipscheck.com/tradertt/4images/


If I try to login it will lead me to my FORUM login page instead of loggin me in directly. Why is this so? When I reach my Forum login page I have to login again ... what is wrong?

Please help


Title: Integration 4images 1.7 / phpBB
Post by: robertmf on January 23, 2003, 08:22:49 PM
Quote from: Jan   [Expand]
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
1
'U_4IMAGES' => append_sid('<the_url_to_4images>'),

below this line
1
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

After that, you can use {U_4IMAGES} in your phpBB templates, i.e.
1
<a href="{U_4IMAGES}">Go to the Gallery</a>


The same now for 4images. Add in includes/page_header.php this line
1
"url_phpbb" => $site_sess->url("<your_url_to_phpBB"),

below this line
1
"url_home" => $site_sess->url(ROOT_PATH."index.php"),

Now you can use {url_phpbb} in the 4images templates, ie
1
<a href="{url_phpbb}">Go to the Forum</a>

Jan


Okay.  I am this far with the integration.  So far sehr gut.

Now a real "newbie" question . :oops:

I would like, of course, to have the [goto 4images] and [goto phpbb] at the top of the main pages.  In which respective .php template files am I putting the  links?
1
2

<a href="{U_4IMAGES}">Go to the Gallery</a>
  ?

Thanks in advance!!!
[/b][/size]


Title: finished integration!
Post by: robertmf on January 24, 2003, 12:54:02 AM

I must say Jan did a good job - all you have to do is be a good German follow his instruction set VERY EXACTLY !! hahahaha.  Should be easy if you've got German blood !!

Just now I have put up icons on both 4images and phpBB mainpages to switch back/forth.  

http://www.dliflc.org/community

Now, it is just a matter of customizing the 4images CSS to get the 'look & feel' of my website.

BTW where do you increase the 4images <TABLE HEIGHT= WIDTH= ?  


Again, thank you for a nice effort.   :D


Title: Integration 4images 1.7 / phpBB
Post by: Jan on January 24, 2003, 07:53:40 AM
@tradertt

For me it works. Be sure to have cookies enabled.

Jan


Title: Re: finished integration!
Post by: SLL on January 24, 2003, 09:23:18 AM
Quote from: robertmf   [Expand]
Now, it is just a matter of customizing the 4images CSS to get the 'look & feel' of my website.

try 4images templates from http://www.vierstra.com/4images2.htm
4blue_orange1 looks very similar to phpBB design...


Title: phpBB2 redirect function
Post by: fatman on January 24, 2003, 10:02:03 AM
When I try to integrated a testing site, I found when login from 4images is fail. the phpBB2 redirect function have prevent 4images login page to redirect back... am i correct?

at phpPP2/include/functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

function redirect($url)
{
global $db, $board_config;

if (!empty($db))
{
$db->sql_close();
}

$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? $script_name : '/' . $script_name;
$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));

// Redirect via an HTML form for PITA webservers
if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url);
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $server_protocol . $server_name . $server_port . $script_name . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $server_protocol . $server_name . $server_port . $script_name . $url . '">HERE</a> to be redirected</div></body></html>';
exit;
}

// Behave as per HTTP/1.1 spec for others
header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url);
exit;
}


Title: Re: finished integration!
Post by: robertmf on January 24, 2003, 05:23:04 PM
Quote from: SLL   [Expand]
Quote from: robertmf   [Expand]
Now, it is just a matter of customizing the 4images CSS to get the 'look & feel' of my website.

try 4images templates from http://www.vierstra.com/4images2.htm
4blue_orange1 looks very similar to phpBB design...

viele dank !


Title: Integration 4images 1.7 / phpBB
Post by: Clow Read on January 28, 2003, 02:32:33 AM
i have a problem integrating phpBB and 4images...

here's where both scripts are located...
phpBB: http://vectorcandy.com/home/
4images: http://vectorcandy.com/gallery/

the installation worked out fine and i've installed all the necessary files for integration but when i log in...i always receive this error

1
2
3
Not Found

The requested URL /home/http://vectorcandy.com/gallery/index.php was not found on this server.


here's the value that i've inputed to session.php

$url_app = http://vectorcandy.com/home/

Thanx for you help ^_^


Title: Integration 4images 1.7 / phpBB
Post by: robertmf on January 28, 2003, 02:48:51 AM
Quote from: Clow Read   [Expand]
i have a problem integrating phpBB and 4images...

here's where both scripts are located...
phpBB: http://vectorcandy.com/home/
4images: http://vectorcandy.com/gallery/

the installation worked out fine and i've installed all the necessary files for integration but when i log in...i always receive this error

1
2
3
Not Found

The requested URL /home/http://vectorcandy.com/gallery/index.php was not found on this server.


here's the value that i've inputed to session.php

$url_app = http://vectorcandy.com/home/

Thanx for you help ^_^


See the errmsg "The requested URL /home/http://vectorcandy.com

somewhere you have mixed the URLpath with the serverpath  name2file.


Title: Integration 4images 1.7 / phpBB
Post by: Clow Read on January 28, 2003, 06:01:37 AM
like where?


Title: phpbb neu bei 4images mit 2000 usern
Post by: limes on February 03, 2003, 12:58:30 AM
hi,
es scheint bisher wohl keine möglichkeit zu geben, eine bestehende 4images-installation um phpbb zu erweitern. ich habe derzeit ca. 2000 user in 4images und möchte phpbb integrieren. gibt es nicht doch ein chance? ich verfüge über html/perl und ein wenig php/sql-kenntnisse. wer kann mir weiterhelfen. ich bin auch gerne bereit einen angemessenen euro-betrag springen zu lassen ...?
markus


Title: Integration 4images 1.7 / phpBB
Post by: Aho on February 04, 2003, 01:18:09 PM
schön. hab jetzt auch mal frisch installierte phpbb und die gallery fusioniert. klappt auch alles.
aber wie mache ich das, das meine moderatoren vom board kommentare in der gallery löschen und auch ggf editieren können ?

das dürfte doch eigentlich nicht so schwer sein. ich stelle mir das so vor:
genau wie beim phpbb soll neben jedem kommentar ein X sein, womit man beiträge löschen kann. die mods sollen dazu nicht ins controlcenter gehen. man müsste ja nur ein button erstellen, der nur sichbar für mods und admins ist. wenn man draufklickt, dann wird ein sql befehl ausgeführt der den kommentar mit id soundso löscht !

editieren ist vorerst nicht so wichtig, passiert sowieso ganz selten.


Title: 4images > phpbb > Postnuke
Post by: horst on February 05, 2003, 10:13:20 AM
Ich habe bei mir Postnuke installiert und das "phpBB2 Forum für Postnuke" integriert. Jetzt möchte ich 4images mit einbinden.

Ich habe es eben versucht zu installieren. Dabei bin ich auf ein Problem gestoßen. In der Konfiguration muss ich die Adresse des phpBB Forums angeben. Dieses liegt bei mir innerhalb von postnuke. Die lange Adresse mit ... modules.php ... habe ich eingegeben und es tut nicht. Anders weiss ich z.Z. jedoch nicht wie ich das Forum erreichen soll. Eine Adresse www.meineseite.de/phpBB/ gibt es anscheind nicht. Habt ihr da einen Tipp für mich?

Gruss, Horst


Title: Re: phpbb neu bei 4images mit 2000 usern
Post by: Synapse on February 10, 2003, 03:38:43 AM
Quote from: limes   [Expand]
hi,
es scheint bisher wohl keine möglichkeit zu geben, eine bestehende 4images-installation um phpbb zu erweitern. ich habe derzeit ca. 2000 user in 4images und möchte phpbb integrieren. gibt es nicht doch ein chance? ich verfüge über html/perl und ein wenig php/sql-kenntnisse. wer kann mir weiterhelfen. ich bin auch gerne bereit einen angemessenen euro-betrag springen zu lassen ...?
markus


Es gibt eine möglichkeit, die wurde schon ein paar postings vorher beschrieben und sie funktioniert. du musst die bestehende 4images usertable so anpassen, dass sie der vom phpBB gleicht und dann entprechend in jene für das PHPBB umbekennen. Vorher solltest du allerdings einen SQL dump machen und die umbenannte tabelle wieder neu generieren... sonst funktioniert die userverwaltung im 4images logischerweise nicht.

Synapse


Title: Fresh instruction needed for the intergration
Post by: uny on February 11, 2003, 07:18:31 PM
Hi, i've been reading all these messages, and I'm totally lost where to start the intergration. Could anyone kindly post a FRESH Instruction for Intergration of 4images and PHPbb??? just like,
1..........
2...........
3...............

 I really need to get this work, and MANY THANKS TO whoever did it! Thanks in advance!


Title: Integration 4images 1.7 / phpBB
Post by: helluvaguy on February 12, 2003, 10:51:47 PM
It is really very simple. As someone mentioned it before "Do it the german way, do it the proper way!" :lol:

I had some difficulties myself, but only because I did it the typical 'First-Shoot-Then-Ask-Way', I didn't took the time to read it properly.

So, here is what you have to do:[list=1]
  • You have an existing phpBB forum and are adding a gallery from scratch.
First you unzip your copy of 4images on your PC (to your accessable directory if your running a server on your PC, otherwise it is up to your liking where you put it)
  • Now you cange the files according to the installation.txt from the integration_php.zip (it is ESSENTIAL that you do these changes BEFORE you install 4images)
  • After you have done the changes you upload all your 4images-files to your server
  • You start the installation process by typing  the URL of your 4images gallery (i.e. http://www.your-domain.com/your-4images-directory/) in your Webbrowswer. While doing this, remember to use the same database as the phpBB forum. Just define a prefix that is different than the ones for the phpBB tables. The given prefix should be ok for most cases.
  • Just follow the instructions on the screen
  • ... and finally start feeling happy about what you've just accieved :D[/list:o]Simple as 1, 2, 3... as long as you know which is the right order. :wink:

     :idea: Maybe it would help a lot of hotshots, like myself, if it would be stressed in the installation.txt, that the changes have to be made before an installation takes place. :idea:

    Hope this helped a bit
    helluvaguy


Title: Integration 4images 1.7 / phpBB
Post by: Mandy on February 18, 2003, 10:17:37 PM
Quote from: Andiz   [Expand]
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.


Kannst du mir bitte erklären, wie und wo du das genau gemacht hast?

Mandy


Title: Fehlermedldung
Post by: benhar on February 20, 2003, 07:44:04 PM
1
2
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 phpbb_users u, phpbb_sessions s WHERE u.user_id = s.session_user_id AND (s.session_time >= 1045765914 OR u.user_session_time >= 1045765914) ORDER BY u.user_id ASC, s.session_ip ASC
Unknown column 'u.user_session_time' in 'where clause'


Was machen?


Title: Integration 4images 1.7 / phpBB
Post by: coolice on February 21, 2003, 03:30:01 PM
Hello,
I have a question, I don't know is this the right forum but I will ask here :))

How can i add 4images category list in phpbb forum.
I see here some mods for adding new or random pictures but how can I add category list.

Thx in advance.
Regards,
coolice


Title: Integration 4images 1.7 / phpBB
Post by: dachs on February 23, 2003, 01:26:17 PM
Hi,
ich hoffe ich stelle die Frage nicht zum X-ten Mal...

Mit der Integration hat alles bestens geklappt.
Einen Link im Board zur Gallerie neben den normalen Bottons hab ich auch.
Wie steel ich das jetzt an, das bei Aufrug der Gallerie oben die Menulöeiste des Boards bestehen bleibt und unten die Gallerei aufgerugen wird ? (Als wenn ich die Foren oder das Profil aufrufen würde...)

Ich hoffe ich hab micht nicht allzu unverstöndlich ausgedrückt...


dachs...


Title: I need some serious help
Post by: Paprika on February 24, 2003, 09:11:04 PM
After installing this mod, I have a problem logging into the gallery. I put in my Username & Password then hit the login button, it sits for a second but then I end up at "The page cannot be displayed" As in it dosen't exsist, DNS error or something like that. Its browser I am using (IE 6.0 SP1) sure isn't my problem because I've also tried Oprea 7.1 and have the same problem. Please help me!
 I figured out the proble, after logging mwe in it redirects me to: http://.teen-moods.net/http://www.teen-moods.net/gallery/index.php?sid=36d25f5e2a7a66e89ee8f33f38eba3b3

which is an invalid url, now I just gotta fix it.


Title: Integration 4images 1.7 / phpBB
Post by: helluvaguy on February 24, 2003, 11:00:33 PM
Quote from: dachs   [Expand]
Hi,
ich hoffe ich stelle die Frage nicht zum X-ten Mal...

Mit der Integration hat alles bestens geklappt.
Einen Link im Board zur Gallerie neben den normalen Bottons hab ich auch.
Wie steel ich das jetzt an, das bei Aufrug der Gallerie oben die Menulöeiste des Boards bestehen bleibt und unten die Gallerei aufgerugen wird ? (Als wenn ich die Foren oder das Profil aufrufen würde...)

Ich hoffe ich hab micht nicht allzu unverstöndlich ausgedrückt...


dachs...

Du mußt die header.html der Galerie der overall_header.php des Forums anpassen.


Title: Integration 4images 1.7 / phpBB
Post by: Paprika on February 25, 2003, 02:00:38 AM
can you guys help me or what??!


Title: HILFE! phpbb Integration
Post by: bluesearch on February 25, 2003, 02:59:35 AM
Hallo

Ich brauche unbedingt hilfe, ich versuche jetzt schon eine halbe Ewigkeit 4images in phpbb zu Integrieren mit dem Mod von Jan, was ansich auch klappt nur leider kann ich mich nicht von der Gallery aus einlogen (ich benutze natürlich die User Daten von phpbb,bin auch in beiden als admin angemeldet und benutze keine Sub Domains) es erscheint immer "Seite nicht gefunden" (die URL stimmt aber) wenn ich dann aber auf Aktualiesieren gehe dann bin ich wieder bei phpbb!

Bitte Bitte helft mir!!!


Title: HILFE! phpbb Integration
Post by: Jan on February 25, 2003, 07:43:03 AM
Kannst Du ne URL posten.

Jan


Title: HILFE! phpbb Integration
Post by: bluesearch on February 25, 2003, 11:30:40 AM
Quote from: Jan   [Expand]
Kannst Du ne URL posten.

Jan


Hallo Jan!

Erstmal will ich Dir ein riesen LOB aussprechen für dieses geile SCRIPT!! I :D  Danke  :D

leider hab ich es noch nicht geschafft die Seiten gegenseitig zu verlinken! Sorry  :oops:
Hab Dir schnell nochmal einen Benutzer Account gemacht:
Benutzername: Jan
Passwort: blue

Ich würde mich wirklich über einen kleinen Tipp freuen!!

Schon mal ganz sehr DANKE! :D


Title: HILFE! phpbb Integration
Post by: Jan on February 25, 2003, 02:39:02 PM
Das Problem ist, dass sich der redirect nach dem einloggen beim phpBB 2.0.4 geändert hat. Das lässt sichwohl nurmit einem kleine Hack in includes/functiions.php des phpBB ändern:

Suche
1
2
3
4
if (!empty($db))
{
     $db->sql_close();
}

und füge danach folgendes ein:
1
2
3
4
if (stristr($url, 'http://')) {
  header('Location: ' . $url);
  exit;
}

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Jan on February 25, 2003, 02:41:27 PM
This is because of some changes in phpBB version 2.0.4. Try this little hack in includes/functions.php (phpBB!)
Add after
1
2
3
4
if (!empty($db))
{
     $db->sql_close();
}

this
1
2
3
4
if (stristr($url, 'http://')) {
  header('Location: ' . $url);
  exit;
}

Jan


Title: HILFE! phpbb Integration
Post by: bluesearch on February 25, 2003, 04:08:46 PM
Danke Jan!!  :D  

das Login scheint jetzt ohne Probleme zu klappen! Nur das Logout klappt immer noch nicht "sorry konntest Du aber nicht wissen  :oops:" hatte bei meinen ersten Beitrag vergessen das Problem mit zu beschreiben" da erscheint dann ( bei phpbb):

Invalid_session

wäre echt ganz doll lieb wenn du nochmal schauen könntest!?

Rene  :D
und nochmal vielen Dank Jan!!

Ps. (Nur wenn Du Zeit hast) wie passiert so was eigendlich mit dem "redirect" , hat das was mit der Installation zu tun, weil es ja bei allen anderen klappt


Title: HILFE! phpbb Integration
Post by: Jan on February 25, 2003, 04:13:10 PM
Probiere diesen Teil in login.php zu löschen (wieder beim phpBB):
1
2
3
4
5
// session id check
if ($sid == '' || $sid != $userdata['session_id'])
{
    message_die(GENERAL_ERROR, 'Invalid_session');
}


Das liegt daran, dass die Integration für Version 2.0.0 geschrieben wurde und sich jetzt bei Version 2.0.4 dort etwas geändert hat.

Jan


Title: HILFE! phpbb Integration
Post by: bluesearch on February 25, 2003, 04:40:57 PM
hab es gelöscht, mag sich trotzdem nicht ausloggen!?  :cry:


Title: HILFE! phpbb Integration
Post by: bluesearch on February 25, 2003, 05:06:27 PM
Sorry Sorry Sorry  :oops:

Hallo Jan,

tut mir LEID ich hoffe Du hast Dir noch nicht denn Kopf darüber zerbrochen, warum es trotzdem nicht geht! Ich  :oops: habe ausversehen den falschen absatz gelöscht!! Sorry nochmal, war wohl etwas zu voreilig!

Also jetzt geht beides!  :D

Danke nochmal für alles!! Ich finde es absolut super was Du auf die Beine gestellt hast!! Auch ein großes Lob an all diejenigen die sich täglich mit den Problemen hier im Forum auseinandersetzen!!

Ich hoffe ich kann auch mal jemanden helfen (vieleicht wenn´s mal ein kleiners Problemen ist)

Rene  :D


Title: Integration 4images 1.7 / phpBB
Post by: Paprika on February 25, 2003, 08:57:38 PM
ok, Thank you!


Title: Re: Integration 4images 1.7 / phpBB
Post by: Gabi on February 26, 2003, 11:50:48 AM
Quote from: Jan   [Expand]
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 (http://www.4homepages.de/forumdl/integration_phpbb.zip)


Habe kleines Prob,

nach dem anmelden werde ich auf einen falschen link weitergeführt. Dieser sieht so aus:

http://model-voting.de/forum/http://www.model-vote.de/index.php?sid=186d550926a96c0febf6ac9f80aed67e

wie kann ich das ändern ?????

lg
Gabi


Title: Integration 4images 1.7 / phpBB
Post by: Jan on February 26, 2003, 01:13:20 PM
Zwei Posts über Deinem steht die Lösung.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Gabi on February 27, 2003, 01:35:03 PM
Quote from: Jan   [Expand]
Zwei Posts über Deinem steht die Lösung.

Jan


Ups sorry Jan,

habe die Beiträge nur bis zur Hälfte durchgelesen  :oops:

Hat alles gut geklappt soweit....aaaaber irgend ein fehler ist noch drin und zwar kann ich mich jetzt nicht mehr in den Adminbereich vom Bord einloggen. Wenn ich mit der Maus über "Administrationsbereich" gehe wird der richtige Link angezeigt, jedoch wenn ich ihn anklicke haut er mir ein zusätzliches /forum/ hinein. Das sieht dann so aus :
http://model-voting.de/forum/forum/admin/index.php?sid=862853725fdf45e777abaf0aac27b1e6
Wo habe ich denn einen Fehler gemacht ??????
(Komme gar nicht mehr in die Bordadmin rein auch wenn ich den Pfad manuell im Browser eingebe)

Bitte HIIIIIIILLLLLFFFFFFEEEEEEE

lg
Gabi


Title: Integration 4images 1.7 / phpBB
Post by: Jan on February 27, 2003, 04:50:19 PM
Das kann aber nichts mit meiner geposteten Änderung zu tun haben.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Aho on February 28, 2003, 03:54:20 AM
Quote from: helluvaguy   [Expand]
Quote from: dachs   [Expand]
Hi,
ich hoffe ich stelle die Frage nicht zum X-ten Mal...

Mit der Integration hat alles bestens geklappt.
Einen Link im Board zur Gallerie neben den normalen Bottons hab ich auch.
Wie steel ich das jetzt an, das bei Aufrug der Gallerie oben die Menulöeiste des Boards bestehen bleibt und unten die Gallerei aufgerugen wird ? (Als wenn ich die Foren oder das Profil aufrufen würde...)

Ich hoffe ich hab micht nicht allzu unverstöndlich ausgedrückt...


dachs...

Du mußt die header.html der Galerie der overall_header.php des Forums anpassen.


hat einer eine geänderte header.html für subsilver parat ?


Title: integration von phpbb
Post by: Gabi on February 28, 2003, 08:46:00 AM
Hy Jan,

nu sind fast alle Probs beseitigt. Ist es normal das ich mich immer wieder neu einloggen muß oder hab ich da nen Fehler drin ???? Der "alte Fehler lag an einem alten Cockie, deshalb kam ich immer auf die falsche Seite. Habe alle Coockies gelöscht und seither geht´s auch. Jdoch kam nun o.g. Problem auf  :oops:

Habe auch noch eine weitere Frage, die PM können bei meinem Template mit einem Popup angekündigt werden. Der Code hierfür ist in der overall_header.htm drin er sieht so aus :

 <!-- BEGIN switch_enable_pm_popup -->
  <script language="Javascript" type="text/javascript">
  <!--
   if ( {PRIVATE_MESSAGE_NEW_FLAG} )
   {
      window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
   }
  //-->
  </script>
  <!-- END switch_enable_pm_popup -->

kann ich den denn auch in die header.html von 4images einfügen, so das ich auch auf den Gallerieseiten über neue PM benachrichtigt werde???
Hatte ihn so wie oben schon mal eingefügt, aber er funzt so noch nicht. Wie muß ich ihn ändern das es geht ??????

lg
Gabi

PS: Ich hoffe das die net auch schon irgend wo beschrieben ist...wird langsam peinlich für mich.... :oops:


Title: Integration 4images 1.7 / phpBB
Post by: Jan on February 28, 2003, 01:47:54 PM
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


Title: Integration 4images 1.7 / phpBB
Post by: Gabi on February 28, 2003, 02:56:18 PM
Quote from: Jan   [Expand]
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


Hy Jan,

danke für deine schnelle Antwort. Habe jetzt aus der page_header.php folgendes in die 4images header.php eingefügt:


//
// Obtain number of new private messages
// if user is logged in
//
if ( $userdata['session_logged_in'] )
{
   if ( $userdata['user_new_privmsg'] )
   {
      $l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms'];
      $l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']);

      if ( $userdata['user_last_privmsg'] > $userdata['user_lastvisit'] )
      {
         $sql = "UPDATE " . USERS_TABLE . "
            SET user_last_privmsg = " . $userdata['user_lastvisit'] . "
            WHERE user_id = " . $userdata['user_id'];
         if ( !$db->sql_query($sql) )
         {
            message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql);
         }

         $s_privmsg_new = 1;
         $icon_pm = $images['pm_new_msg'];
      }
      else
      {
         $s_privmsg_new = 0;
         $icon_pm = $images['pm_new_msg'];
      }
   }
   else
   {
      $l_privmsgs_text = $lang['No_new_pm'];

      $s_privmsg_new = 0;
      $icon_pm = $images['pm_no_new_msg'];
   }

   if ( $userdata['user_unread_privmsg'] )
   {
      $l_message_unread = ( $userdata['user_unread_privmsg'] == 1 ) ? $lang['Unread_pm'] : $lang['Unread_pms'];
      $l_privmsgs_text_unread = sprintf($l_message_unread, $userdata['user_unread_privmsg']);
   }
   else
   {
      $l_privmsgs_text_unread = $lang['No_unread_pm'];
   }
}
else
{
   $icon_pm = $images['pm_no_new_msg'];
   $l_privmsgs_text = $lang['Login_check_pm'];
   $l_privmsgs_text_unread = '';
   $s_privmsg_new = 0;
}


aber funzen tuts noch net. Müsste aber der richtige Abschnitt gewesen sein oder ????? Muss ich vieleicht noch etwas anpassen ??????


Traue mich ja eigentlich gar net mehr zu fragen, aber ich komme nicht mehr weiter. Immer wenn ich von Forum zurück gehe bin ich ausgeloggt. Das "eingeloggt" bleiben bzw. automatische wieder einloggen funzt einfach nicht. Kann dies an den Cockie-Einstellungen im Bord liegen ????

lg

die Nervensäge


Title: Cockies-Einstellung im phpbb
Post by: Gabi on February 28, 2003, 03:22:07 PM
Quote from: Jan   [Expand]
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 ???


Title: Integration 4images 1.7 / phpBB
Post by: Jan 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


Title: Integration 4images 1.7 / phpBB
Post by: Gabi on February 28, 2003, 05:55:47 PM
Quote from: Jan   [Expand]
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


Title: und nu auf deutsch ?????
Post by: Gabi on February 28, 2003, 07:44:45 PM
Quote from: Jan   [Expand]
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
1
'U_4IMAGES' => append_sid('<the_url_to_4images>'),

below this line
1
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

After that, you can use {U_4IMAGES} in your phpBB templates, i.e.
1
<a href="{U_4IMAGES}">Go to the Gallery</a>


The same now for 4images. Add in includes/page_header.php this line
1
"url_phpbb" => $site_sess->url("<your_url_to_phpBB"),

below this line
1
"url_home" => $site_sess->url(ROOT_PATH."index.php"),

Now you can use {url_phpbb} in the 4images templates, ie
1
<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


Title: Das funzt auch net
Post by: Gabi 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   [Expand]
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
1
'U_4IMAGES' => append_sid('<the_url_to_4images>'),

below this line
1
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

After that, you can use {U_4IMAGES} in your phpBB templates, i.e.
1
<a href="{U_4IMAGES}">Go to the Gallery</a>


The same now for 4images. Add in includes/page_header.php this line
1
"url_phpbb" => $site_sess->url("<your_url_to_phpBB"),

below this line
1
"url_home" => $site_sess->url(ROOT_PATH."index.php"),

Now you can use {url_phpbb} in the 4images templates, ie
1
<a href="{url_phpbb}">Go to the Forum</a>

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Jan on March 01, 2003, 11:18:24 AM
Sieht so aus als hättest Du die spitze Klammer < noch am Anfang der URL stehen
1
'U_4IMAGES' => append_sid('<the_url_to_4images>'),

Jan


Title: Wie dooooooofffff
Post by: Gabi on March 01, 2003, 02:42:09 PM
Quote from: Jan   [Expand]
Sieht so aus als hättest Du die spitze Klammer < noch am Anfang der URL stehen
1
'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


Title: Integration 4images 1.7 / phpBB
Post by: party-cam.org on March 01, 2003, 03:29:47 PM
Quote from: Jan   [Expand]
Maybe this will help:

Search in "admin/usergroups.php" for
1
$user_groups = (isset($HTTP_POST_VARS['user_groups'])) ? $HTTP_POST_VARS['user_groups'] : "";

and add after
1
$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:


Title: Integation von bestehender Datenbank in phpbb
Post by: Gabi on March 02, 2003, 12:05:49 PM
Quote from: Jan   [Expand]
Try to change in "includes/constants.php"
1
define('ADMIN', 1);

back to
1
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


Title: Integration 4images 1.7 / phpBB
Post by: Aho on March 02, 2003, 11:16:43 PM
Quote from: Aho   [Expand]
hat einer eine geänderte header.html für subsilver parat ?


interesse besteht immer noch !

danke.


Title: HILFE
Post by: BugsBunny 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


Title: Integration 4images 1.7 / phpBB
Post by: Jan on March 03, 2003, 08:34:38 AM
Überprüfe nochmal Schritt 3 der Installation:
Quote  [Expand]
3. Öffne sessions.php und passe den Konfigurationsteil am
     Dateianfang an.

Jan


Title: vielleicht bin ich ja blöd .... :oops:
Post by: BugsBunny on March 03, 2003, 09:00:42 AM
aber bei mir in der Installationsanleitung steht folgendes drin:

Quote  [Expand]
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!


Title: hab jetzt wenigstens ein Problem gelöst
Post by: BugsBunny on March 03, 2003, 09:43:47 AM
hatte zwar vergessen das zu ändern:

Quote  [Expand]
// 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  [Expand]
Allgemeiner Fehler
 
Invalid_session

 


lg Flo


Title: damit sich auch Windows-User auskennen
Post by: BugsBunny 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


Title: Integration 4images 1.7 / phpBB
Post by: bluesearch on March 04, 2003, 07:23:31 PM
Hallo,

Ich glaube Du benutzt phpbb ( 2.0.4), schau mal unter:

http://www.4homepages.de/forum/viewtopic.php?t=4315

nach!!

Rene


Title: na endlich .....
Post by: BugsBunny on March 04, 2003, 09:03:30 PM
DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE DANKE


ES FUNZT JETZT ENDLICH!!!!!!!!!

lg Flo

 :P  :P  :P  :P  :P  :P  :P  :P  :P  :P  :P  :P  :P  :P  :P  :P  :P  :P  :P  :P


Title: eine Frage hätt ich noch ....
Post by: BugsBunny on March 04, 2003, 09:05:13 PM
und zwar das Board läuft bei mir in einem _blank sozusagen ....

wenn ich mich jetzt aber bei 4images Abmelden wird aufeinmal das Forum im Frame angezeigt .... (is ja klar) .... kann man es noch irgendwie bewerkstelligen dass ich auch bei der Abmeldung bei 4images immer noch auf der gleichen Seite bleibe???

lg Flo


Title: Integration 4images 1.7 / phpBB
Post by: Jan on March 05, 2003, 05:58:44 PM
Nein, leider nicht.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: BugsBunny on March 05, 2003, 07:08:55 PM
schade ....

naja kann man nix machen

trotzdem danke ich euch ALLEN für eure Geduld mit mir
und euren professionellen Rat.

viele liebe Grüße

Flo alias BugsBunny


Title: Integration 4images 1.7 / phpBB
Post by: Aho on March 06, 2003, 01:42:58 AM
Quote from: Aho   [Expand]
Quote from: Aho   [Expand]
hat einer eine geänderte header.html für subsilver parat ?


interesse besteht immer noch !

danke.


leute, ich will nicht nerven, aber hat wirklich keiner eine fertige, overall header für 4images fie zum phpbb-subsilver passt ??


Title: Integration 4images 1.7 / phpBB
Post by: BugsBunny on March 06, 2003, 06:07:20 AM
für was brauchst diese geänderte Header.html?!?!?!

lg BugsBunny


Title: Integration 4images 1.7 / phpBB
Post by: Aho on March 06, 2003, 07:01:26 PM
damit ich 4images richtig integrieren kann. also nicht nur systemtechnisch, sondern auch layouttechnisch.

mit einer richtigen header.html, könnte man 4imges auch unter einem menüpunkt von phpbb laufen lassen.
d.h. ich hätte oben irgendwo ein button gallerie, und wenn man draufklickt kommt unten das 4images und oben bleiben die buttons usw alle stehen.

sozusagen sollte die overall_header von phpbb auch vom 4images benutzt werden !


Title: Integration 4images 1.7 / phpBB
Post by: BugsBunny on March 07, 2003, 06:11:19 AM
ich vertseh dabei aber dein Problem nicht .... irgendwo hier im Forum gibts doch genügend Einträge zur lückenlosen Integration in phpBB ausserdem bräuchtes in der header.html ja nur einen zusätzlichen Text-Link hinzufügen .... mehr isses ja nicht.


Title: Integration 4images 1.7 / phpBB
Post by: Aho on March 07, 2003, 06:13:02 PM
ne, ich glaube du verstehst nicht ganz was ich meine.
und zwar meine ich nicht das system an sich, also das die beiden die selbe datenbank benutzen usw. das meine ich nicht.

ich meine das layouttechnische. ich will in meinem phpbb ein menüpunkt haben gallery. wenn ich draufklicke dann soll im selben fenster das 4images kommen. aber halt genau im phpbbdesign. auch mit dem logo oben links und die ganzen menüpunkte usw.


Title: Integration 4images 1.7 / phpBB
Post by: BugsBunny on March 07, 2003, 07:50:15 PM
boah ...

ich würd dir echt gern weiterhelfen aber so ein phpBB Profi bin ich leider
nicht ...

sorry

aber ich denk mal Jan kann dir sicher helfen (schreib ihm doch einfach mal ne PN mit dem Link zum Thema

http://www.4homepages.de/forum/viewtopic.php?p=18951#18951


Title: Integration 4images 1.7 / phpBB
Post by: uksoreeyes on March 09, 2003, 06:50:24 AM
I have done everything in the installation.txt, now when I click on 'register' on my '/4images/index.php' I goto the forum registration page where I can create my account. Once this is done I go back to my '/4images/index.php' and try to log in with that username I've just created and I get the following:

Quote  [Expand]
Forbidden
You don't have permission to access /forum/http://www.myleeneklass.com/4images/index.php on this server.


Can someone tell me why this is happening? Shouldn't there be something in between the '/forum/' and the 'http' bit?

Thanks in advance

Carl


Title: Integration 4images 1.7 / phpBB
Post by: Jan on March 09, 2003, 09:41:02 AM
Thats because you use version 2.0.4, the integration was written for 2.0.2.
Open includes/functions.php (phpBB) and add

1
2
3
4
if (stristr($url, 'http://')) {
  header('Location: ' . $url);
  exit;
}

below
1
2
3
4
if (!empty($db))
{
     $db->sql_close();
}

If you get
Quote  [Expand]
Invalid_session

during the logout, try to delete
1
2
3
4
if ($sid == '' || $sid != $userdata['session_id'])
{
    message_die(GENERAL_ERROR, 'Invalid_session');
}

in login.php (phpBB).

Jan


Title: Integration 4images 1.7 / phpBB
Post by: uksoreeyes on March 09, 2003, 05:01:53 PM
Thanks Jan, that fixed a few problems only to create another. Now when I log in from my 4images, I get an error saying:

Quote  [Expand]
You have specified an incorrect or inactive username, or an invalid password.

Click Here to try again

Click Here to return to the Index


Now I checked and the username and password are correct. any ideas? I really want this to work and it just ain't happening.

Thanks again

Carl


Title: Re: phpbb neu bei 4images mit 2000 usern
Post by: limes on March 09, 2003, 06:25:03 PM
Quote from: Synapse   [Expand]
Quote from: limes   [Expand]
hi,
es scheint bisher wohl keine möglichkeit zu geben, eine bestehende 4images-installation um phpbb zu erweitern. ich habe derzeit ca. 2000 user in 4images und möchte phpbb integrieren. gibt es nicht doch ein chance? ich verfüge über html/perl und ein wenig php/sql-kenntnisse. wer kann mir weiterhelfen. ich bin auch gerne bereit einen angemessenen euro-betrag springen zu lassen ...?
markus


Es gibt eine möglichkeit, die wurde schon ein paar postings vorher beschrieben und sie funktioniert. du musst die bestehende 4images usertable so anpassen, dass sie der vom phpBB gleicht und dann entprechend in jene für das PHPBB umbekennen. Vorher solltest du allerdings einen SQL dump machen und die umbenannte tabelle wieder neu generieren... sonst funktioniert die userverwaltung im 4images logischerweise nicht.

Synapse


weiss jemand, WIE man dies machen muss, quasi eine to-to-anleitung?
markus


Title: Integration 4images 1.7 / phpBB
Post by: uksoreeyes on March 11, 2003, 09:10:39 AM
It's ok I fixed my problem, silly me had the 'user_loginform.html' setup wrong, I forgot to change 'user_name' to 'username' and 'auto_login' to 'autologin'

works fine now. just one more question?

is it possible to redirect users to the 4images main page when they click on log out from my 4images page?

and to redirect users to the forum main page when they click logout from the forum?

Maybe this could be done using a query string? This would finish the integration off nicely I think.

Many thanks

Carl


Title: Re: phpbb neu bei 4images mit 2000 usern
Post by: Gabi on March 11, 2003, 12:13:49 PM
Quote from: Synapse   [Expand]
Quote from: limes   [Expand]
hi,
es scheint bisher wohl keine möglichkeit zu geben, eine bestehende 4images-installation um phpbb zu erweitern. ich habe derzeit ca. 2000 user in 4images und möchte phpbb integrieren. gibt es nicht doch ein chance? ich verfüge über html/perl und ein wenig php/sql-kenntnisse. wer kann mir weiterhelfen. ich bin auch gerne bereit einen angemessenen euro-betrag springen zu lassen ...?
markus


Es gibt eine möglichkeit, die wurde schon ein paar postings vorher beschrieben und sie funktioniert. du musst die bestehende 4images usertable so anpassen, dass sie der vom phpBB gleicht und dann entprechend in jene für das PHPBB umbekennen. Vorher solltest du allerdings einen SQL dump machen und die umbenannte tabelle wieder neu generieren... sonst funktioniert die userverwaltung im 4images logischerweise nicht.

Synapse


Wie geht das genau ???
Kannst du das näher erklären.....so das es auch eine phpAnfängerin versteht ???

lg

Gabi


Title: ich auch
Post by: limes on March 11, 2003, 04:12:00 PM
ja, so eine art to-do-liste! ich suche auch nach einer integration von einer bestehenden 4images-installation und phpbb.
cu
markus oeder
www.chauvi-seite.de


Title: Integration 4images 1.7 / phpBB
Post by: Luang on March 13, 2003, 12:12:38 PM
For those of you who like to give their mods administrator access to the gallery too, follow these instructions open up includes/contestants.php and find:

1
2
3
4
define('GUEST', -1);
define('USER_AWAITING', -1);
define('USER', 0);
define('ADMIN', 1);


after add

1
define('MOD', 2);


Close includes/contestants.php

Open up includes/auth.php and find

1
2
3
if ($cat_cache[$cat_id][$type] == AUTH_ALL || $user_info['user_level'] == ADMIN) {
    return true;
  }


after add

1
2
3
 if ($cat_cache[$cat_id][$type] == AUTH_ALL || $user_info['user_level'] == MOD) {
    return true;
  }


close includes/auth.php

open includes/page_header.php

find

1
"cp_link" => ($user_info['user_level'] != ADMIN) ? "" : "\n<p align=\"center\">[<a href=\"".ROOT_PATH."admin/index.php\">Control Panel</a>]</p>\n",


replace with

1
"cp_link" => ($user_info['user_level'] != ADMIN && $user_info['user_level'] != MOD) ? "" : "\n<p align=\"center\">[<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php")."\">Control Panel</a>]</p>\n",


close includes/page_header.php

open admin/admin_global.php and then find

1
if ($user_info['user_level'] != ADMIN


immediatly after that add

1
 && $user_info['user_level'] != MOD


close and save all files

All mods should have admin access to the gallery now, this is my first time writing some coding instructions so I might have overlooked something, please let me know if it works!


Title: 4images moderator
Post by: cobacoba on March 14, 2003, 09:54:27 PM
Quote from: Luang   [Expand]
All mods should have admin access to the gallery now, this is my first time writing some coding instructions so I might have overlooked something, please let me know if it works!


I need the specific moderator from phpBB forum can moderate  4images gallery so they can delete or move some images to the right catagory....


Title: Integration 4images 1.7 / phpBB
Post by: Shap on March 16, 2003, 08:12:37 AM
without having to read 14 pages, do we have a working version yet? I understand the thing about changing the login.php with the old login


Title: Integration 4images 1.7 / phpBB
Post by: twmm on March 18, 2003, 03:45:42 PM
Shap -

Time for you to not be so lazy and read all 14 pages. Yes, IT works... but you need to become familiar with the process rather than expect others to do the work for you,.

Regards,
T. McGuire


Title: session_ip encoding and user_name in 4images_comments table
Post by: twmm on March 18, 2003, 04:05:45 PM
There are two areas that I have yet to work through. Perhaps, someone else has already done so.

1. phpBB encodes the session_ip field in the phpbb_sessions table. 4Images does not encode the session_ip, but it does store it into other tables. As a result of the integration, the encoded session_ip gets stored. Has anyone worked out the encode/decode process (borrowing the functions from phpBB functions.php)? If so, I would be most interested in your results.

The session_ip is used by 4Images in details.php, includes\sessions.php and admin\home.php.

2.  Is there any reason for the field user_name in 4images_comments table? If the user information is maintained via the user_id and the information in the phpbb_users table (4images_users table), this information is redundant. Does someone else have a better prespecttive of how this field is used by 4images?

Regards,
T. McGuire


Title: Integration 4images 1.7 / phpBB
Post by: Clow Read on March 19, 2003, 06:21:18 AM
Hi Jan! ^^

could you help me with this prob???

i'm using phpBB 2.0.4 and i've integrated 4images 1.7 to phpBB and i've followed the instructions but when i login inside 4images...it gives me this 404 error

1
2
3

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


phpBB 2.0.4 is placed inside the /forum/ folder and 4images is placed inside /gallery/ folder...

do i have to modify phpBB's functions.php file???

thnx ^_~


Title: Integration 4images 1.7 / phpBB
Post by: Shap on March 19, 2003, 04:18:33 PM
Quote from: twmm   [Expand]
Shap -

Time for you to not be so lazy and read all 14 pages. Yes, IT works... but you need to become familiar with the process rather than expect others to do the work for you,.

Regards,
T. McGuire


no thanks, I'm looking for MODS not headaches.


Title: Integration 4images 1.7 / phpBB
Post by: Jan on March 20, 2003, 12:54:25 PM
@twmm:

1. Just copy the function and used it, whats the problem?

2. You can allow comment posting for guests. In this case its possible to store the guests name instead of showing "Guest" as username for all guest postings.

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Aho on April 14, 2003, 07:47:06 PM
ich habe gerade was entdeckt was nicht so ganz passen kann. und zwar steht in der comment_bit.html dieses hier:
1
 {if comment_user_profile_link}<a href="../profile.php?mode=viewprofile&u=2"><img src="{template_url}/images/profile.gif" border="0" alt="{comment_user_name}" /></a>{endif comment_user_profile_link}


das kann doch garnicht sein. so wie der link zum profil da steht würde der immer das profil von user=2 anzeigen. das ist natürlich falsch. wie kann ich das ändern das der da stets die jeweilige variable für den user auswählt der das post gemacht hat ?


Title: Integration 4images 1.7 / phpBB
Post by: Jan on April 16, 2003, 09:41:37 AM
Nein, das steht da normalerweise nicht drin. Da ist was schiefgelaufen ;)

Jan


Title: Integration 4images 1.7 / phpBB
Post by: Aho on April 16, 2003, 04:48:56 PM
naja, jetzt auch egal. hat mir ein anderer geholfen in einem anderen thread.


Title: Integration 4images 1.7 / phpBB
Post by: Leitha on May 01, 2003, 05:54:12 PM
Hi Everyone,

I am trying to intergrate phpBB 2.0.4 and 4images 1.7

I've setup a test server and installed phpBB 2.0.4 and 4images 1.7 (I made the necessary intergration changes before I installed 4images 1.7). After reading through this thread I noticed that you have to make a change to the phpBB function.php file for things to work properly so I changed  


1
2
3
4
5
6

if (!empty($db))
{
$db->sql_close();
}
   


to

1
2
3
4
5
6
7
8
9
10

if (!empty($db))
{
$db->sql_close();
}
   
if (stristr($url, 'http://')) { 
header('Location: ' . $url); 
exit; 
}


However, I now get the following error when I try to login (with a valid username and password)

Quote  [Expand]

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\Inetpub\wwwroot\forums\includes\functions.php on line 707
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\forums\includes\functions.php:707) in C:\Inetpub\wwwroot\forums\includes\sessions.php on line 182
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\forums\includes\functions.php:707) in C:\Inetpub\wwwroot\forums\includes\sessions.php on line 183
Fatal error: Call to undefined function: redirect() in C:\Inetpub\wwwroot\forums\login.php on line 85


Can anyone help me out with this?


Title: Integration 4images 1.7 / phpBB
Post by: Leitha on May 06, 2003, 05:44:05 PM
Fixed it now. Appears there were hidden characters carried over when I pasted the additional code in. Re-wrote by hand and is now working.


Title: Integration 4images 1.7 / phpBB
Post by: ScatMan on May 10, 2003, 10:51:25 PM
Hello!
I followed the instructions: in 4images I can see phpBB users and they don't need to login it, but when they hit "log out" they see phpBB warning message "Invalid_session"... what's my mistake?
I've a domain and forum.mydomain.com and 4images.mydomain.com and I set in phpBB to use ".domain.com" as cookie domain...
thanks!


Title: Integration 4images 1.7 / phpBB
Post by: andersen on May 11, 2003, 12:15:18 PM
Dear all,

Nice day.

I had mod this in my site done. for the moment, I had meet a few problem, I had trying to searching out about my problem go through 15 pages. but I can't find any source with my problem.

I had downloaded with  integration_phpbb.zip and follow 100% process on the instruction.

Problem:-
=======
1. When I log on with phpbb or 4image, the user are not logon together.
2. When I trying to log out 4image, it will bring me to phpbb main site.

any source? Do any one have a complete .zip ?

Thanks


Title: hi all
Post by: kundera on May 14, 2003, 04:27:57 PM
hi all, so i have a quick question :
when i am on phpbb, i want to have a box with the catégories names of my 4images cat for direct link to the 4images part

i have already do this "menu" box in 4images, and it look like this :
(in my 4images pages header)

1
2
3
4
5
6
7
8
9
10
11
$sql = mysql_db_query("$db_name","select * from ".CATEGORIES_TABLE." WHERE cat_parent_id='0'");  
  while($row = mysql_fetch_array($sql)) {
$cat_id1=$row["cat_id"];
$cat_name1=$row["cat_name"];  

$build_menu .="$ico_arrow <a href=\"categories.php?cat_id=$cat_id1\" class=\"link_low\">$cat_name1</a><br>";

}
$site_template->register_vars(array(
    "build_menu" => $build_menu
  ));


i have try to do the same sql query, and i have define the categori table in the constant phpbb files, but it doesn't run, cause se sql query have to be written differently.

I have try this but it seems to have a bug :

1
2
3
4
5
6
7
8
9
10
11
$sql = "select * from ".CATEGORIES_TABLE_PICS." WHERE cat_parent_id='0'";  
  while($row = $db->sql_fetchrow($result)) {
$cat_id1=$row["cat_id"];
$cat_name1=$row["cat_name"];  

$build_menu .="$ico_arrow <a href=\"categories.php?cat_id=$cat_id1\" class=\"link_low\">$cat_name1</a><br>";

}
$template->assign_vars(array(
'build_menu' => $build_menu)
);


have somebody an idea what is wrong?


Title: Integration 4images 1.7 / phpBB
Post by: Jan on May 14, 2003, 04:31:39 PM
You forgot to execute the query:
1
$result = $db->sql_query($sql);

Jan


Title: Integration 4images 1.7 / phpBB
Post by: devance on May 15, 2003, 07:07:06 AM
um diese integration auch mit einem wbb2 board zu verwenden, muss ich da noch etwas außer die namen der tables ändern ???

oder ist dies gar nicht möglich???

- mfg dev


Title: Integration 4images 1.7 / phpBB
Post by: Jan on May 15, 2003, 12:48:47 PM
Nein, das ist nicht möglich.

Jan


Title: 4images und phpbb
Post by: blauwiese on May 16, 2003, 04:14:39 PM
Hallo alle :D ,

habe nun 2 mal versucht 4images und phpbb zu integrieren  8O , bin jedesmal der Anleitung gefolgt, habe diesen Tread gelesen und die entsprechenden Modifikationen durchgeführt. Leider, leider :(  :cry:  bekomme ich es nicht ganz hin, Login bei 4images und ich lande im phpbb. Logout in 4images und ich lande im Forum. Im Forum geht alles normal... Ist das so :?:  oder mach ich etwas falsch :!:  

Danke :idea:


Title: Question
Post by: Jaap12 on May 18, 2003, 06:57:38 PM
Hi,

First of all great mod! (4images and phpbb) it sounds very nice. But i have 120 users with my photogallery.
My question is:
Is it nessesery to delete all my 120 users before installing the phpbb mod? if yes, the admin account to?

If so .... after the upgrade is it possible to restore all my members? 120 is much to do it all by hand, but that's no problem i think.

I need then only restore the:
-username
-email
-password
?

Password is a big problem, i have looked in the mysql backup from my site and i saw that all the passwords a encrypted? how can i restore the passwords of all the usernames?

I hope somebody can answer al my questions.

Thank you very much.

Bas


Title: quick question
Post by: kundera on May 19, 2003, 03:08:30 PM
hello all :-)
if i want that only one group of users acces to the gallery, what i have to do

thinks need to change something  in include/constant  (4images files)

1
2
3
4
5
6
7
8
9
10
// Permission levels
define('AUTH_ALL', 0);
define('AUTH_USER', 2);
define('AUTH_ACL', 3);
define('AUTH_ADMIN', 9);


// Group types
define('GROUPTYPE_GROUP', 1);
define('GROUPTYPE_SINGLE', 2);


thanks :-) (and sorry if the ansered was allready done, but not an expert in deutch  8) )


Title: Integration 4images 1.7 / phpBB
Post by: Jan on May 20, 2003, 09:58:05 AM
Ja, das ist leider so weil die Funktionen des phpBB genutzt werden und dieses halt immer auf die eigenen Seiten weiterleitet.

Jan


Title: Is there any way of keeping the old members ?
Post by: mantra on May 21, 2003, 07:53:20 AM
Is there any way of keeping the old members ? for this integrations.

Could you make the scripts that can import all user data Jan :?:  :?  :?


Title: Integration 4images 1.7 / phpBB
Post by: Feppa on May 26, 2003, 10:03:28 PM
How do i make a link in phpbb to 4images?

Please help me


Title: Integration 4images 1.7 / phpBB
Post by: Keichi on June 04, 2003, 11:02:14 PM
DB Error: Bad SQL Query: DELETE FROM phpbb_sessions WHERE session_lastaction < 1054758980
Unknown column 'session_lastaction' in 'where clause'

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site67/fst/var/www/html/scans/includes/db_mysql.php:188) in /home/virtual/site67/fst/var/www/html/scans/includes/sessions.php on line 85

DB Error: Bad SQL Query: INSERT INTO phpbb_sessions (session_id, session_user_id, session_lastaction, session_location, session_ip) VALUES ('6588806c8e98915453e33bc397106cb1', -1, 1054759880, 'index.php', '24.114.157.66')
Unknown column 'session_lastaction' in 'field list'

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site67/fst/var/www/html/scans/includes/db_mysql.php:188) in /home/virtual/site67/fst/var/www/html/scans/includes/sessions.php on line 85

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site67/fst/var/www/html/scans/includes/db_mysql.php:188) in /home/virtual/site67/fst/var/www/html/scans/includes/sessions.php on line 85

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site67/fst/var/www/html/scans/includes/db_mysql.php:188) in /home/virtual/site67/fst/var/www/html/scans/includes/sessions.php on line 85

DB Error: Bad SQL Query: SELECT s.session_user_id, s.session_lastaction, s.session_ip, u.user_id, u.user_level, u.user_name, u.user_invisible FROM phpbb_sessions s LEFT JOIN phpbb_users u ON (u.user_id = s.session_user_id) WHERE s.session_lastaction >= 1054759580 ORDER BY u.user_id ASC, s.session_ip ASC
Unknown column 's.session_lastaction' in 'field list'

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.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 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()
Unknown column 'u.user_name' in 'field list'

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.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 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) ORDER BY i.image_date DESC LIMIT 3
Unknown column 'u.user_name' in 'field list'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/virtual/site67/fst/var/www/html/scans/includes/db_mysql.php on line 116

need help -.-


Title: Integration 4images 1.7 / phpBB
Post by: Jan on June 05, 2003, 09:37:47 AM
It seems that you did not replaced sessions.php


Title: Integration 4images 1.7 / phpBB
Post by: Joel K on June 13, 2003, 11:09:23 PM
OK, this is the first mod i have had any trouble with, and it's giving me more trouble than an invisible bull in the world's most expensive china shop!!  OK, exaggeration, but this is pretty important (to me, at least).

Before i start, let me tell you a few details:

-My PHPBB 2.0.4 table prefixes are "bb_"
-This is the code in my constants.php file:
1
2
3
4
5
6
7
8
9
10
define('USERS_TABLE', $table_prefix.'bb_users');
define('SESSIONS_TABLE', $table_prefix.'bb_sessions');

// User levels
define('GUEST', -1);
define('USER_AWAITING', -1);
define('USER', 0);
define('ADMIN', 1);

define('ADMIN_SAFE_LOGIN', 0);

-This is the code in my sessions.php file (i wont put in the URLS that link to my forum/correspond to my forum database as i have checked and they are all correct):
1
2
3
4
5
define('PHPBB_BANLIST_TABLE', 'bb_banlist');
define('PHPBB_CONFIG_TABLE', 'bb_config');

// Set here the URL to your phpBB forum. WITH trailing slash!
$url_app           = "http://www.skrunge.co.uk/bb/";




Now you know a little about my set up, i can tell you the problem :) :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
DB Error: Bad SQL Query: UPDATE 4images_bb_sessions SET session_user_id = -1, session_start = 1055538219, session_time = 1055538219, session_page = 0, session_logged_in = 0 WHERE session_id = '' AND session_ip = 'd9292428'
Table 'skrunge_bb.4images_bb_sessions' doesn't exist

DB Error: Bad SQL Query: INSERT INTO 4images_bb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) VALUES ('8627c20ab60da54524b2328dee5a754e', -1, 1055538219, 1055538219, 'd9292428', 0, 0)
Table 'skrunge_bb.4images_bb_sessions' doesn't exist

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

Warning: Cannot modify header information - headers already sent by (output started at /home/skrunge/public_html/kites/includes/db_mysql.php:188) in /home/skrunge/public_html/kites/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_bb_users u, 4images_bb_sessions s WHERE u.user_id = s.session_user_id AND (s.session_time >= 1055537919 OR u.user_session_time >= 1055537919) ORDER BY u.user_id ASC, s.session_ip ASC
Table 'skrunge_bb.4images_bb_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_bb_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 'skrunge_bb.4images_bb_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_bb_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) ORDER BY i.image_date DESC LIMIT 3
Table 'skrunge_bb.4images_bb_users' doesn't exist

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


If you need any more info just PM me and i'll come on over and give it to you :) or whatever, the gallery is at http://kites.skrunge.co.uk

Please help me fix this problem - i love 4iamges and don't want to be forced to change it to another gallery!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Title: Integration 4images 1.7 / phpBB
Post by: Joel K on June 14, 2003, 03:46:58 PM
OK, got rid of that error :D

BUT - now when i try to sign into my gallery, i get a new error:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

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

Please try the following:

If you typed the page address in the Address bar, make sure that it is spelled correctly.

Open the www.skrunge.co.uk home page, and then look for links to the information you want.
Click the  Back button to try another link.
Click  Search to look for information on the Internet.



HTTP 404 - File not found
Internet Explorer  


I've checked, and the page does actually exist - click refresh and it works fine.  All links to the various parts of my forum correctly.  However, when logged into my forum i can't go to my gallery and edit anything (as an admin user).

Why is this???  any ideas anyone???


Title: how
Post by: mantra on June 15, 2003, 04:52:13 PM
Jan how to make ,
 If admin  delete user  from board [ pbpbb ] it will delete user on 4image too.
8)


Title: Integration 4images 1.7 / phpBB
Post by: Jan on June 15, 2003, 05:36:00 PM
Because of the fact that 4images deals with the users from phpBB after the integration, the users will be deleted.

Jan


Title: no not after
Post by: mantra on June 16, 2003, 02:51:40 AM
After I make itregation with phpbb, and restore my all member to both program, now everytime guest make register it will add user to both [ 4images and phpbb ]

acording to this script

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
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)) )



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


my question is the same system as above script,

 to remove user in both progran Jan, when admin remove the user on phpbb it will remove in 4images to.


 :wink:


Title: HILFE! phpbb Integration
Post by: m-a-b on June 17, 2003, 11:18:24 AM
Quote from: Jan   [Expand]
Probiere diesen Teil in login.php zu löschen (wieder beim phpBB):
1
2
3
4
5
// session id check
if ($sid == '' || $sid != $userdata['session_id'])
{
    message_die(GENERAL_ERROR, 'Invalid_session');
}


Das liegt daran, dass die Integration für Version 2.0.0 geschrieben wurde und sich jetzt bei Version 2.0.4 dort etwas geändert hat.

Jan


hi Jan!
das sollte vielleicht in der Datei in diesem Beitrag http://www.4homepages.de/forum/viewtopic.php?p=6985#6985
hinzugefügt werden! (in der readme)
hab schon ewig danach gesucht!
und das phpBB 2.0.4 ist eben nun mal die aktuelle Version!

mfg

Markus  8)


Title: jan
Post by: mantra on June 18, 2003, 12:03:47 PM
Jan ....... please?


Title: Integration 4images 1.7 / phpBB
Post by: mantra on June 20, 2003, 02:43:23 PM
Finally I can make it,......  

for whom want to delete 4images user , when you delete user  from phpbb control panel.

change this admin_userlist.php

to this


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567

<?php
/***************************************************************************
 *                             admin_userlist.php
 *                            -------------------
 *   begin                &#58; Thursday, Jul 12, 2001
 *   copyright            &#58; &#40;C&#41; 2001 The phpBB Group
 *   email                &#58; support@phpbb.com
 *
 *   $Id&#58; admin_userlist.php,v 1.1.0 2003/01/05 02&#58;36&#58;00 psotfx Exp $
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   &#40;at your option&#41; any later version.
 *
 ***************************************************************************/

define&#40;'IN_PHPBB', 1&#41;;

if&#40; !empty&#40;$setmodules&#41; &#41;
&#123;
$file basename&#40;__FILE__&#41;;
$module['Users'&#93;['User_List'&#93; = $file;
return;
&
#125;

//
// Load default header
//
$phpbb_root_path "./../";
require&
#40;$phpbb_root_path . 'extension.inc'&#41;;
require&#40;'./pagestart.' . $phpEx&#41;;
include&#40;$phpbb_root_path . 'config.'.$phpEx&#41;;
include&#40;$phpbb_root_path . 'includes/functions_admin.'.$phpEx&#41;;

$start = &#40; isset&#40;$HTTP_GET_VARS['start'&#93;&#41; &#41; ? intval&#40;$HTTP_GET_VARS['start'&#93;&#41; &#58; 0;

if &#40; isset&#40;$HTTP_GET_VARS['mode'&#93;&#41; || isset&#40;$HTTP_POST_VARS['mode'&#93;&#41; &#41;
&#123;
$mode = &#40; isset&#40;$HTTP_POST_VARS['mode'&#93;&#41; &#41; ? $HTTP_POST_VARS['mode'&#93; &#58; $HTTP_GET_VARS['mode'&#93;;
&#125;
else
&
#123;
$mode 'joined';
&
#125;

if&#40;isset&#40;$HTTP_POST_VARS['order'&#93;&#41;&#41;
&#123;
$sort_order = &#40;$HTTP_POST_VARS['order'&#93; == 'ASC'&#41; ? 'ASC' &#58; 'DESC';
&#125;
else if&#40;isset&#40;$HTTP_GET_VARS['order'&#93;&#41;&#41;
&#123;
$sort_order = &#40;$HTTP_GET_VARS['order'&#93; == 'ASC'&#41; ? 'ASC' &#58; 'DESC';
&#125;
else
&
#123;
$sort_order 'ASC';
&
#125;

if &#40; isset&#40;$HTTP_GET_VARS['alphanum'&#93;&#41; || isset&#40;$HTTP_POST_VARS['alphanum'&#93;&#41; &#41; 
&#123; 
   
$alphanum = &#40; isset&#40;$HTTP_POST_VARS['alphanum'&#93;&#41; &#41; ? $HTTP_POST_VARS['alphanum'&#93; &#58; $HTTP_GET_VARS['alphanum'&#93;; 
   
$alpha_where = &#40; $alphanum == '#' &#41; ? "AND username NOT RLIKE '^[A-Z&#93;'"&#58;"AND username LIKE '$alphanum%'"; 
&#125;

if &#40;$HTTP_GET_VARS['mode'&#93; == "edit"&#41; &#123;
$user_status $HTTP_GET_VARS['user_status'&#93;;
$user_id2 $HTTP_GET_VARS['u'&#93;;

if &#40;$user_id2 == 2&#41; &#123;
echo "Can't change status of Board owner";
exit;
&#125;

$sql "UPDATE " USERS_TABLE "
SET user_active = 
$user_status
WHERE user_id = 
$user_id2";

if&#40; $result = $db->sql_query&#40;$sql&#41; &#41;
&#123;
$message .= $lang['User_status_updated'&#93;;
&#125;
else
&#123;
$error TRUE;
$error_msg = &#40; &#40; isset&#40;$error_msg&#41; &#41; ? '<br />' &#58; '' &#41; . $lang['Admin_user_fail'&#93;;
&#125;

&
#125;

if&#40; $HTTP_GET_VARS['mode'&#93; == "delete" &#41; &#123;

$user_id $HTTP_GET_VARS['u'&#93;;
$message $lang['Confirm_user_delete'&#93; . '<br /><br />' . sprintf&#40;$lang['Yes_delete_user'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx?mode=confirm_delete&u=" . $user_id&#41; . '">', '</a>'&#41; . '<br /><br />' . sprintf&#40;$lang['No_delete_user'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx"&#41; . '">', '</a>'&#41;;

message_die&#40;GENERAL_MESSAGE, $message&#41;;
&#125;

if &
#40;$HTTP_GET_VARS['mode'&#93; == "confirm_delete"&#41; &#123;
$user_id $HTTP_GET_VARS['u'&#93;;

/*if &#40;$user_id == 2&#41; &#123;
echo "Can't delete Board owner";
exit;
&#125;*/
$sql "SELECT g.group_id 
FROM " 
USER_GROUP_TABLE " ug, " GROUPS_TABLE " g  
WHERE ug.user_id = 
$user_id 
AND g.group_id = ug.group_id 
AND g.group_single_user = 1"
;
if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not obtain group information for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$row $db->sql_fetchrow&#40;$result&#41;;

$sql "UPDATE " POSTS_TABLE "
SET poster_id = " 
DELETED ", post_username = '$username
WHERE poster_id = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not update posts for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "UPDATE " TOPICS_TABLE "
SET topic_poster = " 
DELETED 
WHERE topic_poster = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not update topics for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "UPDATE " VOTE_USERS_TABLE "
SET vote_user_id = " 
DELETED "
WHERE vote_user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not update votes for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "SELECT group_id
FROM " 
GROUPS_TABLE "
WHERE group_moderator = 
$user_id";
if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql&#41;;
&#125;

while &#40; $row_group = $db->sql_fetchrow&#40;$result&#41; &#41;
&#123;
$group_moderator[&#93; = $row_group['group_id'&#93;;
&#125;

if &#40; count&#40;$group_moderator&#41; &#41;
&#123;
$update_moderator_id implode&#40;', ', $group_moderator&#41;;

$sql "UPDATE " GROUPS_TABLE "
SET group_moderator = " 
$userdata['user_id'&#93; . "
WHERE group_moderator IN &#40;$update_moderator_id&#41;";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql&#41;;
&#125;
&#125;

$sql "DELETE FROM " USERS_TABLE "
WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

//------------------------------------------------------------------------------------------------
//------------------- DELETE 4IMAGES USER-----------------------------------------------------------
//---------------------------------------------------------------------------------------------

$album_sql "DELETE FROM " ALBUM_USERS_TABLE "
WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$album_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user 4images', '', __LINE__, __FILE__, $sql&#41;;
&#125;
            
$album_sql "DELETE FROM "ALBUM_GROUP_MATCH_TABLE .
            WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$album_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete group user 4images', '', __LINE__, __FILE__, $sql&#41;;
&#125;
              
$album_sql "DELETE FROM "ALBUM_LIGHTBOXES_TABLE .
            WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$album_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete lightboxes user 4images', '', __LINE__, __FILE__, $sql&#41;;
&#125;
  
$album_sql "DELETE FROM "ALBUM_COMMENTS_TABLE .
            WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$album_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete comment user 4images', '', __LINE__, __FILE__, $sql&#41;;
&#125;
//-----------------------------------------------------------------------------------
//--------- END OF DELETE 4IMAGES USER
//-----------------------------------------------------------------------------------
$sql "DELETE FROM " USER_GROUP_TABLE "
WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user from user_group table', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "DELETE FROM " GROUPS_TABLE "
WHERE group_id = " 
$row['group_id'&#93;;
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "DELETE FROM " AUTH_ACCESS_TABLE "
WHERE group_id = " 
$row['group_id'&#93;;
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "DELETE FROM " TOPICS_WATCH_TABLE "
WHERE user_id = 
$user_id";
if &#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user from topic watch table', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "DELETE FROM " BANLIST_TABLE "
WHERE ban_userid = 
$user_id";
if &#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user from banlist table', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "SELECT privmsgs_id
FROM " 
PRIVMSGS_TABLE "
WHERE privmsgs_from_userid = 
$user_id 
OR privmsgs_to_userid = 
$user_id";
if &#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not select all users private messages', '', __LINE__, __FILE__, $sql&#41;;
&#125;

// This little bit of code directly from the private messaging section.
while &#40; $row_privmsgs = $db->sql_fetchrow&#40;$result&#41; &#41;
&#123;
$mark_list[&#93; = $row_privmsgs['privmsgs_id'&#93;;
&#125;

if &#40; count&#40;$mark_list&#41; &#41;
&#123;
$delete_sql_id implode&#40;', ', $mark_list&#41;;

$delete_text_sql "DELETE FROM " PRIVMSGS_TEXT_TABLE "
WHERE privmsgs_text_id IN &#40;
$delete_sql_id&#41;";
$delete_sql "DELETE FROM " PRIVMSGS_TABLE "
WHERE privmsgs_id IN &#40;
$delete_sql_id&#41;";

if &#40; !$db->sql_query&#40;$delete_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $delete_sql&#41;;
&#125;

if &#40; !$db->sql_query&#40;$delete_text_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $delete_text_sql&#41;;
&#125;
&#125;

$message $lang['User_deleted'&#93; . '<br /><br />' . sprintf&#40;$lang['Click_return_userslist'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx"&#41; . '">', '</a>'&#41; . '<br /><br />' . sprintf&#40;$lang['Click_return_admin_index'&#93;, '<a href="' . append_sid&#40;"index.$phpEx?pane=right"&#41; . '">', '</a>'&#41;;

message_die&#40;GENERAL_MESSAGE, $message&#41;;
&#125;

if&#40; $HTTP_GET_VARS['mode'&#93; == "ban" &#41; &#123;

$user_id $HTTP_GET_VARS['u'&#93;;
$message $lang['Confirm_user_ban'&#93; . '<br /><br />' . sprintf&#40;$lang['Yes_ban_user'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx?mode=confirm_ban&u=" . $user_id&#41; . '">', '</a>'&#41; . '<br /><br />' . sprintf&#40;$lang['No_ban_user'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx"&#41; . '">', '</a>'&#41;;

message_die&#40;GENERAL_MESSAGE, $message&#41;;
&#125;

if &
#40;$mode == "confirm_ban"&#41; &#123;

   
$user_id $HTTP_GET_VARS['u'&#93;;
   
   
$sql "INSERT INTO " BANLIST_TABLE " &#40;ban_userid&#41;
VALUES &#40;" 
$user_id "&#41;";
if &#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, "Couldn't insert ban_userid info into database", "", __LINE__, __FILE__, $sql&#41;;
&#125;

$message $lang['User_banned'&#93; . '<br /><br />' . sprintf&#40;$lang['Click_return_userslist'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx"&#41; . '">', '</a>'&#41; . '<br /><br />' . sprintf&#40;$lang['Click_return_admin_index'&#93;, '<a href="' . append_sid&#40;"index.$phpEx?pane=right"&#41; . '">', '</a>'&#41;;

message_die&#40;GENERAL_MESSAGE, $message&#41;;
&#125;

//
// Memberlist sorting
//
$mode_types_text = array&#40;$lang['Sort_Joined'&#93;, $lang['Sort_Username'&#93;, $lang['Sort_Posts'&#93;, $lang['Sort_Email'&#93;,&#41;;
$mode_types = array&#40;'joindate', 'username', 'posts', 'email'&#41;;

$select_sort_mode '<select name="mode">';
for&
#40;$i = 0; $i < count&#40;$mode_types_text&#41;; $i++&#41;
&#123;
$selected = &#40; $mode == $mode_types[$i&#93; &#41; ? ' selected="selected"' &#58; '';
$select_sort_mode .= '<option value="' $mode_types[$i&#93; . '"' . $selected . '>' . $mode_types_text[$i&#93; . '</option>';
&#125;
$select_sort_mode .= '</select>';

$select_sort_order '<select name="order">';
if&
#40;$sort_order == 'ASC'&#41;
&#123;
$select_sort_order .= '<option value="ASC" selected="selected">' $lang['Sort_Ascending'&#93; . '</option><option value="DESC">' . $lang['Sort_Descending'&#93; . '</option>';
&#125;
else
&
#123;
$select_sort_order .= '<option value="ASC">' $lang['Sort_Ascending'&#93; . '</option><option value="DESC" selected="selected">' . $lang['Sort_Descending'&#93; . '</option>';
&#125;
$select_sort_order .= '</select>';

//
// Generate page
//

$template->set_filenames&#40;array&#40;
'body' => 'admin/userlist_body.tpl'&#41;
&#41;;
make_jumpbox&#40;'viewforum.'.$phpEx&#41;;

$template->assign_vars&#40;array&#40;
'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'&#93;,
'L_EMAIL' => $lang['Email'&#93;,
'L_USERNAME' => $lang['Username'&#93;,
'L_ORDER' => $lang['Order'&#93;,
'L_SORT' => $lang['Sort'&#93;,
'L_SUBMIT' => $lang['Sort'&#93;,
'L_JOINED' => $lang['Joined'&#93;, 
'L_POSTS' => $lang['Posts'&#93;, 
'L_PM' => $lang['Private_Message'&#93;, 
'L_ACTIVE' => $lang['Active'&#93;,
'L_ACTION' => $lang['Action'&#93;,
'L_EDIT_PERMISSION' => $lang['Edit_Permission'&#93;,
'L_EDIT_PROFILE' => $lang['Edit_Profile'&#93;,
'L_PM' => $lang['Private_Message'&#93;,
'L_USER_LIST_TITLE' => $lang['User_list_title'&#93;,
'L_USER_LIST_DESCRIPTION' => $lang['User_list_description'&#93;,
'L_USERGROUP' => $lang['User_group'&#93;,

'S_MODE_SELECT' => $select_sort_mode,
'S_ORDER_SELECT' => $select_sort_order,
'S_MODE_ACTION' => append_sid&#40;"admin_userlist.$phpEx" . &#40; &#40;isset&#40;$alphanum&#41;&#41; ? "?alphanum=$alphanum" &#58; '' &#41;&#41;
&#41; &#41;;

$alpha_range range&#40;'A','Z'&#41;;
$alphanum_range array_merge&#40;array&#40;'' => 'All'&#41;,array&#40;'%23' => '#'&#41;,$alpha_range&#41;;
foreach &#40; $alphanum_range as $key => $alpha &#41;
&#123;
if &#40; in_array&#40;$alpha,$alpha_range&#41; &#41; $key = $alpha;
$alphanum_search_url append_sid&#40;"admin_userlist.$phpEx?mode=" . &#40; &#40; isset&#40;$HTTP_GET_VARS['mode'&#93;&#41; || isset&#40;$HTTP_POST_VARS['mode'&#93;&#41; &#41; ? $mode &#58; 'username' &#41; . "&amp;sort=$sort_order&amp;alphanum=" . strtolower&#40;$key&#41;&#41;;
$template->assign_block_vars&#40;'alphanumsearch', array&#40;
'SEARCH_SIZE' => floor&#40;100/count&#40;$alphanum_range&#41;&#41; . '%',
'SEARCH_TERM' => $alpha,
'SEARCH_LINK' => $alphanum_search_url
&
#41;&#41;;
&#125;

switch&#40; $mode &#41;
&#123;
case 'joined'&#58;
$order_by "user_regdate ASC LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
case 'username'&#58;
$order_by "username $sort_order LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
case 'posts'&#58;
$order_by "user_posts $sort_order LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
case 'email'&#58;
$order_by "user_email $sort_order LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
default&#58;
$order_by "user_regdate $sort_order LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
&
#125;

$sql "SELECT * 
   FROM " 
USERS_TABLE 
   WHERE user_id <> " 
ANONYMOUS $alpha_where 
   ORDER BY 
$order_by";
if&
#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not query users', '', __LINE__, __FILE__, $sql&#41;;
&#125;

if &#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;
&#123;
$i 0;
do
&#123;
$username $row['username'&#93;;
$user_id $row['user_id'&#93;;
$status $row['user_active'&#93;;

$sql "SELECT * 
     FROM " 
USER_GROUP_TABLE 
    WHERE user_id = " 
$user_id;
if&#40; !&#40;$result2 = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
  message_die&#40;GENERAL_ERROR, 'Could not query group', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$group_name "";

 
while &#40;$user_group = $db->sql_fetchrow&#40;$result2&#41;&#41; &#123;

  $group_status "";
  $group_id $user_group['group_id'&#93;;
  
  $sql "SELECT * 
          FROM " 
GROUPS_TABLE 
         WHERE group_id = " 
$group_id;
 
   if&#40; !&#40;$result3 = $db->sql_query&#40;$sql&#41;&#41; &#41;
   &#123;
       message_die&#40;GENERAL_ERROR, 'Could not query groups', '', __LINE__, __FILE__, $sql&#41;;
   &#125;

   while &#40;$group_info = $db->sql_fetchrow&#40;$result3&#41;&#41; &#123;

     if &#40;$group_name != ""&#41; 
 &#123;
  $group_name .= "<br />";
 &#125;

 
    $group_name .= $group_info['group_name'&#93; . "&nbsp;" . $group_status;
&#125;
&#125;

$user_group_name $group_name;

$email_uri append_sid&#40;$phpbb_root_path . "profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id&#41;;
$email '<a href="' $email_uri '" class="gen">' $lang['Email'&#93; . '</a>';

$joined create_date&#40;$lang['DATE_FORMAT'&#93;, $row['user_regdate'&#93;, $board_config['board_timezone'&#93;&#41;;
$posts = &#40; $row['user_posts'&#93; &#41; ? $row['user_posts'&#93; &#58; 0;


//status varible
if &#40;$status == '0'&#41; &#123;
$l_active $lang['No'&#93;;
$l2_active 1;
&#125;
if &#40;$status == '1'&#41; &#123;
$l_active $lang['Yes'&#93;;
$l2_active 0;
&#125;

$temp_url append_sid&#40;"admin_userlist.$phpEx?mode=edit&amp;" . POST_USERS_URL . "=$user_id&amp;user_status=$l2_active"&#41;;
$active '<a href="' $temp_url '" class="gen">' $l_active '</a>';

//delete link
$temp_url append_sid&#40;"admin_userlist.$phpEx?mode=delete&amp;" . POST_USERS_URL . "=$user_id"&#41;;
$delete '<a href="' $temp_url '" class="gen">' $lang['Delete'&#93; . '</a>';

//ban link
$temp_url append_sid&#40;"admin_userlist.$phpEx?mode=ban&amp;" . POST_USERS_URL . "=$user_id"&#41;;
$ban '<a href="' $temp_url '" class="gen">' $lang['Ban'&#93; . '</a>';

//profile varibles
$temp_url append_sid&#40;$phpbb_root_path . "profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$user_id"&#41;;
$profile '<a href="' $temp_url '" class="gen">' $lang['Read_profile'&#93; . '</a>';

//post search varibles
$temp_url append_sid&#40;$phpbb_root_path . "search.$phpEx?search_author=" . urlencode&#40;$username&#41; . "&amp;showresults=posts"&#41;;
$search '<a href="' $temp_url '" class="gen">' $lang['Search_user_posts'&#93; . '</a>';

//pm varibles
$temp_url append_sid&#40;$phpbb_root_path . "privmsg.$phpEx?mode=post&amp;" . POST_USERS_URL . "=$user_id"&#41;;
$pm_img '<a href="' $temp_url '"><img src="' $images['icon_pm'&#93; . '" alt="' . $lang['Send_private_message'&#93; . '" title="' . $lang['Send_private_message'&#93; . '" border="0" /></a>';
$pm '<a href="' $temp_url '" class="gen">' $lang['PM'&#93; . '</a>';

$row_color = &#40; !&#40;$i % 2&#41; &#41; ? $theme['td_color1'&#93; &#58; $theme['td_color2'&#93;;
$row_class = &#40; !&#40;$i % 2&#41; &#41; ? $theme['td_class1'&#93; &#58; $theme['td_class2'&#93;;

$template->assign_block_vars&#40;'memberrow', array&#40;
'ROW_NUMBER' => $i + &#40; $HTTP_GET_VARS['start'&#93; + 1 &#41;,
'ROW_COLOR' => '#' $row_color,
'ROW_CLASS' => $row_class,
'USERNAME' => $username,
'JOINED' => $joined,
'POSTS' => $posts,
'PROFILE' => $profile
'SEARCH' => $search,
'EMAIL' => $email,
'ACTIVE' => $active,
'PM_IMG' => $pm_img,
'PM' => $pm,
'EMAIL' => $email,
'DELETE' => $delete,
'GROUP' => $user_group_name,
'BAN' => $ban,

'U_EDIT_PERMISSION' => append_sid&#40;"admin_ug_auth.$phpEx?mode=user&amp;" . POST_USERS_URL . "=" . $user_id&#41;,
'U_EDIT_PROFILE' => append_sid&#40;"admin_users.$phpEx?mode=edit&amp;" . POST_USERS_URL . "=" . $user_id&#41;,

'U_SEARCH_POST' => append_sid&#40;$phpbb_root_path . "search.$phpEx?search_author=" . urlencode&#40;$username&#41; . "&amp;showresults=posts"&#41;,
'U_VIEWPROFILE' => append_sid&#40;$phpbb_root_path . "profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$user_id"&#41;&#41;
&#41;;

$i++;
&#125;
while &#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;;
&#125;

if &#40; $mode != 'topten' || $board_config['topics_per_page'&#93; < 10 &#41;
&#123;
   
$sql "SELECT count&#40;*&#41; AS total 
      FROM " 
USERS_TABLE 
      WHERE user_id <> " 
ANONYMOUS $alpha_where";

if &#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Error getting total users', '', __LINE__, __FILE__, $sql&#41;;
&#125;

if &#40; $total = $db->sql_fetchrow&#40;$result&#41; &#41;
&#123;
$total_members $total['total'&#93;;

$pagination generate_pagination&#40;"admin_userlist.$phpEx?mode=$mode&order=$sort_order" . &#40; &#40; isset&#40;$alphanum&#41; &#41; ? "&alphanum=$alphanum" &#58; '' &#41;, $total_members, $board_config['topics_per_page'&#93;, $start&#41;;
&#125;
&#125;
else
&
#123;
$pagination '&nbsp;';
$total_members 10;
&
#125;

$template->assign_vars&#40;array&#40;
'PAGINATION' => $pagination,
'PAGE_NUMBER' => sprintf&#40;$lang['Page_of'&#93;, &#40; floor&#40; $start / $board_config['topics_per_page'&#93; &#41; + 1 &#41;, ceil&#40; $total_members / $board_config['topics_per_page'&#93; &#41;&#41;, 

'L_GOTO_PAGE' => $lang['Goto_page'&#93;&#41;
&#41;;

$template->pparse&#40;'body'&#41;;

include&#40;'./page_footer_admin.'.$phpEx&#41;;

?>



and add this in your constants.php [ in folder phpbb ]

 // 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');
 define('ALBUM_GROUP_MATCH_TABLE', $album_table_prefix.'groupmatch');
 define('ALBUM_LIGHTBOXES_TABLE', $album_table_prefix.'lightboxes');
 define('ALBUM_COMMENTS_TABLE', $album_table_prefix.'comments');
 
 // Album User levels
 define('ALBUM_GUEST', -1);
 define('ALBUM_USER_AWAITING', 1);
 define('ALBUM_USER', 2);
 define('ALBUM_ADMIN', 9);


I hope this is right, because on my site it's works fine


Title: Integration 4images 1.7 / phpBB
Post by: nccsoft on June 21, 2003, 04:12:35 AM
Quote from: Aho   [Expand]
ich habe gerade was entdeckt was nicht so ganz passen kann. und zwar steht in der comment_bit.html dieses hier:
1
 {if comment_user_profile_link}<a href="../profile.php?mode=viewprofile&u=2"><img src="{template_url}/images/profile.gif" border="0" alt="{comment_user_name}" /></a>{endif comment_user_profile_link}


das kann doch garnicht sein. so wie der link zum profil da steht würde der immer das profil von user=2 anzeigen. das ist natürlich falsch. wie kann ich das ändern das der da stets die jeweilige variable für den user auswählt der das post gemacht hat ?


you can edit details.php
find
1
       "comment_user_profile_button" => $comment_user_profile_button,

after add
1
       "comment_user_profile_link" => $comment_user_profile_link,


Title: Integration 4images 1.7 / phpBB
Post by: Paprika on June 22, 2003, 05:20:01 AM
Will this mod work with the newly released phpBB 2.0.5 ? :?:


Title: 4images Login Box Problem after fusion with phpbb :-)
Post by: Magico on June 22, 2003, 12:26:02 PM
Hallo,

hab ein kleines Problem ich hoffe ihr könnt mir weiterhelfen. Habe das 4images V 1.7 und phpbb2 V2.04. Hab den Integration_phpbb.zip mir runtergeladen den Installations Anweisungen gefolgt.

Hab folgendes Problem wenn man sich von der 4images Login Box Einloggen will dann erscheint bei mir eine ( 404 ERROR ) Seite d.h das die Login Box irgendwie in eine falsch verlinkt ist. Das Passiert aber nur wenn man die Login Daten eingibt! Wenn mal Benutzername und Passwort leer lässt dann linkt die Box schon zum Forum hmmmm bin am verzweifeln. Alles läuft unter einer Datenbank scheint alles richtig zu sein aber funktionieren tut es nicht.....
Habe alle Dateien Editiert und Angepasst also sessions.php usw...

Ich hoffe es kann mir jemand weiter helfen! Danke!

Bedanke mich im voraus


mfg

Magic


Title: Integration 4images 1.7 / phpBB
Post by: Jan on June 23, 2003, 04:39:02 PM
Das wurde ein paar Beiträge weiter oben besprochen.

Jan


Title: Language problem
Post by: otnemem on June 28, 2003, 08:46:47 PM
Hi
I've integrated 4images and phpbb 2.04.  Everything is working great....except.....If I set a test account for a language other than the PHPbb board default (english), such as German or Spanish, the language setting is not picked up by 4images.  I made sure that phpbb and 4images each had corresponding language packs installed...

Anyone have an idea how to fix this?  I've got members from all over the world on my site.

THX!
otnemem


Title: Integration 4images 1.7 / phpBB
Post by: andyfr on June 29, 2003, 10:55:06 AM
also ich habe bei 4images bei config.php aus 4imges_ in phpbb_ umgwandelt und dann bin ich auf meine seit von der gallay gegeng dann war dieser fehler:
DB Error: Bad SQL Query: SELECT setting_name, setting_value FROM phpbb_settings
Table 'andyfro_de_db.phpbb_settings' doesn't exist
dann bin ich in meine datenbank gegang und wolte zuerst mal images_settings änder auf phpbb_settings
aber dann kamm eine fehler meldung diese hier:
SELECT * FROM `phpbb_settings` WHERE 1 LIMIT 0, 30

MySQL meldet:

Table 'andyfro_de_db.phpbb_settings' doesn't exist

was mache ich fahlsch??? :?:  :?:  :?:

MfG
Andy FR


Title: login questions
Post by: webslingers on June 29, 2003, 11:59:38 AM
I just read through all 16 pages and did not see what I am looking for. The integration went fine, and works great. The only problem I have is when people go to the site, they are on the photo site, then when they try to login, it takes them to the forum login page. I have put a link to go back and forth but can someone please tell me how to have a separate login page that redirects to a page with the option of going to the forum or photo gallery? Even an option for the forum or gallery would be nice on the login form itself. My site is mainly for the photo gallery with the forums being a side thing, the way it works now it doesn't look like that. Someone please help. Thanks in advance!

Have a good one!


Title: Re: Integration 4images 1.7 / phpBB
Post by: universal on March 14, 2005, 01:03:36 PM
Will this mod work with 1.7.1, if the sessions.php is diferent from 1.7 version.
And how to make it work?


Title: Re: Integration 4images 1.7 / phpBB
Post by: robertmf on March 14, 2005, 06:23:11 PM
Will this mod work with 1.7.1, if the sessions.php is diferent from 1.7 version.
And how to make it work?

The current version is phpBB2 v2.013 which I have installed and working with the 4images mod/integration.

(You need to upgrade your phpBB2 for security reasons)


Title: Re: Integration 4images 1.7 / phpBB
Post by: wflorian on March 14, 2005, 09:21:26 PM
I read that it is only possible to install this mod with a fresh installation of 4images.
I have currently 150 members, is there any possibilty to make this mod work with the 150 members?!

thanks


Title: Re: Integration 4images 1.7 / phpBB
Post by: robertmf on March 14, 2005, 09:33:18 PM
I read that it is only possible to install this mod with a fresh installation of 4images.
I have currently 150 members, is there any possibilty to make this mod work with the 150 members?!

thanks

Most of this has already been covered in this forum.  Use [search]--)

The number of members doesn't matter.   What does matter when integrating 4images with phpBB for the first time is that you want to do the 4images install with no 4images members   i.e., a new install of 4images. 



Title: Re: Integration 4images 1.7 / phpBB
Post by: wflorian on March 14, 2005, 09:36:39 PM
that is what I meant, I want to avoid a new and fresh installation of 4images, because I do not want to lose the 150 members.


Title: Re: Integration 4images 1.7 / phpBB
Post by: robertmf on March 14, 2005, 09:57:22 PM
that is what I meant, I want to avoid a new and fresh installation of 4images, because I do not want to lose the 150 members.

AH!!As we say in English, "you're screwed then"  :roll: :twisted:   

You mean you have the 4images, but do not have the phpBB ?  In that case, you are "backwards" in the process.  Once you install phpBB and then integrate the 4images, the access validation/accounts will use the phpBB.   

Now, PERHAPS you can download your 150 4images usernames and passwords into a .sql file.  Then, after you do the phpBB install (easy), you upload the 4images.sql file into phpBB_users (username, user_password)  What I AM NOT SURE ABOUT is if the password encryption is the same in 4images and phpBB.




Title: Re: Integration 4images 1.7 / phpBB
Post by: universal on March 15, 2005, 05:18:41 AM
Hmmm... Then I have big problem ;] I have more then 1700 users


Title: Re: Integration 4images 1.7 / phpBB
Post by: wflorian on March 15, 2005, 09:48:16 AM
same with me, yesterday I got 200 new members, right now I have 350...don't want to loose them... :(

Is there any other board or forum that works with 4images without loosing my members!?


Title: Re: Integration 4images 1.7 / phpBB
Post by: robertmf on March 15, 2005, 04:18:17 PM
same with me, yesterday I got 200 new members, right now I have 350...don't want to loose them... :(

Is there any other board or forum that works with 4images without loosing my members!?

It has been awhile since I've done the phpbb<->4images mod.   Perhaps you (both) want to contact the 4images author to find out about the password  encryption ?

At present, phpBB does not have a photo gallery.  There is the attachments mod which also has a slideshow sub-mod. 

If I remember correctly, 4images  does tell you upfront to have a  fresh 4images gallery before doing the integration with phpBB mod.

I don't know of any other discussion/forum where the process would be any different.  The main thing is to match up the password encryption routine.  phpBB uses md5()  in file phpBB/login.php

After integration, you could always blow password security by importing the 4images users into phpBB with a new password and then notifying all your 4images users to  change it.  You would probably lose a percentage of your registrees, but it is an alternative.





Title: Re: 4images Login Box Problem after fusion with phpbb :-)
Post by: chrimp on March 26, 2005, 10:46:26 AM
Hallo,

hab ein kleines Problem ich hoffe ihr könnt mir weiterhelfen. Habe das 4images V 1.7 und phpbb2 V2.04. Hab den Integration_phpbb.zip mir runtergeladen den Installations Anweisungen gefolgt.

Hab folgendes Problem wenn man sich von der 4images Login Box Einloggen will dann erscheint bei mir eine ( 404 ERROR ) Seite d.h das die Login Box irgendwie in eine falsch verlinkt ist. Das Passiert aber nur wenn man die Login Daten eingibt! Wenn mal Benutzername und Passwort leer lässt dann linkt die Box schon zum Forum hmmmm bin am verzweifeln. Alles läuft unter einer Datenbank scheint alles richtig zu sein aber funktionieren tut es nicht.....
Habe alle Dateien Editiert und Angepasst also sessions.php usw...

Ich hoffe es kann mir jemand weiter helfen! Danke!

Bedanke mich im voraus


mfg

Magic

argl.
Ich hab jetzt den thread zum 2.x gelesen, trotzdem konnte ich die Antwort zu dem Prob nicht finden. ;(
Kann bitte einer mal direkt darauf verlinken oder nochmal kurz posten, was die Lösung ist?
danke


Title: Re: Integration 4images 1.7 / phpBB
Post by: Jan on March 29, 2005, 10:49:57 AM
Kannst Du einen Link zur Galerie posten?


Title: Re: Integration 4images 1.7 / phpBB
Post by: chrimp on March 29, 2005, 12:52:39 PM
Kannst Du einen Link zur Galerie posten?

Na klar.
http://mib.pixplace.net/gallery/
Forum: http://mib.pixplace.net/

Ich habe es nochmal auf anderem webspace versucht, aber da mach ich anscheinend den gleichen Fehler.
Die URL ist nicht richtig beim Einloggen, die Domain wird doppelt angegeben. z.B.:
http://mib.pixplace.net/http://mib.pixplace.net/gallery/index.php?sid=090361f6e1678edf763bd5f1d65111a
Nur leider weiß ich nicht, wo dies übergeben wird.

Gibt man hingegen keinen Benutzer ein, wird mal richtig gelinkt:
http://mib.pixplace.net/login.php?redirect=http://mib.pixplace.net/gallery/index.php

Testuser: test
Password: test


danke schonmal


Title: Re: Integration 4images 1.7 / phpBB
Post by: Jan on March 29, 2005, 05:06:05 PM
Hänge mal die login.php von phpBB hier als Attachment an.



Title: Re: Integration 4images 1.7 / phpBB
Post by: chrimp on March 29, 2005, 05:40:11 PM
Hänge mal die login.php von phpBB hier als Attachment an.



Dateianhang geht nicht, oder?
Deswegen hier:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
<?php
/***************************************************************************
 *                                login.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: login.php,v 1.47.2.15 2004/03/18 18:15:51 acydburn Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

//
// Allow people to reach login page if
// board is shut down
//
define("IN_LOGIN"true);

define('IN_PHPBB'true);
$phpbb_root_path './';
include(
$phpbb_root_path 'extension.inc');
include(
$phpbb_root_path 'common.'.$phpEx);

//
// Set page ID for session management
//
$userdata session_pagestart($user_ipPAGE_LOGIN);
init_userprefs($userdata);
//
// End session management
//

// session id check
if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))
{
$sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : $HTTP_GET_VARS['sid'];
}
else
{
$sid '';
}

if( isset(
$HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($HTTP_POST_VARS['logout']) || isset($HTTP_GET_VARS['logout']) )
{
if( ( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) ) && !$userdata['session_logged_in'] )
{
$username = isset($HTTP_POST_VARS['username']) ? phpbb_clean_username($HTTP_POST_VARS['username']) : '';
$password = isset($HTTP_POST_VARS['password']) ? $HTTP_POST_VARS['password'] : '';

$sql "SELECT user_id, username, user_password, user_active, user_level, user_badlogin, user_blocktime, user_email, user_lang, user_timezone,user_passwd_change
FROM " 
USERS_TABLE "
WHERE username = '" 
str_replace("\\'""''"$username) . "'";
if ( !($result $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR'Error in obtaining userdata'''__LINE____FILE__$sql);
}

if( $row $db->sql_fetchrow($result) )
{
if( $row['user_level'] != ADMIN && $board_config['board_disable'] )
{
redirect(append_sid("portal.$phpEx"true));
}
else
{
// Start add - Protect user account MOD
if ($row['user_blocktime']<time() )
{
// End add - Protect user account MOD
if( md5($password) == $row['user_password'] && $row['user_active'] )
{
$autologin = ( isset($HTTP_POST_VARS['autologin']) ) ? TRUE 0;

$session_id session_begin($row['user_id'], $user_ipPAGE_INDEXFALSE$autologin);

if( $session_id )
{
// Start add - Protect user account MOD
$sql "UPDATE " USERS_TABLE " SET user_badlogin='0'
WHERE username = '" 
str_replace("\'""''"$username) . "'";
if ( !($result $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR'Error updating correct login data'''__LINE____FILE__$sql);
}
// End add - Protect user account MOD
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;''&'htmlspecialchars($HTTP_POST_VARS['redirect'])) : "portal.$phpEx";
// Start add - Protect user account MOD
if ($session_id['user_id']!=ANONYMOUS)
{
include(
$phpbb_root_path "includes/functions_validate.$phpEx");
$pass_result validate_complex_password ($username$password);
if ( 
$session_id['user_passwd_change']==|| $pass_result['error']== true)
{
//force a change of password, do not allow a secound login
$sql "UPDATE " USERS_TABLE " SET user_passwd_change='-9999'
WHERE user_id = '" 
$session_id['user_id'] . "'";
if ( !($result $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR'Error updating correct login data2'''__LINE____FILE__$sql);
}
$url .= ( ereg"\?" $url) ) ? '&ch_passwd=1' '?ch_passwd=1';
} else
if (  
intval((time()-$session_id['user_passwd_change']) / 86400) >= $board_config['max_password_age'])
{
session_end($session_id['session_id'], $session_id['user_id']);
$message $lang['Passwd_have_expired'] . '<br /><br /><a href="'.append_sid("profile.$phpEx?mode=sendpassword").'">'.$lang['Send_new_passwd'].'</a><br /><br />' .  sprintf($lang['Click_return_portal'], '<a href="' append_sid("portal.$phpEx") . '">''</a>');
message_die(GENERAL_MESSAGE$message);
} else
if (  
intval((time()-$session_id['user_passwd_change']) / 86400)+(($board_config['max_password_age']<14) ? 14) >= $board_config['max_password_age'] )
{
$url .= ( ereg"\?" $url) ) ? '&ch_passwd=1' '?ch_passwd=1';
}
}
// End add - Protect user account MOD
redirect(append_sid($urltrue));
}
else
{
message_die(CRITICAL_ERROR"Couldn't start session : login"""__LINE____FILE__);
}
}
else
{
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;''&'htmlspecialchars($HTTP_POST_VARS['redirect'])) : '';
$redirect str_replace('?''&'$redirect);

if (strstr(urldecode($redirect), "\n") || strstr(urldecode($redirect), "\r"))
{
message_die(GENERAL_ERROR'Tried to redirect to potentially insecure url.');
}

$template->assign_vars(array(
'META' => "<meta http-equiv=\"refresh\" content=\"3;url=login.$phpEx?redirect=$redirect\">")
);
// Start add - Protect user account MOD
if ($row['user_active'] )
{
//count bad login
// block the user for X min
if (($row['user_badlogin']+1) % $board_config['max_login_error'])
{
$sql "UPDATE " USERS_TABLE " SET user_badlogin=user_badlogin+1
WHERE username = '" 
str_replace("\'""''"$username) . "'";
if ( !($result $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR'Error updating bad login data'.$user_ip''__LINE____FILE__$sql);
}
} else
{
$blocktime ", user_block_by='$user_ip', user_blocktime='" . (time()+($board_config['block_time']*60)) . "'";
$sql "UPDATE " USERS_TABLE " SET user_badlogin=user_badlogin+1 $blocktime
WHERE username = '" 
str_replace("\'""''"$username) . "'";
if ( !($result $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR'Error updating bad login data'.$user_ip''__LINE____FILE__$sql);
}

if ($row['user_email']  && $row['user_blocktime']<(time()-3600))
{
      include($phpbb_root_path 'includes/emailer.'.$phpEx); 
$server_name trim($board_config['server_name']);
     
       $emailer = new emailer($board_config['smtp_delivery']); 
     
        $emailer->email_address($row['user_email']); 
     
        $email_headers "To: \"".$row['username']."\" <".$row['user_email']. ">\r\n"
     
        $email_headers .= "From: \"".$board_config['sitename']."\" <".$board_config['board_email'].">\r\n"
     
       $email_headers .= "X-AntiAbuse: Board servername - " $server_name "\r\n"
     
       $email_headers .= "X-AntiAbuse: User IP - " decode_ip($user_ip) . "\r\n"
$emailer->use_template('bad_login'$row['user_lang']);
     
        $emailer->extra_headers($email_headers); 
     
      $emailer->assign_vars(array( 
     
       'USER' => '"'.$row['username'].'"',
'BLOCK_TIME' => $board_config['block_time'],
           
'BAD_LOGINS' => $row['user_badlogin']+1
'BLOCK_UNTIL' => create_date ($lang['Time_format'],time()+($board_config['block_time']*60),$row['user_timezone']),
           
'SITENAME' => $board_config['sitename'], 
     
      'BOARD_EMAIL' => $board_config['board_email'])); 
       
     $emailer->send(); 
       
     $emailer->reset(); 
}
}
}
// End add - Protect user account MOD

$message $lang['Error_login'] . '<br /><br />' sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">"'</a>') . '<br /><br />' .  sprintf($lang['Click_return_index'], '<a href="' append_sid("index.$phpEx") . '">''</a>');

message_die(GENERAL_MESSAGE$message);
}
// Start add - Protect user account MOD
} else
{
$message = (($lang['Error_login_tomutch'])?$lang['Error_login_tomutch']:$lang['Error_login']) . '<br /><br />' sprintf($lang['Click_return_login'], '<a href="' append_sid("login.$phpEx?redirect=$redirect") . '">''</a>') . '<br /><br />' .  sprintf($lang['Click_return_index'], '<a href="' append_sid("index.$phpEx") . '">''</a>');
message_die(GENERAL_MESSAGE$message);
}
// End add - Protect user account MOD

}
}
else
{
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;''&'htmlspecialchars($HTTP_POST_VARS['redirect'])) : "";
$redirect str_replace("?""&"$redirect);

if (strstr(urldecode($redirect), "\n") || strstr(urldecode($redirect), "\r"))
{
message_die(GENERAL_ERROR'Tried to redirect to potentially insecure url.');
}

$template->assign_vars(array(
'META' => "<meta http-equiv=\"refresh\" content=\"3;url=login.$phpEx?redirect=$redirect\">")
);

$message $lang['Error_login'] . '<br /><br />' sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">"'</a>') . '<br /><br />' .  sprintf($lang['Click_return_index'], '<a href="' append_sid("index.$phpEx") . '">''</a>');

message_die(GENERAL_MESSAGE$message);
}
}
else if( ( isset($HTTP_GET_VARS['logout']) || isset($HTTP_POST_VARS['logout']) ) && $userdata['session_logged_in'] )
{
if( $userdata['session_logged_in'] )
{
session_end($userdata['session_id'], $userdata['user_id']);
}

if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect']))
{
$url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']);
$url str_replace('&amp;''&'$url);
redirect(append_sid($urltrue));
}
else
{
redirect(append_sid("portal.$phpEx"true));
}
}
else
{
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;''&'htmlspecialchars($HTTP_POST_VARS['redirect'])) : "portal.$phpEx";
// Start add - Protect user account MOD
if ($session_id['user_id']!=ANONYMOUS)
{
include(
$phpbb_root_path "includes/functions_validate.$phpEx");
$pass_result validate_complex_password ($username$password);
if ( 
$session_id['user_passwd_change']==|| $pass_result['error']== true)
{
//force a change of password, do not allow a secound login
$sql "UPDATE " USERS_TABLE " SET user_passwd_change='-9999'
WHERE user_id = '" 
$session_id['user_id'] . "'";
if ( !($result $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR'Error updating correct login data2'''__LINE____FILE__$sql);
}
$url .= ( ereg"\?" $url) ) ? '&ch_passwd=1' '?ch_passwd=1';
} else
if (  
intval((time()-$session_id['user_passwd_change']) / 86400) >= $board_config['max_password_age'])
{
session_end($session_id['session_id'], $session_id['user_id']);
$message $lang['Passwd_have_expired'] . '<br /><br /><a href="'.append_sid("profile.$phpEx?mode=sendpassword").'">'.$lang['Send_new_passwd'].'</a><br /><br />' .  sprintf($lang['Click_return_portal'], '<a href="' append_sid("portal.$phpEx") . '">''</a>');
message_die(GENERAL_MESSAGE$message);
} else
if (  
intval((time()-$session_id['user_passwd_change']) / 86400)+(($board_config['max_password_age']<14) ? 14) >= $board_config['max_password_age'] )
{
$url .= ( ereg"\?" $url) ) ? '&ch_passwd=1' '?ch_passwd=1';
}
}
// End add - Protect user account MOD
redirect(append_sid($urltrue));
}
}
else
{
//
// Do a full login page dohickey if
// user not already logged in
//
if( !$userdata['session_logged_in'] )
{
$page_title $lang['Login'];
include($phpbb_root_path 'includes/page_header.'.$phpEx);

$template->set_filenames(array(
'body' => 'login_body.tpl')
);

if( isset($HTTP_POST_VARS['redirect']) || isset($HTTP_GET_VARS['redirect']) )
{
$forward_to $HTTP_SERVER_VARS['QUERY_STRING'];

if( preg_match("/^redirect=([a-z0-9\.#\/\?&=\+\-_]+)/si"$forward_to$forward_matches) )
{
$forward_to = ( !empty($forward_matches[3]) ) ? $forward_matches[3] : $forward_matches[1];
$forward_match explode('&'$forward_to);

if(count($forward_match) > 1)
{
$forward_page '';

for($i 1$i count($forward_match); $i++)
{
if( !ereg("sid="$forward_match[$i]) )
{
if( $forward_page != '' )
{
$forward_page .= '&';
}
$forward_page .= $forward_match[$i];
}
}
$forward_page $forward_match[0] . '?' $forward_page;
}
else
{
$forward_page $forward_match[0];
}
}
}
else
{
$forward_page '';
}

$username = ( $userdata['user_id'] != ANONYMOUS ) ? $userdata['username'] : '';

$s_hidden_fields '<input type="hidden" name="redirect" value="' $forward_page '" />';

make_jumpbox('viewforum.'.$phpEx$forum_id);
$template->assign_vars(array(
'USERNAME' => $username,

'L_ENTER_PASSWORD' => $lang['Enter_password'],
'L_SEND_PASSWORD' => $lang['Forgotten_password'],

'U_SEND_PASSWORD' => append_sid("profile.$phpEx?mode=sendpassword"),

'S_HIDDEN_FIELDS' => $s_hidden_fields)
);

$template->pparse('body');

include($phpbb_root_path 'includes/page_tail.'.$phpEx);
}
else
{
redirect(append_sid("portal.$phpEx"true));
}

}

?>

Danke schonmal!!!

p.s. wenn ich mich direkt über den link http://mib.pixplace.net/login.php?redirect=http://mib.pixplace.net/gallery/index.php einloggen will, geht es auch nicht.


Title: Re: Integration 4images 1.7 / phpBB
Post by: Jan on March 30, 2005, 10:44:02 AM
Das Problem ist die Funktion redirect() von phpBB. Die Funktion leitet nur auf URLs innerhalb des Installationsverzeichnisses weiter.

Suche in include/functions.php von phpBB nach:
Search in include/functions.php von phpBB for:

1
2
3
4
5
6
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? $script_name : '/' . $script_name;
$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));

und ersetze den Abschnitt mit:
and replace with:

1
2
3
4
5
6
7
8
if (strpos($url, 'http://') === false) {
    $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
    $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
    $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
    $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
    $script_name = ($script_name == '') ? $script_name : '/' . $script_name;
    $url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));
}


Title: Re: Integration 4images 1.7 / phpBB
Post by: chrimp on March 30, 2005, 02:34:35 PM
@Jan

Vielen DAnk für deine Hilfe, auch wenn sich nicht direkt was mit 4images zu tun hatte.
Funzt alles wunderbar.
Nur kurz zum Verständnis:
Du überprüfst jetzt einfach nur, ob in der url ein "http://" vorkommt.
Falls nicht, normale Weiterleitung, falls doch, wird der Block übersprungen...

danke nochmals!


Title: Re: Integration 4images 1.7 / phpBB
Post by: Jan on March 30, 2005, 02:45:15 PM
Genau  :D


Title: Re: Integration 4images 1.7 / phpBB
Post by: lux on April 01, 2005, 10:56:45 AM
Hello :)
I've downloaded the version 1.7.1 and the integration_phpbb.zip script from this forum. But this zip file contains the file session.php for the version 1.7... Can I use this also for the 1.7.1 version? Or where can I download an update version of the integration script?
Thank you!


Title: Re: Integration 4images 1.7 / phpBB
Post by: Jan on April 01, 2005, 01:10:10 PM
Yes you can. But note the following thread (Section "Note for developers and users of "integrations" (phpBB, vBulletin): "):
http://www.4homepages.de/forum/index.php?topic=6728.0


Title: Re: Integration 4images 1.7 / phpBB
Post by: Marquee on April 03, 2005, 07:59:31 PM
Hallo,

ich habe nun auch die Integration dieser hervorragenden Gallerie versucht...

Ich meine auch, dass der Einbau soweit geklappt hat... dennoch bekomme ich in der Gallerie böse Fehlermeldungen :(

Quote  [Expand]
DB Error: Bad SQL Query: UPDATE 4images_sessions SET session_user_id = -1, session_start = 1112548932, session_time = 1112548932, session_page = 0, session_logged_in = 0 WHERE session_id = '277239ad3ba74bbe2e35b3687ac696fc' AND session_ip = 'd9bace96'
Unknown column 'session_start' in 'field list'

DB Error: Bad SQL Query: INSERT INTO 4images_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) VALUES ('59b4306de15efebf80a1c5c1a408ce02', -1, 1112548932, 1112548932, 'd9bace96', 0, 0)
Unknown column 'session_start' in 'field list'

Warning: Cannot modify header information - headers already sent by (output started at /home/g/gibsy.com/public_html/dim/4images/includes/db_mysql.php:188) in /home/g/gibsy.com/public_html/dim/4images/includes/sessions.php on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/g/gibsy.com/public_html/dim/4images/includes/db_mysql.php:188) in /home/g/gibsy.com/public_html/dim/4images/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_users u, 4images_sessions s WHERE u.user_id = s.session_user_id AND (s.session_time >= 1112548632 OR u.user_session_time >= 1112548632) ORDER BY u.user_id ASC, s.session_ip ASC
Unknown column 'u.username' in 'field list'

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_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 NOT IN (0) ORDER BY i.image_date DESC LIMIT 3
Unknown column 'u.username' in 'field list'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/g/gibsy.com/public_html/dim/4images/includes/db_mysql.php on line 116

Der Prefix von 4images ist ein anderer als vom Forum... kann es daran liegen?

In der Anleitung steht, man solle die session.php am Anfang abändern... dort steht etwas von session_name.. was ist damit gemeint? Der Cookie-Name?

Es handelt sich übrigens nicht um ein Standard-phpBB-Forum sondern um ein Premodded Board...

kann mir da jemand helfen bitte?

Gruß und Dank

Marquee


Title: Re: Integration 4images 1.7 / phpBB
Post by: Jan on April 04, 2005, 09:49:51 AM
Lies dir die Anleitung nochmal durch. Vermutlich hast Du vergessen in includes/constants.php die User-Tabelle von phpBB einzutragen.


Title: Re: Integration 4images 1.7 / phpBB
Post by: m3zzr on April 04, 2005, 07:24:37 PM
Hello.

I have run into some problems with this mod. I basically just get shown a "security violation" message on screen. I am using phpbb 2.0.13

First problem being this.

The code  i have to replace in my phpbb does not match the code found in the installation docs for the following

My Original File

1
2
3
4
5
define('DELETED', -1);
define('ANONYMOUS', -1);
define('USER', 0);
define('ADMIN', 1);
define('MOD', 2);

your file states to do this

1
2
3
4
5
6
7
8
9
10
11
12
Ändere/Change:
       define('GUEST', -1);
       define('USER_AWAITING', 1);
       define('USER', 2);
       define('ADMIN', 9);

     zu/to:
       define('GUEST', -1);
       define('USER_AWAITING', -1);
       define('USER', 0);
       define('ADMIN', 1);
     ---------

The following is not in the code at all...

1
2
3
4
5
Ändere/Change:
       define('ADMIN_SAFE_LOGIN', 1);

     zu/to:
       define('ADMIN_SAFE_LOGIN', 0);

Has there been a major change in phpbb 2.0.13?


Title: Re: Integration 4images 1.7 / phpBB
Post by: ruudvroon on April 04, 2005, 08:38:40 PM
You don't have to edit the phpbb files, you need to change the 4images files.


Title: Re: Integration 4images 1.7 / phpBB
Post by: m3zzr on April 04, 2005, 08:41:36 PM
Thankyou for that, i did not see the sessions.php in the 4images directory, so i assumed it referred to the one in the phpbb directory


Title: Re: Integration 4images 1.7 / phpBB
Post by: soasuk on April 04, 2005, 08:43:11 PM
I have the gallery page in a frame, when a link to the forum is accessed the forum also loads in the same frame. This leaves a title frame above it that i do not want to be seen in the forum. Is there anyway to break the forum links out of the frame ie,

1
target="_parent"

The problem can be seen at www.soasuk.com (http://www.soasuk.com)

thanks, soasuk


Title: Re: Integration 4images 1.7 / phpBB
Post by: Marquee on April 05, 2005, 05:56:27 PM
Lies dir die Anleitung nochmal durch. Vermutlich hast Du vergessen in includes/constants.php die User-Tabelle von phpBB einzutragen.
man man.. bin ich blind... hast Recht...

Ich hatte die Datei bearbeitet, aber vergessen hochzuladen... wie bescheuert...

Danke trotzdem und Sorry :)


Title: Re: Integration 4images 1.7 / phpBB
Post by: LBL on April 10, 2005, 07:38:37 PM
Quote from: Jan   [Expand]
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 (http://www.4homepages.de/forumdl/integration_phpbb.zip)

Habe kleines Prob,

nach dem anmelden werde ich auf einen falschen link weitergeführt. Dieser sieht so aus:

http://model-voting.de/forum/http://www.model-vote.de/index.php?sid=186d550926a96c0febf6ac9f80aed67e

wie kann ich das ändern ?????

lg
Gabi

hello!
I think that I have the same problem as this friend, is anyone can please tell me how to fix it in english?


Title: Re: Integration 4images 1.7 / phpBB
Post by: chrimp on April 10, 2005, 07:42:43 PM
Quote from: Jan   [Expand]
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 (http://www.4homepages.de/forumdl/integration_phpbb.zip)

Habe kleines Prob,

nach dem anmelden werde ich auf einen falschen link weitergeführt. Dieser sieht so aus:

http://model-voting.de/forum/http://www.model-vote.de/index.php?sid=186d550926a96c0febf6ac9f80aed67e

wie kann ich das ändern ?????

lg
Gabi

hello!
I think that I have the same problem as this friend, is anyone can please tell me how to fix it in english?

http://www.4homepages.de/forum/index.php?topic=1658.msg31328#msg31328


Title: Re: Integration 4images 1.7 / phpBB
Post by: LBL on April 10, 2005, 07:57:04 PM
thx


Title: Re: Integration 4images 1.7 / phpBB
Post by: Bugfixed on April 16, 2005, 09:37:17 AM
hello all. I'm using phpBB 2.0.14 forum + 4images 1.7.1

my gallery is login .  www.nospamadressxxxx.com/galeri/?sid=feb40b128500843aa3931f806fc970e9
this sid "?sid=feb40b128500843aa3931f806fc970e9 " index.php where ? this problem ?

my forum is login. examples:  www.nospamadressxxxx.com/phpBB2/index.php?sid=feb40b128500843aa3931f806fc970e9

and other problem my gallery is wrong login : www.nospamadressxxxx.com/phpBB2/login.php?redirect=http://www.nospamadressxxxx.com/galeri/

now correct login (username and password) : www.nospamadressxxxx.com/phpBB2/http?sid=ff46de1ce6672443422f74ebc9fb7c24
this page 404 error page. But my site login.
1
2
3
4
5
6
7
8
if (strpos($url, 'http://') === false) {
    $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
    $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
    $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
    $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
    $script_name = ($script_name == '') ? $script_name : '/' . $script_name;
    $url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));
}
this code anyway added my site.
HELP ME PLEASE . VERY THANKS.


Title: Re: Integration 4images 1.7 / phpBB
Post by: Bugfixed on April 24, 2005, 08:16:10 AM
 :(


Title: Re: Integration 4images 1.7 / phpBB
Post by: V@no on April 24, 2005, 09:23:24 AM
what is the problem again?


Title: Re: Integration 4images 1.7 / phpBB
Post by: Bugfixed on April 25, 2005, 12:11:58 PM
thanks vono.

problem my gallery is wrong login : www.nospamadressxxxx.com/phpBB2/login.php?redirect=http://www.nospamadressxxxx.com/galeri/

now correct login (username and password) : www.nospamadressxxxx.com/phpBB2/http?sid=ff46de1ce6672443422f74ebc9fb7c24
this page 404 error page. But my site login.

and my other  problem;

my forum is login. examples:  www.nospamadressxxxx.com/phpBB2/index.php?sid=feb40b128500843aa3931f806fc970e9
my gallery is login .  www.nospamadressxxxx.com/galeri/?sid=feb40b128500843aa3931f806fc970e9
this sid "?sid=feb40b128500843aa3931f806fc970e9 " index.php where ? this is a problem ?





Title: Re: Integration 4images 1.7 / phpBB
Post by: V@no on April 25, 2005, 02:35:25 PM
u just repeated almost word in word your previous question...
but anyway, there is no necesery have index.php in the url, as long as index.php is set in auto index in the server's configuration.


Title: Re: Integration 4images 1.7 / phpBB
Post by: matzee on May 01, 2005, 12:11:24 PM

Kann ich nach der Installation des MODs den Signature Mod weiterverwenden, oder muss ich Änderungen daran vornehmen?
 :?:


Title: Re: Integration 4images 1.7 / phpBB
Post by: ascanio on May 02, 2005, 06:21:58 PM
woooow this is a big topic.... i just want to know if it does work with 4images 1.7.1


Title: Re: Integration 4images 1.7 / phpBB
Post by: V@no on May 03, 2005, 12:05:35 AM
woooow this is a big topic.... i just want to know if it does work with 4images 1.7.1
I doubt it...


Title: Re: Integration 4images 1.7 / phpBB
Post by: ascanio on May 03, 2005, 12:26:04 AM
oki thanks, I'm glad i did not read everything to find out that it does not work :P


Title: Re: Integration 4images 1.7 / phpBB
Post by: dosensteck on May 03, 2005, 04:52:16 PM
habe mir jetzt nochmal die letzten seiten durchgelesen und nichts gefunden... gibt es vielleicht eine möglichkeit das man das avatar das man im forum benutzt auch bei den bildanmerkungen hat?

und... was ich eher für nichtmöglich halte aber einfach mal blauäugig frage: der postcounter kann nicht zufällig zusammengelegt werden?


Title: Re: Integration 4images 1.7 / phpBB
Post by: matimer on May 03, 2005, 06:32:37 PM
I"m looking into integrate phpbb and the image gallery together, but don't want to lose my information and I'd be willing to pay a freelancer to set it up for me.... email me latimer@gmail.com So anyone who knows what they are doing ...



thanks again

matt


Title: Re: Integration 4images 1.7 / phpBB
Post by: Astrolopitecos on May 24, 2005, 12:23:21 AM
Hi...this my first post...for start...thanx for the work u making on 4images gallery...i simply love it :)

so lets go to my kestion...i've done integration and everything is running 100% :)
my kestion is how can i use the phpbb avatars in 4images??like to appear in the profile and at comments...instead of installing the avatar mod...
it will save disk space if both use the same avatar database :)

i found in phpbb template this -> {postrow.POSTER_AVATAR}

but i dont know how to put it work in 4images...
can some one help me with this?

thanx in advance and stay well u all :)  8)


Title: Re: Integration 4images 1.7 / phpBB
Post by: Astrolopitecos on May 24, 2005, 12:26:30 AM
woooow this is a big topic.... i just want to know if it does work with 4images 1.7.1

i've made integration of phpbb .15 (last version) and 4images 1.7.1 and works in perfection  :D

stay well :)  8)


Title: Re: Integration 4images 1.7 / phpBB
Post by: fotograf74 on May 30, 2005, 12:14:12 PM
Besten Dank für das Skript.

Habe noch ein paar Fragen:

- was ist der Unterschied zwischen "Upload" und "direkter Upload" denn wenn ich das letztere deaktiviere kommen Fehlermeldungen und die User könne nichts hochladen?

- bei einem Klick auf den Usernamen, gelangt man in das Profil des phpbb Forums. Ich würde aber gerne alle vom User online gestellten Bilder anzeigen lassen.

- wie kann ich im phpbb Fortum Beispielsweise die Box "neueste Bilder" oder "Zufallsbild" integrieren?

Vielen Dank für die Hilfe


Title: Re: Integration 4images 1.7 / phpBB
Post by: d@tenmaulwurf on May 31, 2005, 12:25:23 AM
Hi!

Sorry, dass ich nicht auf Englisch schreibe...

Ich habe alle User in der 4images-Datenbank und würde jetzt orum ranhängen - also umgekehrt als die meisten.

Ist es möglich, auch von den 4images-Usern auszugehen?


Title: Re: Integration 4images 1.7 / phpBB
Post by: mag on June 02, 2005, 10:53:40 PM
wollte nurmal nachfragen ob es schon eine lösung für das logout problem bei 4images gibt , das mann nichtmehr auf das forum kommt?

habe 4images 1.7.1 und phpbb 0.15 installiert.


Title: Re: Integration 4images 1.7 / phpBB
Post by: Guerillia on June 04, 2005, 09:57:33 PM
Seit dem Update auf 1.7.1 ist es mir nicht mehr möglich als Moderator das ACP zu nutzen.

Gibt es eine Möglichkeit dies wieder zu ändern ?

*edit*

Snipet gefunden.. Die Suche in diesem Forum ist echt für den  :evil:

Wers auch braucht hier:  http://www.4homepages.de/forum/index.php?topic=1658.msg19344#msg19344


Title: Re: Integration 4images 1.7 / phpBB
Post by: Sash on June 05, 2005, 02:51:32 PM
wollte nurmal nachfragen ob es schon eine lösung für das logout problem bei 4images gibt , das mann nichtmehr auf das forum kommt?

habe 4images 1.7.1 und phpbb 0.15 installiert.

Ich wäre auch an der Lösung für dieses Problem interessiert.

Vielen Dank im Voraus


Grüße,
 Sash


Title: Re: Integration 4images 1.7 / phpBB
Post by: benda on June 07, 2005, 02:42:23 PM
Bei funktioniert die integration aber wenn ich in der gallery auf topBilder klick dann kommt dieser Fehlercode.

http://buntaufgrau.bu.funpic.de/top.php

Woran kann das liegen :?:



1
2
3
4
5
6
7
8
9
10
11
12
13
14
DB Error: Bad SQL Query: SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_rating, i.image_votes, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c, phpbb_users u WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND i.cat_id = c.cat_id AND i.user_id = u.user_id ORDER BY i.image_rating DESC, i.image_votes DESC LIMIT 20
Unknown column 'u.user_name' in 'field list'

DB Error: Bad SQL Query: SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_rating, i.image_votes, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c, phpbb_users u WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND i.cat_id = c.cat_id AND i.user_id = u.user_id ORDER BY i.image_votes DESC, i.image_name ASC LIMIT 20
Unknown column 'u.user_name' in 'field list'

DB Error: Bad SQL Query: SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c, phpbb_users u WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND i.cat_id = c.cat_id AND i.user_id = u.user_id ORDER BY i.image_hits DESC, i.image_name ASC LIMIT 20
Unknown column 'u.user_name' in 'field list'

DB Error: Bad SQL Query: SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_downloads, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c, phpbb_users u WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND i.cat_id = c.cat_id AND i.user_id = u.user_id ORDER BY i.image_downloads DESC, i.image_name ASC LIMIT 20
Unknown column 'u.user_name' in 'field list'

DB Error: Bad SQL Query: SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_comments, i.image_rating, i.image_thumb_file, i.image_votes, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c, phpbb_users u WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND i.cat_id = c.cat_id AND i.user_id = u.user_id ORDER BY i.image_comments DESC, i.image_votes DESC LIMIT 20
Unknown column 'u.user_name' in 'field list'


Title: Re: Integration 4images 1.7 / phpBB
Post by: spidimania on June 08, 2005, 10:01:05 PM
Hi,
also ich hab alles zum laufen bekommen, allerdings habe ich das problem , dass schon andere hier hatten , konnte es aber nicht abschalten. und Zwar forlgendes:
Wenn ich mich bei 4 images anmelde komme ich gleich zur Forum anmeldung, das gleiche beim logout andersherum.
wenn ich bei 4image auf "Kontrollzentrum" klicke komme ich automatisch zur Forum Registration( und das jedesmal wenn ich auf "kontrollzentum" klicke (Schleife???)
Hab es strickt nach Anleitung installiert, also alles Neuinstallationen und alles so abgeändert wie beschrieben.
Bitte um Hilfe da ich echt nicht mehr weiter weiss.
http://spidimania.funpic.de


Title: Re: Integration 4images 1.7 / phpBB
Post by: mag on June 08, 2005, 10:05:24 PM
zumindest lößt das ein problem
http://www.4homepages.de/forum/index.php?topic=4315.0


Title: Re: Integration 4images 1.7 / phpBB
Post by: spidimania on June 08, 2005, 10:25:44 PM
hi mag danke für die schnelle antwort , aber das problem ist immer noch.
das neue Problem ist das ich mich beim phpbb board nicht mehr ausloggen kann und auch nicht mehr ins CP reinkomm..



Title: Re: Integration 4images 1.7 / phpBB
Post by: mag on June 08, 2005, 11:57:10 PM
ui nuja alles nochmal lesen:) am besten die 20 seiten ausdrucken, so hab ich mir weitergeholfen bei all meinen probs... nuja viel glück


Title: Re: Integration 4images 1.7 / phpBB
Post by: grissley on June 11, 2005, 12:35:21 PM
Hallo zusammen!
Jetzt habe ich auch noch ein kleines Problem, ich wäre sehr dankbar, wenn da jemand weiterhelfen könnte  :wink:

Zuerst auch vn mir ein herzliches DANKESCHÖN für dieses tolle Script, ich bin begeistert  :!:
Ich verwende phpBB2 Version 2.0.15 und 4images 1.7.
- Ansich funktioniert die gemeinsame Userverwaltung wunderbar und ohne Probleme.

Nun aber zum Problem:
- wenn ich mich zuerst im Forum, oder umgekehrt zuerst in der Galerie einlogge, wird dieser Status nicht beim Umstieg in den anderen Bereich mitübergeben. In der Folge muss ich mich im anderen Bereich noch einmal anmelden.
- Gleiches gilt auch für das Ausloggen.

Wenn ich zuerst im Forum angemeldet bin und danach in die Galerie gewechselt wird, komm es bei einer Falscheingabe der Userdaten in der Anmeldung zu folgenden Problem:
- die Umleitung zum Anmeldefenster des Forums erscheint (nachdem das Infofenster gekommen ist, dass die Anmeldung nicht .....), bis dahin ist es ja noch korrekt. --> wenn dort jetzt die Anmeldung mit dem richtigen Daten erfolgt ist, wird ein 404 Fehler ausgworfen.
- Kann der Grund in der Tatsache liegen, dass ich im Forum eigentlich schon angemeldet bin?

Bitte um Hilfestellung, da ist irgendwo ein Hund drinnen, vielleich ist es nur eine Kleinigekeit.

Hier noch der Link zum Forum http://www.hang-loose.at/phpBB2/index.php
Habe jetzt mal zum Probieren einen neuen Testuser angelegt (User: test PW: test), damit ihr euch das mal anschaun könnt.

Ich bedanke mich jetzt schon für die Hilfe, hab schon sehr viel probiert, aber wie ihr seht, leider noch kein Lösung gefunden.

Grüße
Christian


Title: Re: Integration 4images 1.7 / phpBB
Post by: SantaZ on June 11, 2005, 01:52:35 PM
wie lautet bei dri der prefix für das forum und 4images. hast du die originalen genommen?

oder andere?


Title: Re: Integration 4images 1.7 / phpBB
Post by: grissley on June 11, 2005, 03:00:40 PM
Hi!

wie lautet bei dri der prefix für das forum und 4images. hast du die originalen genommen?

oder andere?


Ich habe die hier genommen, die Orignalen

in 4images
  define('SESSIONS_TABLE', 'phpbb_sessions');
  define('USERS_TABLE', 'phpbb_users');


in phpbb
  define('SESSIONS_TABLE', $table_prefix.'sessions');
  define('USERS_TABLE', $table_prefix.'users');

In der Tabelle sind die dann so eingetragen
  phpbb_sessions
  phpbb_users

lg christian


Title: Re: Integration 4images 1.7 / phpBB
Post by: grissley on June 11, 2005, 10:07:54 PM
Problem gelöst!

Ich habe in der constants.php einfach übersehen die www. (beim Pfad zum phpBB Forum) anzuführen. Die Seiten sind zwar auch ohne www. erreichbar, jedoch in diesem Falle dürfte das der Grund gewesen sein.

Danke nochmal für den Hilfeversuch SantaZ

Grüße Christian


Title: Re: Integration 4images 1.7 / phpBB
Post by: Towerade on June 12, 2005, 11:58:46 PM
I have a lot o problems with log in and log out in 4images (all in phpBB runs perfect).

phpBB URL: http://elfoton.com/foro/
4images URL http://elfoton.com/galeria/

When I log in 4images  i have the 404 error (http://elfoton.com/foro/http://elfoton.com/galeria/index.php)
If I log out the browser goes to the phpBB home, but I´m not disconected.

In summary, log in and log out to only work in phpBB  :(

Please help me!


Title: Re: Integration 4images 1.7 / phpBB
Post by: Towerade on June 13, 2005, 09:22:23 PM
Ok with this msg i resolved some problems ( http://www.4homepages.de/forum/index.php?topic=1658.msg31328#msg31328 ), but now the browser doesnt go back to the gallery after login or logout. When i do login in 4images the browser goes to this page but doesnt logs in

http://elfoton.com/foro/login.php

Help!  :?


Title: Re: Integration 4images 1.7 / phpBB
Post by: Towerade on June 18, 2005, 12:35:46 AM
Solved  :)


Title: Re: Integration 4images 1.7 / phpBB
Post by: Marquis2000 on June 25, 2005, 11:38:16 AM
Ist die Einbindung auch in die Version 1.7.1 möglich??

Gruß Norman


Title: Re: Integration 4images 1.7 / phpBB
Post by: Jeevan25 on June 28, 2005, 03:43:31 AM
hi i am new to this servie. i just intergrated the forum and gallery. i have a problem. everything works fine but when i log in from the gallery it leads to site not found link. if i give wrong login informaton the gallert log in box goes to forum where it says the login information is wrong. pls help. thanks.


Title: Re: Integration 4images 1.7 / phpBB
Post by: Jan on June 28, 2005, 10:41:02 AM
Check the last lines of the first post in this thread.

Jan


Title: Re: Integration 4images 1.7 / phpBB
Post by: Towerade on June 28, 2005, 03:29:36 PM
I want to put users avatars of phpbb in 4images near the usernames, somebody knows how to do it?

THX


Title: Re: Integration 4images 1.7 / phpBB
Post by: lucius on June 29, 2005, 06:33:48 PM
Can somebody tell my if This Integration works with the newest version of phpbb(2.0.16)?

--------------------------------------------------------------------------------------------------------------------------------------
Kann mir jemand sagen, ob diese Integration auch noch mit der neusten phpbb Version fehlerfrei funktioniert?
Mitlerweile ist die Integration ja nicht mehr gerade die neuste.

Vielen Dank!


Title: Re: Integration 4images 1.7 / phpBB
Post by: PaulB on July 05, 2005, 07:20:41 PM
I upgraded from .14 to .16 on an existing installation using this mod and it works fine.


Title: Re: Integration 4images 1.7 / phpBB
Post by: w1nnerpool on July 06, 2005, 09:29:39 AM
Hello everybody,

My site is: www.resfo.com
Forum:  www.resfo.com/forum

I dont speak english very well.. sorry..

Firstly, I have read this subject: http://www.4homepages.de/forum/index.php?topic=1658.msg31328

I have download 4images_integration_phpbb.zip file.. And apply all installition.txt..

But I get this error.. Please help this.. Thank you..




DB Error: Bad SQL Query: SELECT * FROM phpbb_config
Table 'resfo.phpbb_config' doesn't exist

DB Error: Bad SQL Query: SELECT ban_ip, ban_userid, ban_email FROM phpbb_banlist WHERE ban_ip IN ('d54a7472', 'd54a74ff', 'd54affff', 'd5ffffff') OR ban_userid = -1
Table 'resfo.phpbb_banlist' doesn't exist

DB Error: Bad SQL Query: UPDATE sessions SET session_user_id = -1, session_start = 1120640531, session_time = 1120640531, session_page = 0, session_logged_in = 0 WHERE session_id = '' AND session_ip = 'd54a7472'
Table 'resfo.sessions' doesn't exist

DB Error: Bad SQL Query: INSERT INTO sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) VALUES ('258674d2a7d85510c7307ce0623ddd66', -1, 1120640531, 1120640531, 'd54a7472', 0, 0)
Table 'resfo.sessions' doesn't exist

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/resfo.com/httpdocs/includes/db_mysql.php:188) in /home/httpd/vhosts/resfo.com/httpdocs/includes/sessions.php on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/resfo.com/httpdocs/includes/db_mysql.php:188) in /home/httpd/vhosts/resfo.com/httpdocs/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 users u, sessions s WHERE u.user_id = s.session_user_id AND (s.session_time >= 1120640231 OR u.user_session_time >= 1120640231) ORDER BY u.user_id ASC, s.session_ip ASC
Table 'resfo.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_resfoimages i, 4images_resfocategories c LEFT JOIN 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 LIMIT 40, 1
Table 'resfo.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_resfoimages i, 4images_resfocategories c LEFT JOIN 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 NOT IN (0) ORDER BY i.image_date DESC LIMIT 3
Table 'resfo.users' doesn't exist

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/httpd/vhosts/resfo.com/httpdocs/includes/db_mysql.php on line 116


Title: Re: Integration 4images 1.7 / phpBB
Post by: soasuk on July 13, 2005, 03:44:33 PM
I have 4images and Phpbb integrated as well as they goin to get, my request is for a mod that:

    * Creates a post in phpbb
    * In that post the category name and description is shown
    * A couple of thumbnails are displayed(preferably any with comments)

The script will only be able to be ran once the new category is populated, possibily automatically once a preset number of images are in the category. I know this is a large mod, however i think its a good idea and hope other people do too!
thanks, soasuk
(post moved from own topic by admin request)


Title: Re: Integration 4images 1.7 / phpBB
Post by: Naga on July 19, 2005, 06:30:31 PM
When i login he redirects me to www.4homepages.de/forum/login.php


Title: Re: Integration 4images 1.7 / phpBB
Post by: V@no on July 20, 2005, 03:21:16 AM
When i login he redirects me to www.4homepages.de/forum/login.php
ok


Title: Re: Integration 4images 1.7 / phpBB
Post by: Franc24 on August 14, 2005, 06:31:03 PM
The requested URL /foro/http://perete.com/galeriaim/index.php was not found on this server.

I have installed the mod integration 4images with phpBB and upon registering me in 4images doesn't give the route well:

The URL requested /forum/http://midominio.com/4images/index.php was not found on this server.

When it you should be:

http://midominio.com/4images/index.php

But you register well if you enter again

They taste like that he/she/it/you is owed.

Premature thank you and pardon for my English :wink:


Title: Re: Integration 4images 1.7 / phpBB
Post by: toocoolbd on August 16, 2005, 09:34:42 PM
i've the integration done and it's working fine. but when i login/logout from 4images it takes me to the phpbb page. i want to stay in 4images after i login/logout. how can this be done?


Title: Re: Integration 4images 1.7 / phpBB
Post by: 72dpi on August 19, 2005, 04:20:08 AM
I didn't think it could be done towerade, but don't quote me on it.
Since you are using phpbb as the user system, It operates as phpbb would I am assuming.

Well, I gotta say, i love this mod Jan, you are a legend. Also, for anyone else who wants to add a CMS to their website, and use phpbb and 4images, I use:
http://www.subdreamer.com/

I have all 3  integrated, now i am just working on the templates to align all perfectly.
I also have the niggling issue on loggin on through 4images, but it send empty variables to the phpbb login page, but I will look for the code to fix this.

Great work Jan, Vano & all who contribute to this forum...


Title: Re: Integration 4images 1.7 / phpBB
Post by: BATman40 on August 20, 2005, 11:13:44 AM
Hallo,

es wird ja empfolen die beiden Systeme nur als Neuinst. zu fahren.
Ich habe aber das Problem, dass ich schon eine menge User und Bilder habe  :(

1. Gibt es keine Lösung?
2. muß ich vor der integration phpBB installiert haben?

Gruß
bernhard


Title: Re: Integration 4images 1.7 / phpBB
Post by: toocoolbd on August 21, 2005, 06:37:03 PM
Is it somehow possilbe to add the option "show images added by user" from the 4images profile page in the image 'deatils' page or in any other page?


Title: Re: Integration 4images 1.7 / phpBB
Post by: d@tenmaulwurf on September 01, 2005, 10:37:20 PM
Ich hab auch nochma eine Frage: Wenn ich als Admin eingeloggt bin und einen Beitrag verfasse, erscheint unter "IP-Adresse" dann irgendwas aus Character/integer, was aber niemals eine IP-Adresse sein könnte.
Könnt ihr bei euch ma gucken, ob's da auch auftritt?
Vielen Dank


Title: Redirect phpbb mod
Post by: BartAfterDark on September 05, 2005, 01:38:50 AM
All credits to thoul http://darkmods.sourceforge.net
##############################################################
# Title: Redirect Outside phpBB After Log In/Out
# Author: Thoul  thoul@users.sourceforge.net  http://darkmods.sourceforge.net
# Description: Guide that allows redirecting outside phpBB for log in or out.
# Version: 1.1.1
# Installation Level: Easy
# Installation Time: 3 Minutes
# Files To Edit: login.php
# Included Files: n/a
##############################################################
# Author's Notes:
# This file is intended to be a guide to redirecting users to files outside of the
# phpBB directories when they log in or log out on a case-by-case basis (that is to
# say, so that you can have some log ins/outs redirect like this and have some
# not). This file deals only with login.php, logging in, and logging out, but
# similar ideas can also be applied to redirecting outside of the phpBB
# directories in other files.
#
# If you are redirecting users to pages outside of your phpBB directories (aka
# folders), be sure to read the file function_change.txt also. It contains other
# modifications and instructions that you will need to read.
#
# Once all these modifications have been applied, you can use log in forms to
# redirect users outside the phpBB directories by adding two hidden form inputs
# like these:
# <input type="hidden" name="outside" value="1" />
# <input type="hidden" name="redirect" value="index.htm" />
# You can also create log in links like this one:
# <a href="login.php?redirect=/index.html&outside=1">Log In</a>
# And you can create log out links like this one:
# <a href="login.php?logout=true&redirect=/index.phtml&outside=1">Log Out</a>
#
#
# Thanks to RyanThaDude29 for developing some of the concepts presented in the mod
# on the FetchAll forums. :)
##############################################################
# BEFORE ADDING THIS TO YOUR FORUM, YOU SHOULD BACK UP ALL RELATED FILES.
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
forum/login.php

#
#-----[ FIND ]------------------------------------------
#

               
1
2
3
4
5
if( $session_id )
{
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
redirect(append_sid($url, true));
}

#
#-----[ REPLACE WITH ]------------------------------------------
#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*  Original phpBB code - commented out for Redirect Outside phpBB After Log In/Out
if( $session_id )
{
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
redirect(append_sid($url, true));
}
*/
//---------------------------------------------------------------------------------
// Redirect Outside phpBB After Log In/Out - Begin Code Addition
//
if( $session_id )
{
$url = ( !empty($_REQUEST['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars(addslashes($_REQUEST['redirect']))) : 'index.' . $phpEx;

$outside = ( !empty($_REQUEST['outside']) ) ? true : false;
redirect(append_sid($url, true), $outside);
}
//
// Redirect Outside phpBB After Log In/Out - End Code Addition
//---------------------------------------------------------------------------------

#
#-----[ FIND ]------------------------------------------
#

      
1
2
3
4
5
6
if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect']))
{
$url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']);
$url = str_replace('&amp;', '&', $url);
redirect(append_sid($url, true));
}

#
#-----[ REPLACE WITH ]------------------------------------------
#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*  Original phpBB code - commented out for Redirect Outside phpBB After Log In/Out
if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect']))
{
$url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']);
$url = str_replace('&amp;', '&', $url);
redirect(append_sid($url, true));
}
*/
//---------------------------------------------------------------------------------
// Redirect Outside phpBB After Log In/Out - Begin Code Addition
//
if (!empty($_REQUEST['redirect']) )
{
$url = htmlspecialchars(addslashes($_REQUEST['redirect']));
$url = str_replace('&amp;', '&', $url);
$outside = ( !empty($_REQUEST['outside']) ) ? true : false;
redirect(append_sid($url, true), $outside);
}
//
// Redirect Outside phpBB After Log In/Out - End Code Addition
//---------------------------------------------------------------------------------


#
#-----[ FIND ]------------------------------------------
#
1
$s_hidden_fields = '<input type="hidden" name="redirect" value="' . $forward_page . '" />';


#
#-----[ AFTER, ADD ]------------------------------------------
#
1
2
3
4
5
6
7
8
9
10
11
//---------------------------------------------------------------------------------
// Redirect Outside phpBB After Log In/Out - Begin Code Addition
//
if( isset($_REQUEST['outside']) )
{
$outside = ( !empty($_REQUEST['outside']) ) ? true: false;
$s_hidden_fields .= '<input type="hidden" name="outside" value="' . $outside . '" />';
}
//
// Redirect Outside phpBB After Log In/Out - End Code Addition
//---------------------------------------------------------------------------------

Open 4images/includes/sessions.php
#
#-----[ FIND ]------------------------------------------
1
$url_logout        = $url_app."login.php?logout=true";

#
#-----[REPLACE WITH]------------------------------------------
1
$url_logout        = $url_app."login.php?logout=true&redirect=../index.php&outside=1";
note you will have to edit ../index.php so it points to the site you want.

#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#


Title: Re: Integration 4images 1.7 / phpBB
Post by: Zyperntom on September 06, 2005, 11:25:15 AM
Hi zusammen,
wer kann mir mal helfen, leider bin ich des Englischen nicht so mächtig,
sonst hätte ich bestimmt eine Lösung gefunden hier.

Hier mein problem:
http://zypern-forum.de/4images/index.php

Gruss
Tom


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on September 06, 2005, 02:17:23 PM
Kanst du das problem nicht beschreiben?

Hi zusammen,
wer kann mir mal helfen, leider bin ich des Englischen nicht so mächtig,
sonst hätte ich bestimmt eine Lösung gefunden hier.

Hier mein problem:
http://zypern-forum.de/4images/index.php

Gruss
Tom


Title: Re: Integration 4images 1.7 / phpBB
Post by: Zyperntom on September 06, 2005, 06:51:32 PM
@BartAfterDark

Sorry ich hatte mich nach meinen Post noch mal durch alle 22 Seiten gearbeitet und
alles das gemacht das hier so an Lösungen vorgeschlagen wurde.

Jetzt gehts und ich bin mehr als Glücklich ;)

Gruss
Tom


Title: move 4image users to phpbb
Post by: BartAfterDark on September 09, 2005, 06:12:50 PM
BACKUP YOUR DATABASE.
This should be known as work in progress. You have been warned

Download and install this mod: http://www.phpbb.com/phpBB/viewtopic.php?t=285945
Go to phpmyadmin and sellect: 4images_users
Sellect export as CSV.
Change
Change ; to , in  Fields terminated by
and remove " from  Fields enclosed by

Save as file and click go.


Download CSVed from http://home.hccnet.nl/s.j.francke/t2t/text2table.htm
Open your CSV file with CSVed
Delete the columns you don't need
move the email comumn so it's Column 2
mine looks like this:
Column 1 = Username
Column 2 = Email
Column 3 = Password
Column 4 = Show email
Column 5 = Join Date
Column 6 = Webpage
Column 7 = ICQ

You will have to edit admin_import_members.php If you want to parse the extra columns

Find:
1
$user = new user($username, $user_password, $email);
Add after:
1
2
3
4
$user->set_field('user_viewemail', $member_data[3]);
$user->set_field('user_regdate', $member_data[4]);
$user->set_field('user_website', $member_data[5]);
$user->set_field('user_icq', $member_data[6]);
As you can see the 3,4,5... Doesn't match the columns, that's because the mod starts at 0. So do not change the numbers :)

NOTE: You should probely delete the Guest and the admin form the CSV file.


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on September 09, 2005, 08:34:35 PM
I want to see the stats again, under the admin page. So I can see what users are looking at :)


Title: Re: Integration 4images 1.7 / phpBB
Post by: d@tenmaulwurf on September 10, 2005, 03:52:58 PM
There exists a problem with the Session-IP-Variable.

If someone writes a comment - there will be some clumsy things instead of a ip-adress.

After the mod there something like this in the ip-cell: "IP: 54bf3396"

I think it's a problem with the session, because the IP-address will be find out of the session-variables.


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on September 14, 2005, 02:46:13 PM
I had the same problem
just got it fixed today ;D

Open details.php
Find:
1
$comment_user_ip = ($user_info['user_level'] == ADMIN) ? $comment_row[$i]['comment_ip'] : "";
Replace with:
1
$comment_user_ip = ($user_info['user_level'] == ADMIN) ? decode_ip($comment_row[$i]['comment_ip']) : "";
Find:
1
include(ROOT_PATH.'includes/page_header.php');
Add after:
1
include(ROOT_PATH.'PATH_TO_PHPBB/includes/functions.php');
replace path_to_phpbb with the path to your phpbb folder


There exists a problem with the Session-IP-Variable.

If someone writes a comment - there will be some clumsy things instead of a ip-adress.

After the mod there something like this in the ip-cell: "IP: 54bf3396"

I think it's a problem with the session, because the IP-address will be find out of the session-variables.


Title: Re: Integration 4images 1.7 / phpBB
Post by: dosensteck on September 21, 2005, 08:17:45 AM
kleine erweiterungzu diesem mod
öffne includes/usercp_viewprofile.php (PHPBB)

finde
1
2
3
//
// Generate page
//

darüber einfügen

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// <!-- last image -->
   $sql = "SELECT image_id, image_name, image_thumb_file, image_date, cat_id, image_description
           FROM  4images_images WHERE user_id='".$profiledata['user_id']."'
ORDER BY image_date DESC
LIMIT 1";
   if ( !($query_result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_ERROR, 'geht nicht', '', __LINE__, __FILE__, $sql);
   }
   $result = $db->sql_query($sql);
   $last_image_id = '';
   $last_image_title = '';
   while ($row = mysql_fetch_array($result))
   {
   $last_image_id = $row['image_id'];
   $last_image_thumb_file = $row['image_thumb_file'];
   $last_image_name = $row['image_name'];
   $last_image_description = $row['image_description'];
     $last_cat_id = $row['cat_id'];
   $last_image_date = $row['image_date'];
       
         
   }

   If ( $last_image_id )
   {
   $last_image = '<a href="http://www.example.com/details.php?image_id=';
   $last_image .= $last_image_id;
   $last_image .= '" target="_blank" class="postlink"><img src="http://www.example.com/data/thumbnails/';
   $last_image .= $last_cat_id;
   $last_image .= '/';
       $last_image .= $last_image_thumb_file;
   $last_image .= '" alt="'.$last_image_description.'" title="'.$last_image_name.'" border="0" /></a>';
   $last_image .= '<br>';
   $last_image .= $last_image_name;
   $last_image .= '<br>';
   }
   else
   {
   $last_image = '';
   }
// <!-- END last image -->

ändere www.example.com zu deinem 4 image pfad!

finde
1
'USER_ID' => $profiledata['user_id'],

danach einfügen
1
'LAST_IMAGE' => $last_image,

in templates/subSilver/profile_view_body.tpl kann jetzt {last_image} an belibiger position eingefügt werden

ist sicherlich nicht perfekt geschrieben, funktioniert aber :D


Title: 1.71. Integration von phpBB 2.0.17
Post by: 4faster on October 02, 2005, 05:08:56 PM
Hallo Leute und schönen Sonntag  :D

also ich hab ja neulich das 4 images installiert, heute die ersten Ordner eingerichtet. Nun habe ich auch ein phpBB installiert. Gibt es hier eine aktuelle Insatllationsanleitung, wie ich die beiden zusammenführe?

Ich habe dazu hier im Board den Beitrag aus 2002 (gestartet) mit 22 Seiten Kommentaren gefunden. Ist die Anleitung noch aktuell oder gibts hier irgendwas einfaches woanders für mich  :roll:

viele grüße :)


Title: Re: Integration 4images 1.7 / phpBB
Post by: Nicky on October 02, 2005, 05:14:24 PM
@4faster,
hab dein beitrag hier ge-moved.. da andere kategorie nicht die richtige war..


Title: Re: Integration 4images 1.7 / phpBB
Post by: 4faster on October 02, 2005, 05:15:24 PM
sorry  :roll: und danke  :wink:


Title: Re: Integration 4images 1.7 / phpBB
Post by: 4faster on October 02, 2005, 05:37:34 PM
So, ich will ja nicht untätig sein und hab hier mal in ruhe gelesen jetzt. ich muss doch wahrscheinlich nur nachfolgendes machen:

1. Diese Änderung vornehmen:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Hinweis für Entwickler und Benutzer von "Integrationen" (phpBB, vBulletin):
In der Datei sessions.php wurden einige Änderungen vorgenommen. Um "Integrationen" mit der Version 1.7.1 kompatibel zu machen, muss aber lediglich die Zeile


Code:
"user_online_list" => $user_online_list

durch


Code:
"user_online_list" => $user_online_list,
"lang_user_online" => str_replace('{num_total_online}', $num_total_online, $lang['user_online']),
"lang_user_online_detail" => str_replace(array('{num_registered_online}','{num_invisible_online}','{num_guests_online}'), array($num_registered_online,$num_invisible_online,$num_guests_online), $lang['user_online_detail']),

ersetzt werden.

und dann

2. gemäß Anleitung hier auf Seite 1 fortfahren:

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 (http://www.4homepages.de/forumdl/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

kann das jemand bestätigen ?  :)


Title: Re: Integration 4images 1.7 / phpBB
Post by: 4faster on October 02, 2005, 07:04:24 PM
oh leute. ich hoffe ich nerve nicht... aber umso genauer ich mir das anschaue, desto verwirrter werde ich  :?

in den vorigen beiträgen steht auch, dass phpbb und 4images die gleiche datenbank nutzen. ich hab die scripte jeweils mit einer datenbank installiert. 4images löschen und neu installieren und den namen der bereits installierten phpBB datenbank angeben?

In der Installationsanleitung steht auch, man muss in der sessions.php am deiteianfang änderungen vornehmen. wie, was, wo - das sind römische dörfer für mich newbie:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
phpBB is released under the GNU General Public License              *
 *                                                                        *
 *************************************************************************/
if (!defined('ROOT_PATH')) {
  die("Security violation");
}

//-----------------------------------------------------
//--- Start Configuration -----------------------------
//-----------------------------------------------------

// Define here the name of the session. Default of phpBB is "sid".
define('SESSION_NAME', 'sid');

// Define here the name of the banlist and config database tables.
// Maybe you only need to change the table prefix if you another
// than the phpBB default "phpbb_".
define('PHPBB_BANLIST_TABLE', 'phpbb_banlist');
define('PHPBB_CONFIG_TABLE', 'phpbb_config');

// Set her the corresponding database fields of the user table.
// If there is no corresponding field in the new user table,
// leave the value blank. Normally no need to change.
$user_table_fields = array(
  "user_id" => "user_id",
  "user_level" => "user_level",
  "user_name" => "username",
  "user_password" => "user_password",
  "user_email" => "user_email",
  "user_showemail" => "user_viewemail",
  "user_allowemails" => "",
  "user_invisible" => "user_allow_viewonline",
  "user_joindate" => "user_regdate",
  "user_activationkey" => "user_actkey",
  "user_lastaction" => "user_session_time",
  "user_location" => "user_session_page",
  "user_lastvisit" => "user_lastvisit",
  "user_comments" => "",
  "user_homepage" => "user_website",
  "user_icq" => "user_icq"
);

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

// Set here different URL's to your phpBB forum.
// Normally no need to change.
$url_register      = $url_app."profile.php?mode=register";
$url_lost_password = $url_app."profile.php?mode=sendpassword";
$url_control_panel = $url_app."profile.php?mode=editprofile";
$url_mailform      = $url_app."profile.php?mode=email&u={user_id}";
$url_show_profile  = $url_app."profile.php?mode=viewprofile&u={user_id}";
$url_login         = $url_app."login.php";
$url_logout        = $url_app."login.php?logout=true";

//-----------------------------------------------------
//--- End Configuration ---


Title: Re: Integration 4images 1.7 / phpBB
Post by: Jan on October 04, 2005, 05:12:04 PM
Eigtnlich musst Du nur diese Zeile anpassen:

1
$url_app           = "http://www.4homepages.de/forum/";


Title: Re: Integration 4images 1.7 / phpBB
Post by: 4faster on October 04, 2005, 05:54:08 PM
Hallo  :)

...also die MysQL von 4images nicht löschen? phpbb und 4images hab ich ja jeweils eine angelegt...


Title: Re: Integration 4images 1.7 / phpBB
Post by: Jan on October 04, 2005, 05:56:11 PM
Oh, das hatte ich überlesen. Doch, Du musst 4images und phpBB in derselben Datenbank installieren. Also, 4images löschen und in der Datenbank von phpBB installieren.


Title: Re: Integration 4images 1.7 / phpBB
Post by: stevoboy on October 24, 2005, 01:25:47 AM
Hi,

ist es möglich die Gallery in einem Webspace tu speichern und auf die Datenbank eines anderen Webspaces (mit den Gallery Tabellen) zu verweisen. Ich würde dann die Integration von PHPbb versuchen. Leider kann ich aufgrund von Scriptbeschränkungen den eigentlichen Webspace nicht benutzen.

Wenn einer helfen kann wäre ich echt delighted

Gruss Steffen


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on October 24, 2005, 09:15:34 AM
Yea. Normaly you can add the host that you want to access from to your mySql database. So it allows access to the database from that host :)

Hi,

ist es möglich die Gallery in einem Webspace tu speichern und auf die Datenbank eines anderen Webspaces (mit den Gallery Tabellen) zu verweisen. Ich würde dann die Integration von PHPbb versuchen. Leider kann ich aufgrund von Scriptbeschränkungen den eigentlichen Webspace nicht benutzen.

Wenn einer helfen kann wäre ich echt delighted

Gruss Steffen


Title: Re: Integration 4images 1.7 / phpBB
Post by: stevoboy on October 24, 2005, 01:11:03 PM
So that means,

I install the gallery on one space, export the database tables and transfer it to the sql database where the phpbb tables are stored to?
So what do I have to punch in in the config.php of the gallery then where localhost stands now?
something like http://www.site.com or how do I do it?


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on October 24, 2005, 04:01:40 PM
I would guess so.
But you first need to add a Access Host If your host allows it


Title: Re: Integration 4images 1.7 / phpBB
Post by: T0MPA on October 29, 2005, 01:53:43 AM
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

These link doesn't work....

"An Error Has Occurred!
The topic or board you are looking for appears to be either missing or off limits to you.  "
HELP ME"""


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on October 29, 2005, 08:38:22 PM
dude look here
http://www.4homepages.de/forum/index.php?topic=9917.msg31328#msg31328

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

These link doesn't work....

"An Error Has Occurred!
The topic or board you are looking for appears to be either missing or off limits to you. "
HELP ME"""


Title: Re: Integration 4images 1.7 / phpBB
Post by: Bugfixed on November 01, 2005, 05:22:57 PM
31 oct 2005 phpbb 2.0.18 released.
session.php changed.

I'm logout my gallery . : Invalid_session

pls help.


Title: Re: Integration 4images 1.7 / phpBB
Post by: Bugfixed on November 03, 2005, 05:22:58 PM
 :(


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on November 05, 2005, 04:56:52 PM
You have to do this again
http://www.4homepages.de/forum/index.php?topic=9917.msg31328#msg31328

but we still have the problem with logout

hi!
Sorry if I don't searched but 24 pages are a lot to search through...

However, I have a very small problem with the integration!

In sessions.php I changed $url_app = "http://www.volke.biz/forum/"; into my website adress. Now, if I want to login, it redirects to the page "http://volke.biz/forum/http://www.volke.biz/fotos/index.php". And if I change the $url_app = "http://www.volke.biz/forum/"; into e.g. $url_app = "http://www.volke.de/forum/"; the adress bar in the browser shows the correct url (www.volke.de/forum/login.php). That seems more than strange to me and I hope to be helped.

Bye RKS

PS: www.volke.biz is my correct adress.


Title: Re: Integration 4images 1.7 / phpBB
Post by: matimer on November 05, 2005, 05:12:09 PM
Is there a moderator for this site????

I can't to find the broken down version of this article that seperates it into english vs german?

If someone can point me to that instead of this run on sentence.... that would be super helpful.

Matt

PS... if someone can integrate phpbb forum / 4images gallery for me (or at least giev me some CLEAR INSTRUCTIONS) for how to do it
and save the back up files of both let me know... i'll pay some cash

PPS. .... if you guys don't have any mods to moderate... let me know


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on November 05, 2005, 05:14:46 PM
Matt what do you need?
I don't quite understand your question

Is there a moderator for this site????

I can't to find the broken down version of this article that seperates it into english vs german?

If someone can point me to that instead of this run on sentence.... that would be super helpful.

PS. .... if you guys don't have any mods to moderate... let me know

Matt


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on November 05, 2005, 05:43:08 PM
I found a temp fix for the invalid_session problem after upgrade to .18

Open /board/login.php
find
1
2
3
4
if ($sid == '' || $sid != $userdata['session_id'])
{
message_die(GENERAL_ERROR, 'Invalid_session');
}
Comment it or remove the code:)
BUT beware. This could be a security breach


Title: Re: Integration 4images 1.7 / phpBB
Post by: Shadowstorm on November 12, 2005, 03:05:35 PM
I have a solution !
The problem is that 4Images doesn't send the sid to phpBB when we want to loggout

So :

Open your /4images/includes/session.php

At the begining of the file you have :

1
2
3
4
5
6
7
8
9
// Set here different URL's to your phpBB forum.
// Normally no need to change.
$url_register      = $url_app."profile.php?mode=register";
$url_lost_password = $url_app."profile.php?mode=sendpassword";
$url_control_panel = $url_app."profile.php?mode=editprofile";
$url_mailform      = $url_app."profile.php?mode=email&u={user_id}";
$url_show_profile  = $url_app."profile.php?mode=viewprofile&u={user_id}";
$url_login         = $url_app.'login.php?redirect=anbum_redir.php';
$url_logout        = $url_app.'login.php?logout=true&redirect=anbum_redir.php';

So deplace this code at the end of the file just after :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//-----------------------------------------------------
//--- Start Session -----------------------------------
//-----------------------------------------------------
$board_config = array();
$sql = "SELECT * FROM " . PHPBB_CONFIG_TABLE;
$result = $site_db->query($sql);
while($row = $site_db->fetch_array($result)) {
  $board_config[$row['config_name']] = $row['config_value'];
}

//Start Session
$site_sess = new Session();

// Get Userinfo
$session_info = $site_sess->return_session_info();
$user_info = $site_sess->return_user_info();

and modify this line :

1
$url_logout        = $url_app.'login.php?logout=true&redirect=anbum_redir.php';

with :

1
$url_logout        = $url_app.'login.php?logout=true&redirect=anbum_redir.php&sid='.$session_info['session_id'];

And it will be good  :lol:

I don't know if my Patch will be understand be all of you as my english is so bad ! :roll:


Title: Re: Integration 4images 1.7 / phpBB
Post by: Franc24 on November 25, 2005, 05:47:18 PM
I have integrated 4Imeges with phpBB v2.0.18 and I have carried out their change but you continue me giving invalid_sesion upon closing the session from 4Images.

Thank you for their help and pardon for my English is Spanish.  :oops:


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on November 25, 2005, 07:42:44 PM
hello franc.
Did you try this http://www.4homepages.de/forum/index.php?topic=9917.msg50794#msg50794 ?

I have integrated 4Imeges with phpBB v2.0.18 and I have carried out their change but you continue me giving invalid_sesion upon closing the session from 4Images.

Thank you for their help and pardon for my English is Spanish.  :oops:


Title: Re: Integration 4images 1.7 / phpBB
Post by: Franc24 on November 26, 2005, 10:28:43 AM
Already realize it but it he is still equal invalid_session

Thank you BartAfterDark  :oops:


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on November 26, 2005, 01:39:04 PM
Could you post a link to your site or pm it to me?
Already realize it but it he is still equal invalid_session

Thank you BartAfterDark :oops:


Title: Re: Integration 4images 1.7 / phpBB
Post by: Franc24 on November 26, 2005, 02:16:20 PM
My site is:

www. perete.es/foro (http://www. perete.es/foro)

www. perete.es/galeriaim (http://www. perete.es/galeriaim)

Thank you :D


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on November 26, 2005, 02:35:13 PM
did you do what Shadowstorm posted?
If so. Remove the code again. And try my fix


Title: Re: Integration 4images 1.7 / phpBB
Post by: Franc24 on November 26, 2005, 02:39:31 PM
Pardon which is his?  :oops:


Title: Re: Integration 4images 1.7 / phpBB
Post by: Franc24 on November 26, 2005, 03:51:12 PM
Do I have changed the code of Shadowstorm for the original of the Mod integration in session but not their code, you please could say me? he would be to you grateful.

Pardon for my English

Greetings  :?:


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on November 26, 2005, 04:40:21 PM
this
http://www.4homepages.de/forum/index.php?topic=9917.msg51504#msg51504
you could send me sessions.php from 4images/includes and login.php from phpbb/

If you want me to look into it.


Title: Re: Integration 4images 1.7 / phpBB
Post by: Franc24 on November 26, 2005, 04:54:52 PM
I made this and you seem that it work well

1
2
3
4
//if ($sid == '' || $sid != $userdata['session_id'])
//{
//message_die(GENERAL_ERROR, 'Invalid_session');
//}

¿Was I what did you tell me?

Thank you    :lol:


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on November 26, 2005, 04:56:20 PM
Great ;) You finaly did what I said hee :p just kidding.
Glad it is working for you


Title: Re: Integration 4images 1.7 / phpBB
Post by: Franc24 on November 26, 2005, 05:02:00 PM
Pardon for the work. My English is very bad and very grateful. It works, works, works  :lol: :lol: :lol:


Title: Re: Integration 4images 1.7 / phpBB
Post by: waleed on November 28, 2005, 12:27:47 PM
thanks for great MOD, It works


Title: Re: Integration 4images 1.7 / phpBB
Post by: Johny on December 07, 2005, 07:16:49 PM
Is there any solution to integrate an already running 4images gallery with it's users to phpBB2 without losing anything(pictures, commets etc)?


Title: Re: Integration 4images 1.7 / phpBB
Post by: thatisme on December 07, 2005, 10:30:36 PM
Will this work with 4images 1.7.1 and phpBB 2.0.18?

Both of those versions are the newest versions. I have been googleing and searching this forum translated in english and i still can not find that anser. also i tryed to do the intergration anyways and every time i went to log in it sent me to a link like this

http://www.example.com/phpbb2/http://www.example.com/phpbb2/login.php='123451235187258917823891

or something along those lines.

if i pressed refresh it would log me in but whenever i did it thats what happend. Any clue?
would it be better if i used a older version of phpbb? or if i used 4images 1.7 since it doesnt seem there are any mods for 1.7.1? Thanks a ton!


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on December 08, 2005, 10:46:31 PM
It works just fine with 1.7.1 :)
Did you edit the sessions.php file?

Will this work with 4images 1.7.1 and phpBB 2.0.18?

Both of those versions are the newest versions. I have been googleing and searching this forum translated in english and i still can not find that anser. also i tryed to do the intergration anyways and every time i went to log in it sent me to a link like this

http://www.example.com/phpbb2/http://www.example.com/phpbb2/login.php='123451235187258917823891

or something along those lines.

if i pressed refresh it would log me in but whenever i did it thats what happend. Any clue?
would it be better if i used a older version of phpbb? or if i used 4images 1.7 since it doesnt seem there are any mods for 1.7.1? Thanks a ton!


Title: Re: Integration 4images 1.7 / phpBB
Post by: maziggy on December 21, 2005, 02:09:55 PM
Is there any way to intergrate 4images and phpBB when using different databases which will run also on different hosts ? I would like to achieve that the user login information from phpBB will also be used for 4images which will run on a different host/domain.

Thanks, Martin


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on December 22, 2005, 12:12:50 AM
I've got a new problem :/
When I sellect Log me on automatically next visit?
Close the browser window and opens the site again, it is not logged in.
you can see for your self here www.bran.dk (try and register)
Hope someone can help me out

 - lars


Title: Re: Integration 4images 1.7 / phpBB
Post by: maziggy on December 22, 2005, 10:00:35 AM
Is there any way to intergrate 4images and phpBB when using different databases which will run also on different hosts ? I would like to achieve that the user login information from phpBB will also be used for 4images which will run on a different host/domain.

Thanks, Martin


Can someone please let me know ? Thanks in advance.


Title: Re: Integration 4images 1.7 / phpBB
Post by: R2Pre2 on December 22, 2005, 11:49:42 AM
Hi! Folgendes: Habs geschafft, das Album ins forum zu integrieren. Funtzt alles bestens. Bis auf die Tatsache, dass ich im Album keinen Zugriff mehr aufs Control Panel hab. Sprich das Album akzeptiert mich nicht mehr als Admin. Einloggen übers Album geht ja nicht mehr.

Was muss ich tun? Bitte um Hilfe!

MFG Matthias!


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on December 22, 2005, 01:22:53 PM
did you edit the level things?

Hi! Folgendes: Habs geschafft, das Album ins forum zu integrieren. Funtzt alles bestens. Bis auf die Tatsache, dass ich im Album keinen Zugriff mehr aufs Control Panel hab. Sprich das Album akzeptiert mich nicht mehr als Admin. Einloggen übers Album geht ja nicht mehr.

Was muss ich tun? Bitte um Hilfe!

MFG Matthias!


Title: Re: Integration 4images 1.7 / phpBB
Post by: Scotty on December 22, 2005, 07:08:25 PM
Welche Tabellen kann man denn nun nach der Integration ins phpBB wieder löschen? Ich hab jetzt nur "4images_sessions" und "4images_users" gelöscht, die sind dann ja überflüssig, war da noch was?


Title: Re: Integration 4images 1.7 / phpBB
Post by: R2Pre2 on December 22, 2005, 07:18:51 PM
i edited the usre levels how it's described in the integration guide

user levels in gallery:

// User levels
define('GUEST', -1);
define('USER_AWAITING', -1);
define('USER', 0);
define('ADMIN', 1);


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on December 22, 2005, 09:34:05 PM
And the admins userlevel is level 1 when you check it with phpMyAdmin?

i edited the usre levels how it's described in the integration guide

user levels in gallery:

// User levels
define('GUEST', -1);
define('USER_AWAITING', -1);
define('USER', 0);
define('ADMIN', 1);


Title: Re: Integration 4images 1.7 / phpBB
Post by: R2Pre2 on December 23, 2005, 12:25:45 PM
Quote  [Expand]
And the admins userlevel is level 1 when you check it with phpMyAdmin?

yes


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on December 23, 2005, 07:03:41 PM
Strange.
And what does it exatly say?
and did you try to add another user with admin rights?

Quote  [Expand]
And the admins userlevel is level 1 when you check it with phpMyAdmin?

yes


Title: Re: Integration 4images 1.7 / phpBB
Post by: R2Pre2 on December 24, 2005, 10:22:51 AM
ok, i solved the Problem. I added a new user in the forum with admin rights, then i deleted my old username and changed the new username into the old one. Now I've got access to the control Panel from the gallery.

MFG Matthias!


Title: Re: Integration 4images 1.7 / phpBB
Post by: gordonzworld on December 26, 2005, 05:40:05 AM
Not sure if this has been answered, but theres a bug when attempting to logout via 4images in phpbb 2.0.+..
This can be resolved by opening includes/sessions.php in your 4images folder.
Find "$url_logout"

In line find:

?logout=true

After inline add:

&sid=".$_COOKIE["phpbb2mysql_sid"]."

It should look like this when your done:
$url_logout        = $url_app."login.php?logout=true&sid=".$_COOKIE["phpbb2mysql_sid"]."";

What where doing is pulling the cookie SID for phpbb2 and placeing it in the logout link in 4image.
There was also another method which would be to modify the phpbb2 login.php page which removes the sid check,
this is not recomended, and can create a security hole..

Hope this helps,
Gordon


Title: Re: Integration 4images 1.7 / phpBB
Post by: gordonzworld on December 26, 2005, 05:42:28 AM
Note on last post:
If that does not pull the sid, create a new php file
in this file post this code:
1
2
3
<?PHP
phpinfo();
?>
and search for phpbb
you will see something like phpbb2mysql_sid.
That will be the cookie code..

L8r,
Gordon
--
http://www.gordonzworld.com


Title: Re: Integration 4images 1.7 / phpBB
Post by: maziggy on December 29, 2005, 01:16:22 PM
Is there any way to intergrate 4images and phpBB when using different databases which will run also on different hosts ? I would like to achieve that the user login information from phpBB will also be used for 4images which will run on a different host/domain.

Thanks, Martin


Can someone please let me know ? Thanks in advance.

No answer to my question so far. Can someone please ?

Thanks, Martin


Title: Re: Integration 4images 1.7 / phpBB
Post by: Schmidti on December 30, 2005, 03:19:52 PM
Hi...

ich hab da ne frage zu der Integration von 4images ins phpBB:

Ist es vielleicht möglich, dass nicht 4images die Userdatenbank von phpBB nutzt, sondern genau anders rum. Das phpBB soll die Userdaten aus der Datenbank von 4images nutzen. Jedoch nur Login und das zugehörige Passwort. Gibt es dazu n Mod?
----

i have a question to the integration of 4images into phpBB:

Is it possible that not 4images uses the database of phpBB? I want the integration of phpBB into 4images. phpBB should uses the userdatabase of 4images, but only userlogin and password. Is there any mod?

thanks...


Title: Re: Integration 4images 1.7 / phpBB
Post by: Swallow on January 01, 2006, 09:53:55 PM
Hello!

I have read all sites but now I'm not sure about this:

I have installed all things for the phpBB-Database an 4 images. But I think the "Login-process" is very badly.
So a lot of people had asked about it but I haven't found a really possible answer..., so...

What can I do to make ONLY one login and not two (1st: 4 images -> 2nd Forum)????
The user have to fill in for two times there Username and Password if there have not activated there Cookies or if they use another PC for the first time.

Thank you...

Big greetings...

Swallow


Title: Re: Integration 4images 1.7 / phpBB
Post by: Schmidti on January 12, 2006, 08:26:10 PM
The login of 4images and phpBB is fine, but when i want to logout it only works in phpBB....
If i want to logout in 4images nothing happened.

Could you look for any mistakes? http://www.worldparty.de/worldparty/v2/bilder/index.php


Title: Re: Integration 4images 1.7 / phpBB
Post by: BartAfterDark on January 14, 2006, 01:10:36 PM
I also have some of the login problems.
It wont save the cookie if I close the browser. And it seems that it does not like when the url has www infront


Title: Re: Integration 4images 1.7 / phpBB
Post by: fotograf74 on January 14, 2006, 09:16:43 PM
I installed this mod before the forum chrashed and now I want to disconnect my photos site from the Forum.

I changed the session.php and the constant.php with old version but I get only error messages.

When the user now logged out in the forum they go directly to the Photo-Site. I want that the users stay in the forum.

Can anyone help me?


Title: Re: Integration 4images 1.7 / phpBB
Post by: V@no on January 14, 2006, 09:52:36 PM
 what error messages exactly?


Title: Re: Integration 4images 1.7 / phpBB
Post by: fotograf74 on January 15, 2006, 12:39:48 AM
Hmm, funny now I get no error message. But I can´t use the old session.php because some mods.

But what can I do to disconnect the forum from my 4images version?

When the user now logged out in the forum they go directly to the Photo-Site. I want that the users stay in the forum.


Title: Re: Integration 4images 1.7 / phpBB
Post by: V@no on January 15, 2006, 02:10:20 AM
well, all I can suggest you is open the instructions and do the reverse changes...you can use the code, you've replaced by this mod, from fresh 4images files.


Title: Re: Integration 4images 1.7 / phpBB
Post by: fotograf74 on January 15, 2006, 11:02:20 AM
Yes I do this many times, but the connection between 4images Gallery and phpbb Forum is still there.

Is there some code in the database or in the phpbb files?


Title: Re: Integration 4images 1.7 / phpBB
Post by: Heraldo on January 16, 2006, 12:18:03 AM
Hello,

This is because of some changes in phpBB version 2.0.4. Try this little hack in includes/functions.php (phpBB!)
Add after
1
2
3
4
if (!empty($db))
{
     $db->sql_close();
}
this
1
2
3
4
if (stristr($url, 'http://')) {
  header('Location: ' . $url);
  exit;
}
Jan

I had the same problem with phpBB 2.0.19 and 4images 1.7.1

That hack fixed my login-problem. However, if I log out in 4images I am forwarded to phpBB and I receive the error "invalid session" and stay logged on. What's going wrong there?

Bye,

Heraldo


Title: Re: Integration 4images 1.7 / phpBB
Post by: suppedo on January 17, 2006, 09:45:29 PM
This is because of some changes in phpBB version 2.0.4. Try this little hack in includes/functions.php (phpBB!)
Add after
1
2
3
4
if (!empty($db))
{
     $db->sql_close();
}
this
1
2
3
4
if (stristr($url, 'http://')) {
  header('Location: ' . $url);
  exit;
}
Jan

hey danke, das hat schonmal einen Teil meiner Probleme gelöst! Ich kann mich jetzt zumindest über 4images einloggen. Das ging vorher nicht.
Aber wenn ich mich nur über phpBB einlogge, dann zeigt er mir bei 4images zwar an das mein user eingeloged ist, ich aber selber Gast bin!  :?

Bitte um Hilfe!

Suppedo

edit:
when I login through phpBB then go to 4images I'm logged out in phpBB again too, when I log in through 4images everything is working fine!  8O

any suggestions? It would be quite nice to have it working through phpBB, because I'm also intergrating nucleus cms, which is a powerfull combination!  :twisted: when it is working!  :lol:

many thanks Suppedo


Title: Re: Integration 4images 1.7 / phpBB
Post by: Nightrider on January 20, 2006, 11:44:59 AM
I created a query to reproduce the members from the 4images_users table in the phpbb_users table and that seemed to go well.  I converted the user_levels from 2 to 0 in the conversion.  So that part seemed to go fine.  Now members who were previously only registered in the 4images software can log into phpBB...

My problem starts after integrating the two utilities together.  When I try to login to 4images after the integration of the code, I receive a 404 Page not Found error.  After restoring the backups, the login into the 4images_users table works as expected again...

So what am I missing in the integration that would cause a 404 Page not Found error after attempting to log into the phpBB tables from 4images Version 1.7.1???

(http://img398.imageshack.us/img398/3663/dontknow6sf.gif)


Title: Re: Integration 4images 1.7 / phpBB
Post by: suppedo on January 22, 2006, 11:35:49 AM
no ideas anyone?

hat keiner eine Idee?


Title: Re: Integration 4images 1.7 / phpBB
Post by: Ojii on January 22, 2006, 05:18:40 PM
der login bei 4images funktioniert bei mir nach der integration mit phpBB nicht. es kommt immer eine fehlermeldung:

Quote  [Expand]
Not Found
The requested URL /forum/http://genki.g2host.de/gallerie/index.php was not found on this server.

Apache/1.3.33 Server at genki.g2host.de Port 80

was kann ich da tun?

greez Ojii

the login of 4images doesn't work after the integration. there is an error message after the login:

Quote  [Expand]
Not Found
The requested URL /forum/http://genki.g2host.de/gallerie/index.php was not found on this server.

Apache/1.3.33 Server at genki.g2host.de Port 80

what can I do about it?

greez Ojii


Title: Re: Integration 4images 1.7 / phpBB
Post by: Bao on February 20, 2006, 09:30:33 PM
I have phpBB 2.0.17 and 4images 1.7.1 is here anybody who did this sucessfully or are there any known issues? I would like to try it, but if here anybody can tell me, that it wont work, i dont have to try it ^^


Title: Re: Integration 4images 1.7 / phpBB
Post by: boerdi on February 20, 2006, 11:02:49 PM
guten abend!
Version: 4images 1.7.1
            phpbb 2.0.19
Also..habe mich hier mal ne stunde vor den 27 seiten durchgewälzt und bin blöder als zuvor!*g
habe als 1. phpbb installiert
danach 4images in der gleichen datenbank aber mit anderem prefix! (also phpbb_...... & 4images_.....)
Habe alles anhand den originalteilen installiert! funktioniert prächtig!
So..wie gehe ich weiter vor um die zwei zu vereinen bzw. habe ich schon einen fehler gemacht??

eine anleitung für dummies wäre hier glaub ich angebracht ,da es doch interessant für viele zu sein scheint!
kann zwar gut umgehen mit codeschnipsel..aber zweisprachig und für jede version ne andere fassung ist schon ein wenig chaotisch!

MFG aus Austria(heut 3 Goldene bei Olympia gemacht :-) ) Bernhard


Title: Re: Integration 4images 1.7 / phpBB
Post by: thorx on February 25, 2006, 12:41:38 AM
when i enter 4images without being logging in, i am allways loged in as Anonymous. This account has full member rights and can be accessed by anyone. If i log out,and log in through phpbb2 and go to the image gallery, it works fine. Can someone tell me why this is and how i fix it?



Title: Re: Integration 4images 1.7 / phpBB
Post by: thorx on February 25, 2006, 07:54:16 PM
Never mind the above post. Fixed the problem :P


Title: Re: Integration 4images 1.7 / phpBB
Post by: bgnm2000 on March 14, 2006, 06:49:13 PM
I just installed the integration, here are the probs:

when logging in the url tries to use: http://www.bigjibs.com/forum/http://bigjibs.com/index.php?sid=cc18f23961bb31ebda04df9f94626c57

meaning its adding the forum url first for some reason, then when I try to logout through the gallery and not the forum, I get an invalid session message.


Title: Re: Integration 4images 1.7 / phpBB
Post by: darkcurves on March 18, 2006, 08:25:00 AM
I have a serious problem. When i visit my gallery first, it will log me off. For example, usually to visit my gallery, i log in at my forum, then click the link from there. If i visit the gallery without doing that, for example a friend emailed me a link from my gallery, then i click it, it auto log me off. Anyone knows why? I think something to do with the cookies. Thanks.


Title: Re: Integration 4images 1.7 / phpBB
Post by: noborder on March 26, 2006, 10:19:32 PM
Hallo,
Version: 4images 1.7.2
            phpbb 2.0.19
Habe zuerst 4images und danach phpbb in die gleiche Datenbank installiert.
Problem beim Login ins 4images bekomme ich immer einen 'HTTP Error 404 - File or directory not found.'
Hier im Forum habe ich zwar etwas gefunden aber der link zur Forums Seite funktioniert nicht mehr.
Was habt ihr bei dem Problem gemacht ?




Title: Re: Integration 4images 1.7 / phpBB
Post by: Malcolm Feth on April 02, 2006, 09:57:49 PM
i have new PHPbb
and i have the same problem with login....
on phpbb works, but not in 4images....

i can log in to the page via 4images.. but 4images still doesn't see that i'm logged in
anyyy help ?

ps. i've just changed 4images to 1.7.2 version - it doesn't work... still
wrrr


Title: Re: Integration 4images 1.7 / phpBB
Post by: Trent on April 03, 2006, 06:46:12 PM
I am using version 4images 1.72 and phpbb 2.19.  I can successfully login to phpbb and then visit the link to 4images and view my gallery when using IE and Safari on Mac ox.  I cannot, however, get the cookies to set properly with Firefox?  Is anyone else seeing a problem with this?  I even uninstalled Firefox and tried it on a fresh install......not sure what is going on?  Any ideas?

Trent


Title: Re: Integration 4images 1.7 / phpBB
Post by: dabri on April 03, 2006, 06:53:48 PM

I also uses 4images 1.72 and phpbb 2.19, but I tested it on a PC.
IE and Firefox everything is OK.


Title: Login problem in 4images (phpBB integrated)
Post by: Towerade on May 01, 2006, 01:13:12 PM
I have this two scrpts integrated (http://afv.sergiodelatorre.com/ & http://afv.sergiodelatorre.com/galeria/), but when i try to login in the 4images form the browser goes to http://afv.sergiodelatorre.com/http://afv.sergiodelatorre.com/galeria/index.php?sid=*************. If i go back i can see that i logged successfully, but wrong redirected

What's the problem?


Title: Re: Login problem in 4images (phpBB integrated)
Post by: V@no on May 01, 2006, 02:36:36 PM
please read
 forum rules and then reply to appropriat topic


Title: Re: Login problem in 4images (phpBB integrated)
Post by: Towerade on May 01, 2006, 02:47:48 PM
I know, but the post talk about disappeared

Quote  [Expand]
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


Title: Re: Integration 4images 1.7 / phpBB
Post by: Rübe on May 05, 2006, 09:21:05 PM
guten abend!
Version: 4images 1.7.1
            phpbb 2.0.19
Also..habe mich hier mal ne stunde vor den 27 seiten durchgewälzt und bin blöder als zuvor!*g
habe als 1. phpbb installiert
danach 4images in der gleichen datenbank aber mit anderem prefix! (also phpbb_...... & 4images_.....)
Habe alles anhand den originalteilen installiert! funktioniert prächtig!
So..wie gehe ich weiter vor um die zwei zu vereinen bzw. habe ich schon einen fehler gemacht??

eine anleitung für dummies wäre hier glaub ich angebracht ,da es doch interessant für viele zu sein scheint!
kann zwar gut umgehen mit codeschnipsel..aber zweisprachig und für jede version ne andere fassung ist schon ein wenig chaotisch!

MFG aus Austria(heut 3 Goldene bei Olympia gemacht :-) ) Bernhard

Boerdi, hast schon eine Antwort?

Bei mir ist es wie folgt: Habe eine funktionierende phpbb-Installation (2.0.20) auf meinem Webspace. Möchte jetzt 4images hinzufügen. Bevor ich das tue, auch meine Frage: Kann ich das jetzt dazuspielen und kann ich dafür Jans Download benutzen (im ersten Posting dieses Threads) oder ist hier die Reihenfolge falsch?

Ich habe jetzt auch alle möglichen Probleme aller möglichen User auf den vorangengangenen Seiten durch und bin genauso verwirrt wie Boerdi...  :roll:


Title: Re: Integration 4images 1.7 / phpBB
Post by: KurtW on May 06, 2006, 07:05:19 AM
Hallo Rübe,
kein Problem in dieser Reihenfolge.
Es wird bei der Integration ja praktisch nur der Zugriff auf die Usertabelle von 4images geändert.
Durch die Änderung wird anschließend auf die Usertabelle von phppp zugegriffen.


Gruß
Kurt


Title: Re: Integration 4images 1.7 / phpBB
Post by: ufopsi on May 11, 2006, 12:56:14 AM
Running 4images 1.7.2
Windows server
PHP 4.3.2
mySQL 3.23.49
No GD
Bridged with phpBB 2.0.20
=================

Just installed 4images and it is very fast. The most annoying issue is the login: having applied the phpBB "bridge", once I click on Log in, I'm brought here:

Quote  [Expand]
http://www.ufopsi.com/forum/http://www.ufopsi.com/gallery/index.php?sid=407b9ca9c3723a11308f85858a6235a0
Of course that url does not exist.

The correct one would be:
Quote  [Expand]
http://www.ufopsi.com/gallery/index.php?sid=407b9ca9c3723a11308f85858a6235a0

In the Backup database section, I'm unable to delete the older backups from the list. Gallery says either I'm not the Admin or not logged in. In fact, I am logged out!   

How do I fix it??


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Stoleti on May 11, 2006, 02:52:13 AM
Someone can help me fixing this :

Quote  [Expand]
DB Error: Bad SQL Query: SELECT * FROM phpbb_config
Table 'blacktra_imga1.phpbb_config' doesn't exist

DB Error: Bad SQL Query: SELECT ban_ip, ban_userid, ban_email FROM phpbb_banlist WHERE ban_ip IN ('529b3f09', '529b3fff', '529bffff', '52ffffff') OR ban_userid = -1
Table 'blacktra_imga1.phpbb_banlist' doesn't exist

DB Error: Bad SQL Query: UPDATE phpbb_sessions SET session_user_id = -1, session_start = 1147300020, session_time = 1147300020, session_page = 0, session_logged_in = 0 WHERE session_id = '' AND session_ip = '529b3f09'
Table 'blacktra_imga1.phpbb_sessions' doesn't exist

DB Error: Bad SQL Query: INSERT INTO phpbb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) VALUES ('a1817de7d279f168e48ecfadd875c66f', -1, 1147300020, 1147300020, '529b3f09', 0, 0)
Table 'blacktra_imga1.phpbb_sessions' doesn't exist

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

Warning: Cannot modify header information - headers already sent by (output started at /home/blacktra/public_html/download/includes/db_mysql.php:188) in /home/blacktra/public_html/download/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 phpbb_users u, phpbb_sessions s WHERE u.user_id = s.session_user_id AND (s.session_time >= 1147299721 OR u.user_session_time >= 1147299721) ORDER BY u.user_id ASC, s.session_ip ASC
Table 'blacktra_imga1.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 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 LIMIT 0, 1
Table 'blacktra_imga1.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 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 NOT IN (0) ORDER BY i.image_date DESC LIMIT 3
Table 'blacktra_imga1.phpbb_users' doesn't exist

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

prefix phpbb_ and database blacktra_phpb1

 :?:


Title: Re: Integration 4images 1.7 / phpBB
Post by: ufopsi on May 11, 2006, 12:32:11 PM
the login of 4images doesn't work after the integration. there is an error message after the login:

Quote  [Expand]
Not Found
The requested URL /forum/http://genki.g2host.de/gallerie/index.php was not found on this server.

Apache/1.3.33 Server at genki.g2host.de Port 80

what can I do about it?

greez Ojii
I've the exact same problem. Now let's see what the techies here tell us. :idea:


Title: Re: Integration 4images 1.7.x / phpBB
Post by: ufopsi on May 11, 2006, 01:02:01 PM
OK, the trick shown here:
http://www.4homepages.de/forum/index.php?topic=9917.msg31328#msg31328

Has fixed the invalid URL for me. I'm still unable to delete a db backup from the CP.

Addendum: it seems 4images has not created a cookie, even though phpBB has two.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: ufopsi on May 17, 2006, 08:47:41 PM
Regarding the error message that happens when trying to delete a db backup, I have found another way:
I ftp to my account, gallery>data>database

There are the backups I can delete.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: ufopsi on May 23, 2006, 11:40:26 PM
I'ven't been able to find a fix for the cookie issue: every time I visit my gallery, I am not logged in. I can log in, but with phpBB the session is much longer. Anyone able to help me?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: ana4ever-vids on June 23, 2006, 02:38:14 PM
Hi,

I installed the integration but on the main page I have these errors:

1
2
3
4
5
6
7
8
9
DB Error: Bad SQL Query: SELECT * FROM phpbb_config
Table 'raingroup_utenti.phpbb_config' doesn't exist

DB Error: Bad SQL Query: SELECT ban_ip, ban_userid, ban_email FROM phpbb_banlist WHERE ban_ip IN ('9719202a', '971920ff', '9719ffff', '97ffffff') OR ban_userid = -1
Table 'raingroup_utenti.phpbb_banlist' doesn't exist

Warning: Cannot modify header information - headers already sent by (output started at /home/www/rainerumgroup.awardspace.com/gallery/includes/db_mysql.php:188) in /home/www/rainerumgroup.awardspace.com/gallery/includes/sessions.php on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/www/rainerumgroup.awardspace.com/gallery/includes/db_mysql.php:188) in /home/www/rainerumgroup.awardspace.com/gallery/includes/sessions.php on line 326

I know that other users had this problem, but this forum is a mess!!!




4images 1.7.2
phpBB 2.0.21


Please, help me!!! :(  It's urgent!!!


Title: Re: Integration 4images 1.7.x / phpBB
Post by: ana4ever-vids on June 23, 2006, 10:01:06 PM
NONE?? NOTHING?? :( :( :cry: :cry:


Title: Re: Integration 4images 1.7.x / phpBB
Post by: MementoX on July 03, 2006, 12:43:00 PM
Hab hier schon verzweifelt gesucht aber wurde leider nicht fündig... ich habe folgendes Problem nach der Integration.

Man kann sich nicht über 4Images einloggen sondern nur über phpBB. Also eigentlich funktioniert es schon aber wenn man sich einloggt unter 4images bekommt man beim IE "Seite kann nicht angezeigt werden" und unter Firefox "Not Found The requested URL /phpBB2/http://domain.com/4images/index.php was not found on this server." also quasi ein vollkommen falschen Link. Man ist aber eingeloggt danach... beim IE braucht man nur mal Refreshen und es passt und beim Firefox muss man einfach nochmal komplett neu auf die Seite...

Achja und aus dem 4Images Adminpanel kann ich mich nicht ausloggen. Konnte mich davor überhaupt nicht ausloggen da immer ein Fehler kam aber da hab ich aus der login.php was rausgelöscht was ich hier fand und nun funzt wenigstens mal das.


Hat das irgendwas mit der Cookie Domain Angabe bei phpbb oder so zu tun? ne oder?

btw: Die Urls sehen bei mir so aus...

domain.com/4images
domain.com/phpBB

Wäre toll wenn hier jemand helfen könnte =)



Thx


Title: Re: Integration 4images 1.7.x / phpBB
Post by: tsr on July 19, 2006, 04:56:18 PM
I read the lines and they refer to cookies. Anyone with help?

[qcode]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.

An unexpected error occured. Please try again later.

Warning: Cannot modify header information - headers already sent by (output started at /home/.antigone/ghz/thesexyrobots.net/gallery_/includes/db_mysql.php:192) in /home/.antigone/ghz/thesexyrobots.net/gallery_/includes/sessions.php on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/.antigone/ghz/thesexyrobots.net/gallery_/includes/db_mysql.php:192) in /home/.antigone/ghz/thesexyrobots.net/gallery_/includes/sessions.php on line 326

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 /home/.antigone/ghz/thesexyrobots.net/gallery_/includes/db_mysql.php on line 116[/qcode]


Title: Re: Integration 4images 1.7.x / phpBB
Post by: tdkpaul on July 23, 2006, 02:59:33 PM
does this mod also work with 4 images 1.7.2?

ich habe jetzt schon länger 4 images am laufen mit einigen Usern.
W´Habe vor phpbb 2 Plus zu installieren. Sind dann die User gelöscht? Wäre ja an sich nicht so schlimm. Dann müssen sie sich halt nochmal neu in phpbb registrieren.

Bevor ich da irgendetwas rüberspiele wollte ich mal fragen, ob dies in der Reihenfolge auch funktioniert.

Thx


Title: Re: Integration 4images 1.7.x / phpBB
Post by: CharlieF. on July 26, 2006, 08:43:36 PM
Hab hier schon verzweifelt gesucht aber wurde leider nicht fündig... ich habe folgendes Problem nach der Integration.

Man kann sich nicht über 4Images einloggen sondern nur über phpBB. Also eigentlich funktioniert es schon aber wenn man sich einloggt unter 4images bekommt man beim IE "Seite kann nicht angezeigt werden" und unter Firefox "Not Found The requested URL /phpBB2/http://domain.com/4images/index.php was not found on this server." also quasi ein vollkommen falschen Link. Man ist aber eingeloggt danach... beim IE braucht man nur mal Refreshen und es passt und beim Firefox muss man einfach nochmal komplett neu auf die Seite...

Achja und aus dem 4Images Adminpanel kann ich mich nicht ausloggen. Konnte mich davor überhaupt nicht ausloggen da immer ein Fehler kam aber da hab ich aus der login.php was rausgelöscht was ich hier fand und nun funzt wenigstens mal das.


Hat das irgendwas mit der Cookie Domain Angabe bei phpbb oder so zu tun? ne oder?

btw: Die Urls sehen bei mir so aus...

domain.com/4images
domain.com/phpBB

Wäre toll wenn hier jemand helfen könnte =)

Thx

Habe genau das gleiche Problem.
Wäre ebenfalls sehr dankbar, wenn jemand abhelfen könnte.

Gruß,
Charlie


Title: Re: Integration 4images 1.7.x / phpBB
Post by: ufopsi on July 26, 2006, 09:18:57 PM
Hab hier schon verzweifelt gesucht aber wurde leider nicht fündig... ich habe folgendes Problem nach der Integration.

Man kann sich nicht über 4Images einloggen sondern nur über phpBB. Also eigentlich funktioniert es schon aber wenn man sich einloggt unter 4images bekommt man beim IE "Seite kann nicht angezeigt werden" und unter Firefox "Not Found The requested URL /phpBB2/http://domain.com/4images/index.php was not found on this server." also quasi ein vollkommen falschen Link. Man ist aber eingeloggt danach... beim IE braucht man nur mal Refreshen und es passt und beim Firefox muss man einfach nochmal komplett neu auf die Seite...

Achja und aus dem 4Images Adminpanel kann ich mich nicht ausloggen. Konnte mich davor überhaupt nicht ausloggen da immer ein Fehler kam aber da hab ich aus der login.php was rausgelöscht was ich hier fand und nun funzt wenigstens mal das.


Hat das irgendwas mit der Cookie Domain Angabe bei phpbb oder so zu tun? ne oder?

btw: Die Urls sehen bei mir so aus...

domain.com/4images
domain.com/phpBB

Wäre toll wenn hier jemand helfen könnte =)

Thx

Habe genau das gleiche Problem.
Wäre ebenfalls sehr dankbar, wenn jemand abhelfen könnte.

Gruß,
Charlie
Sehr leicht!  :mrgreen: Bitte lesen weiter...
Das Problem ist die Funktion redirect() von phpBB. Die Funktion leitet nur auf URLs innerhalb des Installationsverzeichnisses weiter.

Suche in include/functions.php von phpBB nach:
Search in include/functions.php von phpBB for:

1
2
3
4
5
6
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? $script_name : '/' . $script_name;
$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));

und ersetze den Abschnitt mit:
and replace with:


1
2
3
4
5
6
7
8
if (strpos($url, 'http://') === false) {
    $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
    $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
    $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
    $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
    $script_name = ($script_name == '') ? $script_name : '/' . $script_name;
    $url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));
}


Title: Re: Integration 4images 1.7.x / phpBB
Post by: tdkpaul on July 28, 2006, 08:38:06 PM
wie isn das wenn man schon paar User hat in 4images?
Sind die danach alle nicht mehr brauchbar oder müssen die sich ur mit gleichen Namen und PW registrieren in phpbb?

Danke für antwort


Title: Re: Integration 4images 1.7.x / phpBB
Post by: SvenK on August 02, 2006, 10:45:21 AM
Hallo zusammen,

bisher hatte ich PHPBB in der 2.0.19 Version und 4images in der 1.7.1 Version laufen - ohne Probleme ! Jetzt kommt aber das Update auf PHPBB 2.0.21 und 4images 1.7.3. hmmm ... normalerweise kein Problem, aber in der neuen 4images wurde die sessions.php verändert was natürlich bedeutet, daß die veränderte sessions.php im ursprünglichen Anhang hier im Post nicht mehr aktuell ist. Ich würde gerne die alte sessions.php der Version 1.7.1 mit der neuen in 1.7.3 vergleichen und dann die Änderungen in die phpbb Version hinzufügen. Leider finde ich keinen Download für die alte Version - habt ihr die Datei noch irgendwo bzw. könnt ihr die Änderungen an dieser Datei hier im Post mit angeben ???

Danke, Sven


Title: Re: Integration 4images 1.7.x / phpBB
Post by: mawenzi on August 02, 2006, 11:48:11 AM
... verstehe ich dich richtig, du suchst die sessions.php Version 1.7.1 ? ...


Title: Re: Integration 4images 1.7.x / phpBB
Post by: SvenK on August 02, 2006, 01:02:53 PM
... verstehe ich dich richtig, du suchst die sessions.php Version 1.7.1 ? ...

Ja, genau !! Soweit ich das verstanden habe müßte diese (bzw. eine Version vorher) die Grundlage für das .zip File am Anfang dieses Posts sein. Da sich diese in der aktuellen Version 1.7.3 geändert hat kann man nicht mehr einfach die Datei ersetzen.

Sven


Title: Re: Integration 4images 1.7.x / phpBB
Post by: mawenzi on August 02, 2006, 02:29:01 PM
... na dann, hier die sessions.php Version 1.7.1 ...


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Gustavo on August 02, 2006, 09:50:41 PM
Is this compatible with 4images 1.7.3 and phpBB 2.0.21 ?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: ccsakuweb on August 07, 2006, 10:55:48 AM
I want to know the same .. could you help me?

because the new version have a new sessions file...


Title: Re: Integration 4images 1.7.x / phpBB
Post by: ccsakuweb on August 08, 2006, 05:35:49 PM
i have another question.

i modified this from includes/sessions.php :

1
2
3
4
5
6
7
$url_register      = $url_app."profile.php?mode=register";
//$url_lost_password = $url_app."profile.php?mode=sendpassword";
//$url_control_panel = $url_app."profile.php?mode=editprofile";
//$url_mailform      = $url_app."profile.php?mode=email&u={user_id}";
//$url_show_profile  = $url_app."profile.php?mode=viewprofile&u={user_id}";
$url_login         = $url_app."login.php?redirect=../myart/index.php&outside=1";
$url_logout        = $url_app."login.php?logout=true&redirect=../myart/index.php&outside=1";

and then i can show the profile from users, but i can´t to modified the profile from 4images... maybe lost password from 4images is works ... why is it? is there any problem with the control panel? when i saved the changes from my profile the next text is shown:

1
2
DB Error: Bad SQL Query: UPDATE phpbb_users SET user_email = 'ccsakuweb@hotmail.com', user_viewemail = 1, = 0, user_allow_viewonline = 0, user_website = 'http://www.myart.es', user_icq = '' WHERE user_id = 2
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 0, user_allow_viewonline = 0, user_website = 'http://www.myart

any idea?




Title: Re: Integration 4images 1.7.x / phpBB
Post by: SvenK on August 09, 2006, 08:38:43 AM
@mawenzi

danke ! Ich werde mich die Tage mal dran machen und schauen was sich machen lässt. Leider ist die Zeit momentan sehr knapp und die alte Version funktioniert auch noch.

Is this compatible with 4images 1.7.3 and phpBB 2.0.21 ?

Yes ! Is compatible and works without problems.

Sven


Title: Re: Integration 4images 1.7.x / phpBB
Post by: T0M on August 09, 2006, 10:13:59 PM
Hallo ich habe 2 sachen also das erste ist wenn ich mich über 4images abmelden will öffnet sich phpbb mit einer allgemeinen fehlermeldung Invalid_session

das zweite wäre ist es möglich in dem forum profil einen link zu setzen wo dann alle fotos des users angezeigt werden? ich habe schon mal geguckt aber keine möglichkeit gesehen aber komme damit h nicht so richtig zurecht  :mrgreen: wäre nett wenn mir jemand sagen könnte wie es geht wenn es überhaupt geht

greetz
tom


Title: Re: Integration 4images 1.7.x / phpBB
Post by: ccsakuweb on August 10, 2006, 12:29:32 AM
Please… Could anyone help me?  :( i´m spanish... sorry my english is horrible


Title: Re: Integration 4images 1.7.x / phpBB
Post by: medo007 on August 10, 2006, 10:36:08 AM
Is this compatible with 4images 1.7.3 and phpBB 2.0.21 ?

Yes they are compatibile!
I have instaled 4images 1.7.3 and phpBB 2.0.21 and they are working together!

_____________________

mEDO


Title: Re: Integration 4images 1.7.x / phpBB
Post by: ccsakuweb on August 10, 2006, 01:14:57 PM
Yes.. I know this is compatible, but i have an error when i save the changes in user profile. Although the site says that I updated succesful. any idea? the error the next ->

i have another question.

i modified this from includes/sessions.php :

1
2
3
4
5
6
7
$url_register      = $url_app."profile.php?mode=register";
//$url_lost_password = $url_app."profile.php?mode=sendpassword";
//$url_control_panel = $url_app."profile.php?mode=editprofile";
//$url_mailform      = $url_app."profile.php?mode=email&u={user_id}";
//$url_show_profile  = $url_app."profile.php?mode=viewprofile&u={user_id}";
$url_login         = $url_app."login.php?redirect=../myart/index.php&outside=1";
$url_logout        = $url_app."login.php?logout=true&redirect=../myart/index.php&outside=1";

and then i can show the profile from users, but i can´t to modified the profile from 4images... maybe lost password from 4images is works ... why is it? is there any problem with the control panel? when i saved the changes from my profile the next text is shown:

1
2
DB Error: Bad SQL Query: UPDATE phpbb_users SET user_email = 'ccsakuweb@hotmail.com', user_viewemail = 1, = 0, user_allow_viewonline = 0, user_website = 'http://www.myart.es', user_icq = '' WHERE user_id = 2
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 0, user_allow_viewonline = 0, user_website = 'http://www.myart

any idea?





Title: Re: Integration 4images 1.7.x / phpBB
Post by: ccsakuweb on August 11, 2006, 10:30:10 PM
the problem seems to be that if i change something of the profile, which I want is to change the table of phpbb profile and then apparently does not leave me because I put information different… Can I keep the data in the table from my gallery ?? not in phpbb? hum… I only want to share password...

Or... Could I add fields from phpbb profile? for example , i have flags mod in phpbb but not in 4images.. then could i add this flags in my 4images profile? or.. the name from my users that it is in phpbb table

help me please..


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Greifenvogel on August 15, 2006, 02:45:16 PM
bei mir kommt jedesmal der 404 fehler nach dem einloggen.

in der leiste steht dann immer folgendes.denke mal dat ich nen link falsch gesetzt habe alledering ist mir nich ganz klar wo.
wenn mir jemand helfen könnte wäre nett.

http://www.greifenvogel.de/phpBB2/http://www.greifenvogel.de/4images/index.php?sid=7419237dbdf682b68f83544cfdd1f33b

danke habs gefunden :)



Title: Re: Integration 4images 1.7.x / phpBB
Post by: sy4k4 on August 15, 2006, 09:31:20 PM
i use 4images 1.7.3 and phpBB 2.0.21
i didn't work please help


Title: Re: Integration 4images 1.7.x / phpBB
Post by: edel on August 17, 2006, 01:35:17 PM
und gleich nochmal auf deutsch:

hat es es den jetzt schon jemand geschafft die session.php fürs 1.7.3 & phpbb anzugleichen :?:

in freudiger erwartung
stephan


Title: Re: Integration 4images 1.7.x / phpBB
Post by: SvenK on August 17, 2006, 05:08:51 PM
Ich wollte es eigentlich noch machen aber nachdem ich gesehen habe, daß die alte funktioniert und keine Probleme bringt hab ich es gelassen (Zeittechnisch gesehen sitze ich leider bis zum Hals voll). Allerdings wäre es sicherlich sinnvoll das durch zu ziehen allein aus sicherheitstechnischen Gründen !

Sven


Title: Re: Integration 4images 1.7.x / phpBB
Post by: edel on August 18, 2006, 11:09:45 AM
Quote  [Expand]
daß die alte funktioniert und keine Probleme bringt

mhhh - einfach so, ohne dass du was geändert hast? wie hast du das hinbekommen. bei mir gehts nimmer....

stephan


Title: Re: Integration 4images 1.7.x / phpBB
Post by: SvenK on August 18, 2006, 04:34:29 PM
Ich habe lediglich die standard Änderungen in PHPBB vorgenommen die hier zu finden sind und das war's. Können du guggen hieeeer: Bilderbuch (http://www.schuetzenverein-sande.de/bilderbuch)

 8)Sven


Title: Re: Integration 4images 1.7.x / phpBB
Post by: edel on August 19, 2006, 01:32:44 PM
aha - änderung im phpbb? ich habe nur die änderungen innerhalb von 4images vorgenommen - quasi laut anleitung mod.
wo kann ich die änderungen fürs phpbb gleich nochmal finden?
LG Stephan


Title: Re: Integration 4images 1.7.x / phpBB
Post by: tdkpaul on August 19, 2006, 04:40:01 PM
Ich habe lediglich die standard Änderungen in PHPBB vorgenommen die hier zu finden sind und das war's. Können du guggen hieeeer: Bilderbuch (http://www.schuetzenverein-sande.de/bilderbuch)

 8)Sven

deine Seite ist cooool
wie hastn du das jetzt genau gemacht?

User gab es noch keine, oder?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: ccsakuweb on August 20, 2006, 06:04:01 PM
hi! i have the next error when i change the member control panel from 4images after integrate it with phpbb.. Please.. Could you help me? please..

DB Error: Bad SQL Query: UPDATE phpbb_users SET user_email = 'ccsakuweb@hotmail.com', user_viewemail = 1, = 0, user_allow_viewonline = 0, user_website = 'http://www.myart.es', user_icq = '' WHERE user_id = 2
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 0, user_allow_viewonline = 0, user_website = 'http://www.myart



Title: Re: Integration 4images 1.7.x / phpBB
Post by: SvenK on August 21, 2006, 01:37:59 PM
Ich habe lediglich die standard Änderungen in PHPBB vorgenommen die hier zu finden sind und das war's. Können du guggen hieeeer: Bilderbuch (http://www.schuetzenverein-sande.de/bilderbuch)

 8)Sven

deine Seite ist cooool
wie hastn du das jetzt genau gemacht?

User gab es noch keine, oder?

Danke !

Das Forum existierte mit den User schon von Anfang an. Beim Installieren von 4images hab ich lediglich die Daten des zip Files hier am Anfang übernommen (inkl. der Änderungen). Die Fehlermeldungen die dann kommen sind von PHPBB, wobei dies auch nur zwei kleine Änderungen sind die hier in diesem Thread zu finden sind. Das wars ...

Sven


Title: Re: Integration 4images 1.7.x / phpBB
Post by: dennist on August 23, 2006, 09:24:30 PM
Hi,

Ich nutze die 4images version 1.7.3 und phpbb Version 2.0.21
Soweit funktioniert auch alles, nur werden anscheinend beim automatischem Login keine cookies gesetzt.
Jedesmal, wenn ich die Seite schließe und wieder öffne bin ich zwar scheinbar eingeloggt doch sobald ich eine Unterseite öffne, bin ich wieder ausgelogged.

Hat jemand eine Idee?

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

I use 4images version 1.7.3 and phpbb version 2.0.21
Everything is fine but it seems as if no cookies are set. Every time I close the page and reopen it I stay logged in (seems like) but as soon as I go away from the main page I am suddenly logged out.

Can somebody help me?


Dennis


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Vikki1282 on August 24, 2006, 06:43:30 PM
can someone help?

both 4images and phpbb are new installations

i installed phpbb first, and 4images after

i now can NOT visit the the admin control panel for phpbb ... i receive and error page "The page cannot be displayed"

can anyone tell me what i need to fix?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: ccsakuweb on August 24, 2006, 06:52:14 PM
I want to uninstall this mod.. I have a lot of problems with the other mods from 4images because this mod.
I did:
redownload 4images package.
then, open the integration installation guide and do revers of changes.

 but now.. The authors from the images and comments are guest because it isn´t in 4images db.

Anyone knows how to save my users from phpbb to 4images gallery after uninstalled phpbb integration??

please i need it..


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Vikki1282 on August 25, 2006, 08:12:12 PM
reposting...

can someone help?

both 4images and phpbb are new installations

i installed phpbb first, and 4images after

i now can NOT visit the the admin control panel for phpbb ... i receive and error page "The page cannot be displayed"

can anyone tell me what i need to fix?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: medo007 on August 25, 2006, 09:57:02 PM
I use 4images version 1.7.3 and phpbb version 2.0.21
Everything is fine but it seems as if no cookies are set. Every time I close the page and reopen it I stay logged in (seems like) but as soon as I go away from the main page I am suddenly logged out.

Can somebody help me?

I have the same problem!


Can somebody help us?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Alanmelon on September 04, 2006, 09:47:04 AM
I use 4images version 1.7.3 and phpbb version 2.0.21
Everything is fine but it seems as if no cookies are set. Every time I close the page and reopen it I stay logged in (seems like) but as soon as I go away from the main page I am suddenly logged out.

Can somebody help me?

I have the same problem!


Can somebody help us?

Same problem with me, surely someone reading this can help out, I get the feeling it should be a simple fix but for those of us with little php knowledge it's impossible.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Neil_L12 on September 05, 2006, 03:24:39 PM
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 cant seem to access this link, I get an error saying that either the page has been removed or I dont have access rights...

Can someone please post a working link or better yet the procedure to solve the repeat http:// during a redirect

thanks
Neil.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: rsdn on September 14, 2006, 12:16:36 PM
Hello :

I see the mod is created in the year 2001, just curious whether it will work with phpbb 2.0.21 ?   :)


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Neil_L12 on September 16, 2006, 12:34:03 AM
yes, that was a concern however.

The user password link still works the only problems I have are with the session management in 4images and the login link that redirects to a url with an extra http://sitename.com/

I know its a minor change required I just cant remember what it was, and since the link isn't working a cant look it up...


Title: Re: Integration 4images 1.7.x / phpBB
Post by: medo007 on September 17, 2006, 03:47:24 PM
The integration works!

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

Somebody knows where is the problem?  :cry:


Title: Re: Integration 4images 1.7.x / phpBB
Post by: knsin0 on September 20, 2006, 08:41:15 PM
yes, that was a concern however.

The user password link still works the only problems I have are with the session management in 4images and the login link that redirects to a url with an extra http://sitename.com/

I know its a minor change required I just cant remember what it was, and since the link isn't working a cant look it up...

i have the same problem, help please  :(


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Mahonni on September 20, 2006, 10:52:43 PM
I use 4images version 1.7.3 and phpbb version 2.0.21
Everything is fine but it seems as if no cookies are set. Every time I close the page and reopen it I stay logged in (seems like) but as soon as I go away from the main page I am suddenly logged out.

Can somebody help me?

I have the same problem!


Can somebody help us?

Same problem with me, surely someone reading this can help out, I get the feeling it should be a simple fix but for those of us with little php knowledge it's impossible.

I'm another one with that problem, doesn't anyone know how to solve it?? Thank you!

By the way, for the ones that have the redirect problem when login, I know I had the same problem and the solution was in this thread, I'm pretty sure.

EDIT: If it helps, I have 4images 1.7.2 and phpBB 2.0.20


Title: Re: Integration 4images 1.7.x / phpBB
Post by: knsin0 on September 20, 2006, 11:54:46 PM
Quote  [Expand]

By the way, for the ones that have the redirect problem when login, I know I had the same problem and the solution was in this thread, I'm pretty sure.

EDIT: If it helps, I have 4images 1.7.2 and phpBB 2.0.20

thanks!! i have found it, over here:
http://www.4homepages.de/forum/index.php?topic=9917.msg31328#msg31328   :D :D


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Mahonni on September 21, 2006, 12:01:51 AM
Quote  [Expand]

By the way, for the ones that have the redirect problem when login, I know I had the same problem and the solution was in this thread, I'm pretty sure.

EDIT: If it helps, I have 4images 1.7.2 and phpBB 2.0.20

thanks!! i have found it, over here:
http://www.4homepages.de/forum/index.php?topic=9917.msg31328#msg31328   :D :D

You're welcome, although you're the one who found it ;). Maybe we should put a post with the links to the solutions since it's really hard to search for a solution in all the 31 pages...:P


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Xaser on September 23, 2006, 07:10:08 PM
Hi. I install new PHPBB Forum 3.0 Beta.  :D Today this is the most contemporary forum in the world.  :lol: But I must note that “phpbb_sessions” table structure is changed.  :(
I made some changes for these variables in sessions.php  :wink:

$url_register      = $url_app."ucp.php?mode=register";
$url_lost_password = $url_app."ucp.php?mode=sendpassword";
$url_control_panel = $url_app."ucp.php?mode=editprofile";
$url_mailform      = $url_app."ucp.php?mode=email&u={user_id}";
$url_show_profile  = $url_app."ucp.php?mode=viewprofile&u={user_id}";
$url_login         = $url_app."ucp.php?mode=login";
$url_logout        = $url_app."ucp.php?mode=login?logout=true";

sessions.php needs some modification, when it create or update session data in "phpbb_sessions table".  8O  

   //
     // Create or update the session
     //
     $sql = "UPDATE " . SESSIONS_TABLE . "
        SET session_user_id = $user_id, session_start = $this->current_time, session_time = $this->current_time, session_page = $page_id, session_logged_in = $login
        WHERE session_id = '" . $this->session_id . "'
           AND session_ip = '$user_ip'";
     if ( !$site_db->query($sql) || !$site_db->affected_rows() )
     {
        $this->session_id = md5(uniqid($user_ip));

        $sql = "INSERT INTO " . SESSIONS_TABLE . "
           (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in)
           VALUES ('$this->session_id', $user_id, $this->current_time, $this->current_time, '$user_ip', $page_id, $login)";
        $site_db->query($sql);
     }
If someone can help with this problem it will be grate!!! For many users this Mod is very necessary.
I’m using 4image Gallery 1.72 + Modes and PHPBB 3.0 Beta2.
I tried to correct it itself, but it did not come out.   Please, help someone!!! :cry:


Title: Re: Integration 4images 1.7.x / phpBB
Post by: medo007 on September 25, 2006, 10:05:53 AM
The integration works!

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

Somebody knows where is the problem?  :cry:

That happen after integration!  :D

Can anyone help me?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Mahonni on September 26, 2006, 07:12:57 PM
I use 4images version 1.7.3 and phpbb version 2.0.21
Everything is fine but it seems as if no cookies are set. Every time I close the page and reopen it I stay logged in (seems like) but as soon as I go away from the main page I am suddenly logged out.

Can somebody help me?

I have the same problem!


Can somebody help us?

Same problem with me, surely someone reading this can help out, I get the feeling it should be a simple fix but for those of us with little php knowledge it's impossible.

Can anybody help us with our problem?  I'm afraid we'll have to wait until people move to the final phpBB 3.0 release... :S


Title: Re: Integration 4images 1.7 / phpBB
Post by: Mahonni on September 27, 2006, 07:47:13 PM
Ok, I've tried what Jan said in a post in the page 9, but also didn't work. I don't know if something has improved since I always entered first in the gallery and I don't know if I didn't notice the following or if the solution in page 9 worked: If I login, close the navigator, open again and go to the gallery it seems like I'm logged in BUT if I refresh the page or just click a link I get logged out. However, if after opening the navigator I go to the forum everything works fine, I don't get logged out.

I've seen that once I'm logged in I've got a cookie called xxxx@yyyy[1].txt BUT when I go to the gallery after closing the navigator the cookie changes its name and its content (slightly) to xxxx@yyyy[2].txt (checked in IE).

Any idea would be really appreciated.


Title: Re: Login problem in 4images (phpBB integrated)
Post by: highde on September 29, 2006, 01:25:37 PM
same problem....


Title: Re: Integration 4images 1.7.x / phpBB
Post by: highde on September 29, 2006, 01:30:37 PM
Bekomme bei 4images beim einloggen 404 fehler.
was tun.
Lind vom ersten Post tut nicht mehr.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: medo007 on October 03, 2006, 09:30:45 PM
I have a big problem! My 4images gallery don't recognize GD library installed on server and phpBB is!

Somebody knows where is the problem? Can someone help me? Please!  :cry:


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Xaser on October 03, 2006, 10:39:04 PM
Hi. I install new PHPBB Forum 3.0 Beta.  :D Today this is the most contemporary forum in the world.  :lol: But I must note that “phpbb_sessions” table structure is changed.  :(
I made some changes for these variables in sessions.php  :wink:

$url_register      = $url_app."ucp.php?mode=register";
$url_lost_password = $url_app."ucp.php?mode=sendpassword";
$url_control_panel = $url_app."ucp.php?mode=editprofile";
$url_mailform      = $url_app."ucp.php?mode=email&u={user_id}";
$url_show_profile  = $url_app."ucp.php?mode=viewprofile&u={user_id}";
$url_login         = $url_app."ucp.php?mode=login";
$url_logout        = $url_app."ucp.php?mode=login?logout=true";

sessions.php needs some modification, when it create or update session data in "phpbb_sessions table".  8O  

   //
     // Create or update the session
     //
     $sql = "UPDATE " . SESSIONS_TABLE . "
        SET session_user_id = $user_id, session_start = $this->current_time, session_time = $this->current_time, session_page = $page_id, session_logged_in = $login
        WHERE session_id = '" . $this->session_id . "'
           AND session_ip = '$user_ip'";
     if ( !$site_db->query($sql) || !$site_db->affected_rows() )
     {
        $this->session_id = md5(uniqid($user_ip));

        $sql = "INSERT INTO " . SESSIONS_TABLE . "
           (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in)
           VALUES ('$this->session_id', $user_id, $this->current_time, $this->current_time, '$user_ip', $page_id, $login)";
        $site_db->query($sql);
     }
If someone can help with this problem it will be grate!!! For many users this Mod is very necessary.
I’m using 4image Gallery 1.72 + Modes and PHPBB 3.0 Beta2.
I tried to correct it itself, but it did not come out.   Please, help someone!!! :cry:


Title: Re: Integration 4images 1.7.x / phpBB [logout redirect]
Post by: knsin0 on October 08, 2006, 12:50:27 AM
i have perfectly integrated this mod and work great but when you are in the 4image zone and you click the logout link it goes to the forum index, how can i change that?

i want that when you click the logout link it goes to de index of 4image, not to the forum  :? 8O


Title: Re: Integration 4images 1.7.x / phpBB
Post by: dennist on October 11, 2006, 05:17:52 PM
I use 4images version 1.7.3 and phpbb version 2.0.21
Everything is fine but it seems as if no cookies are set. Every time I close the page and reopen it I stay logged in (seems like) but as soon as I go away from the main page I am suddenly logged out.

Can somebody help me?

I have the same problem!


Can somebody help us?

Same problem with me, surely someone reading this can help out, I get the feeling it should be a simple fix but for those of us with little php knowledge it's impossible.

Can anybody help us with our problem?  I'm afraid we'll have to wait until people move to the final phpBB 3.0 release... :S

Isn´t anybody able to help us with our problem?

With the firefox browser everything works perfect, but with Internet Explorer we have the problems which are described above.

It would be very kind.


Dennis


Title: Re: Integration 4images 1.7.x / phpBB
Post by: medo007 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? :(


Title: Re: Integration 4images 1.7.4 / phpBB 2.0.21
Post by: AndrewRu 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.


Title: Re: Integration 4images 1.7 / phpBB
Post by: bjoernito 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-


Title: Re: Integration 4images 1.7.x / phpBB
Post by: knsin0 on November 05, 2006, 09:28:34 PM
how can i implemente the forum avatars in the comments?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: ragman81 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?


Title: Re: Integration 4images 1.7 / phpBB
Post by: KurtW 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


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Xaser 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.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: blank 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.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: macuser 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


Title: Re: Integration 4images 1.7.x / phpBB
Post by: dosensteck 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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#
#-----[ 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?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: _Keith_ on December 17, 2006, 10:43:41 AM
So is the dl updated to 2.0.21?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Neil_L12 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

1
2
3
4
if (stristr($url, 'http://')) { 
  header('Location: ' . $url); 
  exit; 
}

below

1
2
3
4
if (!empty($db)) 

     $db->sql_close(); 
}


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

1
2
3
4
if ($sid == '' || $sid != $userdata['session_id']) 

    message_die(GENERAL_ERROR, 'Invalid_session'); 
}

Jan


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Mahonni 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:


Title: Re: Integration 4images 1.7.x / phpBB
Post by: fldave850 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


Title: Re: Integration 4images 1.7.x / phpBB
Post by: neonplayer 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 (http://www.4homepages.de/forumdl/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


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Acidgod on February 04, 2007, 03:48:23 PM
@neonplayer
That Post is more than 4 Years old... (o:


Title: Re: Integration 4images 1.7.x / phpBB
Post by: neonplayer on February 04, 2007, 03:52:33 PM
sry .. can i know how to solve that login problem ? I got logout problem just now . Only login problem occured.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Acidgod on February 04, 2007, 04:04:20 PM
http://www.4homepages.de/forum/index.php?topic=14852.msg45841#msg45841


Title: Re: Redirect phpbb mod
Post by: neonplayer on February 04, 2007, 04:22:27 PM
All credits to thoul http://darkmods.sourceforge.net
##############################################################
# Title: Redirect Outside phpBB After Log In/Out
# Author: Thoul  thoul@users.sourceforge.net  http://darkmods.sourceforge.net
# Description: Guide that allows redirecting outside phpBB for log in or out.
# Version: 1.1.1
# Installation Level: Easy
# Installation Time: 3 Minutes
# Files To Edit: login.php
# Included Files: n/a
##############################################################
# Author's Notes:
# This file is intended to be a guide to redirecting users to files outside of the
# phpBB directories when they log in or log out on a case-by-case basis (that is to
# say, so that you can have some log ins/outs redirect like this and have some
# not). This file deals only with login.php, logging in, and logging out, but
# similar ideas can also be applied to redirecting outside of the phpBB
# directories in other files.
#
# If you are redirecting users to pages outside of your phpBB directories (aka
# folders), be sure to read the file function_change.txt also. It contains other
# modifications and instructions that you will need to read.
#
# Once all these modifications have been applied, you can use log in forms to
# redirect users outside the phpBB directories by adding two hidden form inputs
# like these:
# <input type="hidden" name="outside" value="1" />
# <input type="hidden" name="redirect" value="index.htm" />
# You can also create log in links like this one:
# <a href="login.php?redirect=/index.html&outside=1">Log In</a>
# And you can create log out links like this one:
# <a href="login.php?logout=true&redirect=/index.phtml&outside=1">Log Out</a>
#
#
# Thanks to RyanThaDude29 for developing some of the concepts presented in the mod
# on the FetchAll forums. :)
##############################################################
# BEFORE ADDING THIS TO YOUR FORUM, YOU SHOULD BACK UP ALL RELATED FILES.
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
forum/login.php

#
#-----[ FIND ]------------------------------------------
#

               
1
2
3
4
5
if( $session_id )
{
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
redirect(append_sid($url, true));
}

#
#-----[ REPLACE WITH ]------------------------------------------
#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*  Original phpBB code - commented out for Redirect Outside phpBB After Log In/Out
if( $session_id )
{
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
redirect(append_sid($url, true));
}
*/
//---------------------------------------------------------------------------------
// Redirect Outside phpBB After Log In/Out - Begin Code Addition
//
if( $session_id )
{
$url = ( !empty($_REQUEST['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars(addslashes($_REQUEST['redirect']))) : 'index.' . $phpEx;

$outside = ( !empty($_REQUEST['outside']) ) ? true : false;
redirect(append_sid($url, true), $outside);
}
//
// Redirect Outside phpBB After Log In/Out - End Code Addition
//---------------------------------------------------------------------------------

#
#-----[ FIND ]------------------------------------------
#

      
1
2
3
4
5
6
if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect']))
{
$url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']);
$url = str_replace('&amp;', '&', $url);
redirect(append_sid($url, true));
}

#
#-----[ REPLACE WITH ]------------------------------------------
#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*  Original phpBB code - commented out for Redirect Outside phpBB After Log In/Out
if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect']))
{
$url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']);
$url = str_replace('&amp;', '&', $url);
redirect(append_sid($url, true));
}
*/
//---------------------------------------------------------------------------------
// Redirect Outside phpBB After Log In/Out - Begin Code Addition
//
if (!empty($_REQUEST['redirect']) )
{
$url = htmlspecialchars(addslashes($_REQUEST['redirect']));
$url = str_replace('&amp;', '&', $url);
$outside = ( !empty($_REQUEST['outside']) ) ? true : false;
redirect(append_sid($url, true), $outside);
}
//
// Redirect Outside phpBB After Log In/Out - End Code Addition
//---------------------------------------------------------------------------------


#
#-----[ FIND ]------------------------------------------
#
1
$s_hidden_fields = '<input type="hidden" name="redirect" value="' . $forward_page . '" />';


#
#-----[ AFTER, ADD ]------------------------------------------
#
1
2
3
4
5
6
7
8
9
10
11
//---------------------------------------------------------------------------------
// Redirect Outside phpBB After Log In/Out - Begin Code Addition
//
if( isset($_REQUEST['outside']) )
{
$outside = ( !empty($_REQUEST['outside']) ) ? true: false;
$s_hidden_fields .= '<input type="hidden" name="outside" value="' . $outside . '" />';
}
//
// Redirect Outside phpBB After Log In/Out - End Code Addition
//---------------------------------------------------------------------------------

Open 4images/includes/sessions.php
#
#-----[ FIND ]------------------------------------------
1
$url_logout        = $url_app."login.php?logout=true";

#
#-----[REPLACE WITH]------------------------------------------
1
$url_logout        = $url_app."login.php?logout=true&redirect=../index.php&outside=1";
note you will have to edit ../index.php so it points to the site you want.

#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#


This is for Login also rite ?

I did all those things and I still got login 404 error. How can i do ?   :(


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Acidgod on February 04, 2007, 04:26:18 PM
Why you quote the hole Post???  :evil:

Please read the hole Thread... Yes - all the 33 sites...

When you have done this aks the next questions...


Title: Re: Integration 4images 1.7.x / phpBB
Post by: neonplayer on February 04, 2007, 04:35:09 PM
sry again and again , i think i miss somethings . let me do it again  :(


Title: Re: Integration 4images 1.7.x / phpBB
Post by: neonplayer on February 04, 2007, 04:40:27 PM
OKie ,

 I did all the things start from editing forum login. php .

 But still got login error .

 I read the whole thread again and i doubt for that .

 
Quote  [Expand]
<input type="hidden" name="outside" value="1" />
# <input type="hidden" name="redirect" value="index.htm" />
# You can also create log in links like this one:
# <a href="login.php?redirect=/index.html&outside=1">Log In</a>
# And you can create log out links like this one:
# <a href="login.php?logout=true&redirect=/index.phtml&outside=1">Log Out</a>

Where should i do that ? Am i need to do that for login or what ?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Mahonni on February 06, 2007, 11:59:10 PM
Acidgod, do you know how to solve our problem? We're quite a lot of people stuck with the following problem and we can't find a solution.

Ok, I've tried what Jan said in a post in the page 9, but also didn't work. I don't know if something has improved since I always entered first in the gallery and I don't know if I didn't notice the following or if the solution in page 9 worked: If I login, close the navigator, open again and go to the gallery it seems like I'm logged in BUT if I refresh the page or just click a link I get logged out. However, if after opening the navigator I go to the forum and then to the gallery everything works fine, I don't get logged out.

I've seen that once I'm logged in I've got a cookie called xxxx@yyyy[1].txt BUT when I go to the gallery after closing the navigator the cookie changes its name and its content (slightly) to xxxx@yyyy[2].txt (checked in IE).

Any idea would be really appreciated.

I'd really appreciate if you could help us with that. I've slowly read all the 33 pages (not now, but when I first asked about that) and I didn't find anything. I've even translated all german posts with google's translator and I didn't have any luck. Pleeeease  ;)


Title: Re: Integration 4images 1.7.x / phpBB
Post by: neonplayer on February 08, 2007, 11:34:18 AM
Anyone ,

 Who can help to get login redirection ? I got about the logoout error one . But I didn't get to make login yet . Please help me .  :?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Bugfixed on February 11, 2007, 03:01:00 PM
hello.
i using phpbb 2.0.22+4images 1.7.4
I HAVE EXTRA SET-COOKIE...  8O

Set-Cookie: phpbbmysql_data=a%3A2.....; expires=Mon, 11 Feb 2008 13:49:54 GMT; path=/
Set-Cookie: phpbbmysql_sid=9d6b....; path=/
Set-Cookie: phpbbmysql_data=a%3A2%3A%7Bs%3A.......; expires=Mon, 11 Feb 2008 13:49:54 GMT; path=/
Set-Cookie: phpbbmysql_sid=40a647....; path=/

But in forum true.(2 set-cookie)

How to fix?
thanks.


Title: phpbb 4images Integration
Post by: low-deluxe on February 23, 2007, 05:01:41 PM
Hi!

wollte nur mal fdragen ob es nun möglich ist phpbb 2.0.22 und 4images 1.74 zu integrieren!?
Hatte es früher mit der 1.72 version ohne probleme am laufen, aber nach irgendeiner umstellung des hosters funztre es nich mehr!
Hab es mehrmals versucht bekomme aber immer nur errors!
Ich blicke leider auch nicht mehr in dem phpbb/4images integration thread durch!

Wäre echt nett wenn mir jemand helfen könnte!
-----------------------------------------------------
Just wanted to ask if the integration of 4images 1.74 in phpbb 2.0.22 is possible or not, because when i tried only errors occcured!

Danke im voraus
low


Title: Re: Integration 4images 1.7.x / phpBB
Post by: cipriansamoila on February 23, 2007, 11:11:00 PM
hi, has any of you integrated 4images and phpBB and then used the MOD for saving votes in the DB?
this mod here http://www.4homepages.de/forum/index.php?topic=6123.msg37763#msg37763
i am getting this error after inserting the MOD:

1
2
DB Error: Bad SQL Query: SELECT v.user_id, v.vote, u.user_name FROM 4images_voted v LEFT JOIN phpbb_users u ON (u.user_id = v.user_id) WHERE u.user_id = v.user_id AND image_id = 1
Unknown column 'u.user_name' in 'field list'


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Gibsy on March 19, 2007, 09:38:47 PM
Hallo,

Auf meiner phpbb Portal befindet sich ein Link wer ist wo online, leider zeigt dort nichts an wer sich in der Galerie (4images) befindet.
Es steht immer Forum-Index.

Kann mir da jemand weiterhelfen :oops:

Danke im voraus by Gibsy


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Gibsy on March 20, 2007, 08:36:43 PM
Hätte jemand eine Idee was ich machen könnte :oops: :?:


Title: Re: Integration 4images 1.7.x / phpBB
Post by: KurtW on March 21, 2007, 06:03:41 AM
Hi cipriansamoila,

test this:

search in the code from the mod

all
1
user_name
and replace it with:


cu
Kurt


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Gibsy on March 21, 2007, 12:41:18 PM
Hallo,

Auf meiner phpbb Portal befindet sich ein Link wer ist wo online, leider zeigt dort nichts an wer sich in der Galerie (4images) befindet.
Es steht immer Forum-Index.

Kann mir da jemand weiterhelfen :oops:

@KurtW
Wenn Du Zeit findest, könntest Du mir auch Helfen, sofern Du ne möglichkeit siehst :cry:


Title: Re: Integration 4images 1.7.x / phpBB
Post by: KurtW on March 21, 2007, 05:48:05 PM
Hallo Gibsy ,

tja, den Grundsatz dazu kenn ich schon:

http://www.phpbb.de/viewtopic.php?t=69750&highlight=case+pageindex (http://www.phpbb.de/viewtopic.php?t=69750&highlight=case+pageindex)

Hab dazu noch eine neue .php in phpbb Ordner generiert:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/***************************************************************************
 *                                  gallerie_top100.php
 *                            -------------------
 *   begin                : Sunday, Jul 8, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: faq.php,v 1.14.2.2 2004/07/11 16:46:15 acydburn Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

define('IN_PHPBB'true);
$phpbb_root_path 'phpbb/';
include(
$phpbb_root_path 'extension.inc');
include(
$phpbb_root_path 'common.'.$phpEx);

//
// Start session management
//
$userdata session_pagestart($user_ipPAGE_GALLERY_TOP);
init_userprefs($userdata);
//
// End session management
//
echo'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<title>/title>
<meta http-equiv="content-type" content="text/html; iso-8859-1">
</head>
<body>
</body
</html>
'
;
?>


Wenn ich diese Datei einzeln aufrufe, zeigt es mir den Aufenthalt im Forum richtig an.
Der Code
1
$userdata = session_pagestart($user_ip, PAGE_GALLERY_TOP);
erzeugt mir hier den richtigen Aufehthalt in der Gallerie...
Diese Datei wollte ich dann per include oder iframe, z.B. hier in der top.html einbinden.
Für weitere Seiten der Gallerie müsste ich bei dieser Variante eine zusätzliche .php generieren.

Jedoch:
include erzeugt eine Fehlermeldung und per include wird der Aufenthalt nicht registriert  :cry:


Nach 2 Stunden Versuche hab ich momentan die Schnauze voll
Vielleicht kommst du weiter...

cu
Kurt


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Gibsy on March 22, 2007, 08:27:50 AM
Nach 2 Stunden Versuche hab ich momentan die Schnauze voll
Hallo Kurt,

2 Std. :oops: es tut mir leid das ich Dir so viel Zeit in anspruch genommen habe.

ich komme da bestimmt nicht weiter, weil ich mich nicht auskenne :cry:
aber trotzdem Danke ich Dir für Deine Hilfe Kurt.
ich werde es wohl aufgeben, egal, dann steht da halt Forum-Index.

Danke vielmals, by Gibsy


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Mahonni on March 26, 2007, 11:01:32 PM
It seems that phpBB 3 RC1 is going to be released very, very, very soon. This version will be the 1st one that is supposed to work perfectly in a live environment and it will have full support for problems, mods any everything. I'm just saying that to cheer this up and encourage people who has the necessary skills to work on an integration mod for 4images and this version, since I guess most people will try to upgrade their boards and this integration won't work with that new one. I'd really try to do it, but I don't know anything about php :(


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Magou on March 26, 2007, 11:26:41 PM
Hallo

Quote  [Expand]
Sogar ich, als absoluter Noob habe es hinbekommen, los jungs, Ihr schafft das auch ;)

Absoluter quatsch was ich da geschrieben habe. Ich habe alles voller fehlermeldungen.

Ich habe das phpBB2-2.0.22-deutsch und 4images 1.7.4 frisch installiert.
Kannmir jemand auf Deutsch eine Anleitung geben, wie ich beides zusammen fügen kann, ohne fehler?

Da mein Englisch sehr beschränkt ist, und hier Englisch und Deutsch wild durcheinander geschrieben wird, habe ich nichts verstanden, und es so gemacht wie es auf der ersten Seite steht.
Meine fehler sind, soweit ichmich erinner

1. Im Forum angemeldet, in der Galerie auch, alles ok. In der Galerie auf Profil Fehler : 404
1.1. genauso wie Ausloggen und registrieren. Das Registrieren über die Galerie habeich abgestellt indem ich die user_loginform.html folgenes gesetzt habe:
Quote  [Expand]
<table width="100%" border="0" cellpadding="4" cellspacing="0">
  <tr>
    <td valign="top" align="left">
      Eingeloggt als: <b>Gast</b><br>
      Du kannst nur gucken <br><br>
      <a href="http://goettinger-fliegenfischer.schnee-brett.de/forum/login.php">Einloggen</a><br>
      <a href="http://goettinger-fliegenfischer.schnee-brett.de/forum/profile.php?mode=register">Registrieren</a><br>
    </td>
  </tr>
</table>

Registrieren muss man sich über das Forum, dort ist auch der Link zur Galerie

2. Beim Kategorie anlegen als Admin werden im verzeichniss data/media und data/thumbnails keine Ordner angelegt. Atribute stehen auf 777

Und es folgen bestimmt noch weitere, ich habe es vorerst aufgegeben.

Ihr könnt ja mal schauen. HIER GEHTS ZU MEINER GALERIE (http://goettinger-fliegenfischer.schnee-brett.de/galerie/index.php)
Ich habe einen testaccount angelegt, mit dem Ihr euch im Forum einloggen könnt, und dann die Galerie testen könnt, ich wäre uch wirklich dankbar.

Benutzername: Test
Passwort: test

Ich hoffe Ihr könnt mir helfen, bzw. eine Anleitung für Anfänger auflisten.
Ich wäre euch dankbar.


Gruss
ein verzweifelter
Ulf

p.s.

ich habe so gut wie keine ahnung von php, eigentlich gar nicht.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: djfflow on April 24, 2007, 06:22:18 PM
Ich habe das Problem das nach dem Login nicht korrekt weitergeleitet wird.
Statt aufs Forum oder auf die Gallery wird auf http://meinehp/phpBB2/http://meinehp/4images/index.php weitergeleitet.

Was mache ich falsch bzw. was muss geändert werden?
Version 1.7.4


Title: Re: Integration 4images 1.7.x / phpBB
Post by: djfflow on April 30, 2007, 07:33:00 PM
Ich habe das Problem das die IP Adressen bei den Kommentaren nicht in der normalen Schreibweise aaa.bbb.ccc.ddd dargestellt werden sondern als Hexadezimalzahl (5487e918).
Ist es möglich dies zu ändern?

Ich benutze Version 1.7.4.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Name on May 02, 2007, 05:59:50 PM
Is there a english version of this thread!? I Dont understand anything!? Or should i start a new english thread?


Title: Update phpBB2 2.0.21 -> 2.0.22 Login doesnt work
Post by: Schmidti on May 06, 2007, 02:43:46 PM
In the last days i updated the phpBB 2.0.21 to 2.0.22. But now the Login of the 4images doesnt work.

If i want to login at 4images:

1
The requested URL domain/phpBB2/http://domain/4images/index.php was not found on this server.

And if i wanna logout at 4images, phpBB shows me this message:

1
Invalid_session

So which code i must change to solve this problem.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Magou on May 06, 2007, 04:27:54 PM
Das gleiche problem hab ich auch.

Sobald ich aber bei der Fehlermeldung bin, und dann nochmals auf Logout klicke, also im Forum bin, dann funktioniert es. Es fehlt irgendwas mit user_id oder so hinter dem logout glaub ich.

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

Edit:

Weil wer suchet der findet

http://www.4homepages.de/forum/index.php?topic=4315.0

Danke an Jan (auch wenn der thread schon 4 jahre alt ist :)


Title: Re: Integration 4images 1.7.x / phpBB
Post by: dennist on June 02, 2007, 10:46:39 PM
Hi,

Ich nutze die 4images version 1.7.4 und phpbb Version 2.0.21
Soweit funktioniert auch alles, nur werden anscheinend beim automatischem Login keine cookies gesetzt.
Jedesmal, wenn ich die Seite schließe und wieder öffne bin ich zwar scheinbar eingeloggt doch sobald ich eine Unterseite öffne, bin ich wieder ausgelogged.

Hat jemand eine Idee?

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

I use 4images version 1.7.4 and phpbb version 2.0.21
Everything is fine but it seems as if no cookies are set. Every time I close the page and reopen it I stay logged in (seems like) but as soon as I go away from the main page I am suddenly logged out.

Can somebody help me?


Dennis


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Mahonni on June 05, 2007, 04:03:56 PM
Hi,

Ich nutze die 4images version 1.7.4 und phpbb Version 2.0.21
Soweit funktioniert auch alles, nur werden anscheinend beim automatischem Login keine cookies gesetzt.
Jedesmal, wenn ich die Seite schließe und wieder öffne bin ich zwar scheinbar eingeloggt doch sobald ich eine Unterseite öffne, bin ich wieder ausgelogged.

Hat jemand eine Idee?

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

I use 4images version 1.7.4 and phpbb version 2.0.21
Everything is fine but it seems as if no cookies are set. Every time I close the page and reopen it I stay logged in (seems like) but as soon as I go away from the main page I am suddenly logged out.

Can somebody help me?


Dennis

I'm sorry but, if you look 2, 3, 4 or a little more pages before this one, you'll see that you're not alone. In fact, I have the same problem, and I don 't think anyone's going to find a solution. By the way, try to enter 1st to the forum, that problem only happens to me when I enter to the gallery but if I first go to the forum and then to the gallery, the cookies stay ok.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: birdhouse03 on June 06, 2007, 11:03:00 PM
Hallo,

zu erst einmal großes Lob für diesen Mod und die weitere Entwicklung dieser wunderbaren Idee.

Ich verwende phpBB 2.0.22 und 4Images 1.7.4 und ich habe den Mod plus die zusätzlichen Hinweise dieser Anleitung brav befolgt. An und für sich funktioniert in dieser Kombination fast alles richtig. Das An- und Abmeldeproblem habe ich nicht. Jeder registrierte User kann sich sowohl im Forum als auch in 4Images anmelden, beide Richtungen funktionieren. Mein Problem sieht wie folgt aus: bei den beiden Admins funktioniert alles, ohne Ausnahme; bei den normalen Usern (registrierte) funktioniert nur der Download, aber keine Kommentare und keine eCards. Es kommt folgende Fehlermeldung:

Das Feld mit dem Bestätigungs-Code muss ausgefüllt werden.

Offensichtlich stimmt etwas nicht bei der Authentifizierung der registrierten User; bei den Admins haut alles hin. Habe die ganze Integration noch ein zweites Mal durchgecheckt und kann keinen Fehler finden. Hat vielleicht jemand eine Idee woran dieses Problem liegen könnte? Bin schon ein wenig ratlos.

Danke vorab,

Christian

PS: Hab den Fehler gefunden und beseitig. Keine weitere Hilfe nötig. Danke nochmals für diesen tollen Mod. Gruß Christian


Title: Re: Integration 4images 1.7.x / phpBB
Post by: SLa on June 18, 2007, 08:05:22 PM
Darf man fragen was dugemacht hast um den Fehler zu beseitigen? Bei mir wird leider kein Bestätigungscode angezeigt welchen man bestätigen muss/kann.

mfG

SLa


Title: Re: Integration 4images 1.7.x / phpBB
Post by: birdhouse03 on June 18, 2007, 10:35:40 PM
Habe den Bestätigungscode abgeschaltet. Die Anleitung befindet sich im /doc Ordner in der Datei CAPTCHA.deutsch.txt., da kannst Du alles nachlesen. Man muss die config.php bearbeiten. Ist relativ einfach.

Hoffe das hilf.

Gruß Christian


Title: Re: Integration 4images 1.7.x / phpBB
Post by: darvid on June 19, 2007, 05:13:50 PM
Ich habe eine aktualisierte Anleitung geschrieben mittels der man PHPBB, 4Images und Wordpress integrieren kann!

http://www.sebastianscheuer.de/aktuell/integration-von-wordpress-blog-phpbb-forum-und-4images-bildergallerie/ (http://www.sebastianscheuer.de/aktuell/integration-von-wordpress-blog-phpbb-forum-und-4images-bildergallerie/)

Weil es nicht hier hin gehört, werde ich einen neuen Thread damit eröffnen.


Use the link to integrate 4images with phpbb and wordpress. There is an english translation of the tutorial!


Title: Re: Integration 4images 1.7.x / phpBB
Post by: birdhouse03 on June 19, 2007, 11:44:27 PM
So etwas finde ich ja wirklich gut. Nach einer derartigen Anleitung habe ich schon die längste Zeit gesucht. Noch dazu auf dem aktuellsten Stand. Werde mich die nächsten Tage ans Testen machen.

Gruß Christian


Title: Re: Integration 4images 1.7.x / phpBB
Post by: edu on June 21, 2007, 11:34:58 PM
The file (sessions.php) that included in the zip, is secure ??

this has the security updated ??

http://www.4homepages.de/forum/index.php?topic=12807.0

regards.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Yeti on July 08, 2007, 01:35:36 PM
Ich habe mich durch 35 Seiten Anleitung gequält und viel über Cookies gelesen, wenig verstanden.
Mein Problem Ein und ausloggen funktioniert von der Galerie her, wie vom Forum. Automatisch ebenso. Mit einer Ausnahme: Wenn ich den IE oder Firefox frisch öffne und direkt in die Galerie gehe bin ich nur bis zum ersten klick eingeloggt. Wenn ich zunächst ins Forum gehe klappt alles. Was kann das falsch sein?
4images 1.7.4 phpBB 2.0.22

My problem: Login and log out works in either direction from forum or 4-images. Automatic login works only well, if i vist the gallery first, after opening the browser. if I visit 4 image first im logged out after the first klick. Those 35 pages of discription only confused me. It would be a good idea to delete a lot of old unnessesary post...

Thank you for any help. :)


Title: Re: Integration 4images 1.7.x / phpBB
Post by: darvid on July 08, 2007, 08:20:44 PM
Könnte was mit den Sessions zu tun haben. Werden die überall richtig übergeben?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Yeti on July 08, 2007, 10:02:11 PM
Wie kann ich das denn feststellen? Soweit ich es beurteilen kann funktioniert alles. Man bleibt nur dann nicht automatisch eingeloogt, wenn man nach dem Start des Browsers zuerst in die Galerie geht. wenn man zuerst ins Forum geht läuft es. wen mann zwischendurch auf andere Seiten wechselt, ist es egal wo wieder man reingeht, man ist sauber angemeldet. Die Adresse ist www.berndroesich.de/Gallery   :?: :?: :?:Bin halt Laie, der stur nach Anleitung arbeitet.


Title: Re: HILFE! phpbb Integration
Post by: PMCologne on August 23, 2007, 01:05:42 AM
Hallo, auch von mir erstmal ein riesen Lob. allerdings habe ich immernoch ein kleines Problem.
Sobald ich mich auslogge in der galerie, springt er erstmal direkt ins forum.
wie kann ich das unterbinden?

bin aber inzwischen bei forumsversion 2.0.22 ^^


Title: Re: Integration 4images 1.7.x / phpBB
Post by: killer007 on August 29, 2007, 12:23:51 AM
it will work on phpbb3?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Nicky on August 29, 2007, 01:20:02 AM

is there the final bb3¿ ;)
only RC5


Title: Re: Integration 4images 1.7.x / phpBB
Post by: merox on September 03, 2007, 02:41:09 PM
Geht es auch mit Smf?
simplemachines.org/

Is it possible to integrate 4images to smf ?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: merox on September 05, 2007, 11:53:10 AM
Das mimt Smf hat sich erledigt...

kann mir jemand hier vl.l. helfen?:

Quote  [Expand]
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


Ich habe genau das Problem wie kann ich sie beheben?...
http://www.4homepages.de/forum/index.php?topic=1658.msg31328#msg31328
der link geht nicht???


Title: Re: Integration 4images 1.7.x / phpBB
Post by: merox on September 06, 2007, 12:08:26 PM
Kann mir jemand helfen es ist dringend????


Title: Re: Integration 4images 1.7.x / phpBB
Post by: darvid on September 06, 2007, 03:48:05 PM
ein "Bitte" wäre sehr nett gewesen.

da nicht jeder die integration gemacht hat und der weg bis dorthin zum testen zu lang ist, solltest du vielleicht etwas konkreter werden. von welcher datei wird wohin umgeleitet das der 404 kommt? gib doch mal ne URL an!!

ich kann dir als alternative nur http://www.sebastianscheuer.de/aktuell/integration-von-wordpress-blog-phpbb-forum-und-4images-bildergallerie/ anbieten! wenn du WP nicht brauchst, nutze es halt nicht, aber ohne WP bekommst du diese integration nicht hin.

bonsoir!


Title: Re: Integration 4images 1.7.x / phpBB
Post by: merox on September 06, 2007, 04:08:14 PM
Ja sorry,
Das Ganze hat sich erledigt...
Vielen Dankl


Title: Re: Integration 4images 1.7.x / phpBB
Post by: darvid on September 06, 2007, 05:00:04 PM
und wieso? wenn du ne lösung gefunden hast, poste sie doch hier. wenn nicht, was haste dann gemacht?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: flokoc on September 09, 2007, 02:10:01 PM
Ich habe eine kleine Frage zu Installationsanleitung. Muss ich Dateien jeweils im phpbb und 4images ersetzen ? Muss ich auch die Änderungen der Dateien jeweils bei  phpbb und 4images ändern ?

Gruß Flo


Title: Re: Integration 4images 1.7.x / phpBB
Post by: merox on September 09, 2007, 09:17:05 PM
nur in 4images


Title: Re: Integration 4images 1.7.x / phpBB
Post by: helium on September 23, 2007, 06:43:31 AM
Could someone please convert this to phpbb3 its almost fully released and all the session and user stuff is set in stone. I have tried to convert myself with no luck, plesae could someone make this.

thanks alot in advance

bow


Title: phpbb avatar in {user box_}
Post by: merox on October 17, 2007, 01:57:51 PM
hello
i want the avatar from phpbb2 in 4images {user_box}??
can some one help me pls?

hallo
ich möchte das dass avatar vo phpbb hier angezeigt wird {user_box}wie mache ich es?


Title: Probleme mit phpBB-Integration
Post by: Black Eagle Triker on October 24, 2007, 12:30:09 AM
Hallo,
bin neu hier und hab mich mal daran versucht in mein Board (das sich im Aufbau befindet) die 4images Gallery zu integrieren.
Der Download und die Installation von 4images lief auch problemlos. Alles funktionierte. Dann wollte ich die Integration in mein phpBB2 (Vers. 2.0.22) vornehmen und dann ging nix mehr. Bis zum Upload (und dem Überschreiben) der Session.php lief alles. Hab zwar versucht mich haarklein an die Installationsanweisung zu halten aber habs trotzdem nicht geschafft. Es kommt folgendes Fehlerbild:


"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 /homepages/15/d13588044/htdocs/forum/4images/includes/db_mysql.php:192) in /homepages/15/d13588044/htdocs/forum/4images/includes/sessions.php on line 325

Warning: Cannot modify header information - headers already sent by (output started at /homepages/15/d13588044/htdocs/forum/4images/includes/db_mysql.php:192) in /homepages/15/d13588044/htdocs/forum/4images/includes/sessions.php on line 326

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 /homepages/15/d13588044/htdocs/forum/4images/includes/db_mysql.php on line 116"

Könnte mir bitte jemand helfen? Bin schon total fertig, weil ich den Fehler nicht finde. Ich habe übrigens für phpBB und 4images die gleiche Mysql-Datenbank benutzt (Ver.s 4.4).  :cry:
Wäre für ein wenig Hilfe sehr dankbar.

Herzliche Grüße
Black Eagle Triker


Title: Re: Integration 4images 1.7.x / phpBB
Post by: FotoRalle on October 28, 2007, 11:08:03 PM
Den Fehler habe ich auch. Total ärgerlich, finde aber keine Lösung!

Nachtrag: Ich hab alles nochmal nach der Anleitung gemacht. Bin total genervt. Und das ist nicht meiner erste Php/Mysql Installation. Kann keiner, der das am Laufen hat mal erklären wie das geht?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: FotoRalle on November 17, 2007, 08:19:45 PM
I just have the same Problem like Black Eagle Triker:

"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 /homepages/15/d13588044/htdocs/forum/4images/includes/db_mysql.php:192) in /homepages/15/d13588044/htdocs/forum/4images/includes/sessions.php on line 325

Warning: Cannot modify header information - headers already sent by (output started at /homepages/15/d13588044/htdocs/forum/4images/includes/db_mysql.php:192) in /homepages/15/d13588044/htdocs/forum/4images/includes/sessions.php on line 326

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 /homepages/15/d13588044/htdocs/forum/4images/includes/db_mysql.php on line 116"

---

Does anybody know what it could be? Thanks for helping!


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Calmundd on November 30, 2007, 07:07:20 PM
Bei mir ist es sehr komisch:

Bei der Gallery steht

1
2
3
4
5
6
7
8
9
10
11
12
13
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.

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 /usr/export/www/hosting/beatsite/gallery/includes/db_mysql.php on line 116

Logge ich mich über die Gallery ein, wird mir nach dem Einloggen das Forum angezeigt, bei dem ich auch eingeloggt dann bin. Nur nicht bei der Gallery. Wo liegt der Fehler...? =(

http://www.beatsite.de/gallery/


Title: Re: HILFE! phpbb Integration
Post by: osnapicture on December 08, 2007, 10:16:07 AM
Erstmal ein ganz großes Kompliment zu dieser wunderbaren Arbeit!
Allerdings versuche ich schon die ganze Nacht die Integration ans Laufen zu bringen - scheiter aber schon bei der phpBB Integration mit 4images.
Vielleicht kann mir ja jemand sagen, was ich falsch mache.
Hier sind meine beiden Komponenten:
http://www.velopicture.de/community/fotos/
http://www.velopicture.de/community/phpBB2/
Zugangsdaten: Benutzer: test Passwort: test
Das Einloggen über 4images klappt wunderbar. Man ist dann auch im Forum angemeldet. Nur umgekehrt und das Ausloggen klappt nicht. Die URL, die dann jeweils aufgerufen wird hat 2 mal den part “community”.
hat jemand ne idee woran das liegen könnte?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: osnapicture on December 08, 2007, 10:19:42 AM
Erstmal ein ganz großes Kompliment zu dieser wunderbaren Arbeit!
Allerdings versuche ich schon die ganze Nacht die Integration ans Laufen zu bringen - scheiter aber schon bei der phpBB Integration mit 4images.
Vielleicht kann mir ja jemand sagen, was ich falsch mache.
Hier sind meine beiden Komponenten:
http://www.velopicture.de/community/fotos/
http://www.velopicture.de/community/phpBB2/
Zugangsdaten: Benutzer: test Passwort: test
Das Einloggen über 4images klappt wunderbar. Man ist dann auch im Forum angemeldet. Nur umgekehrt und das Ausloggen klappt nicht. Die URL, die dann jeweils aufgerufen wird hat 2 mal den part “community”.
hat jemand ne idee woran das liegen könnte?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Marc0083 on December 27, 2007, 06:03:52 PM
ich hab mal die die sessions.php für phpBB3 RC5 angepasst
keine ahnung ob die jetzt sicher ist oder auch wirklich auch läuft  :roll:

Das sollte geändert werden, die sessions.php ersetzten und dann müsst es hoffentlich funktionieren:

configs in der session.php vornehmen! (die URL)


inlcudes/constants.php


ändern:

//User levels
define('GUEST', -1);
define('USER_AWAITING', -1);
define('USER', 0);
define('ADMIN', 1);

//Permission levels
define('AUTH_ALL', 0);
define('AUTH_USER', 2);
define('AUTH_ACL', 3);
define('AUTH_ADMIN', 9);


in:

define('GUEST', 2);
define('GUEST_ID', 1);
define('USER_AWAITING', 1);
define('USER', 0);
define('ADMIN', 3);


define('AUTH_ALL', 2);
define('AUTH_USER', 0);
define('AUTH_ACL', -1);
define('AUTH_ADMIN', 3);


includes/page_header.php


ändern:
//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
if ($user_info['user_level'] >= USER){


in:
//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
if ($user_info['user_level'] >= USER && $user_info['user_level'] != GUEST){



includes/functions.php

ändern:
 if ($user_id != 0 && $user_id != GUEST) {

in:
 if ($user_id != 0 && $user_id != GUEST_ID) {


EDIT:

upps, vergessen die "user_loginform.html" hochzuladen, die auch mit der originalen ersetzt werden sollte
thx @Bugfixed


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Bugfixed on December 28, 2007, 10:54:47 AM
Thanks Marc0083 for sessions.

Here login box:
http://www.ktuk.net/phpBB3/viewtopic.php?p=116382#p116382


Title: Re: Integration 4images 1.7.x / phpBB
Post by: zerozero on January 02, 2008, 08:32:48 PM
Forget it i found a fix in the thread


Title: Re: Integration 4images 1.7.x / phpBB
Post by: satse_satsea on January 06, 2008, 06:31:05 PM
also ich hab mich jetzt durch alle 37 Seiten durchgearbeitet das Wochende,
erstmal dickes Danke an Jan und all die anderen (Marc0083 u.a.) die hier ne Menge Arbeit reinstecken.

Ich habe nach und nach alle Installationen durchgeführt und auch alle "Problemlösungspost" probiert.
Bei mir tauchen teilweise hier schon genannte Probleme immer noch auf.
Ansehen kann man sich das ganze auf :
http://www.tobael.de/phpBB2/ (http://www.tobael.de/phpBB2/)
Zugangsdaten
Benutzername: test
PW:                test

Eingebettet sind phpBB2-2.0.22-deutsch und 4images1.7.4
Zum schnelleren Wechsel zwischen phpBB2 und 4images wurde die Verlinkung wie von Jan beschrieben eingebaut.
(Auch wenn die Verlinkung vom 4images auf phpBB nicht ganz so zentrall ist aber seis drum ist ja nur zum testen)

Mein Problem betrifft das Loginsystem von 4images.
Im Forum kann man sich ohne Probleme ein- und ausloggen.
Leider fängt bei 4images schon da das erste Problem an.
Gibt man seine Zugangsdaten im Login von 4images an und drückt dort auf "Anmelden"
so wird man zwar angemeldet, landet aber auf der Seite:
http://www.tobael.de/phpBB2/http://www.tobael.de/4images/index.php?sid=7829c1291521167255e7c386f6d13c46
die es natürlich nicht gibt.
Geht man im Browser wieder einen Schritt zurück und aktuallisiert ihn, ist man Angemeldet.
Leider bekomm ich das einfach nicht das dort die Urldopplung wegfällt  :cry:

Dieses Problem wurde dank KurtW behoben

Dann gibt es noch ein paar Probleme mit der Ab- und Anmeldung.
Hierzu habe ich einen zweiten Testacc erstellt
Zugangsdaten
Benutzername: test2
Pw:                 test2

Das Problem:
Ich logge mich als test2 ein und schaue mich ein bischen auf 4images und phpBB2 um.
Anschließend Logge ich mich auf 4images aus. Ich gelange auf die Startseite von phpBB2 und sehe das ich ausgeloggt bin.
Klicke ich nun auf "Go to the Gallery" (um zur Gallerie zu gelangen), bin ich immer noch als Test2 eingloggt.
Erst wenn ich hier nun die Seite aktuallisiere, werde ich ausgeloggt.
Das ist das eins der Probleme.

Nach dem ich nun F5 gedückt habe, bin ich auf 4images und auf phpBB2 ausgeloggt.
Nun logge ich mich als test ein.
Gebe auf phpBB2 meine Daten ein, werde ich erfolgreich eingeloggt.
Klicke ich nun auf "Go to the Gallery" werde ich wieder nach Benutzername und PW gefragt.
Drücke ich auf F5 bin ich nun auch auf 4images erfolgreich eingeloggt.
Dies ist ein weiteres Problem mit gewissen Modifikationen (es hängt halt davon ab in welche Reihenfolge man was macht, sprich wo logt man sich ein)
Dieses Problem besteht weiterhin

Letztendlich soll es dann so sein das es nur noch ein Loginsystem gibt und mir ist schon klar das das jetzt so recht kompliziert ist.
Ich wöllte halt nur ganz gern wissen wo die Fehler liegen.
Leider habe ich noch nicht ganz so viel Ahnung von Php, Cokies usw. aber sehr probier freudig.

Wenn also jemand Zeit, Interesse und Wissen hat, währe ich sehr für Hilfe dankbar

Und allen noch ein gesundes Neues Jahr


Title: Re: Integration 4images 1.7.x / phpBB
Post by: KurtW on January 06, 2008, 07:25:37 PM
Hallo satse_satsea,

hatte vor einem Jahr auch schon mal den Mod eingebaut. jetzt aber nicht mehr.

Was mir aufgefallen ist bei dir:

Wieso hast du in der Loginform von 4images:
1
http://www.tobael.de/phpBB2/login.php
und:
1
<input type="hidden" name="redirect" value="http://www.tobael.de/4images/index.php" />
drinstehen?

Verwende doch die login.php von 4images ohne den redirect !

################### EDIT ################

habs gesehen. die loginform liegt dem zip bei..
Du kannst ja mal zum Testen:
1
{url_login}
ersetzen mit:
1
./login.php
und das redirect weg.
######################################
KurtW


Title: Re: Integration 4images 1.7.x / phpBB
Post by: satse_satsea on January 06, 2008, 08:05:24 PM
Danke Kurt für deine schnelle Antwort
mit
Quote  [Expand]
...
1
{url_login}
ersetzen mit:
1
./login.php

Ging es leider nicht, da passierte gar nix mehr

Ich habe jetzt
1
{url_login}
ersetzt mit
1
../phpBB2/login.php
Damit werde ich zwar wie bei der Abmeldung auf die phpBB2-Startseite geführt (logischer Weise)
aber das ist schon mal schöner als die Fehlermeldung

Danke schon mal für die erste Hilfe

hoffentlich weiß einer zu den anderen Problemen auch noch nen Rat


Title: Re: Integration 4images 1.7.x / phpBB
Post by: marcuskillen on January 15, 2008, 12:45:51 AM
could anyone translate this last 2 posts :lol:


Title: Re: Integration 4images 1.7.x / phpBB
Post by: St. Jimmy on January 27, 2008, 11:00:09 PM
Hi
ich möchte mir eine webseite basteln, die aus einem blog (wordpress 2.3.1), einem forum (phpbb3) und einer gallery (4images 1.7.4) besteht.
klappt soweit auch schon ganz gut (thx an den ersteller dieses threads).
nur fände ich es nicht schlecht, wenn man nach der abmeldung automatisch wieder zur gallery zurück kommen würde.
und nicht im forum bleibt.
kann mir da jemand helfen?
thx

St. Jimmy


ps: ich hab noch einen bug in verbindung mit phpbb3 gefunden:
ihr müsst in sessions.php zeile 69:
$url_show_profile  = $url_app."ucp.php?mode=viewprofile&u={user_id}";

durch:
$url_show_profile  = $url_app."memberlist.php?mode=viewprofile&u={user_id}";

ersetzten ;-)


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Amosnet on January 29, 2008, 03:55:04 PM
Hat jemand von euch unter MySQL5 und PHP5 die alte Sessions.php zum laufen gebracht? Ich habe schon alles probiert und bei mir
werden in 4images leider immer noch nicht die eingeloggten User angezeigt und auch nicht im Admin Bereich!

Hat jemand einen Tipp für mich?

ich hab mal die die sessions.php für phpBB3 RC5 angepasst
keine ahnung ob die jetzt sicher ist oder auch wirklich auch läuft  :roll:

Das sollte geändert werden, die sessions.php ersetzten und dann müsst es hoffentlich funktionieren:

configs in der session.php vornehmen! (die URL)


inlcudes/constants.php


ändern:

//User levels
define('GUEST', -1);
define('USER_AWAITING', -1);
define('USER', 0);
define('ADMIN', 1);

//Permission levels
define('AUTH_ALL', 0);
define('AUTH_USER', 2);
define('AUTH_ACL', 3);
define('AUTH_ADMIN', 9);


in:

define('GUEST', 2);
define('GUEST_ID', 1);
define('USER_AWAITING', 1);
define('USER', 0);
define('ADMIN', 3);


define('AUTH_ALL', 2);
define('AUTH_USER', 0);
define('AUTH_ACL', -1);
define('AUTH_ADMIN', 3);


includes/page_header.php


ändern:
//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
if ($user_info['user_level'] >= USER){


in:
//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
if ($user_info['user_level'] >= USER && $user_info['user_level'] != GUEST){



includes/functions.php

ändern:
 if ($user_id != 0 && $user_id != GUEST) {

in:
 if ($user_id != 0 && $user_id != GUEST_ID) {


EDIT:

upps, vergessen die "user_loginform.html" hochzuladen, die auch mit der originalen ersetzt werden sollte
thx @Bugfixed


Title: Re: Integration 4images 1.7.x / phpBB
Post by: datenplatz on January 30, 2008, 12:33:23 PM
kann mir vielleicht jemand verraten was ich tun muss um ein phpbb Forum in meine 4images gallerie 1.7.4 einzubinden ?
Mir ist bewusst ich finde hier die Antwort .. aber ich finde doch alles recht verwirrend , da die Eintraege teileweise 5 Jahre zurueck liegen in diesem Thread !
Welche Datei brauche ich dazu und welchen Code muss ich aendern ?!?!

Ich wäre Euch äusserst dankbar wenn mir da jemand helfen würde !!
Viele Grüße
www.wolfsburg-kolleg.de


Title: Re: Integration 4images 1.7.x / phpBB
Post by: nobby on January 30, 2008, 12:37:13 PM
Na, hier ist doch die Antwort  :arrow: http://www.4homepages.de/forum/index.php?topic=4315.0

nobby


Title: Re: Integration 4images 1.7.x / phpBB
Post by: datenplatz on January 30, 2008, 01:19:11 PM
ach super ... vielen dank ! hab nur auf das datum geguckt wo der thread eroeffnet wurden ist und nicht editiert wurden ist .


Title: Re: Integration 4images 1.7.x / phpBB
Post by: datenplatz on January 30, 2008, 02:31:22 PM
habe das skript installiert , aber irgendwie zickt das rum ;(
auf der mainpage kriege ich nun folgende meldung :

1
2
3
DB Error: Bad SQL Query: SELECT user_t_images, user_name, user_id FROM phpbb_users WHERE user_level >= '0' ORDER BY user_t_images DESC LIMIT 25
Unknown column 'user_t_images' in 'field list'


auch zeigt er mir die topuploader nicht mehr an aus dem mod . vermute der ist jetzt irgendwie durcheinander gekommen , da ich vorher ein paar testuser bereits in der 4images gallerie hatte .
wie gehe ich nun am besten vor ?!
userdatenbanken loeschen ?!!?

Desweiteren ... bin mit einem User eingeloggt ... will ich mich ausloggen .. leitet er mich weiter zum Forum und sagt invalid session !? *grübel*

Will sich ein bestehender User einloggen , erscheint eine Doppel URL : http://beispiel.de/forum/http://www.bespiel.de/4images/index.php?sid=d56b420ce052b55a4c4273ecd6c623f4

Was kann ich tun ? Hilfe  :(


Title: Re: Integration 4images 1.7.x / phpBB
Post by: datenplatz on January 30, 2008, 10:04:42 PM
weiss  niemand Rat ??


Title: Re: Integration 4images 1.7.x / phpBB
Post by: datenplatz on February 02, 2008, 01:57:38 AM
mit der bitte um Hilfe !!
Es wird doch wohl jemand installiert gekriegt haben ??? ;(((
Wie kriege ich die doppelte Url weg ??


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Bugfixed on February 26, 2008, 11:50:14 AM
Hello all.

phpbb3 released Dec 13 2007.

i using 4images 1.7.6.

http://www.4homepages.de/forum/index.php?topic=4315.0 this mod only for phpbb 2.0.x.

Marc0083 says: http://www.4homepages.de/forum/index.php?topic=4315.msg107898#msg107898
but i have some problems.

How i can make phpbb3+4images 1.7.6 integration? How to?

if you reply me messages i will be happy. Thanks.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: maineyak on March 01, 2008, 12:39:05 AM
Has anyone successfully integrated 4images 1.7.6 with phpBB 3?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: XFuzon on March 01, 2008, 02:10:18 PM
I tried to use it with phpBB 3 but 4images says that and unexpected error has occured, and every time i try to login, it says no input specified :(


Title: Re: Integration 4images 1.7.x / phpBB
Post by: maineyak on March 01, 2008, 09:35:55 PM
What is the last version of phpBB that 1.7.6 works with?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: datenplatz on March 10, 2008, 02:58:29 AM
benutze die version 1.74 und phpbb 2.22 . nach langem hin und her habe ich mich entschlossen die integration wieder runterzuschmeissen .
habe die alte constants und sessions.php wieder hochgeladen .

nur das problem,welches noch besteht ist , dass sich niemand mehr einloggen kann !
Waere ueber jede Hilfe dankbar !


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Nicky on March 10, 2008, 02:08:24 PM
hi,

möglicherweise sind deine user in der phpBB datenbank/table.
und die 4images PREFIX_users ist leer oder fast leer..
dies wird warscheinlich 100%-ig der grund sein...


Title: Re: Integration 4images 1.7.x / phpBB
Post by: datenplatz on March 10, 2008, 02:59:02 PM
leider nein ... es sind 9 eintraege in der 4images user tabelle ... und ueber die galerie kanni ch mir auch passwörter von den usern an die mail adresse zusenden lassen ....
mmmhhh


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Heinrich-Uwe on April 01, 2008, 09:34:48 AM
bin grad am basteln und es klappt leider nicht so wie ich es mir wünsche 
sehe ich das richtig das alle user von 4image weck sind nach der Integration mit phpbb  da ich da in der Galerie 300 user habe kann man das nicht umdrehen das die tabelle von 4image benutzt wird

Weis jemand was 


Title: Re: Integration 4images 1.7.x / phpBB
Post by: wulfseidel on April 19, 2008, 12:38:27 AM
Hallo Leute

ich versuche nun bereits seit 2 tagen (nach Feierabend) phpbb3 und 4images1.7.6 zusammen zum laufen zu bekommen.

benutze das iceberg template und nachdem ich alles nach der anleitung am anfang dieses threads gemacht habe.

wie oft inzwischen weiß ich nicht mehr :)

sieht der loginbereich zwar vom format her anders aus, aber funzen tut es nicht

bekomme oberhalb der eigentlichen galerie dann nur immer
"an error has occured please try again later" blabla

und das gleich 4 mal

ich bastel grade an ner seite für die family und würde halt gerne ermöglichen das forum und galerie gemeinsam laufen. und nich separat.

gibt es inzwischen ne lösung hierfür?

einzeln funktionieren die beiden scripte einwandfrei.

und selbstredend sind sie in der gleichen db


nur liegt das forum in einem anderen ordner

muss ich evt an einer stelle angeben wo genau das forum liegt?

naja über hilfe würd ich mich freuen :lol:


Title: Re: Integration 4images 1.7.x / phpBB
Post by: jeromerookie on May 14, 2008, 09:06:37 PM
hi
ich benutze diesen MOD seit 2 Jahren
ich bin jetzt dabei den upgrade phpbb2 --> phpbb3 durchzufuehren. funktionniert diesen MOD mit diser Version von Phpbb ?
danke aus Frankreich


Title: Re: Integration 4images 1.7.x / phpBB
Post by: merox on May 21, 2008, 04:06:19 PM
Hallo
ich werde immer nach dem Login zum Forum gebracht.Wie kann ich es einstellen,dass ich zu ner bestimmeten Seite komme?



Title: Re: Integration 4images 1.7.x / phpBB
Post by: merox on May 22, 2008, 04:18:35 PM
kann mir niemand helfen?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: dennist on June 16, 2008, 01:55:04 PM
Quote  [Expand]
benutze die version 1.74 und phpbb 2.22 . nach langem hin und her habe ich mich entschlossen die integration wieder runterzuschmeissen .
habe die alte constants und sessions.php wieder hochgeladen .

nur das problem,welches noch besteht ist , dass sich niemand mehr einloggen kann !
Waere ueber jede Hilfe dankbar !

Ich habe ähnliches vor. Gibt es eine Möglichkeit wie man dier User von der Tabelle phpbb_users in die Tabelle 4images_users übertragen kann?

Bin für jede info dankbar.

Gruß Dennis


Title: Re: Integration 4images 1.7.x / phpBB
Post by: infernus on June 22, 2008, 09:26:51 PM
Hallo,

erstmal finde ich die Integration echt cool, nur leider habe ich Probleme damit.


Und zwar bekomme ich folgende Fehlermeldung:

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 /mnt/web3/33/62/51294162/htdocs/wc/gallery/includes/db_mysql.php:192) in /mnt/web3/33/62/51294162/htdocs/wc/gallery/includes/sessions.php on line 325

Warning: Cannot modify header information - headers already sent by (output started at /mnt/web3/33/62/51294162/htdocs/wc/gallery/includes/db_mysql.php:192) in /mnt/web3/33/62/51294162/htdocs/wc/gallery/includes/sessions.php on line 326

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 /mnt/web3/33/62/51294162/htdocs/wc/gallery/includes/db_mysql.php on line 116


Habe ich irgendwas falsch gemacht?
Wo genau liegt der Fehler?


Meine 4images Version: 1.7.6
Meine phpBB Version:  2.0.23


Title: Re: Integration 4images 1.7.x / phpBB
Post by: janwinter on July 28, 2008, 10:34:01 PM
Auch von meiner Seite ein großes Dank an die Autoren dieses wunderbaren Scripts.

In 4Images habe ich mich schon ganz gut eingearbeitet aber ich wollte jetzt auch die Brücke zu phpbb2 gehen, allerdings bekomme ich die gleiche Fehlermeldung, wie zuvor beschrieben "An unexpected error occured. Please try again later."

ich habe leider überhaupt keine Ahnung was ich falsch gemacht haben könnte und habe wie hier beschrieben auch schon mehrfach neu installiert, leider ohne den entsprechenden Erfolg...

Ich wäre für ein Ratschlag sehr verbunden!

http://yoice.net/gallery/

Liebe Grüße Jan aus Hamburg


Title: Re: Integration 4images 1.7.x / phpBB
Post by: janwinter on August 05, 2008, 12:43:56 PM
Super ich habe es jetzt selber geschafft phpbb3 und 4imgaes auf www.yoice.net/forum/ zu verbinden.

aber die Seite ist noch im Aufbau und dass kann auch noch dauern, wie bei mein ganzen anderen Projekten auch!!!

Wie es Funktioniert habe ich an mehreren Stellen im Internet erfahren und zum größten Teil auf dieser Seite, ich möchte gerne die Schritte zur Verbindung veröffentlichen, allerdings weiß ich nicht so genau, in wie weit ich beispielsweise dann die geänderte Datei zum Download anbieten darf!

Vielleicht weiß es ja hier jemand, was ich beachten muss

Liebe Grüße Jan

Meine Bilder http://www.profilfotografie.de/categories.php?cat_id=2 (http://www.profilfotografie.de/categories.php?cat_id=2)


Title: Re: Integration 4images 1.7.x / phpBB
Post by: FotoRalle on August 06, 2008, 11:59:43 AM
Hallo Jan,

ich glaube nicht, dass es ein grösseres Verbot wäre, die Installation hier zur Verfügung zu stellen. Mich (und sicher andere auch) würde das sehr interessieren, wie du das geschafft hast!

Gruss Ralf
(auch aus Hamburg)


Title: Re: Integration 4images 1.7.x / phpBB
Post by: chorteg on August 09, 2008, 03:13:20 PM
Добрый день, я конечно перевел почти все сообщения и так и не понял последовательности.
Пробовал конечно же, но не получается, и галерея выдает ошибку: An unexpected error occured. Please try again later. а когда логинешься пишет: No input file specified.
Подскажите пожалуйста
Лучше всего в аську 265925073.



Title: Re: Integration 4images 1.7.x / phpBB
Post by: satine88 on October 27, 2008, 01:37:29 PM
   
Hello,
I have a problem when someone wants to connect to their accoun

You can try :

Login : http://www.fond-ecran-gratuit.biz
login : demo
pass : demo

Bug :
1
http://www.fond-ecran-gratuit.biz/forum/http://www.fond-ecran-gratuit.biz/?sid=99ff6f203296f426c5991bed4c642255

Thank you for your help





Title: Re: Integration 4images 1.7.x / phpBB
Post by: Sumale.my on October 27, 2008, 02:07:12 PM
Hello,

I also wanted my phpbb now in the gallery 4images integrate. But now I do not know what I should take.

In the pack by Ivan, one must sessions.php write about but because I have some mods installed, it's already something silly.

What is the difference between the two integration of ivan and helium?
http://www.4homepages.de/forum/index.php?topic=22640.0

--

Hallo,

ich wollte auch mein phpbb nun endlich in die 4images gallery integrieren. Aber jetzt weis ich nicht was ich nehmen soll.

In dem Pack von ivan, muss man die sessions.php überschreiben aber da ich einige Mods installiert habe, ist das schon etwas doof.

Wo ist der Unterschied zwischen den beiden Integration von ivan und von helium?
http://www.4homepages.de/forum/index.php?topic=22640.0


Title: Re: Integration 4images 1.7.x / phpBB
Post by: satine88 on October 27, 2008, 05:40:46 PM
Hello,
How can we be redirected to the site (not to the forum)?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<table width="100%" border="0" cellpadding="4" cellspacing="0">
  <tr>
    <td valign="top" align="left">
      <form action="{url_login}" method="post">
        {lang_user_name}<br />
        <input type="text" size="10" name="username" class="logininput" />
        <br />
        {lang_password}<br />
        <input type="password" size="10" name="password" class="logininput" />
        <br />
        <table border="0" cellspacing="0" cellpadding="0">
          <tr valign="top">
            <td><input type="checkbox" name="autologin" value="1" /></td>
            <td><span class="smalltext">{lang_auto_login}</span></td>
          </tr>
        </table>
        <br />
       
<input type="hidden" name="login" value="1" />
<input type="submit" value="{lang_login}" class="button" />
      </form>
      &raquo; <a href="{url_lost_password}">{lang_lost_password}</a><br />
  &raquo; <a href="{url_register}">{lang_register}</a></td>
  </tr>
</table>

Thanks :)


Title: Mod phpbb : redirect to site
Post by: satine88 on October 28, 2008, 08:50:20 PM
Hello,
I installed this mod 4images 1.7.x / phpBB : http://www.4homepages.de/forum/index.php?topic=4315.0

And I would like the member is redirected to the site and not the forum


My : user_loginform.html

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<table width="100%" border="0" cellpadding="4" cellspacing="0">
  <tr>
    <td valign="top" align="left">
      <form action="{url_login}" method="post">
        {lang_user_name}<br />
        <input type="text" size="10" name="username" class="logininput" />
        <br />
        {lang_password}<br />
        <input type="password" size="10" name="password" class="logininput" />
        <br />
        <table border="0" cellspacing="0" cellpadding="0">
          <tr valign="top">
            <td><input type="checkbox" name="autologin" value="1" /></td>
            <td><span class="smalltext">{lang_auto_login}</span></td>
          </tr>
        </table>
        <br />
       
<input type="hidden" name="login" value="1" />
<input type="submit" value="{lang_login}" class="button" />
      </form>
      &raquo; <a href="{url_lost_password}">{lang_lost_password}</a><br />
  &raquo; <a href="{url_register}">{lang_register}</a></td>
  </tr>
</table>

Can you help me ?
Thanks :)


Title: Re: Mod phpbb : redirect to site
Post by: nobby on October 28, 2008, 09:09:53 PM
Hi,

http://www.4homepages.de/forum/index.php?topic=22950.msg125440#msg125440  :wink:


Title: Re: Mod phpbb : redirect to site
Post by: satine88 on October 28, 2008, 11:14:52 PM
Thank you ;)

But this does not work :(


Title: Re: Integration 4images 1.7.x / phpBB
Post by: satine88 on October 31, 2008, 05:16:11 PM
Hello,

Up ;)


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Fere on January 07, 2009, 05:48:18 PM
Hello guys!

Anything new about phpbb 3 and 4images 1.76 integration ?? A link or something...
I would really like to make this intergration on my website...

Thank you!


Title: Re: Integration 4images 1.7.x / phpBB
Post by: olli1it on January 09, 2009, 11:18:23 PM
Hallo

bin gerade dabei eine Gallery mit Forum zu installieren, da ich aber keine Ahnung von PHP habe
frage ich ob jemand hier die Integration von phpbb für mich machen könnte.

Danke inzwischen

olli1it


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Anarchology on January 15, 2009, 12:38:18 PM
Hi,

I'm wondering if this modification or if there another version of this MOD where instead of integrating it into phpBB, but instead SMF Forums (like what this board runs on). Given I have a nice SMF Forum that has a Page Rank of 2 after less than a year, my new 4images site would be absolutely great to have it integrated into it.

Thanks in advance, and I hope there is something out there to help me out! :D


Title: Re: Integration 4images 1.7.x / phpBB
Post by: olli1it on January 15, 2009, 11:56:47 PM
Hallo
werde die Integration von phpbb einfach mal probieren, man findet hier je sehr gute beschreibungen.

Bevor ich anfange abergleich  noch eine dumme Frage, wo installiere ich die zwei Programme:
A) www.meinehomepage.com (4images) + www.mainehomepage.com/forum
b) www.meinehomepage.com/gallery + www.meinehomepage.com/forum

Ist es egal werchen Programm zuerst installiert wird, bzw.müssen die änderungen in 4images
vorgenommen werden bevor phpbb installiert wird?

Hat jemand Erfahrung funktioniert phpbb oder smf besser bzw. einfacher?

Danke inzwischen
olli1it


Title: Re: Integration 4images 1.7.x / phpBB
Post by: olli1it on January 29, 2009, 05:16:48 PM
Hallo

habe die Installation komplett geschafft :P :P

Habe aber ein Problem, kann mich im Forum anmelden aber nicht bei 4Images.
Erhalte dort aber keine Fehlermeldung sondern es werden einfach die Eingaben gelöscht und die Seite bleibt stehen??

Noch eine andere Frage funktioniert die Integrstion auch mehrsprachig bzw. mit allen Templates?

Viele Dank inzwischen

Olli


Title: Re: Integration 4images 1.7.x / phpBB
Post by: 4ella on February 19, 2009, 11:50:14 PM
Hello , pls I need your help , I was trying to make integration , im working on it whole day because i didnt want to lose what i already had in my 4images , after I decided to make complete new instalation , I created new mysql database in the same forum database , i renamed  2 tables - 4images_sessions and images_users (changed prefix 4images_  to phpbb_sessions and phpbb_users   ) and now I cant get to my admin account  anymore , this is the site :

http://www.dancersrecruit.com/pictures/

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 /home2/dancersr/public_html/pictures/includes/db_mysql.php:192) in /home2/dancersr/public_html/pictures/includes/sessions.php on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home2/dancersr/public_html/pictures/includes/db_mysql.php:192) in /home2/dancersr/public_html/pictures/includes/sessions.php on line 326

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 /home2/dancersr/public_html/pictures/includes/db_mysql.php on line 116


I dont understand those things at all , You re experts , for sure it has to be simple error but for me it was 1 day of searching for it. pls.help , I made everything : changed  the logininfo.html , changed sessions : forum path but I dont know what does it mean to edit the configuration part at the top
     of the file??? maybe there is the problem - I didnt change nothing , I dont know I have to change , I also changed constans.php , I dont think that Im stupid but I dont want to spend another day searching for something what expert see immediately , Thanks Daniel


Title: Re: Integration 4images 1.7.x / phpBB
Post by: daymos on April 10, 2009, 12:27:23 AM
When I change
1
define('SESSIONS_TABLE', 'phpbb_sessions');
and
1
define('USERS_TABLE', 'phpbb_users');
I recived error:
1
2
3
4
5
6
7
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: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/smuga/artportal.in.ua/includes/db_mysql.php on line 116

I install phpbb on worked 4images with users and his photos.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: daymos on May 12, 2009, 03:24:27 PM
Help me integrate! I have error:
1
2
3
4
5
6
7
8
9
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 Z:\home\artlocal\www\includes\db_mysql.php:192) in Z:\home\artlocal\www\includes\sessions.php on line 325

Warning: Cannot modify header information - headers already sent by (output started at Z:\home\artlocal\www\includes\db_mysql.php:192) in Z:\home\artlocal\www\includes\sessions.php on line 326

An unexpected error occured. Please try again later.
1 wmz


Title: Re: Integration 4images 1.7.x / phpBB
Post by: WWTNET on August 02, 2009, 12:34:45 AM
Hi everyone,

any updates for this mod? all I want is to use a common users database for 4images and phpbb forum ... but I already have active members on my gallery, I don-t want to loose them when I install the phpbb forum.

I-ve seen there is a nice bridge for vbulletin and 4images, I tested the demo and it;s nice.. but the license for vbulletin is $180 ....


Thanks
A.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Mariuz on August 02, 2009, 05:11:14 PM
Klappt bei mir auch nicht.. alles 100% so gemacht wie in der installationsanleitung.
Außerdem stimmt der Link im ersten Post auch nicht mehr ;)

An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.



Title: Re: Integration 4images 1.7.x / phpBB
Post by: airliner on September 02, 2009, 12:48:54 PM


----

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 cant find this link and I do have 404 error.
Can someone help out here regarding it? I have also invalid session at logout.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Guldstrand on May 28, 2010, 04:54:09 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 (http://www.4homepages.de/forumdl/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
Any demo available?


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Bugfixed on November 15, 2010, 10:47:21 AM
hello
1.7.9 to the latest version of the session.php file where you have noticed lots of friends are incompatible. If you do not bother to file session.php May I have a fully compatible with 1.7.9? Thank you in advance.


Title: Re: Integration 4images 1.7.x / phpBB
Post by: Warrior on May 02, 2011, 02:29:57 AM
Any chance of getting a true bridge, rather than an integration, with phpBB2, similar to what is done with phpBB3?