News:

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

Main Menu

Problem with a default feature

Started by TwitchisMental, October 13, 2009, 06:40:56 PM

Previous topic - Next topic

TwitchisMental

Well I just noticed today the rep mod is not showing on my custom theme - mystic blue.

Yet on the other themes it shows.

So I was wondering where on the board index or index template I need to fix this problem.

Here is the board index since I am sure that is where the problem is.

<?php

// Version: 2.0 RC1; BoardIndex



function template_main()

{

   global
$context, $settings, $options, $txt, $scripturl, $modSettings;



   
// Show the news fader?  (assuming there are things to show...)

   
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))

   {

   echo
'

   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

       // Create the main header object.

       var smfNewsFadeToggle = new smfToggle("smfNewsFadeScroller", '
, empty($options['collapse_news_fader']) ? 'false' : 'true', ');

       smfNewsFadeToggle.useCookie('
, $context['user']['is_guest'] ? 1 : 0, ');

       smfNewsFadeToggle.setOptions("collapse_news_fader", "'
, $context['session_id'], '");

       smfNewsFadeToggle.addToggleImage("newsupshrink", "/collapse.gif", "/expand.gif");

       smfNewsFadeToggle.addTogglePanel("smfNewsFader");

   // ]]></script>

   <div class="marginbottom">

        <a href="#" onclick="smfNewsFadeToggle.toggle(); return false;">

            <object>

       <h3 id="newsfader" class="catbg headerpadding" align="center">

           '
, $txt['news'], '

       </h3>

            </object>

       </a>    

       <div class="windowbg3" id="smfNewsFader"'
, empty($options['collapse_news_fader']) ? '' : ' style="display: none;"', '>

           <div id="smfFadeScroller"><span>'
, $context['news_lines'][0], '</span></div>

       </div>

   </div>

   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

       // The fading delay (in ms.)

       var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';

       // Fade from... what text color? To which background color?

       var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};

       // Surround each item with... anything special?

       var smfFadeBefore = "<b>", smfFadeAfter = "</b>";



       var foreColor, foreEl, backEl, backColor;



       if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")

       {

           foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);

           smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};



           backEl = document.getElementById(\'smfFadeScroller\');

           while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")

               backEl = backEl.parentNode;



           backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);

           smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};

       }

       else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")

       {



           foreEl = document.getElementById(\'smfFadeScroller\');



           while (document.defaultView.getComputedStyle(foreEl, null).getPropertyCSSValue("color") == null && typeof(foreEl.parentNode) != "undefined" && typeof(foreEl.parentNode.tagName) != "undefined")

               foreEl = foreEl.parentNode;



           foreColor = document.defaultView.getComputedStyle(foreEl, null).getPropertyValue("color").match(/rgb\((\d+), (\d+), (\d+)\)/);

           smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};



           backEl = document.getElementById(\'smfFadeScroller\');



           while (document.defaultView.getComputedStyle(backEl, null).getPropertyCSSValue("background-color") == null && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")

               backEl = backEl.parentNode;



           backColor = document.defaultView.getComputedStyle(backEl, null).getPropertyValue("background-color");//.match(/rgb\((\d+), (\d+), (\d+)\)/);

           smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};

       }



       // List all the lines of the news for display.

       var smfFadeContent = new Array(

           "'
, implode('",

           "'
, $context['fader_news_lines']), '"

       );

   // ]]></script>

   <script language="JavaScript" type="text/javascript" src="'
, $settings['default_theme_url'], '/scripts/fader.js"></script>';

   }



   
/* Each category in categories is made up of:

   id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),

   new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),

   and boards. (see below.) */

   
