The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Online icone

View previous topic View next topic Go down

Online icone

Post by Agent P. on November 3rd 2011, 7:25 pm

How can i add an button when you see in a post if the person is offline/online (position)?
It's looks like this:

Agent P.
New Member

Posts : 2
Reputation : 1
Language : Slovenia.

Back to top Go down

Re: Online icone

Post by DarkBlade on November 3rd 2011, 7:33 pm

Every forum has an online button, but you have phpbb2 so it wont naturally go in the corner, youll need a code for that.

DarkBlade
Forumember

Posts : 206
Reputation : 14
Language : English

Back to top Go down

Re: Online icone

Post by Agent P. on November 3rd 2011, 7:39 pm

Can you send me this code ?

Agent P.
New Member

Posts : 2
Reputation : 1
Language : Slovenia.

Back to top Go down

Re: Online icone

Post by Guest on November 4th 2011, 10:14 pm

viewtopic_body - delete:
Code:
{postrow.displayed.ONLINE_IMG}
and replace
Code:
{postrow.displayed.POSTER_AVATAR}
with
Code:
<div class="ava">{postrow.displayed.POSTER_AVATAR}</div><span class="prfav">{postrow.displayed.ONLINE_IMG}</span>
In CSS Stylesheet paste this:
Code:
.ava {
text-align: center;
}
.prfav {
display:block;
position: relative;
width: 87px;
height: 13px;
background: transparent url("http://i27.servimg.com/u/f27/14/67/67/89/kg13-515.png") no-repeat;
margin: -7px auto 0;
}
.prfav img {
display:block;
position: relative;
}

Proprietes:
width: 87px - width of the image (change 87)
height: 13px - height of the image (change 13)

In line - background: transparent url("https://i27.servimg.com/u/f27/14/67/67/89/kg13-515.png") replace https://i27.servimg.com/u/f27/14/67/67/89/kg13-515.png with your image.

In line - margin: -7px auto 0 replace -7 write the correct numbers.

More details in russian - http://help.forum2x2.ru/t14890-topic

Guest
Guest


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum