Nucleus Support Forum Index

Find on the forum:
any terms  all terms  Advanced Search

RSS 2.0
Browse posts: Unanswered | Mark all read

« »
Loading Nucleus FAQ ticker...
Post new topic This topic is locked: you cannot edit posts or make replies.
Author Message
MrT
Nucleus Newbie


Joined: 02 Mar 2005
Posts: 9

Post Posted: Fri Mar 25, 2005 12:26 am   Post subject:
Reply with quote

I ran into a small problem when a user had "_" in his username. Got a pretty nasty globalfunctions error on my Nucleus pages. I think the problem is that Nucleus wants alphanumeric characters. I'm not a php programer so this is just a pathetic attempt from a novice, but this is what I did to fix the issue:

NP_phpbb.php
Quote:

// strip extra chars in username so it will fit in database
$userdata['username'] = substr($userdata['username'],0,16);
// if username is nonalphanumeric strip funny chars
if (!ctype_alnum($userdata['username'])) {
$remove = array("~","`","!","@","#","$","%","^","&","*","_","-","=","+","[","]","|",".",",","?");
$userdata['username'] = str_replace($remove, "", $userdata['username']);
}

//At this point, we've determined who that the user is who he/she says he/she is.
//Now we need to load his/her nucleus user record.
if($member->readFromName($userdata['username'])){
ACTIONLOG::add(DEBUG, "{$userdata['username']} externally authenticated through NP_phpBB");


If anyone has a better way to write this or a more complete array that would be great. Wink


***EDIT***
I found another error caused by the different sizes of phpbb and nucleus member fields. Phpbb uses 25 and nucleus uses 16 so I stripped the last part of the users username. Now she works.

_________________
aka MrTorrance

Back to top

View user's profile Send private message
proteinos
Nucleus Newbie


Joined: 10 Feb 2005
Posts: 18
Location: Shoreditch-on-sea

Post Posted: Thu Apr 28, 2005 11:30 am   Post subject:
Reply with quote

ah mrT you are my saviour! been trying to track down this problem for two weeks now! mucho respecto Wink

however, i'm still getting the same problem with members who have a single letter username. any ideas?

Back to top

View user's profile Send private message Visit poster's website
RomovNet
Nucleus Newbie


Joined: 03 May 2005
Posts: 2

Post Posted: Tue May 03, 2005 6:49 pm   Post subject:
Reply with quote

This plugin caused far too many problems for me.

By stripping symbols you allow malicious users to create nickname collisions.

My forum is located at domain forum.domain.net while blog is located at domain.net/blog.
After setting cookies to function like domain.net i've started to experience problems with phpBB session management (like unread topics).

Also I've experienced huge problems with localized nicks and long nicks.

I've stopped using it and it took some time to restore all the settings back to normal (profiles, comment links, etc).



What I would really like to see is some feature to use phpBB for comments - Add Comment will show exact link to forum's post (with a content of a blog item) and number of comments.

Back to top

View user's profile Send private message
Trent
Nucleus Guru
Nucleus Guru


Joined: 04 Oct 2002
Posts: 1555
Location: Alberta, Canada

Post Posted: Tue May 03, 2005 9:27 pm   Post subject:
Reply with quote

Maybe then just convert phpBB to punBB and use the NP_punBB plugin that does just that. That is what I did with my forum because I quit using the gallery software integration that required phpBB.

Trent

_________________
Life Through The Eyes Of Trent Adams!

Back to top

View user's profile Send private message Visit poster's website ICQ Number
RomovNet
Nucleus Newbie


Joined: 03 May 2005
Posts: 2

Post Posted: Wed May 04, 2005 11:19 pm   Post subject:
Reply with quote

Forum has 4 year history. It has more than 60k posts. It would be a stupid idea to convert hightly optimized forum to punBB just because of Nucleus that has only 30 entries.

Back to top

View user's profile Send private message
Hoobiee
Nucleus Newbie


Joined: 08 May 2005
Posts: 12

Post Posted: Sun May 08, 2005 4:38 pm   Post subject:
Reply with quote

Hi there, can someone give me a hand installing this?

My AIM is : LeFishy1
My MSN is : hob_is_skill@hotmail.com
My Gmail is : mat.hop@gmail.com

This would be a great help as I am just setting up a page. I am trying to get this to work with "NP_NewMemberBlog" So that each member has a space to write their blog.

Back to top

View user's profile Send private message
ikeizer
Nucleus Guru
Nucleus Guru


Joined: 25 Jan 2002
Posts: 464
Location: Maastricht

Post Posted: Tue May 17, 2005 6:03 pm   Post subject:
Reply with quote

Continued in:
http://forum.nucleuscms.org/viewtopic.php?t=7101

_________________
Challenge Your Destiny - http://www.adrenalinsports.nl

Back to top

View user's profile Send private message Visit poster's website MSN Messenger
Post new topic This topic is locked: you cannot edit posts or make replies.
Display posts from previous:   

Goto page Previous  1, 2, 3, 4, 5

Page 5 of 5

All times are GMT + 1 Hour

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group