News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Staff Page Mod

Started by SMFHacks.com Team, May 18, 2006, 06:53:57 PM

Previous topic - Next topic

vbgamer45

Quote from: teamvtec on September 24, 2006, 03:39:24 PM
Is it possible to show avatars or images before the names? ::)
Not currently. I might add that later.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

FinsandFur

Any word on an rc3 version?
Hacks shows only the rc2 version.

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

FinsandFur


FinsandFur

I am rrreally having a hard time getting this to work on my recent upgrade to 11rc3.

I had it on 1.08 and added the codes manually myself since I'm using the Cerberus theme, and it worked great.
Finding my way around the xml file and the index template was no problem.

Now... 11rc3 seems to be a whole new ball game. I've worked it for two days and cannot figure it out.

The mod IS installed on my Cerberus theme, it DOES work but when using the codes specified for the index template, in the XML file, I get this on my menu


And it should be like this;


wow!

The menu function that the XML file is giving me is very much different then the other menu functions in my template, and I cannot figure out how to convert this one.

This is from the staff page XML file;
// the [staff list] button
if ($context['allow_view_stafflist'])
echo ($current_action == 'staff' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'staff' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=staff">' , $txt['smfstaff_stafflist']  , '</a>
</td>' , $current_action == 'staff' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';



and this is what my current functions look like;
if ($context['allow_search'])
                echo '
<a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" style="margin: 2px 0;" border="0" />' : $txt[182]), '</a>', $context['menu_separator'];


I've exhausted myself with options. Could anyone give me a hand? Pulleeeeeeeeze ;)


vbgamer45

Just use

if ($context['allow_view_stafflist'])
                echo '
<a href="', $scripturl, '?action=staff">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="Staff" style="margin: 2px 0;" border="0" />' : 'Staff'), '</a>', $context['menu_separator'];
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

FinsandFur

vbgamer45,

You are wayyyyyyy under gratified for what you do around here....and how fast you do it.  ;)

I can't tell you how much I appreciate this.

If I told you that I took your snippet there, the one from the XML file, and one from my Cerberus menu function...put them side by side in Word and disected them, would you laugh at me?  :o

I just had to find out how you did that, and why I wasn't able to come up with it.



And you make it seem so simple now that I look at all three insertions
Much better. I appreciate it very much. Thanks a ton.


perplexed

I have a question about the staff list and which groups it lists.  I found the filter option in 'features and options' but I still cant stop some of the groups from displaying.

All I want to display are admin, global and local mods, but regardless of what I put in the filter some of the other groups get displayed too.

How does this work exactly?

~thanks

vbgamer45

Need to put in the extra group title seperated by a comma.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

perplexed

I am trying to not have some groups displayed but it still displays some even with comma separation :(

mforum

Quote from: perplexed on October 21, 2006, 07:19:45 PM
I am trying to not have some groups displayed but it still displays some even with comma separation :(

maybe you mean moderators ?  they can`t be blocked  from staff page  :)

perplexed

no they are not moderators - I want the moderators to display lol.  But what is also displaying are other groups that I have set up on my site - eg I have a group for 'authors' and a group that I put 'banned' members in, both of these groups are showing up even though the neither of the groups have any moderator responsibilities and the banned group have no permissions at all *shrug*

It's a little confusing

HecKel

Hi!

How can I order my staff members by username?

Actually I have groups ordered by groupname, but the membergroups are with a strange order..., I think that would be prettier that membergroups should appear in alphabetically order as well their boards.

HecKel
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

omggggg

how to install in proton theme?

thank you!
sorry for my bad english

Vinspire

Quote from: omggggg on October 23, 2006, 11:40:47 PM
how to install in proton theme?

thank you!

You need to make a manual installation in other custom theme by looking into the .xml file :)

dracomiconia

I cant see the other groups, either....

And I see in Staff.template that there are only 2 queries.... Administrators and Moderators:

Grupo1,Grupo2

Badelehrling

Well, I haven't read the whole thread (shame on me :(), but I don't see

Quote from: vbgamer45 on May 19, 2006, 11:14:42 PM
Added contact information for ICQ,AIM,YIM,MSN, PM

in my testforum ???


I really love your Mods, for example the gallery mod is fantastic, but I don't like the staff mod.
I would prefer something like
this (coded myself. BUT I have to change everything on my own - nothings works automaticly), or this (wbb)

Maybe you could make a Mod, where you can choose, what you want to be displayed on the staff page (name, status -"admin", "mod". i mean-, avatar, on/offline, ICQ,AIM,YIM,MSN, PM.

I guess many people would like this :)

I could translate the mod as a "thank you" into german ;)


Thanks!


ps: sorry for my bad english :-(

vbgamer45

Yeah I am pretty busy at the moment I plan to redo a lot of my older mods
the "Added contact information for ICQ,AIM,YIM,MSN, PM" is only SMF 1.1 RC3 versions.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Badelehrling

thanks für the qucik reply :)

Okay, so I hope you get your old mods redune quickly ;D

Badelehrling

HecKel

If you don't have yet, here it is the Portuguese strings:

Modifications.portuguese.php
//Begin SMF Staff Page Text Strings
$txt['smfstaff_stafflist'] = 'Staff';
$txt['smfstaff_local'] = 'Moderadores Locais';
$txt['permissionname_view_stafflist'] = 'Visualizar a Lista do Staff';
$txt['permissionhelp_view_stafflist'] = 'A Lista do Staff mostra todos os membros do teu Staff. Podes alterar que grupo de membros são mostrados indo ao Opções do Layout e ver o filtro do SMF Staff. Esta permissão possibilita a escolha de quem pode ver a lista do staff.';
$txt['cannot_view_stafflist'] = 'Não podes ver a Lista do Staff.';
$txt['smfstaff_lastlogin'] = 'Última Actividade:';
$txt['smfstaff_forums'] = 'Foruns:';
$txt['smfstaff_dateregistered'] = 'Data de Registo:';
$txt['smfstaff_contact'] = 'Informações:';
$txt['smfstaff_sendpm'] = 'Enviar PM';
$txt['staff_filter'] = 'SMF Staff - Filtrar grupos na página do staff. <br />(separe cada grupo por uma <b>virgula</b>.)';


Who.portuguese.php
//Begin SMF Staff Page Text Strings
$txt['whoall_staff'] = 'A ver a página do <a href="' . $scripturl . '?action=staff">Staff</a>';
//END SMF Staff Page Text Strings


I hope that it is ok ;)

HecKel
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Advertisement: