PDA

View Full Version : The script didn't work for me !



BrainDamage
08-09-2004, 05:01 AM
:( Hi there !

I would like to thank you for publishing this new version of your integration script. I was needing it so bad !

I tested it on blank e107 160 and invision 1.3.1 installations ! (test server)

Now I downloaded it this morning and installed :

1. Install went through without problems !
2. Removed all e107 members
3. Copied invision members
4. Logout works from invision board
5. Logout doesn't work from e107
6. Login works from invision
7. Login doesn't work from e107

Here is the main problem : When a user wants to identify from e107, he gets redirected to the invision board login (even if he is already logged in invision :ph34r: )

I can't administer e107 anywore as login stoped working !

Tried twice but still noway to login at e107...

Could you please have a look ?

Or just send me a working copy and I can host a demo site for people to see. e107 and NUke if you want !

Thanks again !!!

Carnage
08-09-2004, 07:03 AM
I had this error :/

Warning: Wrong parameter count for mysql_connect() in /home/overmind/www/CMS_Forum_Hack/classes/mysql.php on line 36
ERR_mysql_connect

E107/IPB1.3.1

BrainDamage
08-09-2004, 07:29 AM
Carnage, I guess it's not that bad.. you just misspelled your mysql parameters !

verify your host,database name, user and password !

Tell me if it works for you !

Carnage
08-09-2004, 08:04 AM
Im trying all the time i am filling paramiters ok. Its a local linux box.
It doesnt want to connect :(. I tryed it all localhost,127.0.0.1) It does not connect.
I have installed IPB 1.3.1 to Forum folder. And then i try to install the hack it just want connect to local sql base :/. I dont know what to do more. Its my test server if it will not work im gone try on my base server at overmind.pl :/ but if its not working im gone be dissapointed.

mankan
08-09-2004, 08:08 AM
Well, i also get some problems.. It's seams that I can't change the cookiename to e107cookie... when i submiting the changes the cookiename returns to ecookie <_<

When I'm using phpmyadmin to change it, I get an error on line 27 in message_handler.php

Carnage
08-09-2004, 08:10 AM
are you testing it on a remote server or a local server?

Patrick
08-09-2004, 10:46 AM
Ehh, let's see if we can clear some things up.
First off, this script was developed (as usual) locally. Login / Logout didn't work locally because of cookie problems but they did work on a development server.

I tested this on different configurations, but I knew problems would still arise.

First off, when entering DB info, ensure that if you are using e107 that you set the prefix to what yours is (default for e107 would be e107_ ).



Well, i also get some problems.. It's seams that I can't change the cookiename to e107cookie... when i submiting the changes the cookiename returns to ecookie dry.gif

When I'm using phpmyadmin to change it, I get an error on line 27 in message_handler.php

You can change the cookie name that the script accesses by opening up classes/cms-e107-*.php and changing var $cookie_name = "e107_cookie";



Im trying all the time i am filling paramiters ok. Its a local linux box.
It doesnt want to connect sad.gif. I tryed it all localhost,127.0.0.1) It does not connect.
I have installed IPB 1.3.1 to Forum folder. And then i try to install the hack it just want connect to local sql base :/. I dont know what to do more. Its my test server if it will not work im gone try on my base server at overmind.pl :/ but if its not working im gone be dissapointed.

Not sure why you are not able to connect. What version of PHP are you running. The script was tested on both PHP 5 and PHP 4.3.8. It is likely that your PHP version is < 4.2.0, as it returns "wrong parameter count" and is likely not picking up on the new_link. (http://us3.php.net/mysql_connect ).



I would like to thank you for publishing this new version of your integration script. I was needing it so bad !

I tested it on blank e107 160 and invision 1.3.1 installations ! (test server)

Now I downloaded it this morning and installed :

1. Install went through without problems !
2. Removed all e107 members
3. Copied invision members
4. Logout works from invision board
5. Logout doesn't work from e107
6. Login works from invision
7. Login doesn't work from e107

Here is the main problem : When a user wants to identify from e107, he gets redirected to the invision board login (even if he is already logged in invision ph34r.gif )

I can't administer e107 anywore as login stoped working !

Tried twice but still noway to login at e107...

Could you please have a look ?

Or just send me a working copy and I can host a demo site for people to see. e107 and NUke if you want !

Thanks again !!!
Ok then, let's see. First to explain how the hack works.

Because of the several cookies set by forums, it is alot easier to redirect a person to the forums and hack the forums to login the CMS users, than to redirect the forums user to the CMS and hack the CMS to login the forum user.

Thus, when a person clicks Login on your CMS, he should be taken to the login of the invision board forums. If you are already logged in to the forums, then logout. The forum's login / logout, once hacked, also acts as the login / logout of e107. It HAD to be done this way.

Therefore, if you get redirected to forums and you are already logged in, then logout and log back in. This should be a rare event and should probably only happen the first time after you installed this hack.

BrainDamage
08-09-2004, 11:49 AM
I'm sorry but it's not working !

I had tried two configurations (on my local company servers and on a british hosting provider) but still ain't no luck ! Same problem !

To say in two words what I got from installing this script is that when a user types in his login/passwd in e107 and clicks login, he gets redirected to IBF forum. he can sure type "again" his login/passwd but still he'll never get to login into e107 !

You said it's a one time bug, well i tried several times from many different computers, and even went to the office in front of mine to test from their network, still same prob !

If you have a working version, can I see how it works? it's php info etc...

I know that you spent time developping this, and having people complain about it ain't piece of cake :D but please ! :( I really need this script !!!!

Thank you again patiek !

Patrick
08-09-2004, 12:00 PM
I'm sorry but it's not working !

I had tried two configurations (on my local company servers and on a british hosting provider) but still ain't no luck ! Same problem !

To say in two words what I got from installing this script is that when a user types in his login/passwd in e107 and clicks login, he gets redirected to IBF forum. he can sure type "again" his login/passwd but still he'll never get to login into e107 !

You said it's a one time bug, well i tried several times from many different computers, and even went to the office in front of mine to test from their network, still same prob !

If you have a working version, can I see how it works? it's php info etc...

I know that you spent time developping this, and having people complain about it ain't piece of cake :D but please ! :( I really need this script !!!!

Thank you again patiek !
Could you point me to where you have installed it publicly? I could help you debug it.

Here is what you need to ensure:
1. When you login to your forums, the forums set your e107 cookie.
2. When you visit your e107, your e107 picks up on the same cookie (same name).
3. When you logout from your forum, the forum deletes the same e107 cookie.

Also, it is possible, since you are admin (and the script does not delete the CMS admin accounts), that you have conflicting passwords. If this is so, you can still login to the admin section (http://dev.ep-dev.com/hackdev/e107_admin/admin.php ) and change your password.

Lastly, what setup do you have? The script was only tested on a domain.com / domain.com/forum(s) setup. Not on a subdomain setup.

Here is the script where I did its final tests: http://dev.ep-dev.com/hackdev/news.php . To prove that it works ;)

Patrick
08-09-2004, 12:42 PM
I have split the postnuke topic off of this one.

Please create separate topics for other questions, including support questions not relating to this one.

Carnage
08-09-2004, 02:23 PM
heh you was right :)
php 4.1.2 Apache/1.3.26 mysql 3.23.4 i must upgrade my linux home server :).
Im gone test it when im gone upgrade and give you some feedback. On my host i have PHP 4.1.2 to :/, its gone take me some time to test it.

BrainDamage
08-09-2004, 02:38 PM
:rolleyes: Hi patiek !

http://test.nextrock.com
http://test.nextrock.com/forum

This is where I installed it !

And your demo server is down :( How can I be sure of the cookie stuff ?

Carnage
08-09-2004, 03:11 PM
I have made an acount on your web page. It seems buged. I cant login to e107 but forum works good, but you have to login every time.

Patrick
08-09-2004, 04:19 PM
Hello,
Yes, I can see your site isn't setting the cookie properly. In fact, it seems as if your forums haven't even been modified correct.

Open up forum/sources/Login.php and do a search for "ep-dev" to see if they have been modded.

Do the same for forum/sources/Register.php . If they haven't been modified then maybe we can figure out why. Send them to me at patiek[at-damnspam]ep-dev.com .

Carnage
08-09-2004, 06:52 PM
Hmm like you seed i have upgraded my php to 3.8.4 and the script worked.
I have the same problem as BrainDamage i cant login to my e107 portal. When i enter login and pass it forwards me to IPB login, i can login there every thing work perfectly but the e107 i buged complety. Ofcourse seting up new acounts works perfeclty i see a new created members in e107 and in IPB. But i cant login to e107 with any of thouse users. One more thing i have many users all ready signed up in my e107 is there any way to completle convert thouse users to a new forum? and not losing all users that all ready signed up. You can see it all on my test server in my home.
http://arantael.dyndns.org/~overmind/news.php
if you wish i can give you access to phpmyadmin and ftp, its not great its only 12Kb adsl but for local testing the server is great :). I can say for now that you script is a big brake through in integration but it need much more work to be usefull. For now i will stay with the old forum, and im gone wait for any changes.
BTW. the orginal site is at www.overmind.pl. Good luck and keep up the good work.

PS.
Sorry for my English its my native language im Polish :)

