miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /  
 

Username in URL (link to profile page)

 
Author kuopassa
Partaker
#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:

http://www.myforum.com/index.php?action=userinfo&user=1

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

http://www.myforum.com/member-1/

I would like it to be like this:

http://www.myforum.com/mynickname/

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
Partaker
#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
Partaker
#5 | Posted: 10 Jun 2011 00:09 
hi..!
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)
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