News:

Wondering if this will always be free?  See why free is better.

Main Menu

Board Viewers

Started by Yağız..., March 12, 2006, 05:42:17 PM

Previous topic - Next topic

MATTEK

SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Yağız...

Quote from: DjScrappy on May 13, 2010, 03:12:33 PM
Hello And An Awsome Mod, One Question i have is how can i make This    (0 member, 1 guest)  To Show All The Time Without only showing when guest or members go to that board...... Just Want it to show on my main index page all the time........Thanx MaddSmokerz
You want to show when there is no guest too?

DjScrappy

No I Want It To Show This All The Time (0 member, 0 guest) And When A member or Guest Goes In It Can Change To This (0 member, 1 guest) Like it Does Already Very Good Mod Works Very Well on Mt Site Thanks!!

Yağız...

Quote from: DjScrappy on May 16, 2010, 02:44:57 PM
No I Want It To Show This All The Time (0 member, 0 guest) And When A member or Guest Goes In It Can Change To This (0 member, 1 guest) Like it Does Already Very Good Mod Works Very Well on Mt Site Thanks!!
Ok I'll try when I have time.

DjScrappy

OK Thank you Yağız And Thank You for The fast response...Peace MaddSmokerz

Yağız...

Find in ./Sources/BoardIndex.php:
$context['categories'][$keyc]['boards'][$key]['viewer_text'] = ($this_viewers > 0) ?
('<span class="smalltext" style="float:right;">(' .
(!empty($modSettings['boardViewersClickable']) ? '<a href="'.$scripturl.'?action=viewers;board='.$key.'" onclick="return reqWin(this.href);" title="'.$txt['viewersBrowsing'].'">' : '') .
(!empty($modSettings['boardViewersGuestsMembers']) ?
((($this_members > 1) ? "<b>".$this_members."</b> ". $txt['board_v_members'] : "<b>".$this_members."</b> ". $txt['board_v_member']) .
(($this_guests > 1) ? ", <b>".$this_guests."</b> ". $txt['board_v_guests'] : ", <b>".$this_guests."</b> ". $txt['board_v_guest']))
: (($this_viewers > 1) ? "<b>".$this_viewers."</b> ". $txt['board_viewers'] : "<b>".$this_viewers."</b> ". $txt['board_viewer'])
) .
(!empty($modSettings['boardViewersClickable']) ? '</a>' : '') .
')</span>')
: '' ;

Replace with:
$context['categories'][$keyc]['boards'][$key]['viewer_text'] = '<span class="smalltext" style="float:right;">(' .
(!empty($modSettings['boardViewersClickable']) ? '<a href="'.$scripturl.'?action=viewers;board='.$key.'" onclick="return reqWin(this.href);" title="'.$txt['viewersBrowsing'].'">' : '') .
(!empty($modSettings['boardViewersGuestsMembers']) ?
((($this_members > 1) ? "<b>".$this_members."</b> ". $txt['board_v_members'] : "<b>".$this_members."</b> ". $txt['board_v_member']) .
(($this_guests > 1) ? ", <b>".$this_guests."</b> ". $txt['board_v_guests'] : ", <b>".$this_guests."</b> ". $txt['board_v_guest']))
: (($this_viewers > 1) ? "<b>".$this_viewers."</b> ". $txt['board_viewers'] : "<b>".$this_viewers."</b> ". $txt['board_viewer'])
) .
(!empty($modSettings['boardViewersClickable']) ? '</a>' : '') .
')</span>';

DjScrappy

Thank You And It Worked Perfect Thank You Again Yagiz...Peace MaddSmokerz

Cutter65

Thanks for this great mod. Works great!  8)

emre38emre

thank you Allah razı olsun very nice mod

perfec2

How can I make (0 viewing) (0 viewing) in the index to be showing only one not twice?

Yağız...

Quote from: perfec2 on September 16, 2010, 08:10:09 PM
How can I make (0 viewing) (0 viewing) in the index to be showing only one not twice?

It shouldn't be shown twice. Can you attach your ./Sources/BoardIndex.php and ./Themes/default/BoardIndex.template.php please?

perfec2


Yağız...

Find and remove this in BoardIndex.template.php:
',$board['viewer_text'],'

perfec2

I found the code under php comment // No new posts at all! The agony!!
Is not exact as the one you indicated, removing it, I do get a syntax errors
Below is code I found:

? $board['viewer_text'] : '','


Yağız...


perfec2

That is solved, I am very happy.
Please how can I make viewing to Viewing?


Galaxy Computers

When I download this version its say that its compatible with 2.0 RC3 and then when I try to install the mod its also say:

Sorry, but this mod doesn't support your SMF version.

Then why it say it is compatible with the latest forum version and you can't even install it?
Wade Morris
Amarillo, Texas

Morris Technologies Computer Support Forum

Yağız...

Are you sure that you're using 2.0 RC3? It's *only* compatible with 2.0 RC3 version.

Spoogs

link in sig leads to an RC2 site

Advertisement: