techman41973 Posted July 4, 2013 Share Posted July 4, 2013 I am hosting a forum running PHPBB software (written in PHP). I added a 3rd party modifiction to my forum, that allows the user to add a link to their facebook page in their profile. There is one line of code that checks the pattern of what the user enters in this text field, and displays an error if what the user enters doesn't meet the required pattern or format. I'm been frustrated trying to understand this line of code and the specific pattern it's testing for. I can't find any PHP reference page to help me intrerpret the pattern it's testing for and also help me change it to my preferred pattern. I'd like to modify the above line of code to reject any entry that doesn't begin with http://www.facebook.com/ I would greatly appreciate some help with this. Quote Link to comment Share on other sites More sharing options...
cpd Posted July 4, 2013 Share Posted July 4, 2013 You've not posted any code. Quote Link to comment Share on other sites More sharing options...
techman41973 Posted July 6, 2013 Author Share Posted July 6, 2013 (edited) Sorry, not sure why it didn't get posted. [/ic] Edited July 6, 2013 by techman41973 Quote Link to comment Share on other sites More sharing options...
cpd Posted July 6, 2013 Share Posted July 6, 2013 You've not posted any code. Quote Link to comment Share on other sites More sharing options...
boompa Posted July 6, 2013 Share Posted July 6, 2013 You may need to attach it as a file, because we're definitely not seeing anything here. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.