Is there a patch to solve the login issue of pnphpbb2 with zikula?
When I try to access to a topic as "unregistered" pnphpbb2 ask me for the password, this is goog, but when I write it, nothing happen! I'm redirected on the zikula login page always as an unregistered user :(
Someone solved or pathced this issued?
Have I to modify something in the "login.php" of the pnphpbb2 module?
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Login issue with PNphpBB2
-
- Rank: Softmore
- Registered: Oct 17, 2008
- Last visit: Oct 21, 2009
- Posts: 163
-
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
When you try to post or read a topic as unregistered?
Permissions may play a role here. Hvae you modified them for PNphpbb2? -
- Rank: Softmore
- Registered: Oct 17, 2008
- Last visit: Oct 21, 2009
- Posts: 163
I leaved the same permission rules that worked in postnuke, I don't want unregistered user can read/write the forum.
But the problem is another, when I try to login with the pnphpbb2 "login mask" it doesn't work.
I can login only with the zikula login module
Nobody have this issue?
Everybody can login in zikula with the pnphpbb2 login page? -
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
To be honest, I don't think I've ever tried to login through the module. -
- Rank: Team Member
- Registered: May 03, 2004
- Last visit: May 31, 2010
- Posts: 511
Known bug, thanks to reminding me to go back to work this weekend.
Greetings,
Chris
--
an operating system must operate
development is life
my repo -
- Rank: Freshman
- Registered: Jan 12, 2006
- Last visit: Nov 11, 2009
- Posts: 59
Here's how I fixed this for myself...
PNphpBB2/login.php
Edit lines 261-267
Code
// Begin PNphpBB2 Module
$s_hidden_fields .= '<input type="hidden" name="url" value="' . $module . '">';
$s_hidden_fields = '<input type="hidden" name="authid" value="' . pnSecGenAuthKey('Users') . '">';
$s_hidden_fields .= '<input type="hidden" name="module" value="Users">';
$s_hidden_fields .= '<input type="hidden" name="op" value="login">';
// End PNphpBB2 Module
PNphpBB2/templates/PNTheme/login_body.tpl
Edit line 1
Code
<form action="index.php?module=Users&func=login" method="post"> -
- Rank: Team Member
- Registered: May 03, 2004
- Last visit: May 31, 2010
- Posts: 511
Patches are always most welcome - thanks! Bug closed.
Greetings,
Chris
edited by: slam, Jan 09, 2009 - 11:25 AM
--
an operating system must operate
development is life
my repo -
- Rank: Softmore
- Registered: Oct 17, 2008
- Last visit: Oct 21, 2009
- Posts: 163
Great job, but the ticket is far to be closed.
With this patch the pnphpbb2 module makes the login, but it redirects in the zikula home page :(
Ex:
In postnuke: click on the "registered-user-only" forum => pnphpbb2 module ask for the password => I see the forum I clicked
In zikula (with this patch): click on the "registered-user-only" forum => pnphpbb2 module ask for the password => I see the zikula hom page
Have I to open a new ticket o it's the same? -
- Rank: Freshman
- Registered: Jan 12, 2006
- Last visit: Nov 11, 2009
- Posts: 59
Code
$s_hidden_fields .= '<input type="hidden" name="url" value="' . $module . '">';
This "should" redirect you back to the current module, that being PNphpBB2...
Could you look at the HTML source, and see what it says? If it shows the value blank (value="") then the module variable isn't being set. If it shows PNphpBB2, then there may be a browser issue with redirection.
Also, this didn't include index_body.tpl as a fixed login. I couldn't directly add the PHP for the authid, so I added it to the defined list in includes/page_header.php
Line 690
Code
'USERS_MODULE_AUTHID' => pnSecGenAuthKey('Users'),
and then of course
templates/PNTheme/index_body.tpl
Lines 110-124
Code
<form action="index.php?module=Users&func=login" method="post" >
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat">{L_LOGIN_LOGOUT}</td>
</tr>
<tr>
<td class="row1 gensmall" align="center">{L_USERNAME}:
<input type="text" name="uname" size="10" maxlength="25">
{L_PASSWORD}:
<input type="password" name="pass" size="10" maxlength="32">
<input type="hidden" name="url" value="index.php?name={T_MODNAME}">
<input type="hidden" name="module" value="Users">
<input type="hidden" name="authid" value="{USERS_MODULE_AUTHID}">
<input type="hidden" name="op" value="login">
<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
edited by: billthecat, Jan 10, 2009 - 12:46 PM -
- Rank: Softmore
- Registered: Oct 17, 2008
- Last visit: Oct 21, 2009
- Posts: 163
As unregistered I clicked on a protected forum, logina page appears.
In firefox I select "view source" and in the source code I read:
input type="hidden" name="URL" value="/new/index.php?name=PNphpBB2&file=login&redirect=viewforum&f=14&start=0" /
When I click on login, the login works, but I see the home page :(
The right redirect URL (after logged in) should be:
http://www.xxxxx.xx/new/index.php?name=PNphpBB2&file=viewforum&f=14
What's wrong?
Have I to modify the index.php or not? I didnt' understand
edited by: lordevol, Jan 11, 2009 - 06:43 AM -
- Rank: Softmore
- Registered: Mar 10, 2005
- Last visit: Mar 18, 2010
- Posts: 288
I also notised , that only admin can post in phpbb2 forum not users.
do i need to setup special permissions for pnphpbb2 module for users? how?
or this is a bug and i need manually add users tom pnphpbb2 users database?
than in advance -
- Rank: Softmore
- Registered: Mar 10, 2005
- Last visit: Mar 18, 2010
- Posts: 288
how can i download dizkus SVN snapshot? -
- Rank: Freshman
- Registered: Jan 12, 2006
- Last visit: Nov 11, 2009
- Posts: 59
Lordeval, I think this has to do with your browser...
The code you provided seems to come out of 'viewforum.php' at line 128, where the login is checked for permissions. Then at line 176 there's a meta refresh after permission is verified.
I tried pasting the meta info here, but it seems be blocked by this forum... -
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
-
- Rank: Freshman
- Registered: Jan 12, 2006
- Last visit: Nov 11, 2009
- Posts: 59
I did, and it removed part of it...here's what it shows for me, but look at 176 and you'll see a lot more:
Code
'META' => '')
- Moderated by:
- Support