foreach ($context['categories'] as $category)

   {

       echo
'

   <div class="categoryframe">

       <h3 class="catbg'
, $category['new'] ? '2' : '', ' headerpadding" align="center">';        

       
// If this category even can collapse, show a link to collapse it.

       
if ($category['can_collapse'])

           echo
'

           <span class="collexp" style="float:right;"><a href="'
, $category['collapse_href'], '" title="',$txt['collexp'],'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></span>';    

       if (
$category['can_collapse'])

           echo
'

           <span class="collexp" style="float:left;"><a href="'
, $category['collapse_href'], '" title="',$txt['collexp'],'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></span>';

       if (!
$context['user']['is_guest'])

           echo
'

           <a href="'
, $scripturl, '?action=unread;c=', $category['id'], '" title="',$txt['unread_this_category'],'">', $category['name'] ,'</a>';

         else            

            echo
'

           '
, $category['name'] ,'';            

       echo
'

       </h3>'
;



       
// Assuming the category hasn't been collapsed...

       
if (!$category['is_collapsed'])

       {

           echo
'

       <table cellspacing="0" class="boardsframe">'
;

           
/* 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>                

               <td class="windowbg3 icon">

                    <a href="'
, $scripturl, '?action=unread;board=', $board['id'], '.0">';

               
// 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'], '/on.gif" 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'], '/redirect.gif" alt="',$txt['redirects'],'" title="',$txt['redirects'],'" />';

               
// No new posts at all! The agony!!

               
else

                   echo
'<img src="', $settings['images_url'], '/off.gif" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], ' " />';

               echo
'

                    </a>

               </td>

               <td class="windowbg3 info">

                   <b><a href="'
, $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />

                       '
, $board['description'],' ';

               
// 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'] ? 'topics' : 'posts'), ';brd=', $board['id'], ';sesc=', $context['session_id'], '" title="', sprintf($txt['unapproved_posts'], $board['unapproved_topics'], $board['unapproved_posts']), '" class="moderation_link">(!)</a>';

               
// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)

               
if (!empty($board['moderators']))

               echo
'

                    <br /><span class="moderators">'
, count($board['moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</span>';

               
// Show some basic information about the number of posts, etc.

               
echo '

               </td>                

               <td class="windowbg3 smalltext" width="260px" valign="top">'
;

               
/* The board's and children's 'last_post's have:

               time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),

               link, href, subject, start (where they should go for the first unread post.),

               and member. (which has id, name, link, href, username in it.) */

               
if($board['is_redirect'])

                    echo
'

                             &nbsp;<br /><b>'
, $board['posts'], '</b>&nbsp;',$txt['redirects'] ,'<br />';            

               if (!empty(
$board['last_post']['id']))

                   echo
'

                           '
, $board['posts'], ' ', $txt['posts'], ' ' .'in '. '', $board['topics'], ' ', $txt['topics'], '<br />  

                           <b>'
, $txt['latest2'] ,':&nbsp;</b>', $board['last_post']['time'] , '<br />

                           '
, $board['last_post']['link'],''. ' by' .' ', $board['last_post']['member']['link'], '<br />';

                    echo
'                    

               </td>

           </tr>'
;

               
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)

               
if (!empty($board['children']))

               {    
// Sort the links into an array with new boards bold so it can be imploded.

                   
$children = array();

                   
/* Each child in each board's children has:

                       id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */

                   
foreach ($board['children'] as $child)

                   {

                       
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . $child['topics'] . ' , ' . $txt['posts'] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';

                       
$children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/' . $context['theme_variant'] . '/onk.gif" alt="' . $txt['new_posts'] . '" title="' . $txt['new_posts'] . '" border="0" /><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/offk.gif" alt="' . $txt['old_posts'] . '" title="' . $txt['old_posts'] . '" border="0" />' . $child['link'];                            

                   }

                   echo
'

           <tr>

               <td colspan="3" style="padding-left: 64px" class="windowbg3">

                   <span class="smalltext">&nbsp;<b>'
, $txt['subforums'], '</b>&nbsp; ', implode('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', $children), '</span>

               </td>

           </tr>'
;

               }

           }

           echo
'

       </table>'
;

       }

       echo
'

   </div>'
;

   }



   if (
$context['user']['is_logged'])

   {

       echo
'

   <ul id="posticons">

       <li class="smalltext floatleft headerpadding">

           <img src="'
, $settings['images_url'], '/', $context['theme_variant'], '/new_some.gif" alt="" align="middle" style="margin-left: 3ex;" /> ', $txt['new_posts'], '

           <img src="'
, $settings['images_url'], '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> ', $txt['old_posts'], '

       </li>'
;

       
// Mark read button.

       
$mark_read_button = array(

           
'markread' => array('text' => 'mark_as_read', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=all;sesc=' . $context['session_id']),

       );

       
// Show the mark all as read button?

       
if ($settings['show_mark_read'] && !empty($context['categories']))

       echo
'

       <li class="maintab_back" style="float:right; width: 190px;">'
,

           
template_button_strip($mark_read_button, 'top'),'        

        </li>

   </ul>'
;

   }



   
template_info_center();

}



