PDA

View Full Version : How to show last post username


helenblog
02-22-2015, 12:31 AM
Hello

I get this var {vb:raw lastpostinfo.lastposter} in forumhome_lastpostby

and I want to show this last post username in forumhome_forumbit_level2_post but it didn't work

what are any ways to show last post username on forum home?

Dr.CustUmz
02-22-2015, 08:43 AM
I just went through this with vB3, I'm not to familiar with vB4 but I'm pretty sure it would require a plugin.

a workaround for this though could be to wrap {vb:raw lastpostinfo.lastposter} in a div and position it where ever you like which would make it appear out of the lastpostby template

an example (not recommending this exact code, just an idea)

<style>
.lst_pstr {
position: relative;
margin-top: 130px;
margin-right: 54px;
}
</style>
<div class="lst_pstr">{vb:raw lastpostinfo.lastposter}</div>

helenblog
02-22-2015, 01:59 PM
I just went through this with vB3, I'm not to familiar with vB4 but I'm pretty sure it would require a plugin.

a workaround for this though could be to wrap {vb:raw lastpostinfo.lastposter} in a div and position it where ever you like which would make it appear out of the lastpostby template

an example (not recommending this exact code, just an idea)

<style>
.lst_pstr {
position: relative;
margin-top: 130px;
margin-right: 54px;
}
</style>
<div class="lst_pstr">{vb:raw lastpostinfo.lastposter}</div>
Unfortunity, it didn't work on the forum when I put it on forumhome_forumbit_level2_post template

I think it is not necessary to have a plugin, only to show last poster (username) on forum home or somewhere.

Thanks CustUmz but...

Perhaps, I need other ideas
.

Dr.CustUmz
02-22-2015, 07:14 PM
that code would go in the lastpostby template, and you would have to edit the position to suit your needs