Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues
Author Message
mrix
Client



Joined: Dec 04, 2004
Posts: 757

PostPosted: Fri Oct 31, 2008 6:56 am Reply with quote

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 Confused

Is there anywhere I can change permssions to add this tag again.

cheers all
mrix
 
View user's profile Send private message Visit poster's website
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Fri Oct 31, 2008 8:55 am Reply with quote

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...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Fri Oct 31, 2008 9:37 am Reply with quote

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.
 
View user's profile Send private message Visit poster's website
mrix







PostPosted: Fri Oct 31, 2008 11:15 am Reply with quote

Hi its important that I try and use the | if possible.
thanks for the ideas
mrix
 
mrix







PostPosted: Sat Nov 01, 2008 6:01 pm Reply with quote

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

PostPosted: Sat Nov 01, 2008 7:06 pm Reply with quote

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. 
View user's profile Send private message
fkelly







PostPosted: Sat Nov 01, 2008 8:32 pm Reply with quote

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







PostPosted: Sun Nov 02, 2008 6:46 pm Reply with quote

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







PostPosted: Sun Nov 02, 2008 6:55 pm Reply with quote

He is refering to Your_Account.
 
mrix







PostPosted: Sun Nov 02, 2008 7:07 pm Reply with quote

Thanks for that, I have checked the funtions in that folder and have changed the code and I can actually use the tag again Very Happy
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 Confused Sad
Other general members work fine if I want to see all their posts.
any idea`s on this very last issue Question
thanks so much for this help
mrix
 
Palbin







PostPosted: Sun Nov 02, 2008 7:30 pm Reply with quote

if you turn off shortlinks does it work then?
 
mrix







PostPosted: Mon Nov 03, 2008 6:15 am Reply with quote

Hi there, yes after switching off the short links the members with the tags do show their latest posts and all seems to work Confused
I also get this type of url

/fsearch-author-.html%7C2es-ElGordo

so i guessed the shotlinks are messed up some how Question

cheers
mrix
 
kguske







PostPosted: Tue Nov 04, 2008 1:40 am Reply with quote

I wouldn't say messed up - it wasn't intended to support those characters...

You might ask montego for assistance, though.
 
mrix







PostPosted: Tue Nov 04, 2008 3:55 am Reply with quote

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

PostPosted: Tue Nov 04, 2008 6:13 pm Reply with quote

Why not add whatever characters you need to the patterns in the corresponding GT-*.php file and .htaccess rewrite rules?

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
mrix







PostPosted: Tue Nov 04, 2008 6:14 pm Reply with quote

Hi there , not sure how I would go about this Confused
could you give me an idea please.
thanks for your time
mrix
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©