Patrick
08-09-2004, 11:44 PM
I have updated the script to fix these bugs:
http://dev-forums.com/index.php?showtopic=7

And included are some requested features.

Carnage
08-10-2004, 05:54 PM
I cant make your hack work. I tred clean new install e107 then i install to forum folder ipb 1.3.1 final then i aply the hack every thing goes great then i use login script on e107 it redirects and logs me to forum it work nice, but i cant login to e107 no way i can do it. i tred all ways to install it corectly. Nothing works. PLZ help :..( Arantel.dyndns.org/~overmind/ (test server)

Patrick
08-10-2004, 06:09 PM
Here is some basic trouble shooting.

1) What happens when you click the login on e107? Do you get logged into the forums, but not into e107?

2) Are your URL's in the hack's config set correctly? Please realize that if your URL in the config is set to http://localhost/ and http://localhost/forum/ , then accessing your CMS from any other domain will not work (i.e. dyndns.org) as the cookie will not set correctly.

3) Is your e107 set to use cookies and not sessions? It should be set to use cookies. (find out in e107's admin ~ e107_admin/admin.php)

4) What cookies are being set when you click the login on e107? (You can find this out, in Mozilla Firefox, by going to Tools>Options>Privacy>Cookies> and ticking "Ask for each cookie".

5) Are your passwords the same? To ensure your passwords are the same, login to the forums, go to your user control panel (not admin) and change your password. This will update both the password for the forum user and the password for the e107 user.

Carnage
08-10-2004, 07:10 PM
1) yes i get loged in to forum nicly.

2) yes i know that im useing normal local lan name not domains. I think i filled up parameters correctly.

3) yes it is set to cookies not sessions

4) i use IE i check on windows/cookies/ its set to e107cookie (e107cookiemember_id, e107cookiepass_hash)

5) passes are the same.


Maybe its becouse i have a php-nuke portal on localhost and e107 on localhost/~e107/ maybe thats why its broken?

Patrick
08-10-2004, 09:58 PM
1) yes i get loged in to forum nicly.

2) yes i know that im useing normal local lan name not domains. I think i filled up parameters correctly.

3) yes it is set to cookies not sessions

4) i use IE i check on windows/cookies/ its set to e107cookie (e107cookiemember_id, e107cookiepass_hash)

5) passes are the same.


Maybe its becouse i have a php-nuke portal on localhost and e107 on localhost/~e107/ maybe thats why its broken?
Then I am out of solutions to your problem.

As for your cookies, I am still not positive your cookies are setting correctly. I suggested firefox because I know with it I can make sure the cookies are being set in realtime (as opposed to looking afterward and having to delete to check again).


Maybe its becouse i have a php-nuke portal on localhost and e107 on localhost/~e107/ maybe thats why its broken?
The PHP-Nuke install shouldn't be causing trouble at all.

I notice your path is localhost/~e107/ . This would only be a problem if you still using v1.00 of this script. Otherwise, this shouldn't be causing problems.

Like I said, I am out of solutions. I simply do not know why you are having trouble. I have installed this hack on multiple domains now (and other people have as well) and they have all had success. I haven't had anyone contact me with any trouble since I updated the script to v1.01.

Carnage
08-11-2004, 06:48 AM
im gone try again with the firefox and im gone check the cookies. I have to install this :) im gone try and try again.

Carnage
08-11-2004, 07:02 AM
Ok i have tryed it on firefox with cookie aproval.
Witout hack the cookie is "ecookie" then i install the hack and try to login to e107 the cookie is named "session_id" then it sets few ather cookies named "PHPSESSID", "member_id", "pass_hash", again "session_id" then it loogs me to forum nicly giving only one coockie "session_id". Thats not to good isnt that?

Carnage
08-11-2004, 07:09 AM
i check on your site the 3 cookie is "ecookie" then "member_id" and "pass_hash" i dont know why it doesnt set the ecookie why?

Patrick
08-11-2004, 03:05 PM
Perhaps this has something to do with your domain setup.

Try this:
Instead of setting the CMS URL and the forum URL settings within the hack to localhost, set them to your dyndns.org domain.

Then visit your site via dyndns.org and see if it sets the cookie (the cookie set for e107).

Carnage
08-11-2004, 06:24 PM
Yes it worked :) Im a noob i used not local host name i have used my servers local lan name (server) thats why it didnt work. Great to know that im just clamsy to install it. Now im only waiting for better redirections (im gone install it on my site now). I much apriciate you support on that hack. You did a realy great job making that Hack. I hope you gone still support it and add new features like:

- redirections
- personal settings in e107 (i like much more it better)
- supprot IPB 2.0

if im gone come with some thing new im gone write here. Realy great job with the integration :)