-
Logging to e107 not working
I have few problems with using this Hack. Everything is installing without errors. When I go cross my site, there is now problem. But logging in doesn't work for e107.
It means, that when I try to log in I only log in to IPB - not to e107.
First this I saw is that I have to install this to CMS_Forum_Hack. When I install to other directory I found in few places, that there is path with hardcoded "CMS_Forum_Hack". So second time I installed to right folder (CMS_Forum_Hack) but nothing change. The same.
I was looking for any solition, but nothing. One thing comes to my mind - can you tell me if I change cookie name from default to my own it can be that? I cannot check it because simply I don't remember default coockie name (if can be found in Settings->Security & Protection - if can someone post default cookie here it will be helpfull to check it).
I am using IPB 2.1.6 and e107 0.7.5 on:
- Apache2,
- PHP5,
- MySQL 5.
Any idea what is wrong (if no cookie)? Any idea how to try tracking this error?
-
Re: Logging to e107 not working
Now I see, that it was cookie problem - cookie name is hardcoded to Hack.
So I see two things which should be changed in future:
- hardcoded "CMS_Forum_Hack" in few places
- hardcoded cookie name
I've founded also that after using hack there's appear double <form ... >
ie ...
<form method="post" action="http://www.mysite.com/download.php"></form>
<form method='post' action='http://www.mysite/forum/index.php?ac...;CODE=01'>
-
Re: Logging to e107 not working
The double form is on purpose as it is the least intrusive way of going about it. The class name is hard coded but the paths, etc, should not be (as far as I can remember).
The cookie name is actually NOT hard coded. The script pulls the e107 preferences from e107's mysql database and uses the 'cookie_name' preference from the database. I am not sure what gave you the idea that it is hardcoded. You can open up modules/cms/e107_0.7.5.php and look at the constructor function CMS_Forum_Hack_CMS() and the getPreferences() function.
-
Re: Logging to e107 not working
I don't remember when I found hardcoded "CMS_Forum_Hack" path, but try to install hack with other path and then search the files. AFAIR on this way I founded some hardcoded path.
I see, that cookie is at first hardcoded, but then the name is changed to proper - let's say it should be. But for me it didn't worked and I have to change it manually.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules