Link to my site: http://www.deansmarine.co.uk/forum1/index.php
SMF version: SMF ver. 1.1.4
TP version: not installed
Theme name and version: TP Adagio
Mods installed: SMF Attachment-layout_1.3
Related Error messages: no Errors, all works fine, i would like to alter things and need a little help
i hope i have posted this request in the right place?
after installing the theme adagio, which i like very very much, the chance to enter the Members List "mlist" disapears.
of course it can be added back on again as a TAB at the top of the Forum which i have done and it works fine, with the restrictions in the Member Permition set for just Admin... which can be seen in the Attachment Forum2.jpg
what i would like to do, is put this link in the Admin menu as Text as can be seen in the attachment Forum1.jpg
could anyone point me in the right direction please..
regards
So, what is the need for this? When you can view the members by clicking the "View all members" list already.
i am not to sure if you have noticed but, the View all members does:
action = veiwmembers
what i want is
action=mlist
there are two different displays!!!! (tables shown) have a look at the pictures again!!!!
one with IP address and the such like, the other is with IQC, and the web address etc.....
i would like to take the button of the top of the page away... and put it in the admin under members...??
I do understand the subtle differences. I'm just curious why the current one isn't good enough.
You'd probably have to completely remove the member list functions from the memberslist template and the memberlist.php sources file, and put them in the admin template and sources file. Far more than just moving a link.. More of an SMF question if you ask me.
the only reaction i got from SMF was, contact "Bloc" its one of his themes!!
can anyone point me in the right direction to find "Bloc"??
And old junglesaying "You will not find Bloc, He will find you"
i'll sit and wait for him at the local Bus stop then!
thanks anyway
Quote from: deansmar on September 11, 2008, 09:25:09 AM
the only reaction i got from SMF was, contact "Bloc" its one of his themes!!
can anyone point me in the right direction to find "Bloc"??
Tell them you want to do it on the default theme then. Its not a custom theme issue, because 99% of themes never touch the admin templates.
Well those buttons are controlled by the array in sources/ManageMembers.php, so that theme wouldn't have/shouldn't have changed that for display. Are you sure you've not installed a mod or altered that source file?
I'm not sure of the syntax for the $txt[] string call, but you could add a new array to do it
'mlist' => array(
'title' => $txt['mlist'],
'description' => $txt['mlist_desc_txt_here'],
'href' => $scripturl . '?action=mlist',
'is_selected' => false,
),
But the $txt[] strings I don't know and you'll have to remember the manual coding you've done in the past to get it that way in the first place. Does it show up in the default theme? As I can't see this working in the admin area anyways.
:up:
well that seemed to work!! now i have in the ManageMembers.php the headings that i would like!!
now i have the links were i want them.
could some one please tell me, which PHP brings up the "mlist" members list ??? :idiot2:
that way i can change the links in that one to match the ManageMembers.php
:up:
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'),
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?
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"> </td>';
foreach ($context['sort_links'] as $link)
{
if ($link['selected'])
echo '
<td class="mirrortab_active_first"> </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"> </td>';
else
echo '
<td valign="top" class="mirrortab_back">
<a href="' . $scripturl . '?action=mlist' . (!empty($link['action']) ? ';sa=' . $link['action'] : '') . '">', $link['label'], '</a>
</td>';
}
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