2010-10-12, 06:02 AM
2010-10-12, 06:06 AM
Hello,
I would recommend you use the custom profile fields feature of MyBB to add one for location and make it required. You can remove the old location by editing a few templates
I would recommend you use the custom profile fields feature of MyBB to add one for location and make it required. You can remove the old location by editing a few templates
2010-10-12, 06:25 AM
(2010-10-12, 06:06 AM)Conor Calby Wrote: [ -> ]Hello,
I would recommend you use the custom profile fields feature of MyBB to add one for location and make it required. You can remove the old location by editing a few templates
but how do i also disable the join date?
2010-10-12, 06:50 AM
ACP >> Templates & Style >> Templates >> *yourtheme* >> Post Bit Templates >> postbit_author_user
Find and delete:
This tutorial should help with adding the location - http://community.mybb.com/thread-41233.html
Find and delete:
{$lang->postbit_joined} {$post['userregdate']}
This tutorial should help with adding the location - http://community.mybb.com/thread-41233.html
2010-10-12, 03:08 PM
Worked perfectly, but do you know how I can only display "location" if the user actually typed a location? if they didn't, location shouldn't be displayed.
Right now it shows "Location:" for people who didn't type their location.
Right now it shows "Location:" for people who didn't type their location.
2010-10-12, 04:21 PM
(2010-10-12, 03:08 PM)wigiman Wrote: [ -> ]Worked perfectly, but do you know how I can only display "location" if the user actually typed a location? if they didn't, location shouldn't be displayed.
Right now it shows "Location:" for people who didn't type their location.
You'd need a plugin for that, either one that does this for location specifically or you could use Yumi's template conditionals plugin - http://mybbhacks.zingaburga.com/showthread.php?tid=464
2010-10-12, 11:33 PM
(2010-10-12, 04:21 PM)AJS Wrote: [ -> ](2010-10-12, 03:08 PM)wigiman Wrote: [ -> ]Worked perfectly, but do you know how I can only display "location" if the user actually typed a location? if they didn't, location shouldn't be displayed.
Right now it shows "Location:" for people who didn't type their location.
You'd need a plugin for that, either one that does this for location specifically or you could use Yumi's template conditionals plugin - http://mybbhacks.zingaburga.com/showthread.php?tid=464
Ok, plugin installed, now since I am clueless in php, what would be the right phrasing of the condition to show the location only if the user typed a location in the usercp?
Also, if the user puts a long location name in the location, it will break the layout of the forum. Any way to break lines after, let's say, 6 characters?
2010-10-18, 04:20 AM
Any ideas?
2010-11-18, 07:18 AM
Ok, so instead of breaking the line after a set amount of characters for location, I simply limited the character length so the layout won't break. Now all I need is to know how to have location show up only if the user filled that field out. Any insight would be greatly appreciated.