TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,192
  • Total Topics: 21,348
  • Online today: 202
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 205
  • Total: 205

Menu button in Admin "mlist"

Started by deansmar, September 04, 2008, 10:08:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rumbaar

If you ever want to check out which is called by a certain action, you can look in the index.php
'mlist' => array('Memberlist.php', 'Memberlist'),

deansmar

#11
having a small problem trying to find the correct array,  that is above the top of the Table!!

and contains "Search for members"  i seem to have found the right place in the PHP, but there
seems to be functions attached to this one !

   
// $subActions array format:
// 'subaction' => array('label', 'function', 'is_selected')
$subActions = array(
'all' => array(&$txt[303], 'MLAll', $context['listing_by'] == 'all'),
'search' => array(&$txt['mlist_search'], 'MLSearch', $context['listing_by'] == 'search'),
);

any ideas?

deansmar

the actual problem lies with in the Memberlist.template.php thats were the links get there actions ??

anyone willing to help??


// Display links to view all/search.
   echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
   <tr>
   <td class="mirrortab_first">&nbsp;</td>';
   foreach ($context['sort_links'] as $link)
      {
   if ($link['selected'])
   echo '
   <td class="mirrortab_active_first">&nbsp;</td>
   <td valign="top" class="mirrortab_active_back">
   <a href="' . $scripturl . '?action=mlist' . (!empty($link['action']) ? ';sa=' . $link['action'] : '') . '">', $link['label'], '</a>
   </td>
   <td class="mirrortab_active_last">&nbsp;</td>';
   else
   echo '
   <td valign="top" class="mirrortab_back">
   <a href="' . $scripturl . '?action=mlist' . (!empty($link['action']) ? ';sa=' . $link['action'] : '') . '">', $link['label'], '</a>
   </td>';
   }


G6Cad

This is for SMF to help you with, that is no way near a TP file or Code.

And a side note, when you post code in to a post, you must use the code tags, otherwise the code will not render correctly. If you look at the code you posted, it now have several [img] tags that are not really there in the correct code from the file you copied it from

This website is proudly hosted on Crocweb Cloud Website Hosting.