Hello Guest
No Avatar
Sign In to Remove
Posts: 
17
Reputation: 
5
Posted: June 9, 2011, 3:53 PM  -- Last Edit: June 9, 2011, 4:01 PM by Blueberry
  • Group: Member
A lot of my users are getting a error, from this area called 8: Undefined variable: alternate. Located at Line: 220. Im unsure why.

MessageIndex.template.php

Code: [Select]
      // If this person can approve items and we have some awaiting approval tell them.
      if (!empty($context['unapproved_posts_message']))
      {
         echo '
            <tr class="windowbg2">
               <td colspan="', !empty($context['can_quick_mod']) ? '6' : '5', '">
                  <span class="alert">!</span> ', $context['unapproved_posts_message'], '
               </td>
            </tr>';
      }

      foreach ($context['topics'] as $topic)
      {
         $alternate = !$alternate;

         $alternate = !$alternate;
Posts: 
400
Reputation: 
20
Posted: June 9, 2011, 10:40 PM
  • Group: Administrator
  • AIM: mlm@visualpulse.net
  • deviantART: MadLittleMods
  • Photobucket: MadLittleMods
What theme and version?

I am assuming it is Pulse but also try downloading the latest version on the theme site or here. I can not find that "$alternate = !$alternate;" anywhere in my code.

This will get rid of your error though:

FIND:
Code: [Select]
foreach ($context['topics'] as $topic)
      {
         $alternate = !$alternate;

ADD ABOVE:
Code: [Select]
$alternate = true;
<3 Nerve, Sk8, Labradoodle, Austin
Posts: 
17
Reputation: 
5
Posted: June 10, 2011, 3:15 AM
  • Group: Member
Yeah im using Pulse, it worked thanks!
Posts: 
400
Reputation: 
20
Posted: June 10, 2011, 3:22 AM
  • Group: Administrator
  • AIM: mlm@visualpulse.net
  • deviantART: MadLittleMods
  • Photobucket: MadLittleMods
Yeah im using Pulse, it worked thanks!

No problem!  ;)
<3 Nerve, Sk8, Labradoodle, Austin