1
mjoel
online/offline button cbb 3.08
  • 2008/1/10 17:43

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


how can i use just text instead of image for the online/offline button in cbb 3.08?

i can't changed it in template newbb_thread.html

<div class="comUserStatus"><{$topic_post.poster.status}></div>


so which file do i have to edit


thank you

2
mboyden
Re: online/offline button cbb 3.08
  • 2008/1/10 18:30

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


I'm assuming $topic_post.poster.status does an image. So, assuming that's the case, then just test for it. For instance:
le="color: #000000"><?php <{if $topic_post.poster.status == '<img src="online.gif">'}>On-Line<{else}>Off-Line<{/if}>
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

3
mjoel
Re: online/offline button cbb 3.08
  • 2008/1/10 19:10

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


not working

the image is from an imageset

i tried this with same result not working

le="color: #000000"><?php <{if $topic_post.poster.status == '<img src="images/imagesets/xoops-magazine/english/online-a.png">'}>On-Line<{else}>Off-Line<{/if}>

4
mjoel
Re: online/offline button cbb 3.08
  • 2008/1/10 19:11

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


- double post -

5
Will_H
Re: online/offline button cbb 3.08
  • 2008/1/10 21:40

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


The simplest way would be to use faux text, or an image that looks like its just text. Match your bg colors and no one will know the difference.