Board Viewers

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

Previous topic - Next topic

Galaxy Computers

Quote from: Yağız... on October 15, 2010, 12:54:27 PM
Are you sure that you're using 2.0 RC3? It's *only* compatible with 2.0 RC3 version.

I have looked on my forum version its using 2.0 RC2 so I need to do an upgrade.
Wade Morris
Amarillo, Texas

Morris Technologies Computer Support Forum


Yağız...

Update!
  - 1.2.1.1a - Added SMF 2.0 RC4 and 1.1.12 compatibility.

op-x

I seem to have  (1 member, 1 guest)(1 member, 1 guest)(1 member, 1 guest) on each board that gets viewed.  I guess when i overwrote to new versions of this it kept making another copy somewhere in the coding.
Where should I be looking to remove the extra code?
Thanks!

TheListener

Have a look at the board index template.

Use the mods parser.

op-x

i dont see it in boardindex on either default theme or my currect theme.
What is this mods parser? Sorry I guess I havent the need to use a parser til today I guess.

TheListener

Did you try the boardindex.template file?

On the mods download page right next to it is a dropdown list.

THIS is the parser.

op-x

Yes i did try the boardindex.template and found only one instance of the code.

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr id="board_', $board['id'], '" class="windowbg2">
<td class="icon windowbg"', !empty($board['children']) ? ' rowspan="2"' : '', '>
<a href="', ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl . '?action=unread;board=' . $board['id'] . '.0;children'), '">';

// If the board or children is new, show an indicator.
if ($board['new'] || $board['children_new'])
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
// Is it a redirection board?
elseif ($board['is_redirect'])
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
// No new posts at all! The agony!!
else
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

echo '
</a>
</td>
<td class="info">
<a class="subject" href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a>',(!empty($modSettings['enable_board_viewers'])) ? $board['viewer_text'] : '','';

// Has it outstanding posts for approval?
if ($board['can_approve_posts'] && ($board['unapproved_posts'] || $board['unapproved_topics']))
echo '
<a href="', $scripturl, '?action=moderate;area=postmod;sa=', ($board['unapproved_topics'] > 0 ? 'topics' : 'posts'), ';brd=', $board['id'], ';', $context['session_var'], '=', $context['session_id'], '" title="', sprintf($txt['unapproved_posts'], $board['unapproved_topics'], $board['unapproved_posts']), '" class="moderation_link">(!)</a>';

echo '

<p>', $board['description'] , '</p>';

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<p class="moderators">', count($board['moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';

op-x

thanks for the help Brack, i was looking in default theme but found it in my current theme  :-[

Galaxy Computers

I have just upgraded to 2.0 RC4 and installed the board viewers mod. and I don't get this on the main board:

(8 members, 13 guests)

and the template I am using is "Nisan"

can someone help in this area?
Wade Morris
Amarillo, Texas

Morris Technologies Computer Support Forum

TheListener

Have you checked to see if the mod has installed correctly on the default theme?

Galaxy Computers

Quote from: Brack1 on February 01, 2011, 05:27:47 PM
Have you checked to see if the mod has installed correctly on the default theme?

It works fine on the default theme.
Wade Morris
Amarillo, Texas

Morris Technologies Computer Support Forum

TheListener

Quote from: mtechama on February 02, 2011, 12:29:20 AM
Quote from: Brack1 on February 01, 2011, 05:27:47 PM
Have you checked to see if the mod has installed correctly on the default theme?

It works fine on the default theme.

In which case whichever edit adds the mod to the default theme is required on the theme you are using.

Galaxy Computers

I don't understand what you mean?
Wade Morris
Amarillo, Texas

Morris Technologies Computer Support Forum

Galaxy Computers

Here is the BoardIndex.template.php file for Nisan Template.
Wade Morris
Amarillo, Texas

Morris Technologies Computer Support Forum

reefforum


Galaxy Computers

Is there anyone can able to help me on this?
Wade Morris
Amarillo, Texas

Morris Technologies Computer Support Forum

Yağız...


Galaxy Computers

Wade Morris
Amarillo, Texas

Morris Technologies Computer Support Forum

webking

RC5 Anybody?  :o

When is it scheduled? I like it & can't wait.
http://www.internetvps.com - #1 Virtual Private Server Provider!

Advertisement: