News:

We have *Free* SMF 2.0 & 2.1 Themes for Download and Support!

 

Recent Topics

Members
  • Total Members: 155
  • Latest: TMXXX
Stats
  • Total Posts: 10,782
  • Total Topics: 1,380
  • Online today: 180
  • Online ever: 879
  • (Jan 21, 20, 05:49:15 PM)
Users Online
Users: 0
Guests: 45
Total: 45

Back-n-Black Theme

Started by Keymaster, Jun 21, 11, 01:54:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Keymaster

Love the new updated Back-n-Black theme for 2.0 thanks for it but my question is this. I use a mod SA affiliates which works with other themes but does not work on this one. since your theme is based on the core theme, which does work wit it I am wanting to see what might be different. The mod runs a Marque at the bottom listing your affiliates but does not show on your theme, I made sure I installed it but there is an error when installing it.

says to find in the BoardIndex.template.php I have included the error in the php file it gets

<p class="pminfo">
<strong><a href="', $scripturl, '?action=pm">', $txt['personal_message'], '</a></strong>
<span class="smalltext">
', $txt['you_have'], ' ', comma_format($context['user']['messages']), ' ', $context['user']['messages'] == 1 ? $txt['message_lowercase'] : $txt['msg_alert_messages'], '.... ', $txt['click'], ' <a href="', $scripturl, '?action=pm">', $txt['here'], '</a> ', $txt['to_view'], '
</span>
</p>';
}


add after

if (!empty($modSettings['enable_affiliatesboard'])) {
$addaffiliates = allowedTo('add_affiliates');
$max_width = isset($modSettings['imageresizer_max_width']) && !empty($modSettings['imageresizer_max_width']) ? $modSettings['imageresizer_max_width'] : 0;
            $max_height = isset($modSettings['imageresizer_max_height']) && !empty($modSettings['imageresizer_max_height']) ? $modSettings['imageresizer_max_height'] : 0;
    if (!empty($max_width) || !empty($max_height)){
   echo'<script type="text/javascript">
<!--
function resize(which) {
  var elem = document.getElementById(which);
  if (elem == undefined || elem == null) return false;
  if (elem.width > elem.height)
  {
    if (elem.width > '.$max_width.' &&  '.$max_width.' != 0) elem.width = '.$max_width.';
  }
  else
  {
    if (elem.height > '.$max_height.' &&  '.$max_height.' != 0) elem.height = '.$max_height.';
  }
}// --></script>';}



echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<a href="', $scripturl, '?action=calendar' . '"><img class="icon" src="', $settings['images_url'], '/star.png', '" alt="'.$txt['Our_Affiliates'].'" /></a>
',$txt['Our_Affiliates'],' [ <a href="', $scripturl, '?action=affiliates">',$txt['vall'],'</a>';
if($addaffiliates)
                {
echo ' | <a href="', $scripturl, '?action=affiliates;sa=addafflink">', $txt['Addlink'], '</a>]';}echo'

</span>
</h4>
</div>
<p class="pminfo">';
if (empty($context['aff']))
echo '
            <div align="center">', $txt['affempty'],'</div>';
            else
            {
            echo '<marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';
            foreach ($context['aff'] as $row)
        {
        echo '
    <a href="', $scripturl, '?action=affiliates;sa=out;idaff=', $row['id'],'" target="_blank">
        <img src="', $row['image'],'" id="aff_image_', $row['id'],'" onload="resize(\'aff_image_', $row['id'],'\');" alt="', $row['description'],'" /></a>';
            }
        echo '
            </marquee>';
            }
echo'</p>';

}


Crip

Can you attach both (Default/Boardinxe.php * & on Boardindex.php) BB Theme ?
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

Keymaster

Sure

[attachment deleted by admin]

[attachment deleted by admin]

Crip

I will be late getting to it...
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

Keymaster

Ok I was able to fix it I added the missing info and added the code after it and it works

Maxx

Say Good deal! Glad you got ur done!

Gonna mark this treat solved!

regards,
Maxx

Keymaster

#6
Thanks Guys here is the modified BoardIndex.template.php


[attachment deleted by admin]

Crip

Km ,
we could really use a Link-to-Theme??
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.