Author |
Message |
mrix
Client

Joined: Dec 04, 2004
Posts: 757
|
Posted:
Fri Oct 31, 2008 6:56 am |
|
Hi all, I run a gaming community and the gaming tag use is |2es-
So my username on the forum is |2es-mrix etc.
Today I have had a new member join so I decided to add the tag to his name on the forum, but when I edited the member to add the tag it shows error invalid username etc
Is there anywhere I can change permssions to add this tag again.
cheers all
mrix |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Fri Oct 31, 2008 8:55 am |
|
It doesn't like the | character. I'll have to check what you can modify, unless you want to use I instead. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
fkelly
Former Moderator in Good Standing

Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Fri Oct 31, 2008 9:37 am |
|
In the RNYA module in the includes directory there is a program called functions.php. It contains a function named ya_usercheck. It does this:
Code: if ((!$username) || ($username == '') || (ereg('[^a-zA-Z0-9_-]', $username))) $stop = '<center>' . _ERRORINVNICK . '</center><br />';
|
You would have to change the ereg to allow the | character I believe. I'm not sure if there might be other similar checks elsewhere in the system. |
|
|
|
 |
mrix

|
Posted:
Fri Oct 31, 2008 11:15 am |
|
Hi its important that I try and use the | if possible.
thanks for the ideas
mrix |
|
|
|
 |
mrix

|
Posted:
Sat Nov 01, 2008 6:01 pm |
|
Hi there you say...
Quote: | You would have to change the ereg to allow the | character I believe. I'm not sure if there might be other similar checks elsewhere in the system. |
I am not sure what you mean could you please post the bit of code with the | added please..
thanks for your time
cheers
mrix |
|
|
|
 |
Palbin
Site Admin

Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Sat Nov 01, 2008 7:06 pm |
|
I am not really sure but you could try this.
ereg('\|[^a-zA-Z0-9_-]', $username) |
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
 |
fkelly

|
Posted:
Sat Nov 01, 2008 8:32 pm |
|
Thanks Palbin. The problem with making changes like this, unless you are really into Regular expressions for instance, is that you need a test environment and you need to "regression test" the changes to make sure they don't cause unintended side effects. So save the original file and try Palbin's suggested change under a number of circumstances and go with it if you are confident. |
|
|
|
 |
mrix

|
Posted:
Sun Nov 02, 2008 6:46 pm |
|
Sorry what do you mean bythe RNYA module in the includes directory ?
I dont see a RNYA Module? could you give me a rout to it.
cheers
mrix |
|
|
|
 |
Palbin

|
Posted:
Sun Nov 02, 2008 6:55 pm |
|
He is refering to Your_Account. |
|
|
|
 |
mrix

|
Posted:
Sun Nov 02, 2008 7:07 pm |
|
Thanks for that, I have checked the funtions in that folder and have changed the code and I can actually use the tag again
I still have one problem though and thats when I click on the members with the tag used profile to show all their posts it doesnt work
Other general members work fine if I want to see all their posts.
any idea`s on this very last issue
thanks so much for this help
mrix |
|
|
|
 |
Palbin

|
Posted:
Sun Nov 02, 2008 7:30 pm |
|
if you turn off shortlinks does it work then? |
|
|
|
 |
mrix

|
Posted:
Mon Nov 03, 2008 6:15 am |
|
Hi there, yes after switching off the short links the members with the tags do show their latest posts and all seems to work
I also get this type of url
/fsearch-author-.html%7C2es-ElGordo
so i guessed the shotlinks are messed up some how
cheers
mrix |
|
|
|
 |
kguske

|
Posted:
Tue Nov 04, 2008 1:40 am |
|
I wouldn't say messed up - it wasn't intended to support those characters...
You might ask montego for assistance, though. |
|
|
|
 |
mrix

|
Posted:
Tue Nov 04, 2008 3:55 am |
|
No I totally understand, I am saying just saying basically messed up for what I require etc.
cheers
mrix |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Nov 04, 2008 6:13 pm |
|
Why not add whatever characters you need to the patterns in the corresponding GT-*.php file and .htaccess rewrite rules? |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
mrix

|
Posted:
Tue Nov 04, 2008 6:14 pm |
|
Hi there , not sure how I would go about this
could you give me an idea please.
thanks for your time
mrix |
|
|
|
 |
|