MyBB Community Forums

Full Version: location in postbit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

if any one give the plugin for it

i wanan see users location in post bit

like join date and group

thanks
Admin CP --> Templates --> Modify / Delete --> *Choose your template set and click 'Expand'* --> Post Bit Templates --> postbit_author_user
Above:
</span>
Add:
Location: {$post['fid1']}
thanks man

great wokring
Could you show me where exactly should I add codes, please.
Code:
Quote:</span>


Code:
Location: {$post['fid1']}


<strong><span class="largetext">{$post['profilelink']}</span></strong><br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
{$post['groupimage']}<br />
{$post['useravatar']}<br />
<div style="text-align: left;">{$lang->postbit_posts} {$post['postnum']}<br />
{$lang->postbit_group} {$usergroup['title']}<br />
{$lang->postbit_joined} {$post['userregdate']}<br />
{$lang->postbit_status} {$post['onlinestatus']}{$post['replink']}<br />
</span></div>
As I stated, you add:
Location: {$post['fid1']}
Above:
</span>
So in the end it would look something like this:
<strong><span class="largetext">{$post['profilelink']}</span></strong><br />
<span class="smalltext">
	{$post['usertitle']}<br />
	{$post['userstars']}
	{$post['groupimage']}<br />
	{$post['useravatar']}<br />
	{$lang->postbit_posts} {$post['postnum']}<br />
	{$lang->postbit_group} {$usergroup['title']}<br />
	{$lang->postbit_joined} {$post['userregdate']}<br />
	{$lang->postbit_status} {$post['onlinestatus']}{$post['replink']}<br />
	Location: {$post['fid1']}
</span>

Note that the indents are not necessary for it to work correctly. Smile
Ok thanks! I didn't know exactly as I'm doing this for the first time, so thanks again.

Here is another thing:

Quote:Posts: 5
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Location: Prince Edward County, Ontario, Canada

This is the location of one of my members. Now this is a pretty long description. Is it possible to have let's say two words in one row and another two in the second bellow. Like this:

Quote:Posts: 5
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Location: Prince Edward County
Ontario, Canada

The problem now is that the author box expands...

Look here: http://www.kia-world.net/forum/showthread.php?tid=302
That does pose a bit of a problem. Unfortunately (at least to my knowledge) there is nothing that can be done about that.

If you wish to remove other things like group etc (as mentioned in the thread link you provided) you may just remove the line in the template that contains the words that would likely go with it.
Example: To remove Group: xxxx
Remove:
    {$lang->postbit_group} {$usergroup['title']}<br />

Hope that helps..
Wouldn't it be easier if you just separated the city from the state and country...? It would just have to be two boxes and put the break in between the two. And you could tell users that use short places just to use one box.

Location: Prince Edward County
Ontario, Canada

^^So, it will look like that.^^
Ah, I never thought of that. That would work perfectly. Big Grin

I was thinking how to keep it all in one field, but that wasn't possible.

Great thinking, ahero4heor.
CSS wordwrap....contain the location in a span with display:block, a width property and word-wrap:break-word, or something to that effect. I'll give the exact code when I get home from school.
Pages: 1 2