function
template_info_center()

{

   global
$context, $settings, $options, $txt, $scripturl, $modSettings;



   
// Info center collapse object.

   
echo '

   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

       // And create the info center object.

       var infoHeader = new smfToggle("upshrinkIC", '
, empty($options['collapse_header_ic']) ? 'false' : 'true', ');

       infoHeader.useCookie('
, $context['user']['is_guest'] ? 1 : 0, ');

       infoHeader.setOptions("collapse_header_ic", "'
, $context['session_id'], '");

       infoHeader.addToggleImage("upshrink_ic", "/collapse.gif", "/expand.gif");

       infoHeader.addTogglePanel("upshrinkHeaderIC");

   // ]]></script>'
;



   
// Here's where the "Info Center" starts...

   
echo '

        <br /><br />

   <div class="clearfix" id="infocenterframe">

        <a href="#" onclick="infoHeader.toggle(); return false;">

             <object>

       <h3 class="catbg headerpadding" align="center">

           '
,$txt['information'],'

       </h3>

            </object>

        </a>    

       <div id="upshrinkHeaderIC"'
, empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>

             <table cellspacing="0" class="bordersframe" width="100%">'
;



   
// If they are logged in show a personal message bar.

   
if ($context['user']['is_logged'])

   {

        echo
'

               <tr>

                    <td class="windowbg3" style="padding: 8px 8px 7px 8px; width: 5%;">

                       <a href="'
, $scripturl, '?action=profile"><img src="', $settings['images_url']. '/'. $context['theme_variant'], '/members.gif" alt="', $txt['view_profile'], '" /></a>

                    </td>                            

                    <td class="windowbg3" style="padding-left: 4px;" width="70%">

                        <b>'
, $txt['hello_member_ndt'], ' ', $context['user']['name'], ':</b> ',$txt['you_have'], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt['message_lowercase'] : $txt['msg_alert_messages'], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'] , '.<br />

                        <a href="'
, $scripturl, '?action=unread">', $txt['unread_since'] ,'</a>&nbsp;<a href="', $scripturl, '?action=unreadreplies">', $txt['new_since'] ,'</a><br />

                   </td>

                    <td class="windowbg3" width="25%">

                         <form action="'
, $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">

                       <input class="biginput searchbox" type="text" name="search" value="'
, $txt['search'], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\'', $txt['search'], '...\';" style="width: 180px;" /> ';

   
// Search within current topic?

   
if (!empty($context['current_topic']))

       echo
'

                       <input type="hidden" name="topic" value="'
, $context['current_topic'], '" />';

       
// If we're on a certain board, limit it to this board.

   
elseif (!empty($context['current_board']))

       echo
'

                       <input type="hidden" name="brd['
, $context['current_board'], ']" value="', $context['current_board'], '" />';

        echo
'

                   </form>

                       <span style="padding-left: 15px;"><a href="'
, $scripturl, '?action=search;advanced">',$txt['search_advanced'],'</a></span>    

                       </td>

               </tr>'
;

   }

   

   
// "Users online" - in order of activity.

   
echo '

               <tr>

                    <td class="windowbg3" valign="top" style="padding: 8px 8px 7px 8px; width: 5%;"><a href="'
, $scripturl, '?action=who"><img src="', $settings['images_url']. '/'. $context['theme_variant'], '/online.gif" alt="" /></a></td>

                   <td class="windowbg3" colspan="2" style="padding-left: 4px;" width="95%">

                        <span class="smalltext" style="float: right; width: 24%;">'
, $txt['on_now'] ,'', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['who_member'] : $txt['members'],'';

       echo
$context['show_who'] ? '</a>' : '', '</span>                

                             <span class="smalltext" style="float: left;">'
, $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')</span><br />

                       <span class="smalltext" style="float: left;">'
,$txt['active_15'],'&nbsp;</span>';



   
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.

   
if (!empty($context['users_online']))

       echo
'        

                            <span class="smalltext">'
, implode(', ', $context['list_users_online']),'</span>';

       

   
// Users online today

   
echo '                

                   <div class="windowbg3 smalltext">'
, $txt['uot_users_online_today'], ': &nbsp;';

               echo

                           
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

                           if (
$context['viewing_allowed'])

   echo

                           
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

                           
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.

                           
if (!empty($context['users_online_today']) && $context['viewing_allowed'])

                           {

   echo          
'<br />', implode(', ', $context['list_users_online_today']);

                               
// Showing membergroups?

                               
if (!empty($context['membergroups']))

   echo          
'<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';

                           }

   echo
'

                   </div>

                   </td>

               </tr>'
;            

        echo
'            

               <tr>

                   <td  colspan="3" class="titlebg headerpadding" style="text-align: center;"><b>'
,$txt['forum_stats'], '</b></td>

               </tr>

               <tr>

                         <td class="windowbg3"  style="padding: 8px 8px 7px 8px; width: 5%;">

                       <a href="'
, $scripturl, '?action=stats"><img src="', $settings['images_url'].'/icons/info.gif" alt="', $txt['forum_stats'], '" /></a>

                   </td>                        

                    <td class="smalltext windowbg3" style="padding-left: 4px;" width="70%">

                        '
, $txt['latest_member'], ': <b> ', $context['common_stats']['latest_member']['link'], '</b><br />

                        '
. $txt['latest_post'] . ': <b>&nbsp;' . $context['latest_post']['link'] . '</b><br />

                        '
, $context['common_stats']['total_posts'], ' ', $txt['posts_made'], ' ', $txt['in'], ' ', $context['common_stats']['total_topics'], ' ', $txt['topics'], ' ', $txt['by'], ' ', $context['common_stats']['total_members'], ' ', $txt['members'], '<br/>

                   </td>

                    <td class="smalltext windowbg3" width="25%"  style="padding-left: 20px;">

                        <span>'
, $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">'.$txt['view_mlist'].'</a>' :$txt['view_mlist'] , '</span><br />

                        <span><a href="'
, $scripturl, '?action=recent">', $txt['view_posts'] ,'</a></span><br />

                        '
, $context['show_stats'] ? '<span><a href="' . $scripturl . '?action=stats">'.$txt['view_stats'].'</a></span>' : '&nbsp;','<br />

                   </td>

               </tr>'
;

               

   
// This is the "Recent Posts" bar.

   
if (!empty($settings['number_recent_posts']))

   {

       echo
'

               <tr>

                   <td  colspan="3" class="titlebg headerpadding" style="text-align: center;"><b>'
,$txt['recent_posts'], '</b></td>

               </tr>

               <tr>

                         <td class="windowbg3"  valign="top" style="padding: 8px 8px 7px 8px; width: 5%;">

                       <a href="'
, $scripturl, '?action=recent"><img src="', $settings['images_url'].'/icons/recent.gif" alt="',$txt['recent_posts'],'" /></a>

                   </td>                    

                   <td class="windowbg3"  colspan="2" width="95%">'
;



       
// Only show one post.

       
if ($settings['number_recent_posts'] == 1)

       {

           
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)

           
echo '

                   <b>&nbsp;'
, $context['latest_post']['link'], '</b> ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')';

       }

       
// Show lots of posts.

       
elseif (!empty($context['latest_posts']))

       {

           echo
'

                       <table cellpadding="0" cellspacing="0" width="100%" border="0">'
;



           
/* Each post in latest_posts has:

                   board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),

                   subject, short_subject (shortened with...), time, link, and href. */

           
foreach ($context['latest_posts'] as $post)

               echo
'

                           <tr>

                               <td class="smalltext" width="43%"><b>'
, $post['link'], '</b></td>

                               <td class="smalltext" width="31%">by '
, $post['poster']['link'], '</td>

                                <td width="26%" class="smalltext"  style="padding-left: 20px;">'
, $post['time'],'</td>

                           </tr>'
;

           echo
'

                       </table>'
;

       }

       echo
'

                   </td>

               </tr>'
;

   }



   
// Show information about events, birthdays, and holidays on the calendar.

   
if ($context['show_calendar'])

   {

       echo
'

               <tr>

                   <td  colspan="3" class="titlebg headerpadding" style="text-align: center;"><b>'
,$txt['calendar'], '</b></td>

               </tr>

                    <tr>

                         <td class="windowbg3"  valign="top" style="padding: 8px 8px 7px 8px; width: 5%;">

                       <a href="'
, $scripturl, '?action=calendar"><img src="', $settings['images_url'].'/icons/calendar.gif" alt="',$txt['calendar'],'" /></a>

                   </td>                

                   <td  colspan="2" class="windowbg3" width="100%">

                       <span class="smalltext">'
;



       
// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day".

       
if (!empty($context['calendar_holidays']))

               echo
'

                           <span class="holiday">'
, $txt['calendar_prompt'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';



       
// People's birthdays. Like mine. And yours, I guess. Kidding.

       
if (!empty($context['calendar_birthdays']))

       {

               echo
'

                           <span class="birthday">'
, $context['calendar_only_today'] ? $txt['birthdays'] : $txt['birthdays_upcoming'], '</span> ';

       
/* Each member in calendar_birthdays has:

               id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */

       
foreach ($context['calendar_birthdays'] as $member)

               echo
'

                           <a href="'
, $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<b>' : '', $member['name'], $member['is_today'] ? '</b>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';

       }

       
// Events like community get-togethers.

       
if (!empty($context['calendar_events']))

       {

           echo
'

                           <span class="event">'
, $context['calendar_only_today'] ? $txt['events'] : $txt['events_upcoming'], '</span> ';

           
/* Each event in calendar_events should have:

                   title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */

           
foreach ($context['calendar_events'] as $event)

               echo
'

                           '
, $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? '<b>' . $event['title'] . '</b>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';



           
// Show a little help text to help them along.

           
if ($context['calendar_can_edit'])

               echo
'

                           (<a href="'
, $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';

       }

       echo
'

                       </span>

                   </td>

               </tr>'
;

   }



   echo
'

           </table>

       </div>

   </div>'
;

}

?>

Antechinus

That is not a default feature. It is a mod. Mod support questions should be addressed to the mod author in the support thread for the mod.

TwitchisMental

I thought the karma/rep mod was a default feature <.<.

Arantor

Karma is a core feature, yes. This, however, seems to be one of the mods.

Are you using any of the mods from the mod site?
Holder of controversial views, all of which my own.


Antechinus

You said "rep mod". Mod implies mod. If you didn't mean mod then you should have just said karma, which is what the default feature is called. It makes things much easier if you are accurate when asking for support. :)

Anyway the theme is not called Mystic Blue. I know because it is my theme and I recognise the code in that template. It is called Mystic Multi v2. The karma usually shows on Display.template.php and I removed it, along with a lot of other stuff I never use. You can put it back in though if you like.

Find this:

// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<li class="margintop" style="overflow: hidden; max-height: 150px; width: 141px; text-align: center;">
<a href="'.$scripturl.'?action=profile;u='.$message['member']['id'].'" title="',$txt['view_profile_of'],' ', $message['member']['name'],' " >', $message['member']['avatar']['image'], '</a>
</li>';


Add this just after it:

// Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<li class="margintop">', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</li>';
elseif ($modSettings['karmaMode'] == '2')
echo '
<li class="margintop">', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '</li>';

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<li>
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a>
</li>';


That will show the karma just below the avatar. Note that this is only for the standard SMF karma feature. If you have installed a reputation mod you should know about it and should ask the person who made the mod.

TwitchisMental

#5
Quote from: Arantor on October 13, 2009, 09:33:19 PM
Karma is a core feature, yes. This, however, seems to be one of the mods.

Are you using any of the mods from the mod site?

Here is the list -

1.DisableTemplateEval1.1
2.Ultimate Profile0.9
3.Hack's Park Shoutbox2.0.2
4.Aeva ~ Auto-Embed Video & Audio7.0
5.SMF Sports Avatars1.1
6.SMF Arcade2.5 Beta 7
7.harry potter avatars1.0
8.Floating Bar Mod1.1
9.MCLegendII RC13.0
10.Profile Comments2.0
11.Member Awards2.1.7
12.Spoiler Tag0.6b
13.RSS Feeder1.1.1
14.Cat Avatars1.0
15.SA Battle0.7
16.More Spiders1.2
17.Users Online Today1.5.4
18.Referrals Mod2.2.6
19.Karma Description Mod2.5
20.Lots_o_Smileys1.0
21.Profile Fields & Icons Mod1.0
22.Hide ip stuff for users1.0
23.SimplePortal2.3
24.MoodBobels2.3.1
25.Auto Email Inactive Users1.7
26.SA Shop0.3 RC1
27.Social Bookmarks2.0
28.Remove SMF Logo1.2


Sorry Antechinus I always forget the second half of your theme name :( .

Anyways I will do what you suggested now :) .

Thanks for helping a poor noob out lol.

Edit: That fixed it,thanks guys for the help :).

Advertisement: