Board Viewers

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

Previous topic - Next topic

Jorin

Great mod!  :D

A little question: Is it possbile to make the links not bold, but normal formatted text? In the forum index all text is bold, in board index only the numbers. I wish all could be not bold to be not so dominant. Can you help me?

MoreBloodWine

The install link doesnt show under 2.0.1, I know I can easily look at this but thought I would ask since I don't want to dig in a zip right now but I'm assuming this is because the install line ends at 2.0 and not say 2.0 - 2.?.? like some mods use.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Yağız...

Quote from: Jorin on September 03, 2011, 04:42:36 AM
Great mod!  :D

A little question: Is it possbile to make the links not bold, but normal formatted text? In the forum index all text is bold, in board index only the numbers. I wish all could be not bold to be not so dominant. Can you help me?
I don't think this would be possible, it's using .info class on boardindex and it makes every text bold.


Quote from: MoreBloodWine on September 20, 2011, 01:08:02 AM
The install link doesnt show under 2.0.1, I know I can easily look at this but thought I would ask since I don't want to dig in a zip right now but I'm assuming this is because the install line ends at 2.0 and not say 2.0 - 2.?.? like some mods use.
Done :)

MoreBloodWine

Quote from: Yağız... on September 20, 2011, 05:49:13 AM
Quote from: MoreBloodWine on September 20, 2011, 01:08:02 AM
The install link doesnt show under 2.0.1, I know I can easily look at this but thought I would ask since I don't want to dig in a zip right now but I'm assuming this is because the install line ends at 2.0 and not say 2.0 - 2.?.? like some mods use.
Done :)
Awesome, I don't mind digging in to zips but some people would probably be like WTH man !

FWIW, you also edited the uninstall line to mirror the install one right ;-p
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


IDSNL

I installed BoardViewers 1-2-1-1c into 2.0.1, but the following appeared at the top of the forum and it didn't show up at all under "Admin > Features and Options > Layout and Options." I checked the box to enable it in the Core theme. Anyway, I had to uninstall it. Any suggestions would be appreciated.

Thanks.

// Board Viewers Mod $txt['enable_board_viewers'] = 'Enable displaying viewer numbers of boards'; $txt['boardViewersGuestsMembers'] = 'Seperate guest and member numbers'; $txt['boardViewersClickable'] = 'Enable pop-up list by clicking viewer numbers'; $txt['countChildPosts'] = 'Count child\'s viewers and posts in parent\'s totals'; $txt['bv_members_guests_none'] = 'There are no users viewing this board.'; $txt['bv_members_guests_this'] = 'There are %s members and %s guests viewing this board.'; $txt['bv_members_guests_child'] = '%s members and %s guests are viewing the child boards of this board.'; $txt['bv_members'] = 'Members'; $txt['viewersBrowsing'] = 'Viewers browsing this board'; $txt['board_v_members'] = 'members'; // 43 members $txt['board_v_member'] = 'member'; // 1 member $txt['board_v_guests'] = 'guests'; // 26 guests $txt['board_v_guest'] = 'guest'; // 1 guest $txt['board_viewers'] = 'viewing'; // 32 viewing $txt['board_viewer'] = 'viewing'; // 1 viewing $txt['board_viewers_child'] = 'Viewers'; // Viewers: 145 $txt['board_viewer_child'] = 'Viewer'; // Viewer: 1 // End Of Board Viewers Mod

Draffi

How can I make this mod looking like this?

(See the picture, plz: the small icon after the number (for guest and member together, i think...)

Thank you

bolubeyi61

BoardIndex.php
Find:
$context['categories'] = getBoardIndex($boardIndexOptions);

// Calculation of board viewers ... By HarzeM
if (!empty($modSettings['enable_board_viewers']))
{
foreach($context['categories'] as $keyc => $category)
{
foreach($category['boards'] as $key => $boards)
{
$this_guests = $boards['viewers']['guests'];
$this_members = $boards['viewers']['members'];
$this_viewers = $this_guests + $this_members;

$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>')
: '' ;

if($boards['children'] !== array())
{
foreach($boards['children'] as $keych => $child)
{
$this_guests = $child['viewers']['guests'];
$this_members = $child['viewers']['members'];
$this_viewers = $this_guests + $this_members;
$context['categories'][$keyc]['boards'][$key]['children'][$keych]['viewer_text'] = ($this_viewers > 0) ? (($this_viewers > 1) ? ", ". $txt['board_viewers_child'] . ": " . $this_viewers : ", ". $txt['board_viewer_child'] . ": " . $this_viewers) : '';
}
}
}
}
}


Replace:
$context['categories'] = getBoardIndex($boardIndexOptions);

// Calculation of board viewers ... By HarzeM
if (!empty($modSettings['enable_board_viewers']))
{
foreach($context['categories'] as $keyc => $category)
{
foreach($category['boards'] as $key => $boards)
{
$this_guests = $boards['viewers']['guests'];
$this_members = $boards['viewers']['members'];
$this_viewers = $this_guests + $this_members;

$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>')
: '' ;

if($boards['children'] !== array())
{
foreach($boards['children'] as $keych => $child)
{
$this_guests = $child['viewers']['guests'];
$this_members = $child['viewers']['members'];
$this_viewers = $this_guests + $this_members;
$context['categories'][$keyc]['boards'][$key]['children'][$keych]['viewer_text'] = ($this_viewers > 0) ? (($this_viewers > 1) ? ", ". $txt['board_viewers_child'] . ": " . $this_viewers : ", ". $txt['board_viewer_child'] . ": " . $this_viewers) : '';
}
}
}
}
}


MessageIndex.php
Find:
$context['boards'] = getBoardIndex($boardIndexOptions);

// Calculation of board viewers ... By HarzeM
if (!empty($modSettings['enable_board_viewers']) && isset($context['boards']) && is_array($context['boards']))
{
foreach($context['boards'] as $key => $boards)
{
$this_guests = $boards['viewers']['guests'];
$this_members = $boards['viewers']['members'];
$this_viewers = $this_guests + $this_members;

$context['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>')
: '' ;

if($boards['children'] !== array())
{
foreach($boards['children'] as $keych => $child)
{
$this_guests = $child['viewers']['guests'];
$this_members = $child['viewers']['members'];
$this_viewers = $this_guests + $this_members;
$context['boards'][$key]['children'][$keych]['viewer_text'] = ($this_viewers > 0) ? (($this_viewers > 1) ? ", ". $txt['board_viewers_child'] . ": " . $this_viewers : ", ". $txt['board_viewer_child'] . ": " . $this_viewers) : '';
}
}

}
}


Replace:
$context['boards'] = getBoardIndex($boardIndexOptions);

// Calculation of board viewers ... By HarzeM
if (!empty($modSettings['enable_board_viewers']) && isset($context['boards']) && is_array($context['boards']))
{
foreach($context['boards'] as $key => $boards)
{
$this_guests = $boards['viewers']['guests'];
$this_members = $boards['viewers']['members'];
$this_viewers = $this_guests + $this_members;

$context['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>')
: '' ;

if($boards['children'] !== array())
{
foreach($boards['children'] as $keych => $child)
{
$this_guests = $child['viewers']['guests'];
$this_members = $child['viewers']['members'];
$this_viewers = $this_guests + $this_members;
$context['boards'][$key]['children'][$keych]['viewer_text'] = ($this_viewers > 0) ? (($this_viewers > 1) ? ", ". $txt['board_viewers_child'] . ": " . $this_viewers : ", ". $txt['board_viewer_child'] . ": " . $this_viewers) : '';
}
}

}
}


Modifications.english.php
Find:


// Board Viewers Mod
$txt['enable_board_viewers'] = 'Enable displaying viewer numbers of boards';
$txt['boardViewersGuestsMembers'] = 'Seperate guest and member numbers';
$txt['boardViewersClickable'] = 'Enable pop-up list by clicking viewer numbers';
$txt['countChildPosts'] = 'Count child\'s viewers and posts in parent\'s totals';
$txt['bv_members_guests_none'] = 'There are no users viewing this board.';
$txt['bv_members_guests_this'] = 'There are %s members and %s guests viewing this board.';
$txt['bv_members_guests_child'] = '%s members and %s guests are viewing the child boards of this board.';
$txt['bv_members'] = 'Members';
$txt['viewersBrowsing'] = 'Viewers browsing this board';

$txt['board_v_members'] = 'members'; // 43 members
$txt['board_v_member'] = 'member'; // 1 member

$txt['board_v_guests'] = 'guests'; // 26 guests
$txt['board_v_guest'] = 'guest'; // 1 guest

$txt['board_viewers'] = 'viewing'; // 32 viewing
$txt['board_viewer'] = 'viewing'; // 1 viewing

$txt['board_viewers_child'] = 'Viewers'; // Viewers: 145
$txt['board_viewer_child'] = 'Viewer'; // Viewer: 1
// End Of Board Viewers Mod


Replace:

// Board Viewers Mod
$txt['enable_board_viewers'] = 'Enable displaying viewer numbers of boards';
$txt['boardViewersGuestsMembers'] = 'Seperate guest and member numbers';
$txt['boardViewersClickable'] = 'Enable pop-up list by clicking viewer numbers';
$txt['countChildPosts'] = 'Count child\'s viewers and posts in parent\'s totals';
$txt['bv_members_guests_none'] = 'There are no users viewing this board.';
$txt['bv_members_guests_this'] = 'There are %s members and %s guests viewing this board.';
$txt['bv_members_guests_child'] = '%s members and %s guests are viewing the child boards of this board.';
$txt['bv_members'] = 'Members';
$txt['viewersBrowsing'] = 'Viewers browsing this board';

$txt['board_v_members'] = 'members'; // 43 members
$txt['board_v_member'] = 'member'; // 1 member

$txt['board_v_guests'] = 'guests'; // 26 guests
$txt['board_v_guest'] = 'guest'; // 1 guest

$txt['board_viewers'] = '<img border="0" src="http://www.spinabifidaturkey.com/smf/images/guest.gif" width="22" height="22">'; // 32 viewing
$txt['board_viewer'] = '<img border="0" src="http://www.spinabifidaturkey.com/smf/images/guest.gif" width="22" height="22">'; // 1 viewing

$txt['board_viewers_child'] = 'Viewers'; // Viewers: 145
$txt['board_viewer_child'] = 'Viewer'; // Viewer: 1
// End Of Board Viewers Mod









Draffi


bolubeyi61

good luck
Greetings from Turkey
which of your webpage?

Draffi


MoreBloodWine

Since the 2.0.2 update the install / uninstall links don't show for this mod.

I know this is an old thread but I like this mod and want to use it on my new site and dont know if just changing the intall/uninstall lines in the one xml file will break anything. Usually doesnt but it depends on the mod since some other things may need to be done.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Nityananda Maity

Hi, i am installed it using emulate version to 2.0.1 but don't work. please tell me that how to install it on smf 2.0.2 or what customization needed.
Thanks

TheListener

Quote from: Nityananda Maity on September 24, 2012, 06:50:11 AM
Hi, i am installed it using emulate version to 2.0.1 but don't work. please tell me that how to install it on smf 2.0.2 or what customization needed.
Thanks

What do you mean by don't work?


Nityananda Maity

QuoteWhat do you mean by don't work?
Sorry for late reply and i am wrong. It working good. first i not found any settings of this mod but finally i get it. sorry for disturbing without problems.
Thanks for reply

Please tell me how to change the text colors of all text within '(1 member, 0 guest)'. I tried but not work.

Andre321

I installed and it work perfectly.

It is possible that it works only for the Administrator account?

Kolya

Nice mod, except for the inline styles.


MarkJ

I can't seem to get this to work on 2.0.8?  It installed fine bar for a manual alteration being needed on the MessengerIndex.template.php file.  All the options are in Admin but nothing showing on the board even when I select the default or core theme.  Does it require some other alteration?

Tunicman

Is it possible to run this mod with 2.0.8? How?

Paracelsus

Just to say that this Mod installs and works perfectly on 2.0.9. It even installed directly on my custom theme requiring only minor tweaks in one language file. Wish every mod installed like this.

Advertisement: