Topic: [mod] online/offline img

http://i44.tinypic.com/s0xziv.png

--------
// 1 //
--------
upload to your style directory
http://i42.tinypic.com/1ifrwl.png online.png
http://i41.tinypic.com/r1j0c4.png offline.png

--------
// 2 //
--------
open anythingstyle_cs.css

find:

.brd .online .userstatus span

replace with:

.brd .online .userstatus span {
    border:0;
    background-image:url(online.png);
    background-repeat:no-repeat;
    background-position:right;
    width:110px;
    height:18px;
    margin-left:-71px; /* adjust this if the online text still showing up */
    }
.brd .offline {
    border:0;
/* start - remove this line if the offline img doesnt show
    background:url(offline.png);
 end -  remove this line */
    background-repeat: no-repeat;
    background-position:right;
    width:118px;
    height:18px;
    margin-left:-70px; /* adjust this if the offline text still showing up */
}

--------
// 3 //
--------

open viewtopic.php

find: (line 345)

                $forum_page['author_ident']['status'] = '<li class="userstatus"><span 
class="offline">'.$lang_topic['Offline'].'</span></li>';

replace with:

                $forum_page['author_ident']['status'] = '<li class="userstatus"><div class="offline" style="background:url(offline.png); background-repeat:no-repeat; background-position:right;"><span class="offline">'.$lang_topic['Offline'].'</div></span></li>';

save, close. end

Re: [mod] online/offline img

http://keydogbb.info/img/demo-001.jpg  http://keydogbb.info/img/demo-002.jpg

little trick in the png - put more space on the left - that way it's easier to align.....


thx for that . good thing to know how to do now!

Re: [mod] online/offline img

Or if you want to see a list of "online avatars" to be shown at the top of the forum, see it in action here:
http://www.eroyton.co.uk/forum/

Obviously if noe-one is online you won't see the avatars but there is often 2 or 3 people online during the day. Garciat designed that mod for me (genius!)

4 (edited by KeyDog 2009-01-16 13:36)

Re: [mod] online/offline img

@esupergood - is that an extension or mod?
thx

@milkychild: added a version of your instructions slightly altered by me to styles directory - if you would like to make yours as a "downloadable" version - please do so
or let me know what you think of the way i've done it.
I'm  basically trying to speak to people who are new to punbb & have downloaded latest version and want most simple way to add something - even though nothing with mods is ever going to be really simple... i guess...

Re: [mod] online/offline img

fine for me,keydog, thats absolutely cool.

Re: [mod] online/offline img

Thanks for the mod. I like it!