31
martyras
Re: One user login with a username
  • 2004/11/24 3:58

  • martyras

  • Just popping in

  • Posts: 37

  • Since: 2004/11/1


Quote:

irmtfan wrote:
huum
i nearlly sure this possible with check ip of first user login and no other way for it
am i right?
btw i think you want this for prevent sneak preview at your site or something like this


true.

Quote:

Mithrandir wrote:
include/checklogin.php around line 43:
//existing code
$myts =& MyTextsanitizer::getInstance();
$user =& $member_handler->loginUser(addslashes($myts->stripSlashesGPC($uname)), addslashes($myts->stripSlashesGPC($pass)));
if (
false != $user) {
    
//add this to check if user is already logged in
    
if ($user->isOnline()) {
        
redirect_header('index.php'3"User is already logged in");
    }
    
//rest of the existingcode


Note that the who's online block should be set visible for this to work properly.


Thanks a lot, I will try it and i'll post the result. Can you tell why the who's online block must be set to visible? Does it need to read something from it?



32
martyras
One user login with a username
  • 2004/11/23 18:28

  • martyras

  • Just popping in

  • Posts: 37

  • Since: 2004/11/1


Hi friends,

I would like to ask how I can make XOOPS grand access to only one username at a time? For example when user "userxxx" has logged in, an other user who is trying to login with the same username ("userxxx") won't get access and be notified that another user is already logged in.

Thank you.



33
martyras
Re: No title
  • 2004/11/13 10:44

  • martyras

  • Just popping in

  • Posts: 37

  • Since: 2004/11/1


Thank you, very quick responses as always in this community!



34
martyras
Add 'Real Name' in registration form
  • 2004/11/13 1:59

  • martyras

  • Just popping in

  • Posts: 37

  • Since: 2004/11/1


If someone can get me through this, I have tried many ways but it doesn't save it to db.

How can I add 'Real Name' entry in registration form (registerform.php)?

Thanx.



35
martyras
Re:News only for registered users
  • 2004/11/2 6:38

  • martyras

  • Just popping in

  • Posts: 37

  • Since: 2004/11/1


Thank you very much again. This community is by far the best I have seen in help & response. No one has ever helped me so much in php-nuke community



36
martyras
Re:News only for registered users
  • 2004/11/2 2:39

  • martyras

  • Just popping in

  • Posts: 37

  • Since: 2004/11/1


Thank you guys, the version 1.21 of news was just what i wanted.

Last thing i want to ask is how can i add more links to the main menu, eg a link to go straight to a specific news topic or how can i modify then news links appearing to main menu to show all the topics under the news in addition to submit/archive. For example:

Main Menu
---------

*Index
*News
-->Topic1
-->Topic2
-->Submit
-->Archive
*Contact
*FAQ

Thank you very much for your help.



37
martyras
News only for registered users
  • 2004/11/1 5:04

  • martyras

  • Just popping in

  • Posts: 37

  • Since: 2004/11/1


Hi all, I am new to the XOOPS (a friend wants me to set it for him - I've worked previously with phpnuke a lot in the past so I'm not a complete newbie )

I have question about the news module. How can I make a specific category of the news to be viewable only by registered members?

Thank you.




TopTop
« 1 2 3 (4)



Login

Who's Online

220 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 220


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits