miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

Username in URL (link to profile page)

Author kuopassa
#1 | Posted: 26 Apr 2011 02:45 
I tried to search if this has been discussed already, but didn't find any relevant topics. Is it easily possible to create a system that makes links to profile pages contain user's nickname? At the moment they are by default like this:

I can change that with .htaccess to something like this:

I would like it to be like this:

This thing would be used in forum that is in English, but of course some special characters should be converted to be something between letters a-o.

Author Paul
Lead Developer
#2 | Posted: 26 Apr 2011 04:09 
There is no solution regarding this. Regarding links from messages to profiles, you may try to achieve it modifying parseMessage() function, but other than that, if a linked username appears somewhere else, it would require core modifications.

Personally, I don't see much sense to implement such links. Such links obviously don't add anything SEO-practical or usable, 'cause all profiles in miniBB by default should not be indexed. And the profile, basically, is not the most important thing in forum software ;)

Author kuopassa
#3 | Posted: 26 Apr 2011 18:17 
Thanks for info! :-) Profile page is certainly in a typical forum not important, but I'm trying to extend miniBB to be a part of website where users can have their profile page with biography etc.

Author Paul
Lead Developer
#4 | Posted: 27 Apr 2011 01:31 
There would be much simpler solution - you can catch 'action=userinfo' in bb_plugins.php and redirect it to the username-based URL, which will be formed on a rule in .htaccess to point to some other custom action, let's say 'action=userinfourl'. Then in bb_plugins.php a little snippet of code would catch this action and redirect to the native userinfo script, getting a User ID from the database.

Author Jerome78
#5 | Posted: 10 Jun 2011 00:09 
Yes Paul its working thank you so much...........

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Username in URL (link to profile page) Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB