Hello Guest
No Avatar
Sign In to Remove

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Blueberry

Pages: [1]
Posts: 
17
Posted: June 9, 2011, 3:53 PM
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: 
17
Posted: May 1, 2011, 12:41 PM
So I have the Recent Topics set up and working. But before I log in it says "Array" im guessing there are no new Topics. Is there away to make it say instead of Array say = "No new Threads".

Posts: 
17
Posted: April 26, 2011, 9:33 AM
On a old theme my forum use to use, for admins it would say when a Fourm Account is Awaiting Approval, because we had spam bots. But we switch to your new and sexy theme, but it doesn't have it. I wanted to know how to implant it. Heres the code.

Code: [Select]
// Are there any members waiting for approval?
                        if (!empty($context['unapproved_members']))
                        echo '
                           <li>', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '</li>';

                        echo '
                           <li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
                           <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';
                  echo '
                     </ul>';
                  }

Heres the page it would take you to, to approve it.

Heres where I want the notification / button.
Pages: [1]