MyBB Community Forums

Full Version: How do you change...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do you change/ add more things to the right hand side of your posts?

[Image: j9rarp.png]


thanks, help is extremely appreciated
The postbit_author_user template.
Admin CP> Templates and Styles>Templates>Expand the theme you want to add it to >Post bit templates>Postbit and then postbit_classic too if you want it in the old postbit style as well.

Edit: To slow and Matts works better anyway Toungue.
Can anyone tell me why this doesn't work?

{$lang->postbit_posts} {$post['postnum']}<br />
	{$lang->postbit_joined} {$post['userregdate']}
	{$post['replink']}{$post['warninglevel']}</br>
        {$post['Location']}</br>
        {$post['Habbo_UK_Name']}</br>
        {$post['Habbo_US_Name']}</br>
        {$post['Habbo_CA_Name']}

the location, habbo uk name etc are all custom profile fields. How come I cant add them Sad
You use the ID of the field, not the name of it Smile

{$post['fidX']}

Change the X to the ID.
{$lang->postbit_posts} {$post['postnum']}<br />
	{$lang->postbit_joined} {$post['userregdate']}
	{$post['replink']}{$post['warninglevel']}</br>
        {$lang->postbit_Location} {$post['fid1']}</br>
        {$lang->postbit_Sex} {$post['fid3']}</br>
        {$lang->postbit_Habbo_UK_Name} {$post['fid4']}</br>
        {$lang->postbit_Habbo_US_Name} {$post['fid5']}</br>
        {$lang->postbit_Habbo_CA_Name} {$post['fid6']}

Currently, that's what it's like, I tried adding the {$lang->} part but it's not looking the way i want it to;
[Image: kbezus.png]

You've been great help thus far Smile This is all very confusing to me, hehe
OK, lang variables will only work if there's something in a language file to tell the page what text to load... with what you've done, it's a variable with no meaning. You can just type the text you need to show and it'll be fine, so replace {$lang->postbit_Location with just Location, that sort of thing. You may also need to add a double <br /> after {$post['warninglevel']} if that isn't going onto a new line properly.