Как сделать показать/скрыть пользователя по центру?
Попробуйте так:
<style type="text/css">
.post-author ul li {text-align: center; padding: 0px; border: 0px solid transparent; margin: 0px; }
.post-author ul li.pa-reg {border-bottom: none; margin-bottom: -1px;}
.post-author ul li.pa-posts, .post-author ul li.pa-respect { border-top: none; border-bottom: none; margin-top: -1px; margin-bottom: -1px;}
.post-author ul li.pa-positive {margin-top: -1px; border-top: none; //border-bottom: none;}
.post-author ul li.pa-online, .post-author ul li.pa-author {border: -1px solid transparent; padding: -1px; background: transparent; }
.post-author ul li.pa-fld1 {border: -1px solid transparent; padding: -1px;background: transparent; }
</style>
<script>
function HideInfo(id,but){
if(but.value=="Показать профиль"){
but.value = "Скрыть профиль";document.getElementById(id).style.display = ""}
else{
but.value = "Показать профиль";document.getElementById(id).style.display = "none"}
return false}
d = document.getElementsByTagName("div")
for (i=0;d[i]; i++){
if (d[i].className.indexOf("post-author")!=-1){t = d[i].innerHTML
if((j = t.toLowerCase().indexOf("<li class=pa-from>"))!=-1 || (j = t.toLowerCase().indexOf("<li class=\"pa-from\">"))!=-1 || (j = t.toLowerCase().indexOf("<li class=pa-reg>"))!=-1 || (j = t.toLowerCase().indexOf("<li class=\"pa-reg\">"))!=-1)
d[i].innerHTML = t.substring(0,j)+"<center><input type='Submit' onClick=\"return HideInfo('info"+i+"',this)\" value='Показать профиль'></center><br><div id='info"+i+"' style='display:none'>"+t.substring(j,t.length)+"</div>"}}
</script>