I figured it out. Had to go betwen the pnUserLogIn and the redirect.
It works pretty well. The Admin has to define the target URL as an actual URL, because it's conceivable that the Admin would want to send the user to a specific item in a module rather than to the module itself, and I don't think there's an easy way to do it other wise. But it works.
--
Home Page | Find on Facebook | Follow on Twitter
- mercromina responded to »error when i try to upgrade to the last version of dizkus module (3.1)« 08:01 PM
- craigh responded to »TagIt 3.0 for Zikula« 03:58 PM
- localrags responded to »Remove contents of nuke_sc_anticracker from Database« 11:30 AM
- jmvaughn responded to »Shoutit for zikula 1.3?« 09:31 AM
- mdee responded to »Different page content under one template (tpl file) based on URL« 07:17 AM
- espaan responded to »Categories disappear when editing ...« 08. Feb
- eledril responded to »How decrease zikula cpu usage« 08. Feb
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
Best Way to do this? FirstVisit Start Page
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6840
-
- Rank: Helper
- Registered: Apr 08, 2002
- Last visit: Oct 21, 2009
- Posts: 614
Mark, Michael, what about the suggestion to put there a generic solution? Something like a hook; as this could be used for other things as well (sending admin-mail for example)
Jörg -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6840
I'm not clear on the hook thing, so maybe Mark can address that. Where would a hook for this come in to play?
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Helper
- Registered: Apr 08, 2002
- Last visit: Oct 21, 2009
- Posts: 614
My idea is as follows: We have several "user events": registration, logging in, logging out, maybe even more. A module could register to these events (just like the hook thing now), and when some of these events occur, the registered function is fired.
Makes sense? -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Jorg,
See my comments in this thread for my thoughts on some account management hooks as a method to 'bridge' third party apps but are equally relevant here.
-Mark
--
Visit My homepage and Zikula themes. -
- Rank: Helper
- Registered: Apr 08, 2002
- Last visit: Oct 21, 2009
- Posts: 614
Ah! Sometimes I should have a look in the forums, even if the main subject is of no interest to me :mrgreen:
May I ask how far you got right now?
Jörg -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Jorg,
Early planning stages - although the concept seems sound. The main issue currently comes down to time. I need to spend some time writing a bridge module to a third party application to prove that the theory translates into practice. I don't want to include hook calls in the code that I haven't proved deliver on thier aims. Even though this wouldn't impact of operability of the product itself it does put into a place requirements for a support mechanism on some code that doesn't necessarily function as required.
-Mark
--
Visit My homepage and Zikula themes. -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Coho,
Drop me an e-mail to markwest at postnuke dot com so I have a valid e-mail address. This is something i've been thinking on for about six months so the concepts are sound. If I do it right then there should be no impact on any third party at all. It will simply be an option that is available. I'd like to get these hook calls into PN .8 but as i've said elsewhere this is dependant on me having sufficient development time to 'port' an application as a test.
I believe this will work and work well but need more than that to fufill my own personal requirements for a solution.
-Mark
--
Visit My homepage and Zikula themes. -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 110
This discussion is a bit above me, but I think it may help with a problem I have. Please let me know if it will.
I have a couple of generic user accounts (one for students and one for parents) and I do not want them to do most of the functions in user.php (Add comments to their profile, change homepage, change password)
I have set the permissions so they can not access user.php via the My Account menu item. I have also added a hack so they can not access their profile thru pnPHPBB2.
It still defaults to user.php the first time they login on a new computer (I think this part is true .... (on a new computer").
Is this a result of a first visit to the portal? ... from a new computer?
What might I modify to prevent these 2 users (group name: ViewOnly) from accessing user.php?
thanks in advance -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 275
It is often a problem to get a third party module to recognize a user registered at the site. examples are pnTresmailer and at least some of the forum modules.
It would be convenient for some sites to have the first visit process register the user with one or more modules, as an option. -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6840
I could see how that'd be useful, but not very easy to do. It would require putting in code to check for all the modules that this is an issue for and running it. Though this, along with pnGroups & some other things I have in mind for pnGroups could tie together for a totally revamped user system. If I do get that ambitious, I'll do it like I did pnGroups where it doesn't change any existing data structures, but may add in fields.
--
Home Page | Find on Facebook | Follow on Twitter
- Moderated by:
- Support
