Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on May 18, 2006, 06:53:57 PM

Title: Staff Page Mod
Post by: SMFHacks.com Team on May 18, 2006, 06:53:57 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=348)



Staff Page

By vbgamer45 (http://custom.simplemachines.org/mods/index.php?action=profile;u=24876)


Compatibility
Works with both SMF 2.0.x and SMF 1.1.x

Description

Adds a Staff listing page for SMF. Adds a menu to the new default theme and lists staff members. Even includes local board moderators.

Most of the features are for SMF 1.1.x and SMF 2.0.x
Limited support for SMF 1.0.x

Version 1.8
!Fixed some count errors with PHP 7.2+

Version 1.7
+Added SMF 2.0 RC3 Support

Version 1.6.1
Better support for mod_security

Version 1.6
Adds support for additional groups on the staff page.
Changed the display for the admin options on the staff page.

Support Links
SMF Package Parser (http://sleepycode.com/PackageParser/)
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)

Title: Re: Staff Page Mod
Post by: Tony Reid on May 18, 2006, 07:01:25 PM
Interesting.... Any chance of a screen shot?

Title: Re: Staff Page Mod
Post by: vbgamer45 on May 18, 2006, 07:05:51 PM
It is a basic mod for now, did it last night.

Will show all non posting groups. Later I will add a setting to toggle which groups are shown on the staff list.

Demo::
http://www.smfseo.net/forums/index.php?action=staff

Tell me what you want it to do, and what features you would like and I will work on them.
Title: Re: Staff Page Mod
Post by: Harzem on May 18, 2006, 07:12:02 PM
Nice done, gamer! :)

It will be nice if we have the colors of the groups, too.
(if you need help on that, feel free to ask me)
Title: Re: Staff Page Mod
Post by: Gary on May 18, 2006, 07:15:44 PM
It will be nice if we have the colors of the groups, too.
Yeah, that would be nice too.

Here's a couple of things also;

Why not have the boards a moderator moderates as links? and instead of Date Regestered have PM/MSN/ICQ/AIM/Email icons.
Title: Re: Staff Page Mod
Post by: Skipdawg on May 18, 2006, 07:16:56 PM
Now this is looking good. Very interesting. Would like to see more on this though. Demo seems to need you to log in?
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 18, 2006, 07:20:07 PM
Now this is looking good. Very interesting. Would like to see more on this though. Demo seems to need you to log in?
Currently anyone can view the staff list. I might add a permission isallowed to view staff list.

Title: Re: Staff Page Mod
Post by: Skipdawg on May 18, 2006, 09:28:49 PM
OK tried it out on my test forum. Good job. And yes would look good with colors there.
Even picks up on the custom ranks well. Kewl!  8) ;)
Title: Re: Staff Page Mod
Post by: DangerGirl on May 18, 2006, 09:55:16 PM
Nice mod! I installed it on a test forum and it works great, easy install.  One issue that I would have is that anyone can see that there are private boards being moderated and who is moderating them.  In my case I'd like for the names to remain only visible to those that have access to those private boards, or not have them show at all.  That's my suggestion. :D
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 18, 2006, 10:17:24 PM
Just added support for SMF 1.0.7 as well.
Made a nice Staff.gif button for SMF 1.0.7 default theme.

I will look into the suggestions over this weekend.
Title: Re: Staff Page Mod
Post by: Dannii on May 18, 2006, 10:18:42 PM
Nice mod. I'm planning on including something similar in my Groups mod.
Title: Re: Staff Page Mod
Post by: SuperTongue on May 18, 2006, 11:06:06 PM
I'd use it, but I'd wish it would work with other themes!
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 18, 2006, 11:09:42 PM
It should work with other themes. Not using anything really theme dependent. Just using the standard styles for catbg and windowbg.
If it doesn't look right you can try to chagne class= to the class that wish to use in Staff.template.php
Title: Re: Staff Page Mod
Post by: SuperTongue on May 18, 2006, 11:37:41 PM
Ha! Got it to work. One problem: Is there any way I could link it besides creating a new board? (Like naming the board <a href="">Blah</a>)
Title: Re: Staff Page Mod
Post by: trenchteam on May 19, 2006, 01:47:37 AM
This is very useful. Thanks! ;D
Title: Re: Staff Page Mod
Post by: Vinspire on May 19, 2006, 12:36:30 PM
Nice Mod  ;D ;D ;D
Title: Re: Staff Page Mod
Post by: Skipdawg on May 19, 2006, 03:49:06 PM
Just noticed on my test forum that when you click to view the staff list it dose not highlight the proper place on the menu bar. Bug or glitch for I see it on the Demo page there too?
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 19, 2006, 09:09:12 PM
Just noticed on my test forum that when you click to view the staff list it dose not highlight the proper place on the menu bar. Bug or glitch for I see it on the Demo page there too?
Just fixed it.

Also added a border around the tables.

I will try to work on some new features tonight and get the admin panel settings done.
Title: Re: Staff Page Mod
Post by: Skipdawg on May 19, 2006, 10:23:21 PM
Awesome! thanks for working on this. Very good idea and mod  ;)
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 19, 2006, 11:14:42 PM
Ok another update I did the following:

For SMF 1.1 RC2
Added Permissions to view the staff list.
For local mods: will now show only boards that the user can see in their list.
Added color's to group members.
Added links to local moderators forums.
Added contact information for ICQ,AIM,YIM,MSN, PM
Title: Re: Staff Page Mod
Post by: Skipdawg on May 20, 2006, 02:49:58 AM
Much better. Very good job.  ;) ;D
Title: Re: Staff Page Mod
Post by: littleone on May 20, 2006, 01:52:55 PM
1.0 Installed Fine but I removed it to install 1.1 and I get this "3. Execute Modification ./Themes/default/index.template.php Test failed "

Any reason for this?  I am using 1.1RC2
Title: Re: Staff Page Mod
Post by: littleone on May 20, 2006, 01:58:18 PM
The problem appears to be that you are trying to replace the menu bar instead of just adding the "staff" action after one of the other buttons.  I have several other actions in the menu bar that are altering the code so the install is not finding the code you are specifing to be replaced.
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 20, 2006, 02:00:40 PM
Yeah, that's it. I will make an update for that soon.
Title: Re: Staff Page Mod
Post by: littleone on May 20, 2006, 02:02:10 PM
Not to sound impatient, but does soon mean today, or within the coming weeks?  Just curious as I really like this mod :)  Nice Job.
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 20, 2006, 02:05:59 PM
I say about half hour, I will have an update.
Title: Re: Staff Page Mod
Post by: littleone on May 20, 2006, 02:07:10 PM
Oh kool :)  I'll keep an eye open for it thanks  ;D
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 20, 2006, 02:23:08 PM
Updated with the fix for littleone.
Title: Re: Staff Page Mod
Post by: Skipdawg on May 20, 2006, 02:26:35 PM
vbgamer45 dose this mod read from the regular non-post count based groups? Or i it suppose to be just looking for Admin and moderators?

I was playing and added a group called partner and it shows up in the staff list also.
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 20, 2006, 02:35:34 PM
Currently it will show all non posting groups.

I think I am just going to place a text field under "Basic Features" and then you enter in the groups you do not want to show on the staff list seperated by a comma.
I would rather alter the groups table to toggle if they are visible but don't want to mess up any mods, or future upgrades.
Title: Re: Staff Page Mod
Post by: littleone on May 20, 2006, 02:36:57 PM
Updated with the fix for littleone.

Im getting that its corrupted now.  Not sure why.  I am going to try something real quick and post if I get it to work.
Title: Re: Staff Page Mod
Post by: littleone on May 20, 2006, 02:40:15 PM
ok nm, i worked perfectly, thanks :)
Title: Re: Staff Page Mod
Post by: littleone on May 20, 2006, 02:50:04 PM
I have four suggestions.


Allow the Admin to select which groups do and don't appear.  I have special ranks that are not staff.  Gold Members, Platinum Members, ect, and these all show on the Staff Page when they arent, so it be nice to disallow some of these (I see you are already thinking about this). 

Also, as a cosmetic suggestion, on the contact information, do a Left or Right Align as opposed to a "center," this way everything is uniform from one particular point, some members dont have IMs selected and others do and it looks cluttered and messy, and left or right alignment would smooth that out some.

then, when I go to check the permission, for some of the groups there are 36 permissions, after I check the one to allow them to view the staff list, it still reads 36 and the option is still checked.  Actually on some others it went from 65 to 64 permissions when it should have gone to 66.

Finally, how about being able to set the order of the ranks, incase we wish to keep all member groups.
Title: Re: Staff Page Mod
Post by: Skipdawg on May 20, 2006, 03:58:42 PM
Currently it will show all non posting groups.

I think I am just going to place a text field under "Basic Features" and then you enter in the groups you do not want to show on the staff list seperated by a comma.
I would rather alter the groups table to toggle if they are visible but don't want to mess up any mods, or future upgrades.

That is sounding good.  ;)

watching the evolution of a mod can be so kewl.  ;D
Title: Re: Staff Page Mod
Post by: onijin on May 20, 2006, 05:23:44 PM
Great mod~

You beat everyone to it.  Tried it myself, but couldn't figure it out.


Just one thing...  The PM link works for the nonposting groups, however, the local mods are coming up blank.  It's not plugging the data as it should.  Any suggestions?
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 20, 2006, 05:35:19 PM
Just fixed the PM link for local mods.

Two other goals for me is to hide groups that you want and finish SMF 1.0.7 support for the latest version.
Title: Re: Staff Page Mod
Post by: onijin on May 20, 2006, 06:22:17 PM
That's too fast man~

Don't kill yourself.

=P



oh~ sorry, one more thing...

Code: [Select]
//Send email row
echo '<a href="mailto:', $data['emailAddress'], '"><img src="' . $settings['images_url'] . '/sendemail.gif"></a>

is what I'm trying to get for the send email button for the locals.  That's coming up blank.  It worked for the nonposting groups though.  I'm guessing 'emailAddress' isn't correct here.
Title: Re: Staff Page Mod
Post by: Harzem on May 20, 2006, 06:25:13 PM
I've not looked at the mod, but if it is not already so, I will add something.

email addresses shouldn't show up in the list if the user has selected "hide my address". And if there is anything about online status, the same applies.

But again, these may be already implemented, I don't know.
Title: Re: Staff Page Mod
Post by: onijin on May 20, 2006, 06:27:09 PM
well...  The mod doesn't show anything about online status...  And didn't come with email at all.  Just PM, and some chatting links.
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 20, 2006, 06:34:24 PM
Just added email support and will not show if email is chosen to be hidden.
Title: Re: Staff Page Mod
Post by: onijin on May 20, 2006, 06:41:00 PM
You're a monster, dude... Thanx~!




hmmm~

local mods are still coming up blank on email...



hmmm~

I'm looking at the table for moderators, and I dont see anything about email.  Just an ID and BOARD
Title: Re: Staff Page Mod
Post by: Skipdawg on May 20, 2006, 08:34:50 PM
I think I'll hold off and see where you are with this on Monday. All this updating the Mods may break my test forum. LOL  8) :D ;D

Looking very good  ;)
Title: Re: Staff Page Mod
Post by: onijin on May 20, 2006, 08:48:49 PM
O.o


You don't need to uninstall/reinstall this mod.  Just replace the staff.template.php file because that's all that's being updated.
Title: Re: Staff Page Mod
Post by: Skipdawg on May 20, 2006, 11:32:50 PM
Not quite sure I follow there. Only install that Staff.template.php via the package manager?

I'd never heard of only installing part of the package before?

Or do you upload it via ftp alone?
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 20, 2006, 11:41:49 PM
While you could upload the file that has been updated to its proper location.
I still advise you to use the package manager to unistall and reinstall the mod.
Title: Re: Staff Page Mod
Post by: Skipdawg on May 20, 2006, 11:46:36 PM
While you could upload the file that has been updated to its proper location.
I still advise you to use the package manager to unistall and reinstall the mod.

Yea I think I'll stay with that. Only been messing with SMF a year but have never heard of partial installs like that.  ::)
Title: Re: Staff Page Mod
Post by: onijin on May 21, 2006, 10:10:59 AM
Not quite sure I follow there. Only install that Staff.template.php via the package manager?

I'd never heard of only installing part of the package before?

Or do you upload it via ftp alone?

I do it by ftp alone replacing that one file... But maybe just stick with the uninstall/reinstall.



so any luck with the localmod email?  not a big issue, but sweet to have.
Title: Re: Staff Page Mod
Post by: woden on May 21, 2006, 02:50:33 PM
I don't want the stafflist button to show unless the person has permission to see it, so I tried this:

Code: [Select]
// the [staff list] button
if ($context['allow_veiw_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>' : '';

But it doesn't work, I can use view_memberlist and it does work

Also -
 
Quote
You can change which member groups are shown by going to Staff List settings.

where is the Staff List settings?
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 21, 2006, 03:10:09 PM
I will add the hide staff list button on the next update.
Settings to toggle which groups will be shown will take a while.
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 21, 2006, 10:01:37 PM
Version 1.2 released.

The "Staff List" tab will no longer appear if they do not have permission to view the staff list.

You can filter out the groups by going to "Edit Feature and Options" then Layout and Options and enter the group names that you wish to be filtered seperated by a comma under SMF Staff.
Title: Re: Staff Page Mod
Post by: woden on May 21, 2006, 10:33:31 PM
Worked perfectly  :D

Thanks!
Title: Re: Staff Page Mod
Post by: Skipdawg on May 22, 2006, 02:44:08 AM
Great job with this mod. Pats on the back!  ;D ;)
Title: Re: Staff Page Mod
Post by: theslam2006 on May 22, 2006, 10:08:16 PM
Yes, excellent man. Got the PM links, the color coding, permissions, filters, and great organization. Deffinatly one the greatest mods for this board.
Title: Re: Staff Page Mod
Post by: Pink Bee on May 23, 2006, 09:49:15 AM
When I tried uninstalling the mod, it gave me this error:
Quote
1. Execute Modification - Modification parse error
May I know what causes this error?
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 23, 2006, 09:50:34 AM
That's probably from modifications.english.php which happens when you install other mods that change the file. You can pretty much ignore it. Just leaves the text strings in that file.
Title: Re: Staff Page Mod
Post by: theslam2006 on May 23, 2006, 02:55:14 PM
Ah, pinkbee. I suggest doing a forum search on that issue. There are several threads on it, although no one really knows what causes that exactly. Sometimes I find if you install more then 3 or 4 mods in a row it can do that. I used to get it, but been lucky, and havent gotten it since. But, test other mods too, it should do it on everyone that you try. Its not this one that is doing that.

Dont worry about it vbgamer45, its not your mod. Your doing fine.
Title: Re: Staff Page Mod
Post by: ladyshanae on May 25, 2006, 07:33:27 AM
The modification itself works fine, but when I look in my error log, I get this error:

Quote
http://mysiteinfo?action=staff
8: Undefined index: staff_filter
File: mysiteinfo/Staff.template.php (eval?)
Line: 13

I'm on a fresh install of 1.1RC2.

Edit:  Ok, I figured out I get this message if I do not add a filter of any kind in the Edit Feature and Options area in the admin panel.  So I'm not sure if you want to fix this or not - up to you :D  Thanks for a groovy mod!
Title: Re: Staff Page Mod
Post by: Dannii on May 25, 2006, 07:39:03 AM
Leaving behind language strings is not a problem. The uninstaller tries to remove them, but if multiple mods have added language strings to the same file it will get confused. You could remove them manually if you really wanted.
Title: Re: Staff Page Mod
Post by: onijin on May 26, 2006, 04:24:39 PM
hey~  lovin this mod...

but what does this error mean:
Quote
8: Undefined index: 38
File: /home/for10001/public_html/forum/Themes/default/Staff.template.php (eval?)
Line: 119

this is line 119:
Code: [Select]
$bmods[$row3['ID_MEMBER']] .= '<a href="' . $scripturl . '?board=' . $row3['ID_BOARD'] . '">' . $row3['name']  . '</a><br />';
Title: Re: Staff Page Mod
Post by: Captain_Morrigan on May 31, 2006, 03:54:12 PM
Can I ask for help with a feature or to add one. I am trying to add a Color Legend to my Online List and I want it to link to that member groups members. It's not something you can do in the normal memberlist query string but could you make it to where you can specify only one group to appear. So if I click on the normal one all staff members appear but if I click on one that says:
?action=staff&ID_GROUP=1
It only shows group one (which would be just the administrators)

If you could at least assist me with that I would appreciate it.
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 31, 2006, 04:09:44 PM
I did something simliar to show only one group but that was group name
http://www.smfhacks.com/index.php?topic=12.msg113#msg113

You can change it to ID_GROUP and modify the script to see if ID_GROUP was set when passed to the page if was then only show that group.
Title: Re: Staff Page Mod
Post by: Captain_Morrigan on May 31, 2006, 04:21:44 PM
Ok, I'll have to try it when I get home here at work it's filtering your site as a hacking site lol!

And it doesn't matter if it's by group name or ID I just want it to filter. Thanks!
Title: Re: Staff Page Mod
Post by: HaxXxoR on May 31, 2006, 06:24:33 PM
Is there a way for the staff page mod to display secondary and third member groups as well? I run a gaming website and i have clan members that are moderators and i would like them to show up in both member groups.
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 31, 2006, 08:42:50 PM
Not currently but I can see in the future having it support additonal member groups maybe have option to toggle it being shown.
Title: Re: Staff Page Mod
Post by: HaxXxoR on May 31, 2006, 08:45:03 PM
That would be awesome thanks
Title: Re: Staff Page Mod
Post by: Captain_Morrigan on June 01, 2006, 03:53:05 PM
The Hack worked great, I manipulated it so you can still show all of the staff members if you wanted.

My only problem is that it always shows the Mods (The Per board mods) I want them to be just like the other staff members that upon call it displays just that group. Could you help me do that?

You can see what I have so far by clicking on these links:
http://modernelf.enchantinge.com/index.php?action=staff&groupname=1 (Admins)
http://modernelf.enchantinge.com/index.php?action=staff&groupname=2 (Global Mods)
http://modernelf.enchantinge.com/index.php?action=staff&groupname=3 (Local Mods)

Nevermind, I fixed it. It just required a little more thought. Thanks for the great mod though.
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 01, 2006, 05:59:43 PM
Looks good xD.
Title: Re: Staff Page Mod
Post by: Captain_Morrigan on June 01, 2006, 08:39:25 PM
Here's a more legitimate question. How can we put the member Online Color highlight for the mods?
Title: Re: Staff Page Mod
Post by: sbclansite.com on June 02, 2006, 08:33:24 PM
There is a small bug or in short an error cause it gived t-string error in the admin panel > features

This is what is wrong :
Code: [Select]
<file name="$sourcedir/ModSettings.php">
<operation>
<search position="before"><![CDATA[array('check', 'who_enabled'),]]></search>
<add><![CDATA[
//SMF Staff Mod
array('text', 'staff_filter')]]></add>
</operation>
</file>
</modification>

See that line in the staff.xml notice this line array('text', 'staff_filter') its missing a , at the end and it should be array('text', 'staff_filter'), 

Well atleast i had issue with that and editing that line and adding the , fixed my admin>features panel.

Cheers
Title: Re: Staff Page Mod
Post by: RBH on June 04, 2006, 11:24:33 PM
everything seems to be working, but whats with the thick black border around the mod list? if i dont have a mod then that is just a big black space.


why wont my picture post ??? ??? (http://img.photobucket.com/albums/v13/ratherbehunting/test%20album/stafflistprob1.jpg)
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 04, 2006, 11:26:58 PM
Yeah need a picture to see what is going on. Seems you have the wrong url cause it says file not found when I try to go to that url.


As for the space I just wanted to seperate local moderators from the other groups. You can remove the extra line break <br /> in the staff.template.php
Title: Re: Staff Page Mod
Post by: RBH on June 04, 2006, 11:29:50 PM
there we go.....dont know why it would post before.....it wouldnt even show a broken link or nothing......it was like i wasnt even entering anything....oh well.

that makes sense, but what about the black underneath the local mod section? also, if i dont have a mod chosen it is a black void there, is that suppose to be?

ok, i think i figured it out......your copyright info is down there and with my borders being black it is covering them. i will play around tomorrow and work it out so your copyright shows correctly.

thanks for a cool mod!
Title: Re: Staff Page Mod
Post by: ghostfreak on June 05, 2006, 07:40:58 AM
Working fine on my site (check sig for address).
Title: Re: Staff Page Mod
Post by: Skipdawg on June 05, 2006, 07:27:30 PM
Mod is working fine for me but dose anyone else get allot of errors for in in the forum error log?
Title: Re: Staff Page Mod
Post by: onijin on June 05, 2006, 07:37:05 PM
8: Undefined index: 38
File: /home/for10001/public_html/forum/Themes/default/Staff.template.php (eval?)
Line: 119

yeah.  Not a big issue, but I'm cleaning out my log everyday cause there are too many pages.
Title: Re: Staff Page Mod
Post by: Skipdawg on June 05, 2006, 08:49:11 PM
Yea no big issue but I went 3 days without looking and had 2 pages of errors and almost all of them were for it.  :o
Title: Re: Staff Page Mod
Post by: RBH on June 05, 2006, 11:57:11 PM
if you guys read back through you will see how to stop the errors. ;D
Title: Re: Staff Page Mod
Post by: Skipdawg on June 06, 2006, 01:48:36 AM
if you guys read back through you will see how to stop the errors. ;D

OK? do you mind pointing it out then for I see a few fixes mentioned but not for this. Yes i see it brought up before but no fix!
Title: Re: Staff Page Mod
Post by: RBH on June 06, 2006, 08:39:46 AM
The modification itself works fine, but when I look in my error log, I get this error:

Quote
http://mysiteinfo?action=staff
8: Undefined index: staff_filter
File: mysiteinfo/Staff.template.php (eval?)
Line: 13

I'm on a fresh install of 1.1RC2.

Edit:  Ok, I figured out I get this message if I do not add a filter of any kind in the Edit Feature and Options area in the admin panel.  So I'm not sure if you want to fix this or not - up to you :D  Thanks for a groovy mod!

i too was getting pages and pages of errors until i went in and added a group in the filter box suggested in this post. i happen to have other groups other then moderator, global moderator, and administrator so i just added the other two groups seperated by comas and i have not had one error since. go to features and options, layout and options and scroll to the bottom to see filter box.
Title: Re: Staff Page Mod
Post by: onijin on June 06, 2006, 08:58:36 AM
Koo.

But  my  error isn't a "staff_filter" error, so it didn't work when I tried that.
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 06, 2006, 10:25:26 AM
I think I fixed all log errors in the SMF 1.1 RC2 version now.
Except for one at Undefined index: 2
File: forums\Themes\default\Staff.template.php (main sub template - eval?)
Line: 127

Title: Re: Staff Page Mod
Post by: onijin on June 06, 2006, 10:43:26 AM
You've been a madman with the fixes and updates, so perhaps I'm running an out dated one.

I'll try updating and see if it fixes that.

Thanks~!
Title: Re: Staff Page Mod
Post by: onijin on June 06, 2006, 12:07:56 PM
Complete successful uninstall, with a complete successful reinstall of the package, still results in the error log.

Not a big issue.  Just everytime it's viewed, each member generates 5 errors.  Perhaps one of my other mods is interfering with this.
Title: Re: Staff Page Mod
Post by: Skipdawg on June 06, 2006, 12:38:58 PM
The modification itself works fine, but when I look in my error log, I get this error:

Quote
http://mysiteinfo?action=staff
8: Undefined index: staff_filter
File: mysiteinfo/Staff.template.php (eval?)
Line: 13

I'm on a fresh install of 1.1RC2.

Edit:  Ok, I figured out I get this message if I do not add a filter of any kind in the Edit Feature and Options area in the admin panel.  So I'm not sure if you want to fix this or not - up to you :D  Thanks for a groovy mod!

i too was getting pages and pages of errors until i went in and added a group in the filter box suggested in this post. i happen to have other groups other then moderator, global moderator, and administrator so i just added the other two groups seperated by comas and i have not had one error since. go to features and options, layout and options and scroll to the bottom to see filter box.

Yea I saw that but not any help if you don't have anything to add to the filter. And you should not have to make a new group just to fix it.
Title: Re: Staff Page Mod
Post by: sbclansite.com on June 06, 2006, 06:25:39 PM
Hmm this mod works great it even shows the extra membergroups i add fine :)

http://www.forums.sbclansite.com/index.php?action=staff << even the filter works properly :)
Title: Re: Staff Page Mod
Post by: RoarinRow on June 12, 2006, 01:50:15 AM
Very cool mod, thank you!   8)
Title: Re: Staff Page Mod
Post by: DemonicInfluence on June 12, 2006, 11:57:35 AM
Great mod Thanks :)
Title: Re: Staff Page Mod
Post by: cotdagoo on June 13, 2006, 07:58:02 PM
awesome mod, been wanting a feature like this for a while

few questions though.. I've got the visual warning mod installed, and my warned usergroup shows up, as well as groups that aren't listed in the config. Currently the only groups I've got in the form are Administrators, Moderator - but it shows a 'cast member' group as well as the warning group I've got.. is there any easy way to fix this, or do I need to start digging in the code?
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 13, 2006, 08:13:14 PM
For the SMF 1.1 RC2 version there is a filter under features and options then layout options tab. There you have to enter in the exact group name in that box that you wish to filter from the list.
Title: Re: Staff Page Mod
Post by: cotdagoo on June 14, 2006, 01:30:24 AM
doh.. stupid me.. for some reason I was sure the box was to hold names you wanted on the list, not the other way around.

thanks for the easy heads up! :)
Title: Re: Staff Page Mod
Post by: sy278 on June 14, 2006, 03:18:16 PM
The modification itself works fine, but when I look in my error log, I get this error:

Quote
http://mysiteinfo?action=staff
8: Undefined index: staff_filter
File: mysiteinfo/Staff.template.php (eval?)
Line: 13

I'm on a fresh install of 1.1RC2.

Edit:  Ok, I figured out I get this message if I do not add a filter of any kind in the Edit Feature and Options area in the admin panel.  So I'm not sure if you want to fix this or not - up to you :D  Thanks for a groovy mod!

i too was getting pages and pages of errors until i went in and added a group in the filter box suggested in this post. i happen to have other groups other then moderator, global moderator, and administrator so i just added the other two groups seperated by comas and i have not had one error since. go to features and options, layout and options and scroll to the bottom to see filter box.

Yea I saw that but not any help if you don't have anything to add to the filter. And you should not have to make a new group just to fix it.

Cool that worked I just added the Newbie group to the filter and errors stopped.
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 19, 2006, 10:32:11 PM
Finally have an update for the SMF 1.0.7 it was acutally pretty easy I really didn't have to change much.

Updated the SMF 1.0.7 release
Fixed unistall mod.
Added permissions for staff list.
Updated the layout looks nicer now.
Account names are colored depending on their group color.
Added Staff List group filter under Layout and Options
Staff list button won't show if they don't have permission to view the list.

Title: Re: Staff Page Mod
Post by: Bigguy on June 21, 2006, 04:44:13 PM
Anyway to get rid of these:

Quote
Undefined index: MSN
File: /home/****/public_html/smf/Themes/hiha11rc2/Staff.template.php (eval?)
Line: 156

There there for YIM, ICQ, AIM...
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 21, 2006, 04:44:59 PM
Yeah those should have been fixed in the last SMF 1.1 RC2 update
Title: Re: Staff Page Mod
Post by: Bigguy on June 21, 2006, 04:45:58 PM
hmm, maybe I have an outdated version. Are the changes that were made easy to do manually or do I have to reinstall the mod. ???
Title: Re: Staff Page Mod
Post by: carola0102 on June 25, 2006, 07:04:36 AM
This is a very nice mod! I used this mod before with default theme but now I'm using chatbubbles theme.. how to make this mod visible after installing it? Should I edit only the BoardIndex.template.php? And what exactly should I edit? I read the guidelines on this forum. But still I couldnt make it  Can anyone please help?

Thanks in advance,
Carola
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 25, 2006, 11:56:36 AM
The only file you need to edit is index.template.php of the custom theme that you are using.
I look at the menu function of that theme and just copy the code from one of the buttons and change the action to staff and the image to the image you want to use.
Title: Re: Staff Page Mod
Post by: carola0102 on June 25, 2006, 06:20:06 PM
The only file you need to edit is index.template.php of the custom theme that you are using.
I look at the menu function of that theme and just copy the code from one of the buttons and change the action to staff and the image to the image you want to use.

Thanks a lot for your reply vbgamer! it works now :)
Title: Re: Staff Page Mod
Post by: Bigguy on July 06, 2006, 12:30:32 PM
I`m still getting these errors.

Anyway to get rid of these:

Quote
Undefined index: MSN
File: /home/****/public_html/smf/Themes/hiha11rc2/Staff.template.php (eval?)
Line: 156

There there for YIM, ICQ, AIM...
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 06, 2006, 01:39:22 PM
When did you last download it? I haven't got those errors in a while. The only warning that you still get is undefined index on line 127.
Title: Re: Staff Page Mod
Post by: Bigguy on July 06, 2006, 02:27:45 PM
I`m using SMF Staff Page 1.1 In package manager there doesn`t seem to be an uninstall for it.

EDIT: I guess I have both of them installed I see version 1.2 as well.
Title: Re: Staff Page Mod
Post by: Dazzler on July 10, 2006, 06:24:57 PM
hi there.. i get an error.. not when veiwing staff page... but when i am working in my admin side of my forum.. am i the only one with this prob?
Title: Re: Staff Page Mod
Post by: PrizeLive.com on July 10, 2006, 06:38:00 PM
hi there.. i get an error.. not when veiwing staff page... but when i am working in my admin side of my forum.. am i the only one with this prob?

What's there to work on in the admin side for the staff page?
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 10, 2006, 06:39:50 PM
hi there.. i get an error.. not when veiwing staff page... but when i am working in my admin side of my forum.. am i the only one with this prob?
What's the error?
Title: Re: Staff Page Mod
Post by: Dazzler on July 10, 2006, 06:50:57 PM
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/*****/public_html/forum/Sources/ModSettings.php on line 292

when i click on "fetures and options" in my forums admin
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 10, 2006, 07:05:48 PM
What SMF Version are you running and can you post the code for like 5 lines above and below line 292
Title: Re: Staff Page Mod
Post by: Dazzler on July 10, 2006, 07:09:55 PM
its 1.1 RC2... give me a few mins and i will dig up the code
Title: Re: Staff Page Mod
Post by: Dazzler on July 10, 2006, 07:12:15 PM
Code: [Select]
'',
// Pagination stuff.
array('int', 'defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check', 'timeLoadPageEnable'),
array('check', 'disableHostnameLookup'),
'',(this line is 292 daz)
// Who's online.
array('check', 'who_enabled'),
//SMF Staff Mod
array('text', 'staff_filter')
'',
            // The Streaming Mod Options.
            array('check', 'enableEmbeddedStream'),
array('check', 'enableEmbeddedReal'),
array('check', 'enableEmbeddedQuick'),
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 10, 2006, 07:28:42 PM
add a comma after array('text', 'staff_filter') to make it array('text', 'staff_filter'),

Strange i didn't hear anything about this before. I am going to check out the download files.
Title: Re: Staff Page Mod
Post by: PrizeLive.com on July 10, 2006, 07:32:14 PM
Why is mine different?:

Code: [Select]
// Pagination stuff.
array('int', 'defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check', 'timeLoadPageEnable'),
array('check', 'disableHostnameLookup'),
'',
// Who's online.
array('check', 'who_enabled'),
//SMF Staff Mod
array('text', 'staff_filter')
);

Do I have an old version or something?
Title: Re: Staff Page Mod
Post by: Dazzler on July 10, 2006, 07:33:34 PM
That worked first time thanks

Daz

now all i have got to do is find the settings for it.. its displaying everygroup
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 10, 2006, 07:43:29 PM
Edit features and options. Under layout options. Need to type the exact group name's to filter
Title: Re: Staff Page Mod
Post by: Dazzler on July 10, 2006, 08:02:00 PM
all done works a treat.. thank you for your help.. i ment to say something ages ago i had the same prob.. i just left it hoping the mod would evolve and fix my prob...

Thanks again

Daz
Title: Re: Staff Page Mod
Post by: smurfyforum on July 11, 2006, 03:08:30 AM
Will this MOD ever work with any other theme besides the default??
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 11, 2006, 06:35:13 AM
Will this MOD ever work with any other theme besides the default??
All mods can't really install on non default themes. But it is easy to make this one work. All you need to do is make a new button on the theme you are using. You can access it via http://www.yoursite.com/index.php?action=staff
Title: Re: Staff Page Mod
Post by: smurfyforum on July 11, 2006, 08:44:09 AM
Will this MOD ever work with any other theme besides the default??
All mods can't really install on non default themes. But it is easy to make this one work. All you need to do is make a new button on the theme you are using. You can access it via http://www.yoursite.com/index.php?action=staff

Ok I have done this - but why does the page NOT list the Admin??
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 11, 2006, 12:27:12 PM
The mod by default lists all non post based groups.
Title: Re: Staff Page Mod
Post by: tarkhorani on July 13, 2006, 09:43:14 AM
good but i get this error when I go to admin -> fetures and options:

Parse error: syntax error, unexpected T_ARRAY, expecting ')' in /home/epaytalk/public_html/Sources/ModSettings.php on line 299
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 14, 2006, 02:11:16 PM
good but i get this error when I go to admin -> fetures and options:

Parse error: syntax error, unexpected T_ARRAY, expecting ')' in /home/epaytalk/public_html/Sources/ModSettings.php on line 299
Fixed redownload the mod.
Title: Re: Staff Page Mod
Post by: tarkhorani on July 14, 2006, 05:12:45 PM
Good works

sample: http://www.epaytalk.com/index.php?action=staff
Title: Re: Staff Page Mod
Post by: Dazzler on July 14, 2006, 07:07:27 PM
good evening... just to let you know there is still a problem.. tthis displays and works correctly i am getting lots of forum errors in my log everytime somebody veiws the staff page

Daz
Title: Re: Staff Page Mod
Post by: ladyshanae on July 15, 2006, 10:41:54 PM
Two problems from my end:

1 - When I set a list of groups to filter out of the Staff List, it removes the first one, but the rest stay.

2 - The following error generates a gazillion times when I view the staff page once:
Quote
http://**mysiteinfo**index.php?action=staff
8: Undefined index: 58
File: /**mysiteinfo**Themes/default/Staff.template.php (main sub template - eval?)
Line: 127

Any fixes?  I'd love to get this working soon :)  Thanks!

Edit:  Forgot to mention that I am using 1.1 RC2
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 15, 2006, 10:44:35 PM
1.  Each group needs to be be the exact name lets say you have a group called Sponsors and another group called Helpers and you wanted to filter both groups from the staff list.
You would enter for the staff filter code Sponsors,Helpers
You need to type it exactly it is case sensitive.

2. Not sure how to fix #2
Title: Re: Staff Page Mod
Post by: ladyshanae on July 16, 2006, 07:53:40 AM
Ok, the first problem is fixed :)  I was putting a space after the comma!  Whoops!

The second problem, though . . . the page generates 14 similar errors (with a different Undefined index #) each time the page is viewed.  Is this an error everyone is getting, or is it just me?

Line 127 looks like this:

Quote
$bmods[$row3['ID_MEMBER']] .= '<a href="' . $scripturl . '?board=' . $row3['ID_BOARD'] . '">' . $row3['name']  . '</a><br />';

Edit:

And now I have a new error showing up:

Quote
8: Undefined index: allow_view_stafflist
File: **mysiteinfo**/Themes/default/MessageIndex.template.php (main_above sub template - eval?)
Line: 601

I have 4 groups set to be able to view the page, all the rest can not.  The person who generated this error does have permission to view it.  Even more bizarre is the fact that there is no line 601 in that file.
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 16, 2006, 08:10:20 AM
Redownload the package. I think I fixed the offset error being logged.
Title: Re: Staff Page Mod
Post by: ladyshanae on July 16, 2006, 08:58:13 AM
Yay :D  That got rid of my Line 27 issues.  :D :D :D

My problem is now the fact that SOME people are generating the link 601 error and some people aren't and I have no idea how to figure out why lol

Would not having the staff link at the top of the forum yet make any difference?


http://**mysite**/index.php
8: Undefined index: allow_view_stafflist
File: **mysite**/Themes/default/BoardIndex.template.php (main_above sub template - eval?)
Line: 601

http://**mysite**index.php?action=unread
Apply Filter: Only show the errors with the same message
8: Undefined index: allow_view_stafflist
File: **mysite**/Themes/default/Recent.template.php (main_above sub template - eval?)
Line: 601

It seems to happen to certain users no matter what they do on the board.
Title: Re: Staff Page Mod
Post by: uberjon on July 16, 2006, 10:32:35 PM
is it possible to have like a feature area in admin cp where you can choose special groops to be added to this.

like for my forum i have
Forum Administrator*
Global Moderator*
Moderator*
Clan Admin*
Admin Assistant*
Ambassador
Jr. Member
Sab Squad Member
Woc Spammers

those are all my groups.

the ones with * i would like to have on the staff page does it have that option? if not can u make it?

if it does have that option then. well well done :D nice mod ;) and congrats ;)


edit when i try and install it i get the following errors.

    
Apply Filter: Only show the error messages of this member UberGold    Today at 10:35:00 PM
Apply Filter: Only show the error messages of this IP address 72.72.219.87      Apply Filter: Only show the error messages of this session 5b3e0b3e11b09eb6d6408c71c4cb6b31
Apply Filter: Only show the error messages of this URL http://www.warlordsofchaos.org/index.php?action=packages;sa=install2;package=Staff.zip
Apply Filter: Only show the errors with the same message
512: parseModification(): The filename 'Themes/default/index.template.php' is not a full path!
File: /home/uberjon/public_html/warlordsofchaos-org/Sources/Subs-Package.php
Line: 1329
   
Apply Filter: Only show the error messages of this member UberGold    Today at 10:34:37 PM
Apply Filter: Only show the error messages of this IP address 72.72.219.87      Apply Filter: Only show the error messages of this session 5b3e0b3e11b09eb6d6408c71c4cb6b31
Apply Filter: Only show the error messages of this URL http://www.warlordsofchaos.org/index.php?action=packages;sa=install;package=Staff.zip
Apply Filter: Only show the errors with the same message
512: parseModification(): The filename 'Themes/default/index.template.php' is not a full path!
File: /home/uberjon/public_html/warlordsofchaos-org/Sources/Subs-Package.php
Line: 1329

;)

mods i have installed are.

    Mod Name     Version     
1.    SMF 1.0.7 / 1.1 RC2 Update    1.0    [ Uninstall ]
2.    Membergroup Color Legend    1.1    [ Uninstall ]
3.    Users Online Today Mod    1.3.1    [ Uninstall ]
4.    PJIRC Integrated Chat Mod    2.0    [ Uninstall ]
5.    Karma Description Mod    1.9.7    [ Uninstall ]
6.    Custom Action Mod    2.0    [ Uninstall ]
7.    Custom Profile Field Mod    3.11    [ Uninstall ]
8.    TinyPortal    0.86    [ Uninstall ]
9.    Sticky First Post (extends sticky topic)    1.2.2    [ Uninstall ]
10.    Global Headers Footers    1.0    [ Uninstall ]
11.    Member Color Link    1.87    [ Uninstall ]


^_^ can u help?
Title: Re: Staff Page Mod
Post by: PrizeLive.com on July 16, 2006, 10:36:18 PM
Admin >> Features and Options >> Layout and Options >>

SMF Staff - Filter groups on staff page. (seperate each group name by a comma.)

Enter in the groups that you don't want to have shown.
Title: Re: Staff Page Mod
Post by: uberjon on July 16, 2006, 10:49:10 PM
ok so i look like a fool now :(

um. but wouldnt it make sense to have its own tab instead of under layout like other mods?

i looked but couldnt find where the options was :P

btw it seems to work great even with my mods now :D no errors even :D

now i just got to remember how to remove tabs from the forum--logout bar :P as i want the button elsewhere :P
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 16, 2006, 10:57:48 PM
ok so i look like a fool now :(

um. but wouldnt it make sense to have its own tab instead of under layout like other mods?

i looked but couldnt find where the options was :P

btw it seems to work great even with my mods now :D no errors even :D

now i just got to remember how to remove tabs from the forum--logout bar :P as i want the button elsewhere :P
I really didn't want to fill up that page with extra tab just for one option for the staff page.

To edit menu links look in index.template.php and the menu function
Title: Re: Staff Page Mod
Post by: mforum on July 17, 2006, 12:59:13 PM
Very good modification  :)
A small problem is when you have more than one Moderator for the same board or a lot of boards with moderators, stuff page fills with same boards over and over makes it look terrible    :(
Can i do something to avoid listing of moderated rooms at least?  ???
Title: Re: Staff Page Mod
Post by: PrizeLive.com on July 17, 2006, 01:10:17 PM
Very good modification  :)
A small problem is when you have more than one Moderator for the same board or a lot of boards with moderators, stuff page fills with same boards over and over makes it look terrible    :(
Can i do something to avoid listing of moderated rooms at least?  ???

Admin >> Features and Options >> Layout and Options >>

SMF Staff - Filter groups on staff page. (seperate each group name by a comma.)

Enter in the group names that you don't want to have shown.
Title: Re: Staff Page Mod
Post by: mforum on July 17, 2006, 01:26:25 PM
I know that, but don`t work for Moderators  :-\
Title: Re: Staff Page Mod
Post by: mforum on July 21, 2006, 03:06:39 PM
It would look much better if there were separators in Local Moderators part of staff page  :-\
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 21, 2006, 03:16:37 PM
It would look much better if there were separators in Local Moderators part of staff page  :-\
What do you mean?
Title: Re: Staff Page Mod
Post by: mforum on July 22, 2006, 04:24:15 AM
Well, i mean to add something like HorizontalRules to separate each local moderator.
If you have 2-3 or more moderators in a lot of boards the Local Moderators window has same boards mixed up makes it look not so nice...... :-[
Title: Re: Staff Page Mod
Post by: ladyshanae on July 22, 2006, 09:08:37 AM
My moderators are all in special groups, so I just removed the local moderators completely from the staff.template.php page. 

Do you need them displayed?  If not, I can tell you which portion of the code to remove :)
Title: Re: Staff Page Mod
Post by: HecKel on July 23, 2006, 10:54:16 AM
How can I select which groups are visible on this staff page? I have one group called Banned and I don't want to show them...

HecKel
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 23, 2006, 11:02:22 AM
SMF 1.0.7 under edit features and options board settings I think set the staff filter to the exact group name you do not want to show.

SMF 1.1 RC2 Edit features and options under layout options.
Set the staff filter to the exact group name you do not want to show.
Title: Re: Staff Page Mod
Post by: HecKel on July 23, 2006, 11:20:01 AM
tnks :)

HecKel
Title: Re: Staff Page Mod
Post by: mforum on July 24, 2006, 05:02:21 AM
My moderators are all in special groups, so I just removed the local moderators completely from the staff.template.php page. 

Do you need them displayed?  If not, I can tell you which portion of the code to remove :)

Yes, i would like that please.
Title: Re: Staff Page Mod
Post by: ladyshanae on July 24, 2006, 10:15:23 AM
To remove local moderators, simply remove this code from staff.template.php:

Code: [Select]
//Seperate the groups from the local mods.
echo '<br />';


//Show local mod's
$localmods = array();
//Stores the boards that member is a moderateor of
$bmods = array();

$query3 = db_query("SELECT m.ID_GROUP, m.ID_MEMBER, m.realName, m.lastLogin, m.dateRegistered, m.ICQ, m.AIM, m.YIM, m.MSN, m.hideEmail, m.emailAddress, b.name, b.ID_BOARD
FROM {$db_prefix}members AS m, {$db_prefix}moderators AS o, {$db_prefix}boards AS b WHERE o.ID_MEMBER = m.ID_MEMBER AND b.ID_BOARD = o.ID_BOARD AND $user_info[query_see_board]", __FILE__, __LINE__);
if(db_affected_rows() != 0)
{
echo '<table border="0" cellspacing="0" cellpadding="2" width="100%">';

echo '<tr>';
echo '<td class="catbg2" width="25%">' . $txt['smfstaff_local'] . '</td>';
echo '<td class="catbg2" width="25%">' . $txt['smfstaff_lastlogin'] . '</td>';
echo '<td class="catbg2" width="25%">' . $txt['smfstaff_forums'] . '</td>';
echo '<td class="catbg2" width="25%">' . $txt['smfstaff_contact'] . '</td>';
echo '</tr>';
while ($row3 = mysql_fetch_assoc($query3))
{
@$bmods[$row3['ID_MEMBER']] .= '<a href="' . $scripturl . '?board=' . $row3['ID_BOARD'] . '">' . $row3['name']  . '</a><br />';

$localmods[$row3['ID_MEMBER']]  = array(
'id' => $row3['ID_MEMBER'],
'realName' => $row3['realName'],
'lastLogin' => $row3['lastLogin'],
'dateRegistered' => $row3['dateRegistered'],
'hideEmail'  => $row3['hideEmail'],
'emailAddress' => $row3['emailAddress'],
'ICQ' => $row3['ICQ'],
'YIM' => $row3['YIM'],
'AIM' => $row3['AIM'],
'MSN' => $row3['MSN'],
'forums' =>  $bmods[$row3['ID_MEMBER']],
);

}

foreach ($localmods  as $id => $data)
{
echo '<tr>';
echo '<td class="windowbg"><a href="' . $scripturl . '?action=profile;u=' . $data['id'] . '">' . $data['realName'] . '</a></td>';
echo '<td class="windowbg">' . timeformat($data['lastLogin']) . '</td>';
echo '<td class="windowbg">' . $data['forums'] . '</td>';
//echo '<td class="windowbg">' .  timeformat($data['dateRegistered']) . '</td>';
echo '<td class="windowbg" align="center">';

//Send email row
if($data['hideEmail'] == 0)
echo '<a href="mailto:', $data['emailAddress'], '"><img src="' . $settings['images_url'] . '/email_sm.gif" alt="email" /></a>&nbsp;';


if($data['ICQ'] != '')
echo '<a href="http://www.icq.com/whitepages/about_me.php?uin=' . $data['ICQ'] . '" target="_blank"><img src="http://status.icq.com/online.gif?img=5&amp;icq=' . $data['ICQ'] . '" alt="' . $data['ICQ'] . '" width="18" height="18" border="0" /></a>&nbsp;';
if($data['AIM'] != '')
echo '<a href="aim:goim?screenname=' . urlencode(strtr($data['AIM'], array(' ' => '%20'))) . '&amp;message=' . $txt['aim_default_message'] . '"><img src="' . $settings['images_url'] . '/aim.gif" alt="' . $data['AIM'] . '" border="0" /></a>&nbsp;';
if($data['YIM'] != '')
echo '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($data['YIM']) . '"><img src="http://opi.yahoo.com/online?u=' . urlencode($data['YIM']) . '&amp;m=g&amp;t=0" alt="' . $data['YIM'] . '" border="0" /></a>&nbsp;';
if($data['MSN'] != '')
echo '<a href="http://members.msn.com/' . $data['MSN'] . '" target="_blank"><img src="' . $settings['images_url'] . '/msntalk.gif" alt="' . $data['MSN'] . '" border="0" /></a>&nbsp;';

//Send PM row
echo '<a href="' . $scripturl . '?action=pm;sa=send;u=' . $data['id'] . '">' . $txt['smfstaff_sendpm'] . '</a>';

echo '</td>';
echo '</tr>';
}

echo '</table>';
}
mysql_free_result($query3);

Hope that works for you!
Title: Re: Staff Page Mod
Post by: mforum on July 24, 2006, 01:50:50 PM
It worked fine  :)   looks much better now  ;)
Thanks
Title: Re: Staff Page Mod
Post by: Parijs on August 15, 2006, 09:39:18 AM
Im using the WOW DK theme for my SMF 1.1 RC2 forum, I installed this mod but how can I get it to show up on my theme?  What file do I edit and what should I add to it?  Any help would be greatly appreciated

Parijs
Title: Re: Staff Page Mod
Post by: Bigguy on August 15, 2006, 11:20:06 AM
All you have to add is a button to get to it. Like "help", "home", "Message" You can do that in the "Index.template.php" file.
Title: Re: Staff Page Mod
Post by: Parijs on August 15, 2006, 02:54:40 PM
I wanna cry  :'(  I am a total newb at this :( I dont know what to add and where I should add it.  Could I ask for someone's help on this?  Pretty please...I would be so greatful :-[

Code: [Select]
<?php
// Version: 1.1 RC2; index

/* This template is, perhaps, the most important template in the theme.  It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below.  It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1 RC2';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = false;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = false;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = false;
}

function 
get_collapsed_state($object_id)
{
    global 
$settings;
    
    if(isset(
$settings['collapsed_sects']) && !empty($settings['collapsed_sects'])) {
if(array_search($object_id$settings['collapsed_sects']) === false)
    return false;
else
    return true;
    }
    return 
false;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$forum_version$language$modSettings;

$csect_cookie 'SMF_user_' $context['user']['id'] . '_CSect';

if(isset($_COOKIE[$csect_cookie]) && !empty($_COOKIE[$csect_cookie]))
    $settings['collapsed_sects'] = explode("\n"$_COOKIE[$csect_cookie]);
$settings['csect_cookie'] = $csect_cookie;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' ''' xml:lang="'$txt['lang_dictionary'], '" lang="'$txt['lang_dictionary'], '"><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="description" content="'
$context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?rc2"></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['theme_url'], '/collapse.js?rc2"></script>';

if(empty(
$settings['show_dhtml_menu']))
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['theme_url'], '/menu.js?rc2"></script>';

echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?rc2 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?rc2" />';



// Any color set by user?
if (isset($options['theme_color']))
$settings['theme_user_color'] = $options['theme_color'];

// If not set, or if not allowed to set
if(!isset($options['theme_color']) || (isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'no'))
{
// Defaults.
$options['theme_color'] = isset($settings['theme_default_color']) ? $settings['theme_default_color'] : '10';
$settings['theme_user_color'] = $options['theme_color'];
}

if (empty($settings['theme_user_color']))
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/maincolorcss/default_orc.css?rc2" />';
else
{
if ($settings['theme_user_color'] == 0)
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/maincolorcss/default_orc.css?rc2" />';
if ($settings['theme_user_color'] == 1)
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/maincolorcss/blue_human.css?rc2" />';
if ($settings['theme_user_color'] == 2)
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/maincolorcss/blue_draenei.css?rc2" />';
if ($settings['theme_user_color'] == 3)
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/maincolorcss/red_b_elves.css?rc2" />';
if ($settings['theme_user_color'] == 4)
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/maincolorcss/blue_elves.css?rc2" />';
if ($settings['theme_user_color'] == 5)
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/maincolorcss/green_undead.css?rc2" />';
if ($settings['theme_user_color'] == 6)
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/maincolorcss/brown_dwarves.css?rc2" />';
if ($settings['theme_user_color'] == 7)
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/maincolorcss/brown_gnomes.css?rc2" />';
if ($settings['theme_user_color'] == 8)
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/maincolorcss/red_troll.css?rc2" />';
if ($settings['theme_user_color'] == 9)
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/maincolorcss/brown_tauren.css?rc2" />';
if ($settings['theme_user_color'] == 10)
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/maincolorcss/grey_logo.css?rc2" />';
}

if(empty(
$settings['show_dhtml_menu']))
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/menu.css?rc2" />';

echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?rc2" media="print" />
<!--[if IE 5 ]><link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/ie5.css?rc2"><![endif]-->';
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>
</head>
<body>
<a name="top_t" id="top_t"></a>'
;

// Because of the way width/padding are calculated, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!)
echo '
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" >
<tbody>
<tr><td align="left" width="170"'
, empty($settings['header_logo_url']) ? ' class="topbg_l"' ' class="topbg_l2"'' height="38">&nbsp;</td><td colspan="2" align="left" class="topbg" valign="middle">&nbsp;
</td><td align="right" width="37" class="topbg_r" valign="top">
&nbsp;
</td>
</tr>  </tbody>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tbody>
    <tr>
      <td width="15" class="area_l"><img src="'
$settings['images_url'], '/area_blank.gif" border="0" alt="" /></td><td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="hd_border_l"><img src="'
$settings['images_url'], '/hd_border_l.gif" border="0" alt="" /></td>
<td id="headerarea" align="center" width="100%" style="position: relative; padding: 0 0 0 0;">'
;

// The logo and the three info boxes.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;">
<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;" ''>
<td valign="top">
<div>
<table width="100%"'
, empty($settings['header_logo_url']) ? ' class="headerbodies"' ' class="headerbodies3"'' cellpadding="0" cellspacing="5" border="0">
<tr><td width="10%"><!--blank--></td>
<td width="60%" valign="top" class="headertext" align="left" height="65" >
<div style="width: 100%; overflow: hidden;">
'
;

// This part is the logo and forum name.  You should be able to change this to whatever you want...

if (empty($settings['header_logo_url']))
echo '
<div style="font-family: Georgia, sans-serif; font-size: 30px; padding: 5px 0 12px 90px; white-space: nowrap; float: left; background-image: url(images/header_bg_r.png;">'
$context['forum_name'], '</div>
<div style="float: right; width: 80%;"><!-- blank --></div>'
;
else
echo '
<img src="'
$settings['header_logo_url'], '" alt="'$context['forum_name'], '" border="0" />';

echo '
</div></td>'
;

if (!empty($context['user']['avatar']))
{
if(empty($settings['top_avatar_resize']))
{
$context['user']['avatar']['image'] = strtr($context['user']['avatar']['image'], array("class=\"avatar\"" => "class=\"avatar_t\""));
}
echo '<td valign="middle">'$context['user']['avatar']['image'], '</td>';
}

echo '
<td width="30%" class="headertext_r" valign="top" align="left" nowrap="nowrap">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
'
$txt['hello_member'], ' <b>'$context['user']['name'], '</b>';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ', '$txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'];
echo '.<br />';

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

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

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}

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

}
// Otherwise they're a guest - so politely ask them to register or login.
else
{
echo '
'
$txt['welcome_guest'], '<br />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" style="margin: 3px 1ex 1px 0; text-align: left;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="302400">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
'
$txt['smf52'], '
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}
echo '
</td></tr>
</table>
</div>
</td>

</tr>
</table>'
;

echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="maintab_bgba" align="left" nowrap="nowrap">
<div style="width: 100%; overflow: auto;">'
;
// Show the menu here, according to the menu sub template.
template_menu();
echo '
</div></td><td class="maintab_bgb" align="right" width="25"><div><a href="#top_t" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 2px 4px 2px 0;" border="0" /></a></div></td>
</tr>
</table>
<table width="100%" class="headerbodies2a" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="headernews" height="24" width="95%" align="left"><!-- News -->'
;

if (!empty($settings['enable_news']))
echo '
<span style="text-transform: uppercase; font-weight: bold;">'
$txt[102], '</span> :  '$context['random_news_line'] , ' ';

echo '
</td>
<td class="currenttime" width="5%" valign="top" nowrap="nowrap">'
$context['current_time'] , '</td>
</tr>
</table>
<table width="100%" class="headerbodies2" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="middle" align="left" style="padding: 8px 0px 8px 10px;" width="100%">'
theme_linktree(), '</td>
<td valign="middle"><a href="'
$scripturl'?action=search;advanced" class="searchb" title="'$txt['smf298'], '"><img src="'$settings['images_url'], '/search2_f.gif" border="0" alt="'$txt['smf298'], '" /></a></td>
<td valign="middle" align="right" style="padding: 8px 10px 8px 0px;">
<form action="'
$scripturl'?action=search2" method="post" style="margin: 0; margin-top: 0px;">
<input type="text" name="search" value="'
$txt[182], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\''$txt[182], '...\';" style="width: 150px;" />';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
<table width="100%" class="headerbodies2" cellpadding="0" cellspacing="0" border="0">
<tr><td class="hd_bottom_l" width="46px"></td><td class="hd_bottom" height="24"></td><td class="hd_bottom_r" width="46px"></td></tr></table>'
;

echo '
</td><td class="hd_border_r"><img src="'
$settings['images_url'], '/hd_border_r.gif" border="0" alt="" /></td>
</tr>
</table>'
;

// The main content should go here.  A table is used because IE 6 just can't handle a div.

echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="hd_border_l" style="width: 8px; background-color: #000;"><!-- blank --></td>
<td class="main_area_tl" style="width: 16px;"><!-- tl --></td>
<td class="main_area_tc" height="3"><!-- tc --></td>
<td class="main_area_tr" style="width: 16px;"><!-- tr --></td>

<td class="hd_border_r" style="width: 8px; background-color: #000;"><!-- blank --></td></tr>
<tr>
<td class="hd_border_l" style="width: 8px;"><img src="'
$settings['images_url'], '/hd_border_l.gif" border="0" alt="" /></td>
<td class="main_area_ml" style="width: 16px;" align="left" valign="top"><div class="main_area_tlf"><img src="'
$settings['images_url'], '/main_area_t_blank.gif" border="0" alt="" /></div></td>
<td id="bodyarea" style="padding: 0px 1px 12px 1px;">'
;


if ($context['user']['is_admin'])
{

if (empty($settings['theme_version_attention']))
{
if ($forum_version != 'SMF 1.1 RC2')
echo '
<div style="margin: 2ex; padding: 2ex; border: 2px dashed #cc3344; color: black; background-color: #ffb76f;">
<div style="float: left; width: 2ex; font-size: 2em; color: red;">!!</div>
<b style="text-decoration: underline;">Attention of WOW-DK theme:</b><br />
<div style="padding-left: 6ex;">
This theme doesn\'t correspond to the version of SMF that you are using. This theme is made for SMF 1.1 RC2. 

</div>
</div>'
;
}
if (empty($txt['necessary_to_translate']))
echo '
<div style="margin: 2ex; padding: 2ex; border: 2px dashed #cc3344; color: black; background-color: #e7e7f7;">
<div style="float: left; width: 2ex; font-size: 2em; color: red;">!!</div>
<b style="text-decoration: underline;">Attention of wow-dk theme:</b><br />
<div style="padding-left: 6ex;">
You should put &quot;<b>Modifications.<span style="color: red;"><acronym title="Name of language that you are using">' 
$language '</acronym></span>.php</b>&quot; on the &quot;<b>languages</b>&quot; directory ( <i>'$settings['theme_url'], '/languages/</i> ) in the theme of wow-dk.<br /><br />

Copy &quot;<i>Modifications.english.php</i>&quot; of the &quot;languages&quot; directory of wow-dk onto the first. Next, rename it according to the language for which you use the file. 

</div>
</div>'
;
}

}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '</td>
<td class="main_area_mr" style="width: 16px;" align="left" valign="top"><div class="main_area_trf"><img src="'
$settings['images_url'], '/main_area_t_blank.gif" border="0" alt="" /></div></td>
<td class="hd_border_r"><!-- blank --></td>
</tr>
<tr>
<td class="hd_border_l" style="width: 8px; background-color: #000;"><!-- blank --></td>
<td class="main_area_bl" style="width: 16px;"><!-- bl --></td>
<td class="main_area_bc" height="3"><!-- bc --></td>
<td class="main_area_br" style="width: 16px;"><!-- br --></td>
<td class="hd_border_r" style="width: 8px; background-color: #000;"><!-- blank --></td></tr>
</table>
<table style="text-align: center;" cellspacing="0" cellpadding="0" border="0" align="center" width="100%">
<tr>
<td class="hd_border_l" style="width: 8px;"><img src="'
$settings['images_url'], '/hd_border_l.gif" border="0" alt="" /></td>
<td class="footer_area_tc" height="20" style="padding: 5px 0px 5px 0px;">&nbsp;'
;

// Show the load time?
if ($context['show_load_time'])
echo '
'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '';

echo '
<!-- area_tc --></td>
<td class="hd_border_r" style="width: 8px;"><img src="'
$settings['images_url'], '/hd_border_r.gif" border="0" alt="" /></td></tr>
</table>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright.  Remember, the copyright must be somewhere!
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>

<table id="footerarea" style="text-align: center;" cellspacing="0" cellpadding="0" border="0" align="center" width="100%">
<tr><td class="hd_border_l" style="width: 8px;"><img src="'
$settings['images_url'], '/hd_border_l.gif" border="0" alt="" /></td>
<td width="28%" class="copyright_l" style="padding: 0 0 3px 0;" valign="bottom" align="'
, !$context['right_to_left'] ? 'right' 'left''" height="35" nowrap="nowrap"><div style="width: 100%; overflow: hidden;">
<a href="http://www.mysql.com/" target="_blank" title="'
$txt['powered_by_mysql'], '"><img id="powered-mysql" src="'$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" width="30" height="18" style="margin: 0px 5px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank" title="'
$txt['powered_by_php'], '"><img id="powered-php" src="'$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" width="30" height="18" style="margin: 0px 5px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</div></td>
<td valign="bottom" align="center" nowrap="nowrap" style="padding: 0 15px 10px 12px;" class="copyright">
<span style="white-space: nowrap;">
'
theme_copyright(), '</span>
</td>
<td width="28%" class="copyright_r" style="padding: 0 0 3px 0;" valign="bottom" align="'
, !$context['right_to_left'] ? 'left' 'right''" height="35" nowrap="nowrap"><div style="width: 100%; overflow: hidden;">
<a href="http://validator.w3.org/check/referer" target="_blank" title="'
$txt['valid_xhtml'], '"><img id="valid-xhtml10" src="'$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="30" height="18" style="margin: 0px 5px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" title="'
$txt['valid_css'], '"><img id="valid-css" src="'$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="30" height="18" style="margin: 0px 5px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a></div>
</td>
<td class="hd_border_r" style="width: 8px;"><img src="'
$settings['images_url'], '/hd_border_r.gif" border="0" alt="" /></td>
</tr>
<tr><td class="hd_border_l" style="width: 8px;"><img src="'
$settings['images_url'], '/hd_border_l.gif" border="0" alt="" /></td>
<td width="28%" class="copyright_l" style="padding: 0 0 3px 0;" valign="bottom" align="'
, !$context['right_to_left'] ? 'right' 'left''" height="35" nowrap="nowrap"><div style="width: 100%; overflow: hidden;">
<a href="http://padexx.de/" class="pdx_c" title="Author of the theme." target="_blank"><span style="white-space: nowrap;">WoW-DK Theme by padexx.</span></a></div>
</td>
<td valign="bottom" align="center" nowrap="nowrap" style="padding: 0 15px 10px 12px;" class="copyright">
<span class="smalltext" style="white-space: nowrap;">based on the popular</span>
</td> 
<td width="28%" valign="bottom" align="center" style="padding: 3px 0 5px 0;" nowrap="nowrap" class="copyright_r"><div style="width: 100%; overflow: hidden;"><a href="http://bdc.s15.xrea.com/" class="bdc_c" title="Author of the base theme." target="_blank"><span style="white-space: nowrap;">Pn-Pn Theme by koni.</span></a></div>
</td>
<td class="hd_border_r" style="width: 8px;"><img src="'
$settings['images_url'], '/hd_border_r.gif" border="0" alt="" /></td>
</tr>
</table></td>
      <td width="15" class="area_r"><img src="'
$settings['images_url'], '/area_blank.gif" border="0" alt="" /></td>
    </tr>
  </tbody>
</table>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-bottom: 3px;">
<tbody>
<tr><td align="left" width="37" class="bottombg_l" height="25">&nbsp;</td><td colspan="2" align="left" class="bottombg">&nbsp;
</td><td align="right" width="37" class="bottombg_r">&nbsp;</td>
</tr>  </tbody>
</table>'
;

// This is an interesting bug in Internet Explorer AND Safari.  Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
else
{
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;
}

echo '
// ]]></script>'
;
}

echo '
</body>
</html>'
;
}

// Show a linktree.  This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

// Folder style or inline?  Inline has a smaller font.
echo '<span class="nav"'$settings['linktree_inline'] ? ' style="font-size: smaller;"' '''>';

// Each tree item has a URL and name.  Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show the | | |-[] Folders.
if (!$settings['linktree_inline'])
{
if ($link_num 0)
echo str_repeat('<img src="' $settings['images_url'] . '/icons/linktree_main.gif" alt="| " border="0" />'$link_num 1), '<img src="' $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" />';
echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';
}

// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo $settings['linktree_inline'] ? ' &nbsp;|&nbsp; ' '<br />';
}

echo '</span>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0">
<tr>'
;

// Show the [home] button.
if (!empty($settings['wow_forum_button']))
echo '
<td class="maintab_off_first">&nbsp;</td>
<td valign="top" class="maintab_off_back">
<a href="'
$settings['wow_forum_button'], '">' $txt[103] , '</a>
</td>
<td class="maintab_off_last">&nbsp;</td>'
;

if (!empty($settings['wow_forum_button']))
{
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '<td class="maintab_off_' $first '">&nbsp;</td>' '
<td valign="top" class="maintab_' 
$current_action == 'home' 'active_back' 'off_back' '">
<a href="'
$scripturl'">' $txt['wow_forum_button_forum'] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '<td class="maintab_off_' $last '">&nbsp;</td>';

}
else
{
// Show the [forum] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '<td class="maintab_off_' $first '">&nbsp;</td>' '
<td valign="top" class="maintab_' 
$current_action == 'home' 'active_back' 'off_back' '">
<a href="'
$scripturl'">' $txt[103] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '<td class="maintab_off_' $last '">&nbsp;</td>';

}
// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '<td class="maintab_off_' $first '">&nbsp;</td>' '
<td valign="top" class="maintab_' 
$current_action == 'help' 'active_back' 'off_back' '">
<a href="'
$scripturl'?action=help">' $txt[119] , '</a>
</td>' 
$current_action == 'help' '<td class="maintab_active_' $last '">&nbsp;</td>' '<td class="maintab_off_' $last '">&nbsp;</td>';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '<td class="maintab_off_' $first '">&nbsp;</td>' '
<td valign="top" class="maintab_' 
$current_action == 'search' 'active_back' 'off_back' '">
<a href="'
$scripturl'?action=search">' $txt[182] , '</a>
</td>' 
$current_action == 'search' '<td class="maintab_active_' $last '">&nbsp;</td>' '<td class="maintab_off_' $last '">&nbsp;</td>';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '<td class="maintab_off_' $first '">&nbsp;</td>' '
<td valign="top" class="maintab_' 
$current_action == 'admin' 'active_back' 'off_back' '">
<a href="'
$scripturl'?action=admin">' $txt[2] , '</a>
</td>' 
$current_action == 'admin' '<td class="maintab_active_' $last '">&nbsp;</td>' '<td class="maintab_off_' $last '">&nbsp;</td>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '<td class="maintab_off_' $first '">&nbsp;</td>' '
<td valign="top" class="maintab_' 
$current_action == 'profile' 'active_back' 'off_back' '">
<a href="'
$scripturl'?action=profile">' $txt[79] , '</a>
</td>' 
$current_action == 'profile' '<td class="maintab_active_' $last '">&nbsp;</td>' '<td class="maintab_off_' $last '">&nbsp;</td>';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '<td class="maintab_off_' $first '">&nbsp;</td>' '
<td valign="top" class="maintab_' 
$current_action == 'pm' 'active_back' 'off_back' '">
<a href="'
$scripturl'?action=pm"><span style="white-space: nowrap;">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</span></a>
</td>' 
$current_action == 'pm' '<td class="maintab_active_' $last '">&nbsp;</td>' '<td class="maintab_off_' $last '">&nbsp;</td>';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '<td class="maintab_off_' $first '">&nbsp;</td>' '
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'off_back' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '<td class="maintab_off_' $last '">&nbsp;</td>';

// the [member] list button
if (!empty($settings['member_list_button']))
{
if($settings['member_list_button'])
{
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '<td class="maintab_off_' $first '">&nbsp;</td>' '
<td valign="top" class="maintab_' 
$current_action == 'mlist' 'active_back' 'off_back' '">
<a href="'
$scripturl'?action=mlist">' $txt[331] , '</a>
</td>' 
$current_action == 'mlist' '<td class="maintab_active_' $last '">&nbsp;</td>' '<td class="maintab_off_' $last '">&nbsp;</td>';
}
}

// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '<td class="maintab_off_' $first '">&nbsp;</td>' '
<td valign="top" class="maintab_' 
$current_action == 'login' 'active_back' 'off_back' '">
<a href="'
$scripturl'?action=login">' $txt[34] , '</a>
</td>' 
$current_action == 'login' '<td class="maintab_active_' $last '">&nbsp;</td>' '<td class="maintab_off_' $last '">&nbsp;</td>';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '<td class="maintab_off_' $first '">&nbsp;</td>' '
<td valign="top" class="maintab_' 
$current_action == 'register' 'active_back' 'off_back' '">
<a href="'
$scripturl'?action=register">' $txt[97] , '</a>
</td>' 
$current_action == 'register' '<td class="maintab_active_' $last '">&nbsp;</td>' '<td class="maintab_off_' $last '">&nbsp;</td>';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '<td class="maintab_off_' $first '">&nbsp;</td>' '
<td valign="top" class="maintab_' 
$current_action == 'logout' 'active_back' 'off_back' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a>
</td>' 
$current_action == 'logout' '<td class="maintab_active_' $last '">&nbsp;</td>' '<td class="maintab_off_' $last '">&nbsp;</td>';

// The end of tab section.
echo '
</tr>
</table>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>
Title: Re: Staff Page Mod
Post by: Kettu on August 22, 2006, 06:37:34 AM
Hi,
I had to deinstall all mods including this one before upgrading to 1.1 RC3. Well now I don't have the mod online (it wouldn't work) but at the Forum Error Log it shows following error:
Quote
8: Undefined index: allow_view_stafflist
This is for
Admin.template.php
Profile.template.php
BoardIndex.template.php
Errors.template.php
etc.

So, what can I do to eliminate that?
Title: Re: Staff Page Mod
Post by: Skipdawg on August 22, 2006, 04:23:09 PM
Maybe the script just needs updated for RC3. Killed mine too. o hopefully we will have a RC3 compatible version of this soon.  ;D
Title: Re: Staff Page Mod
Post by: vbgamer45 on August 22, 2006, 05:01:03 PM
You should be able to download the rc3 version at smfhacks.com waiting for mod site to list smfr3 then i load them here.
Title: Re: Staff Page Mod
Post by: Skipdawg on August 22, 2006, 05:22:26 PM
You should be able to download the rc3 version at smfhacks.com waiting for mod site to list smfr3 then i load them here.

Thanks for the quick reply on that vbgamer45. If it is not up by time I get back from my extended dinner break I'll just go get it there. My Moderators do like that. Members seem to also.  ;D ;)
Title: Re: Staff Page Mod
Post by: Kettu on August 23, 2006, 04:57:09 AM
Maybe the script just needs updated for RC3. Killed mine too. o hopefully we will have a RC3 compatible version of this soon.  ;D
But it was deinstalled. How can that be that there is a rest of it making trouble? Sounds like the deinstallation doesn't work correct.
Title: Re: Staff Page Mod
Post by: Badelehrling on August 23, 2006, 11:19:20 AM
Thanks, it's a nice Mods BUT it doesn't work for me :'(

I am using SMF 1.0.7.
I installed the Theme, and pressed the Staff-Button. I become to see: this (http://img514.imageshack.us/img514/2417/stafflv5.jpg). Me (the admin of course) can see the page, but nobody else!
Can anybody help me please? I really love this Mod, and would like to use it!
Title: Re: Staff Page Mod
Post by: vbgamer45 on August 23, 2006, 11:28:30 AM
You need to set the permissions to view staff page.
For each user group you need to set it to allow view staff list.

vbgamer45
Title: Re: Staff Page Mod
Post by: Badelehrling on August 23, 2006, 12:05:53 PM
Wow thanks for the quick reply ;)

I always looked in the wrong categorie...
Sorry for the stupid question!
Title: Re: Staff Page Mod
Post by: karras.us on August 23, 2006, 09:38:31 PM
vbgamer45, just a friendly idea, you may want to let users know in your 1st post, that it has been updated for RC3.

So they don't think it's old.

Love the mod, thank you.  :)
Title: Re: Staff Page Mod
Post by: Kettu on August 25, 2006, 01:07:52 PM
Is there somebody who can tell me how I can erase this error 8: Undefined index: allow_view_stafflist WITHOUT installing the new version? I deinstalled the mod before upgrading but it didn't deinstall all as I now see. :(
Title: Re: Staff Page Mod
Post by: HecKel on September 02, 2006, 10:44:08 PM
Hi!

I have some users that have more than one group, but they only appear on the primary group. Is possible to display the users on all their groups?

I suggest some option to select what the admin want, if display the user only on his primary group or display on all his groups.

HecKel
Title: Re: Staff Page Mod
Post by: vbgamer45 on September 02, 2006, 11:35:04 PM
Maybe haven't really looked into that yet though.  It's a good idea though in some cases. Maybe an option to display them.
Title: Re: Staff Page Mod
Post by: haktanir2 on September 21, 2006, 06:58:31 AM
vbgamer it would be good if we had the option to show the avatars, total posts and total time logged on the list
Title: Re: Staff Page Mod
Post by: teamvtec on September 24, 2006, 03:39:24 PM
Is it possible to show avatars or images before the names? ::)
Title: Re: Staff Page Mod
Post by: vbgamer45 on September 24, 2006, 06:27:58 PM
Is it possible to show avatars or images before the names? ::)
Not currently. I might add that later.
Title: Re: Staff Page Mod
Post by: FinsandFur on October 09, 2006, 11:08:34 PM
Any word on an rc3 version?
Hacks shows only the rc2 version.
Title: Re: Staff Page Mod
Post by: vbgamer45 on October 09, 2006, 11:11:38 PM
There is an rc3 version
http://mods.simplemachines.org/index.php?mod=348
Title: Re: Staff Page Mod
Post by: FinsandFur on October 09, 2006, 11:21:28 PM
wow :D
Thanks
Title: Re: Staff Page Mod
Post by: FinsandFur on October 11, 2006, 09:49:49 PM
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
(http://www.finsandfur.net/images/badmenu.png)

And it should be like this;
(http://www.finsandfur.net/images/goodmenu.png)

(http://www.championtannery.com/smilies/confused3.gif) 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;
Code: [Select]
// 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;
Code: [Select]
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 ;)

Title: Re: Staff Page Mod
Post by: vbgamer45 on October 11, 2006, 09:54:53 PM
Just use
Code: [Select]
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'];
Title: Re: Staff Page Mod
Post by: FinsandFur on October 12, 2006, 12:31:54 AM
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. (http://www.championtannery.com/smilies/bowingsmilie.gif)

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.

(http://www.finsandfur.net/images/newmenu.png)

And you make it seem so simple now that I look at all three insertions (http://www.championtannery.com/smilies/innocentwhistle.gif)
Much better. I appreciate it very much. Thanks a ton.

Title: Re: Staff Page Mod
Post by: perplexed on October 21, 2006, 09:16:10 AM
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
Title: Re: Staff Page Mod
Post by: vbgamer45 on October 21, 2006, 12:50:04 PM
Need to put in the extra group title seperated by a comma.
Title: Re: Staff Page Mod
Post by: 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 :(
Title: Re: Staff Page Mod
Post by: mforum on October 22, 2006, 02:08:22 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  :)
Title: Re: Staff Page Mod
Post by: perplexed on October 23, 2006, 03:50:14 AM
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
Title: Re: Staff Page Mod
Post by: HecKel on October 23, 2006, 12:41:55 PM
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
Title: Re: Staff Page Mod
Post by: omggggg on October 23, 2006, 11:40:47 PM
how to install in proton theme?

thank you!
Title: Re: Staff Page Mod
Post by: Vinspire on October 23, 2006, 11:54:00 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 :)
Title: Re: Staff Page Mod
Post by: dracomiconia on October 24, 2006, 09:31:47 AM
I cant see the other groups, either....

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

Grupo1,Grupo2
Title: Re: Staff Page Mod
Post by: Badelehrling on October 27, 2006, 03:30:17 PM
Well, I haven't read the whole thread (shame on me :(), but I don't see

Added contact information for ICQ,AIM,YIM,MSN, PM

in my testforum (http://barrikaden-gegen-rechts.beeven.de/testforum/index.php?action=staff) ???


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 (http://barrikaden-gegen-rechts.beeven.de/Forum/index.php?action=staff) (coded myself. BUT I have to change everything on my own - nothings works automaticly), or this (wbb) (http://beeven.de/ts_index.php)

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 :-(
Title: Re: Staff Page Mod
Post by: vbgamer45 on October 27, 2006, 03:42:27 PM
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.
Title: Re: Staff Page Mod
Post by: Badelehrling on October 27, 2006, 03:49:08 PM
thanks für the qucik reply :)

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

Badelehrling
Title: Re: Staff Page Mod
Post by: HecKel on November 02, 2006, 08:26:08 PM
If you don't have yet, here it is the Portuguese strings:

Modifications.portuguese.php
Code: [Select]
//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
Code: [Select]
//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
Title: Re: Staff Page Mod
Post by: Badelehrling on December 05, 2006, 11:54:21 AM
Hey vbgamer45,

where do I have to change something, so there isn't repeated "name, last login, contact information" before every group?

I just want to have "name, last login, contact information", displayed on top of the table.

Here is a Screenshot, everything marked red, shall go to hell :D

(http://bgrp.funpic.de/images/atvb.JPG) (http://bgrp.bg.funpic.de/upload.php)

As you can see, it's already a bit modified ;)
And a second question...
Can you tell me please, what I have to change here, so the members avatar is displayed?
Code: [Select]
echo '<td class="windowbg"><a href="' . $scripturl . '?action=profile;u=' . $row2['ID_MEMBER'] . '"><font color="' . $data['color'] . '">' . $row2['realName'] . '</font></a></td>';

Thank you much :)!
Title: Re: Staff Page Mod
Post by: Darcy on December 10, 2006, 05:05:27 PM
Hi,

Downloaded it, installed it and it worked just fine... just needed to rename bits and pieces to Dutch as I misunderstood the "staff" part... thought it was the staff of the forum, like admins and mods but I later understood that this "staff" meant all people sorted in their group so I translated the button to "Leden per groep" and it works just great !
Now our members can see how many future neighbours we get, as house owner or renter  ;) (As our forum is about our new houses in a new area... )
Title: Re: Staff Page Mod
Post by: saosangmo on December 25, 2006, 01:35:56 AM
I'm use SMF version 1.1.1.
When i install staff page mod, there is a error report:
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

Plz help me!
Many thanks
Title: Re: Staff Page Mod
Post by: vbgamer45 on December 25, 2006, 08:46:06 PM
Working on a new improved Staff mod with some new features for SMF 1.1.1
Title: Re: Staff Page Mod
Post by: Skipdawg on December 26, 2006, 03:37:11 PM
Working on a new improved Staff mod with some new features for SMF 1.1.1

Kewlness  ;D ;)
Title: Re: Staff Page Mod
Post by: vbgamer45 on December 27, 2006, 10:34:24 PM
Version 1.5 for SMF 1.1.1 Major Release
Added settings to show information on staf lising.
You can now choose which groups to show on the page and delete groups
You can now display the avatar of a group member.
You can now reorder the categories.
Option to hide local mods display.

SMF 1.0.10 support added but no new features added for that version.

Enjoy,
vbgamer45
Title: Re: Staff Page Mod
Post by: Bigguy on December 28, 2006, 12:16:11 AM
I have just installed this on SMF 1.1 and it works good,thanks. However I don't see the avatars being displayed for the Admins or Global mods.
Title: Re: Staff Page Mod
Post by: Bigguy on December 28, 2006, 12:22:34 AM
For some reason it deleted my avatar so I had to re-upload it. Its fine now. Why would it have done that to some staff but not others.
Title: Re: Staff Page Mod
Post by: LBizGrl on December 28, 2006, 05:14:34 PM
Hello,

I am having the same problem I did for the links mod.

I am using 1.1.1 version with the default brown theme.

I uploaded it properly and it lets me set it all up. However, I cannot see the button on the navigation bar.

Could you please give me the same detailed step by step you did for the links?

THANK YOU! ;)
Title: Re: Staff Page Mod
Post by: vbgamer45 on December 28, 2006, 05:16:57 PM
You can post your index.template.php here OR

Open index.template.php of your theme
Find
Code: [Select]
if (in_array($context['current_action'], array(
Add inside
Code: [Select]
'staff',

Find
Code: [Select]
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
Add after
Code: [Select]
// 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>' : '';


Title: Re: Staff Page Mod
Post by: CraftyLion on December 29, 2006, 06:29:35 PM
I've downloaded the mod then tried to add the sql in to my database but it ended up with a error message.

Quote

Error

SQL query:

CREATE TABLE IF NOT EXISTS `{$db_prefix}staff` (
ID_GROUP smallint( 5 ) unsigned NOT NULL ,
`roworder` mediumint( 8 ) unsigned NOT NULL default '0',
PRIMARY KEY ( `ID_GROUP` )
) REPLACE INTO {$db_prefix}settings
VALUES (
'smfstaff_showavatar', '0'
)
REPLACE INTO {$db_prefix}settings
VALUES (
'smfstaff_showlastactive', '1'
)
REPLACE INTO {$db_prefix}settings
VALUES (
'smfstaff_showdateregistered', '1'
)
REPLACE INTO {$db_prefix}settings
VALUES (
'smfstaff_showcontactinfo', '1'
)
REPLACE INTO {$db_prefix}settings
VALUES (
'smfstaff_showlocalmods', '1'
)

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INTO {$db_prefix}settings VALUES ('smfstaff_showavatar', '0')
REPLACE INTO {$db' at line 8

Help?  ???
Title: Re: Staff Page Mod
Post by: vbgamer45 on December 29, 2006, 06:42:36 PM
Are you adding the code via phpmyadmin?? Or when you are installing the mod?
Title: Re: Staff Page Mod
Post by: CraftyLion on December 29, 2006, 06:50:56 PM
I tried it both ways.
Title: Re: Staff Page Mod
Post by: vbgamer45 on December 29, 2006, 06:53:25 PM
For phpmyadmin you need replace {$db_prefix} with smf_   and you should each query one at a time.

What was the error when installing via the package manager?
Title: Re: Staff Page Mod
Post by: CraftyLion on December 29, 2006, 07:56:27 PM
That was the error.

The other way the mod sort of worked but didn't link seem it to the database ... In fact, it wouldn't let me make the ID_GROUP a primary key and insert values into it. It kept saying

Quote
#1062 - Duplicate entry '0' for key 1
Title: Re: Staff Page Mod
Post by: CraftyLion on December 30, 2006, 04:36:49 PM
I've managed to solve the problem but I can't seem to formate it so what the list is slip into specifc membergroups ... Can anyone help?
Title: Re: Staff Page Mod
Post by: saosangmo on December 31, 2006, 11:47:29 AM
I'm using smf 1.1.1 and lastest Staff page mod but it doesn't display avatar of Super Mod or admin who have remote avatar. When i view html source, it is below:
Code: [Select]
http://huongtinhyeu.net/avatars/http://www.vipcentury.net/Forums/images/avatars/520699210458a8b2166f2d.gifplz help me.
Title: Re: Staff Page Mod
Post by: saosangmo on January 04, 2007, 04:51:49 AM
I work around for long time, but i can't fix this bug because I'm not a developer.
Please help me.
Many thanks!
Title: Re: Staff Page Mod
Post by: Krysia on January 11, 2007, 02:27:49 AM
For phpmyadmin you need replace {$db_prefix} with smf_   and you should each query one at a time.
I just tried upgrading to 1.5, and have the same problem. Well, I'm getting this:
Code: [Select]
db_query(
"CREATE TABLE IF NOT EXISTS `kwjtlff1_staff` (ID_GROUP smallint(5) unsigned NOT NULL, `roworder` mediumint(8) unsigned NOT NULL default '0', PRIMARY KEY (`ID_GROUP`))", __FILE__, __LINE__
)

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'db_query("CREATE TABLE IF NOT EXISTS `kwjtlff1_staff`
(ID_GROUP
???
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 11, 2007, 08:29:21 AM
Use
Code: [Select]
CREATE TABLE IF NOT EXISTS `kwjtlff1_staff` (ID_GROUP smallint(5) unsigned NOT NULL, `roworder` mediumint(8) unsigned NOT NULL default '0', PRIMARY KEY (`ID_GROUP`))
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 11, 2007, 10:00:19 AM
I'm using smf 1.1.1 and lastest Staff page mod but it doesn't display avatar of Super Mod or admin who have remote avatar. When i view html source, it is below:
Code: [Select]
http://huongtinhyeu.net/avatars/http://www.vipcentury.net/Forums/images/avatars/520699210458a8b2166f2d.gifplz help me.
Fixed.

Released an update that fixes avatar urls that are using a web address.
Title: Re: Staff Page Mod
Post by: saosangmo on January 11, 2007, 11:52:47 AM
many thanks, now it works well.
Title: Re: Staff Page Mod
Post by: RoarinRow on January 11, 2007, 02:32:36 PM
Cool, thanks for the update   8)
Title: Re: Staff Page Mod
Post by: Muse on January 13, 2007, 04:08:03 PM
Hello :) I had this on a previous installation and it worked great. I uninstalled all of my mods to upgrade to 1.1, and then 1.1.1

Now that I have the final install, I have been re-adding all of the mods that are compatible with the new version.

The Staff mod "tests" fine, but when I go to install, it hangs up with this error:

Quote
Incorrect table name ''
File: /home/szen/public_html/smf/Packages/temp/staffsql.php
Line: 9

It seems to have partially installed, as there is now a link in the menu bar, as well as a configuration link in my admin panel, but they don't work :)

Clicking on "Staff List" in the menu gives this:
Quote
Table 'szen_jos.smf_staff' doesn't exist
File: /home/szen/public_html/smf/Sources/Staff.php
Line: 59

And clicking on the admin config for this mod gives the same error.
Any help is appreciated :)

I am having a similar issue with the your links mod too, but I'll save that for a later post
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 13, 2007, 04:14:06 PM
What mysql versoin are you using?
Title: Re: Staff Page Mod
Post by: Muse on January 13, 2007, 04:15:04 PM
4.0.27-standard

Is there another patch I missed? Eeep.
Title: Re: Staff Page Mod
Post by: buhaychat.com on January 14, 2007, 08:05:27 AM
Hmm, clicking on my forum's button for "Staff List" just takes it back to the homepage?

I have the staff list set to be viewed by guests and members.

http://forums.buhaychat.com
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 14, 2007, 06:47:18 PM
Hmm, clicking on my forum's button for "Staff List" just takes it back to the homepage?

I have the staff list set to be viewed by guests and members.

http://forums.buhaychat.com
That means the mod did not install.
Title: Re: Staff Page Mod
Post by: Muse on January 14, 2007, 07:10:55 PM
So, is my MySQL just too outdated to use this mod?
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 14, 2007, 07:12:49 PM
Might be for now.
Title: Re: Staff Page Mod
Post by: Muse on January 14, 2007, 07:23:56 PM
Darn. I've already contacted my host and was basically told "Too bad" til they decide to upgrade.

Oh well.
Title: Re: Staff Page Mod
Post by: buhaychat.com on January 14, 2007, 09:59:43 PM
Staff Page mod works now; installed on 1.1.1 - thanks!
Title: Re: Staff Page Mod
Post by: Muse on January 15, 2007, 08:55:34 PM
vbgamer, I've been given the option to switch to the one server on my host that has MySQL and PHP 5 until they decide to roll out the change on all boxes, for which they don't have a set date. Argh.

Do you think this will fix my issue? I am having it with every single one of your mods, and it's all the mods I want to use, lol.

:/

I don't want to bother switching if it's pointless.
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 15, 2007, 08:56:46 PM
It should at least as far as I know. I run all my mods on PHP 5.
Title: Re: Staff Page Mod
Post by: Muse on January 15, 2007, 08:57:40 PM
You are quick, thanks.
You've made pretty much everything I want to add to my board, I was so crushed when they wouldn't work for me :)
Title: Re: Staff Page Mod
Post by: Farmacija on January 16, 2007, 05:05:18 AM
how to put button in the main menu for certain language? on my board, it is visible just in english page...
Title: Re: Staff Page Mod
Post by: Darcy on January 18, 2007, 06:28:14 AM
That was in my case the same; I translated the php files to my own (Dutch) language and now they appear in Dutch  ;)

I think you may need to do the very same thing to have it work in your language
Title: Re: Staff Page Mod
Post by: edi67 on January 18, 2007, 07:09:30 AM
work good thx ;)

(http://pixhost.eu/share/2007-01-18/Anonimo.jpg)

http://pixhost.eu/share/2007-01-18/Anonimo.jpg
Title: Re: Staff Page Mod
Post by: Farmacija on January 18, 2007, 10:39:53 AM
i find solution-i put once more buttonn in the main menu by editing index.template.php file and putting link http://www.farmaceuti.com/forum/index.php?action=staff :wink:
Title: Re: Staff Page Mod
Post by: mohoganybrwn on January 19, 2007, 01:55:40 AM
Hi.  I have tried to intall this mod, but once installed, I do not see "Staff" in the navigation menu, or in the Admin panel.  It just leaves a blank spot for both... how would I fix this?
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 19, 2007, 02:18:42 AM
Copy the language strings from modifications.english.php in the default theme/languages/ to modificaitons.yourlanguage.php file

Or if you are using another theme make sure the text strings are in that modifications.english.php file in that theme folder.
Title: Re: Staff Page Mod
Post by: Farmacija on January 19, 2007, 05:29:04 AM
i got a problem-just administrator could see the stuf list, other  members see the link but cannot get into that page...

edit->it is needed in admin panel set the permission for users
Title: Re: Staff Page Mod
Post by: Krysia on January 20, 2007, 07:05:24 PM
Use
Code: [Select]
CREATE TABLE IF NOT EXISTS `kwjtlff1_staff` (ID_GROUP smallint(5) unsigned NOT NULL, `roworder` mediumint(8) unsigned NOT NULL default '0', PRIMARY KEY (`ID_GROUP`))
Cool. That worked and created the table.

But, when I clicked on the "staff list" link, I get only a link that states "Staff Configuration". I click on it and nothing...
Title: Re: Staff Page Mod
Post by: Krysia on January 20, 2007, 07:28:34 PM
Here's a screenshot so you can see what I mean... When you click "Staff Configuration", nothing happens.
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 20, 2007, 07:34:31 PM
Whats the link look like for the staf configuration?
And also try to reupload Staff.php to the sources folder.
Title: Re: Staff Page Mod
Post by: Krysia on January 20, 2007, 07:41:45 PM
Whats the link look like for the staf configuration?
And also try to reupload Staff.php to the sources folder.
The link is shown in the screen shot. It's the "Staff Configuration" right in the center...

Okay, I'll try reuploading the Staff.php... TY! :)
Title: Re: Staff Page Mod
Post by: Krysia on January 20, 2007, 07:48:31 PM
Well, cool. :) That fixed it. Thank you.

Of course, no avatars are shown (because that's my luck lately), so I'm going to wade backwards into this thread, because I thought I saw somewhere where someone had avatar issues...

:)
Title: Re: Staff Page Mod
Post by: Krysia on January 20, 2007, 07:51:46 PM
There... I just reuploaded the Staff.template.php file, and voila. Avatars. :)

Now how to get that horizontal rule that I saw in a screenshot... ;)
Title: Re: Staff Page Mod
Post by: t.osberger on January 21, 2007, 10:34:49 AM
It should work with other themes. Not using anything really theme dependent. Just using the standard styles for catbg and windowbg.
If it doesn't look right you can try to chagne class= to the class that wish to use in Staff.template.php

Hello!

Just wondering how to install this mod when using alternate theme?  Would you have any specific instructions?  I am new to a lot of this stuff and trying to build 3 ring binder containing the instruction sheet(s) for each mod I install. That way if I ever have to install from scratch I have everything I need in one place.

So, basic question is: How do I change this mod to work with current theme?

Thank you in advance!  Look forward to seeing more of you quality work.
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 21, 2007, 07:13:47 PM
You just need to edit the index.template.php of your custom theme and include a link to the staff page
http://www.yoursite.com/index.php?act=staff
Title: Re: Staff Page Mod
Post by: mohoganybrwn on January 22, 2007, 04:37:32 PM
Hi.  I get a red x, where the staff's photos are supposed to be, also the staff have URL avatars... so how can I fix the red x problem?
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 22, 2007, 04:55:49 PM
What version of the Staff mod do you have installed? Do you have the latest one installed.
Title: Re: Staff Page Mod
Post by: Muse on January 23, 2007, 09:38:03 PM
vbgamer, I've been given the option to switch to the one server on my host that has MySQL and PHP 5 until they decide to roll out the change on all boxes, for which they don't have a set date. Argh.

Do you think this will fix my issue? I am having it with every single one of your mods, and it's all the mods I want to use, lol.

:/

I don't want to bother switching if it's pointless.

Okay, well now they suddenly don't have room on that server, so I am SOL.

Has anyone installed this on an older SQL? (I'm running 4.0.27). Just want to know if there is anything I can possibly do to get this and VBGamer's other mods working on my board before I just forget it completely. I'm beyond frustrated and I really hate getting "Too Bad" as an answer for everything, heh.

I'm currently in the process of moving to a server with 4.1.21, but I don't know if that even makes a difference w/this mod.
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 23, 2007, 09:55:06 PM
You can create the tables manually by looking at the sql files then blank out the sql file and rezip up the mod and install it.
Title: Re: Staff Page Mod
Post by: Muse on January 23, 2007, 09:57:51 PM
I'm way too beginner to know how to do that, but I think I'll re-install a test board and teach myself.
Title: Re: Staff Page Mod
Post by: mohoganybrwn on January 24, 2007, 12:29:11 AM
What version of the Staff mod do you have installed? Do you have the latest one installed.

Yes, I have the latest verson installed.
Title: Re: Staff Page Mod
Post by: Muse on January 24, 2007, 12:42:37 AM
Okay, everything is all kosher now, except now I'm getting a Test Failed on         ./Themes/default/index.template.php  for this and the links mod.

I can just change those manually if I know what to change :)
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 24, 2007, 10:02:03 AM
That mainly deals with adding a link on the page to the staff section.
Title: Re: Staff Page Mod
Post by: Muse on January 24, 2007, 12:26:37 PM
Oh, if that's all it alters, I can do that easily :)
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 24, 2007, 12:28:57 PM
That's all it does to that file.
Title: Re: Staff Page Mod
Post by: t.osberger on January 25, 2007, 12:05:51 AM
You just need to edit the index.template.php of your custom theme and include a link to the staff page
http://www.yoursite.com/index.php?act=staff

Code: [Select]
<?php

// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;

?>

Would you be able to provide an example based on the above code.  This is the index.php from http://domain name/members/forum/Themes/Ancient_and_Rusted.  Is this the index file you were talking about, or was the one in the root directory of the forum?
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 25, 2007, 12:18:07 AM
I mean a file called index.template.php that is located in your themes/foldername this file contains the menu, and header and footers.
Title: Re: Staff Page Mod
Post by: mohoganybrwn on January 25, 2007, 01:03:29 AM
Hi.  I get a red x, where the staff's photos are supposed to be, also the staff have URL avatars... so how can I fix the red x problem?

can anyone help me with this problem?
Title: Re: Staff Page Mod
Post by: Muse on January 25, 2007, 04:04:01 AM
That's all it does to that file.

Perfect. All up and running. Now I can stop pouting because I can't use your mods :D
Title: Re: Staff Page Mod
Post by: bigrossco on January 29, 2007, 07:53:13 AM
i installed 1.5.1 today but on the menu it has the link but not the text and same in the admin area it shows a blank space (where i guess the text should be) but no text I can get to the staff page manualy but would like the text to show on the menu so my users can get to the page
Title: Re: Staff Page Mod
Post by: Farmacija on January 29, 2007, 09:40:42 AM
in which language are your forum and which theme you use?
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 29, 2007, 10:28:33 AM
Copy text strings from modifications.english.php to all other themes that contain modifications.english.php

or if you are using more thatn one language copy them to modifications.yourlanguage.php
Title: Re: Staff Page Mod
Post by: Farmacija on January 30, 2007, 03:54:22 AM
and vbgamer already told that in this topic, few post above yours.
Title: Re: Staff Page Mod
Post by: Zuma on February 03, 2007, 02:01:48 PM
Hi

Its a great mod, exactly what I was looking for, thanks a bunch

I just would like to know how I can make a member show up in all groups he is in, instead of just showing the main group

Thats cuz I run a multi-gaming clan, and some of my members are assigned to more than 1 division, I need to make them appear in all groups they are in
Title: Re: Staff Page Mod
Post by: vbgamer45 on February 03, 2007, 05:55:58 PM
That would be tricky to do at the moment to show multiple groups maybe for the future.
Title: Re: Staff Page Mod
Post by: sleepingstar on February 06, 2007, 12:44:57 PM
i installed this mod, but now i can't remove its. ( i uninstalled but "Staff Configuration" Option still display on admin's menu ) . How to fix this problem ?  >:(

(http://img249.imageshack.us/img249/5677/uninstallkp5.jpg)
Title: Re: Staff Page Mod
Post by: vbgamer45 on February 06, 2007, 01:05:40 PM
You will need to edit Sources/Subs.php to remove it. Search for staff
Title: Re: Staff Page Mod
Post by: moraidh on February 06, 2007, 07:05:23 PM
I installed the files and modifications manually.

In package info, it says:
      
Quote
<code>staffsql.php</code>

I uploaded this file into the /forum directory and in the browser address bar entered:

Quote
http://www.radicalreaction.com/forum/staffsql.php

Is that what you are supposed to do?  Anyhow, all that happened was this message:

Quote
Fatal error: Call to undefined function: db_query() in /customersites/7/home/httpd/vhosts/radicalreaction.com/httpdocs/forum/staffsql.php on line 6

Line 6 is:

Quote
db_query("CREATE TABLE IF NOT EXISTS `{$db_prefix}staff`

What have I done wrong and what do I do now?
Title: Re: Staff Page Mod
Post by: vbgamer45 on February 06, 2007, 07:11:25 PM
Add a line of code after <?php
require('ssi.php');
Title: Re: Staff Page Mod
Post by: moraidh on February 06, 2007, 07:18:23 PM
Sorry in which file?

I did that after the start of the staffsql.php and now get the following error message:

Quote
Warning: main(ssi.php): failed to open stream: No such file or directory in /customersites/7/home/httpd/vhosts/radicalreaction.com/httpdocs/forum/staffsql.php on line 3

Warning: main(ssi.php): failed to open stream: No such file or directory in /customersites/7/home/httpd/vhosts/radicalreaction.com/httpdocs/forum/staffsql.php on line 3

Fatal error: main(): Failed opening required 'ssi.php' (include_path='.:/usr/share/pear') in /customersites/7/home/httpd/vhosts/radicalreaction.com/httpdocs/forum/staffsql.php on line 3

Line 3 being:

require('ssi.php');
Title: Re: Staff Page Mod
Post by: vbgamer45 on February 06, 2007, 07:33:38 PM
try changing it to SSI.php
Title: Re: Staff Page Mod
Post by: JustSimpsons on February 06, 2007, 08:50:05 PM
Hi, when I click on Staff List in the menu it takes me to the Staff List page but the menu looks look i'm on the forum. I was wondering if there is a way to make the Staff List in the menu look active instead of the forum. Here is what I'm talking about:

(http://img463.imageshack.us/img463/1962/forumstafflistqm3.jpg)

Thank you.
Title: Re: Staff Page Mod
Post by: vbgamer45 on February 06, 2007, 09:09:25 PM
Check your index.template.php staff should be in the menu function list of active tabs
Title: Re: Staff Page Mod
Post by: JustSimpsons on February 06, 2007, 09:19:51 PM
Here is the blurb that is currently in my index.template.php:

Code: [Select]
// 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>' : '';
Title: Re: Staff Page Mod
Post by: vbgamer45 on February 06, 2007, 09:21:20 PM
Above that there is a list of actions near the begging of template_menu
Title: Re: Staff Page Mod
Post by: JustSimpsons on February 06, 2007, 09:36:46 PM
Is this where you are talking about? What change do I need to make?

Code: [Select]
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('staff','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
Title: Re: Staff Page Mod
Post by: vbgamer45 on February 06, 2007, 09:39:24 PM
Hmm, It should work then strannge
I see it in here
Code: [Select]
if (in_array($context['current_action'], array('staff','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
Title: Re: Staff Page Mod
Post by: JustSimpsons on February 06, 2007, 09:45:57 PM
My bad, I just realized that I had to make the appropriate change in my theme's index.template.php file also. I change it there and it is working perfectly now, sorry about that and thank you for your help.
Title: Re: Staff Page Mod
Post by: [Lucien] on February 07, 2007, 10:54:05 AM
Great Mod!! Thnx a lot :)

The only thing i had to do manually was the Modifications.english.php..

Pac-man said it was installed correctly but there wasn't anything there related to this mod..


But it's great, thnx  :D
Title: Re: Staff Page Mod
Post by: mohoganybrwn on February 07, 2007, 12:39:05 PM
Hi.  I get a red x, where the staff's photos are supposed to be, also the staff have URL avatars... so how can I fix the red x problem?

anyone?

can anyone help me with this problem?
Title: Re: Staff Page Mod
Post by: moraidh on February 07, 2007, 05:10:42 PM
try changing it to SSI.php

OK did that, now I get a forum page with:

Quote
Database Error
Please try again. If you come back to this error screen, report the error to an administrator.
Title: Re: Staff Page Mod
Post by: LostProphecy on February 14, 2007, 06:45:58 AM
Hi.  I get a red x, where the staff's photos are supposed to be, also the staff have URL avatars... so how can I fix the red x problem?

anyone?

can anyone help me with this problem?



i'm getting this problem as well...

most of my staff have external avatars which aren't displaying properly cause the avatar section is automatically shoving in the url to the avatar folder

Code: [Select]
echo '<img src="' . $modSettings['avatar_url']. '/' . $user_profile[$memCommID]['avatar'] .'" />';

this is what is trying to display

http://www.lostprophecy.com/forums/avatars/http://img.photobucket.com/albums/v260/sugarness/maybelline.gif

this is what should be displayed

http://img.photobucket.com/albums/v260/sugarness/maybelline.gif

Title: Re: Staff Page Mod
Post by: vbgamer45 on February 14, 2007, 09:14:23 AM
Should be fixed if you are using the latest Staff Mod version.
Title: Re: Staff Page Mod
Post by: moraidh on February 18, 2007, 01:04:42 PM
This is the only mod I have installed that I have not been able to get to work

I have just upgraded to 1.1.2 and thought I'd give another go of running staffsql.php

I get this message:

Quote
Incorrect table name ''
File: /customersites/7/home/httpd/vhosts/radicalreaction.com/httpdocs/forum/staffsql.php
Line: 12

Line 12 in the file is bolded here:

Quote
//Create the Staff Table
db_query("CREATE TABLE IF NOT EXISTS `{$db_prefix}staff`
(ID_GROUP smallint(5) unsigned NOT NULL,
`roworder` mediumint( 8 ) unsigned NOT NULL default '0',
PRIMARY KEY  (`ID_GROUP`))", __FILE__, __LINE__);

Any ideas, anyone?
Title: Re: Staff Page Mod
Post by: vbgamer45 on February 18, 2007, 01:07:21 PM
Open up staffsql.php
Find All
Code: [Select]
`And replace with nothing then save the file.
 
Title: Re: Staff Page Mod
Post by: moraidh on February 18, 2007, 01:26:15 PM
THANK YOU, thank you, vbgamer!!!

 :-*

Works perfectly now!

Now my forum's fully functional!
Title: Re: Staff Page Mod
Post by: moraidh on February 18, 2007, 03:24:43 PM
Quick question:

Do  I know have to delete staffsql.php from my website after installation as a potential security risk?

Or do I keep it there and have to rerun it every time I add a moderator?
Title: Re: Staff Page Mod
Post by: Bigguy on February 18, 2007, 03:51:59 PM
You shouldn't have to run it or delete it.  
Title: Re: Staff Page Mod
Post by: hotjunkie on February 25, 2007, 09:59:34 PM
Thank you for making this mod. :)
Title: Re: Staff Page Mod
Post by: diosjmk on March 16, 2007, 01:23:09 PM
Im having some problems with this great mod, I installed it with succes and the problem is that I cant see the STAFF link, I read most pages and saw the copy from modifications.english to bla bla but my problem is that I cant even see them in english -.- I mean I dont think its modifiying Modifications.english.php correctly as I have a blank space at this mod config and cant see the link in any language.

Thanks and congrats on a great mod.

Forgot to say Im using 1.1.2
Title: Re: Staff Page Mod
Post by: Daniel Marquard on March 16, 2007, 01:25:59 PM
Im having some problems with this great mod, I installed it with succes and the problem is that I cant see the STAFF link, I read most pages and saw the copy from modifications.english to bla bla but my problem is that I cant even see them in english -.- I mean I dont think its modifiying Modifications.english.php correctly as I have a blank space at this mod config and cant see the link in any language.

Thanks and congrats on a great mod.

Are you using the default theme or a custom theme?  Also, would you mind posting the contents of Modifications.english.php between the [code][/code] tags?
Title: Re: Staff Page Mod
Post by: diosjmk on March 16, 2007, 01:26:58 PM
Code: [Select]
<?php
// Version: 1.1; Modifications

// Begin stickyFirstPost entries
$txt['non_sticky_topics'] = "Regular topics";
$txt['sticky_topics'] = "Sticky topics";
// End stickyFirstPost entries

// Country Flag mod
$txt['country_flag_label'] = 'Please select your country';
$txt['country_flag_error_required'] = 'You must select the country that you visit us from';
$txt['country_flag_ask'] = 'Ask for country flag on';
$txt['country_flag_disabled'] = 'Don\'t show (Disabled)';
$txt['country_flag_profile'] = 'Profile';
$txt['country_flag_registration'] = 'Registration';
$txt['country_flag_both'] = 'Both';
$txt['country_flag_required'] = 'Require a member to select a location?';
$txt['country_flag_show'] = 'Show flags on Display page (Where posts are shown).';
$txt['country_flag'] = 'Country';
$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';
// [Who Voted What?]
$txt['poll_view_voters_expand_to_view'] = 'Expand to view:';
$txt['poll_view_voters_expanded_help1'] = 'Select a name to view';
$txt['poll_view_voters_expanded_help2'] = 'the member\'s profile...';
$txt['cannot_poll_view_voters'] = 'Sorry, you\'re not allowed to view which members voted for what option in the poll.';
$txt['permissionname_poll_view_voters'] = 'View voters';
$txt['permissionhelp_poll_view_voters'] = 'This permission allows people to see which members voted for what option in a poll.';
$txt['whovotedwhatMode'] = 'Who Voted What? mode';
$txt['whovotedwhatMode0'] = 'Select Box';
$txt['whovotedwhatMode1'] = 'Table View';

$txt['activeMembers_title'] = 'Active members:';


$txt['arcade'] = 'Arcade';
$txt['arcade_admin'] = 'Arcade Admin';   
$txt['arcade_manage_games'] = 'Games';
$txt['arcade_manage_category'] = 'Categories'
$txt['arcade_settings'] = 'Settings'

// Permission names and help
$txt['permissiongroup_arcade'] = 'Arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_play'] = 'Play on Arcade';
$txt['permissionhelp_arcade_play'] = 'Allows member to play on arcade, in games which he/she has rights to';
$txt['permissionname_arcade_admin'] = 'Administrate arcade';
$txt['permissionhelp_arcade_admin'] = 'Arcade Administarator can Install/Edit/Delete game, Delete scores and edit settings for arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_favorite'] = 'Use Favorites feature'
$txt['permissionhelp_arcade_favorite'] = 'Allows member to favorite and unfavorite games';
$txt['permissionname_arcade_submit'] = 'Save scores'
$txt['permissionhelp_arcade_submit'] = 'Allows users to save their scores.';
$txt['permissionname_arcade_rate'] = 'Rate games'
$txt['permissionhelp_arcade_rate'] = 'Allows users to rate games.';
$txt['permissionname_arcade_comment'] = 'Allow to comment/edit comment'
$txt['permissionhelp_arcade_comment'] = 'Allows user to edit comments, own or any';
$txt['permissionname_arcade_comment_any'] = 'Any';
$txt['permissionname_arcade_comment_own'] = 'Own';

// Errors if they can't do something
$txt['cannot_arcade_play'] = 'You are not allowed to play games!';
$txt['cannot_arcade_view'] = 'You are not allowed to access arcade.';
$txt['cannot_arcade_favorite'] = 'You are not allowed to favorite games';
$txt['cannot_arcade_rate'] = 'You are not allowed to rate games';
$txt['cannot_arcade_comment_own'] = 'You are not allowed to comment';

// Who's online
$txt['who_arcade'] = 'Viewing Arcade index';
$txt['who_arcade_play'] = 'Playing <a href="' $scripturl '?action=arcade;sa=play;game=%d">%s</a> on Arcade';
$txt['who_arcade_highscore'] = 'Viewing highscores of <a href="' $scripturl '?action=arcade;sa=play;game=%d">%s</a> on Arcade';

// Help
$txt['arcade_max_scores_help'] = 'Maximum scores that will be stored per member. (0 means unlimited)';
$txt['arcade_membergroups_help'] = 'These groups will be allowed to play and view highscores. Others will not see this game, only used if permission mode will use game permissions.';?>

Im using the default theme but with another color.
Title: Re: Staff Page Mod
Post by: Daniel Marquard on March 16, 2007, 01:33:01 PM
Im using the default theme but with another color.

It would appear that the text to show the staff button doesn't even exist in that file.  You may consider adding it to fix your problem.  Otherwise, it could be that this mod uses another language file.  And because I'm picky, I highly recommend you make the following change:

In Modifications.english.php, find:
Code: [Select]
?>
...and replace that with:
Code: [Select]


?>

Or just add three line breaks between it.  :P
Title: Re: Staff Page Mod
Post by: diosjmk on March 16, 2007, 01:36:23 PM
Can you please paste the lines Im missing in modifications.english.php so I add them??

And Im picky 2 ^^ Good picky tip :P
Title: Re: Staff Page Mod
Post by: Daniel Marquard on March 16, 2007, 01:37:16 PM
Can you please paste the lines Im missing so I add them??

And Im picky 2 ^^ Good picky tip :P

Your ?> is currently on the end of an active line in that file.  Put your cursor in frost of that and hit enter three times.  ;)
Title: Re: Staff Page Mod
Post by: diosjmk on March 16, 2007, 01:39:48 PM
oh no, I mean paste me the lines Im missing in modifications.english.php but the ones you explained as "It would appear that the text to show the staff button doesn't even exist in that file" ^^

Sorry about the mixedup

EDIT: Fixed, I found the requiered text, weird, it never made those lines when installing.
Title: Re: Staff Page Mod
Post by: onijin on March 18, 2007, 12:14:15 PM
everything installed fine, but after adding groups to be shown, there's still nothing showing up.  everyone (even with permission) and including the admin.

all i see is

"Staff Configuration

SMF Staff"
Title: Re: Staff Page Mod
Post by: Farmacija on March 19, 2007, 04:23:59 AM
can we somehow add other group to staff list except moderators or global moderators?
Title: Re: Staff Page Mod
Post by: Gourgi on March 19, 2007, 07:08:12 AM
i just installed this in my 1.1.2 forums and works great in the default theme.
Thanks VB !!!
Another superb mod :D
keep up ;)
Title: Re: Staff Page Mod
Post by: onijin on March 19, 2007, 06:54:13 PM
here's a better idea of my issues...

current settings

(http://xs413.xs.to/xs413/07121/asdfsdfdsaf-2.jpg.xs.jpg) (http://xs.to/xs.php?h=xs413&d=07121&f=asdfsdfdsaf-2.jpg)


with the above groups to be shown, still displaying this:

(http://xs413.xs.to/xs413/07121/asdfasdf-1.jpg.xs.jpg) (http://xs.to/xs.php?h=xs413&d=07121&f=asdfasdf-1.jpg)
Title: Re: Staff Page Mod
Post by: ramiz on March 22, 2007, 05:28:41 AM
nice mod...is working fine in my test forum(SMF1.1RC3)

but as an admin i can access the staff page...if i login as a member of any other group, then i cant see the stff page option

is it only to admin to access...
Title: Re: Staff Page Mod
Post by: vbgamer45 on March 22, 2007, 07:48:52 AM
You need to give all member groups permission to view the staff list.

Admin -> Permissions -> Modify each group.
Title: Re: Staff Page Mod
Post by: ramiz on March 22, 2007, 08:37:32 AM
really really great mod
many many thanks .........
its working fine in my local system....i will be implementing in my site

thanks again

regards,
ramiz
 
Title: Re: Staff Page Mod
Post by: ramiz on March 22, 2007, 08:51:36 AM
plz could you tell me one more thing

is it possible to see only my staff...

suppose i am a member of a particular membergroup(x)
now is it possible to view only the that particular membergroup(x) staff

means member can see only his group members

i am using SMF1.1RC3
Title: Re: Staff Page Mod
Post by: ramiz on March 28, 2007, 09:27:36 AM
i am not able to install this module on my server (SMF1.1RC3)
while it is working perfectly in my local system

while i am applying the module ... i am getting the following error
like ..."6.    Execute Modification    ./Sources/Subs.php    Test failed"

i am posting the full text below


installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
2.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
3.    Execute Modification    ./index.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
6.    Execute Modification    ./Sources/Subs.php    Test failed
7.    Extract File    ./Sources/Staff.php    
8.    Extract File    ./Themes/default/Staff.template.php    
9.    Extract File    ./Themes/default/languages/Staff.english.php    
10.    Extract File    ./Themes/default/languages/Staff.english-utf8.php    
11.    Execute Code    staffsql.php



any help plz
Title: Re: Staff Page Mod
Post by: TrueSatan on March 28, 2007, 10:10:25 AM
@ ramiz the test failure you report simply tells you that the file it mentions has been altered by some other mod. Look at http://www.simplemachines.org/community/index.php?topic=140034.0 (http://www.simplemachines.org/community/index.php?topic=140034.0)

 Also...why, oh why, would you want to be running an out of date, obsolete, passed over, version of SMF with bugs in it that have been fixed in later versions? The current version is SMF 1.1.2. I would suggest that before you bother doing anything else to your forum, including installing this mod, you upgrade to the current version.
Title: Re: Staff Page Mod
Post by: ramiz on March 28, 2007, 11:42:03 PM
thanks TrueSatan ....  u r telling that i should go for manual installation of this mod

anywayes how should i update my forum version( from SMF1.1RC3 to SMF1.1.2)
already i have many features in my SMF1.1RC3
every thing i need to keep impact just want to update the version

any links , tutorials plz
Title: Re: Staff Page Mod
Post by: dxdonline on March 30, 2007, 12:50:44 AM
Thanks a lot!! installed without problem.
Title: Re: Staff Page Mod
Post by: TrueSatan on March 30, 2007, 04:39:06 AM
thanks TrueSatan ....  u r telling that i should go for manual installation of this mod

anywayes how should i update my forum version( from SMF1.1RC3 to SMF1.1.2)
already i have many features in my SMF1.1RC3
every thing i need to keep impact just want to update the version

any links , tutorials plz

@Ramiz

 Yes, I'm telling you that a manual installation is needed for you to add this mod...though you would probably be able to copy the file that fails the tests, install via the package manager, manually install only into the file that failed the tests, replace that file with the manually edited one.

 Please don't ever consider it right, sensible or even acceptable to stick with old versions of SMF when newer ones are available...it's none of these. We all know that work is involved in upgrading from an old version...it's part of the duties of being an admin.

 Because you haven't been keeping your forum up to date you now have a problem...if you want to use package manager mods to do the updating then you'll have to find the appropriate ones and do it step by step going from what you have to the next release, from that to the next and so on...again it's why you should keep up to date.

 You have the option of doing a complete reworking...copy all your forum files...open a fresh test forum on a new database...install SMF 1.1.2 into that...add all the mods you want to retain into the SMF 1.1.2 test forum...once you have the SMF 1.1.2 test forum in the state that you want it to be in then copy the files from it minus settings.php and settings.php.bak in the forum root...delete all  those files from your main forum and copy on the SMF 1.1.2 ones...you may need to get the upgrade.php upgrade_1-0.sql upgrade_1-1.sql from the upgrade pack for SMF 1.1.2 and run them by putting them into your forum root then navigating your browser to upgrade.php...not sure about that.

 Remember...you have all these things to do because you didn't keep your forum software up to date.

 BTW please use standard English in your postings not mobile phone speak.
Title: Re: Staff Page Mod
Post by: ramiz on April 04, 2007, 03:15:42 AM
hi TrueSatan,

i have installed Staff Page mod manually
its working without any problem.......

thanks to vbgamer45 too for this nice mod   
Title: Re: Staff Page Mod
Post by: TrueSatan on April 04, 2007, 03:51:49 AM
I'm happy if you're happy...and all the thanks are due to vbgamer45...he did all the work to make the mod.
Title: Re: Staff Page Mod
Post by: ramiz on April 04, 2007, 06:14:58 AM
many many thanks vbgamer45 for this mod
Title: Re: Staff Page Mod
Post by: blaze416 on April 17, 2007, 05:43:05 PM
great mod.  said it installed fine.  im using a custom theme made by bloc.  got the staff button added no problem, but i have no where to administer the mod from.  i think that there is suppose to be a spot in the admin panel but there is nothing there for me.  any ideas?

attached is a screen shot of the admin panel with nothing there. 
Title: Re: Staff Page Mod
Post by: vbgamer45 on April 17, 2007, 07:49:44 PM
Copy text strings from /themes/default/languages/modifications.english.php to /themes/yourtheme/languages/modifications.english.php
Title: Re: Staff Page Mod
Post by: blaze416 on April 17, 2007, 10:50:41 PM
im sorry.  i really dont know what text strings your talking about.  im a complete noob at programing
Title: Re: Staff Page Mod
Post by: blaze416 on April 17, 2007, 10:59:12 PM
sorry should have added this.  in the cerberus theme there is no modifications.english.php file.  is that something that i need to add or should i be asking bloc about it?

ps thanks for all of the help.  you guys all rock
Title: Re: Staff Page Mod
Post by: Bigguy on April 17, 2007, 11:53:12 PM
If it is not in the language folder of the theme you use you can always copy the one from the default language folder to the language folder of your theme if you have one.
Title: Re: Staff Page Mod
Post by: blaze416 on April 18, 2007, 03:05:16 PM
tried that.  still not working right
Title: Re: Staff Page Mod
Post by: tensop on May 03, 2007, 09:32:07 AM
Is it possible to make this mod list users in secondary groups too
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 03, 2007, 07:56:10 PM
Not currently
Title: Re: Staff Page Mod
Post by: Lamarck on May 04, 2007, 08:14:30 AM
Where can I find teh setting for this mod in the ACP? I can't find them :and my users can't view the staff because of permissions..
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 04, 2007, 08:22:45 AM
Admin -> Permissions
Admin -> Staff Configuration
Title: Re: Staff Page Mod
Post by: Linda-Blair-Lover on May 07, 2007, 02:13:57 PM
I just uploaded this package to my Forum. Everything installed just fine and I was able to configure the Staff settings and everything. The problem is, absolutely nothing shows up on the Forum itself. Everything is clearly visible in the Admin control panel, but that's it. I can configure everything, but the Mod itself doesn't work for me.  ???
Title: Re: Staff Page Mod
Post by: Stargater59 on June 17, 2007, 11:02:39 PM
Hey, is there a way to show groups that are in a members additional membergroup?

Did that make sense? ...

I have a member who I added as a staff member, but I didn't put it as his primary membergroup, only his additional, but it's not showing up on the Staff list. Any way to add it?

Also how do I change the color of the font of the groups title on the staff list. It's black and it's hard to read against the theme.. I bet that didn't make any sense either.
http://forums.unhealthyobsession.net/index.php?action=staff
Notice where it says 'Administrator' the text is black, it needs to be white.

And another thing that I just noticed, is that there's nothing in the title. It just says Unhealthy Obsession -.

I think that's it.
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 17, 2007, 11:27:37 PM
Additional groups would be a good idea for the next release currently not supported.


"And another thing that I just noticed, is that there's nothing in the title. It just says Unhealthy Obsession -. " should probably say Staff Page make sure your modifications.english.php text is copied to your themes/yourtheme/languages/modifcations.english.php

Should say like Staff page
Title: Re: Staff Page Mod
Post by: Stargater59 on June 18, 2007, 09:04:24 AM
Ok, that was the problem. So now that's fixed. The link to the Admin part wasn't showing up in the AdminCP either, but now it is. Thanks!

Any idea when you'll get the next version out?
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 18, 2007, 07:44:05 PM
Will be a while have some other mods to work on.
Title: Re: Staff Page Mod
Post by: SpyDie on June 21, 2007, 06:52:39 PM
Is it possible to exclude 2 moderators from having the 'Send PM' button there on the list?
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 21, 2007, 07:19:50 PM
Is it possible to exclude 2 moderators from having the 'Send PM' button there on the list?
No
Title: Re: Staff Page Mod
Post by: richtofen on June 22, 2007, 06:34:10 PM
am trying to add this mod to my page but every time i try to add the Staff mod i get an error....when i try to install this mod there is a message modification error staff.xml

Fatal error: require() [function.require]: Failed opening required '/www/yeahost.com/r/richtofen.yeahost.com/forum/Packages/temp/./staffsql.php' (include_path='.:/opt/php5/lib/php') in /www/yeahost.com/r/richtofen.yeahost.com/forum/Sources/Packages.php on line 552


can anyone help me? am new with this but am trying....thanks
Title: Re: Staff Page Mod
Post by: barath56 on June 23, 2007, 01:54:08 PM
I installed everything correctly. I can administer and set permissions for the staff page. But I cannot see any button or link that leads to this page in my forum index page. Although i can view this page when i type the address manually like "www.xxxxxxxxxxxxx.com//index.php?action=staff".

there is no "themes/yourtheme/languages/modifcations.english.php" in my theme, i only have "settings.english.php"

I even tried copying that file from my default theme folder to my modified theme folder.

Can any1 say wat is the exact problem ?????
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 23, 2007, 02:04:13 PM
For custom themes you will need to install the staff link manually. Mods only install on default themes.
Title: Re: Staff Page Mod
Post by: shadow82x on June 23, 2007, 02:38:29 PM
Hi vbgamer,
Is there a way to move the staff link from the nav. bar down to below the forums next to where it says 'mark all boards as read' Linked. I dont really like the location at the navigation center. Thanks
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 23, 2007, 02:45:54 PM
Yes you would need to edit index.template.php
Title: Re: Staff Page Mod
Post by: shadow82x on June 23, 2007, 02:51:11 PM
Where do I edit and put everything to get it there
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 23, 2007, 02:51:34 PM
That I don't know its different for each theme.
Title: Re: Staff Page Mod
Post by: shadow82x on June 23, 2007, 02:55:09 PM
But for like the smf core
Title: Re: Staff Page Mod
Post by: Stargater59 on June 23, 2007, 04:11:47 PM
I wanted to do the same thing. Look at THIS (http://www.simplemachines.org/community/index.php?topic=173822.msg1111497#msg1111497) thread.
Title: Re: Staff Page Mod
Post by: CraftyLion on June 23, 2007, 10:07:57 PM
Maybe I've missed something here but how do I add country flags to the staff list?
Title: Re: Staff Page Mod
Post by: Mariane on June 27, 2007, 07:50:08 PM
I have installed it and there is no text only the places where to click.. but I can't see what it is tho.. so .. did I do something wrong??
Title: Re: Staff Page Mod
Post by: TrueSatan on June 27, 2007, 08:22:25 PM
Look in ACP>Server Settings and make sure you have your forum language set to english and not english utf8
Title: Re: Staff Page Mod
Post by: Mariane on June 28, 2007, 09:29:12 AM
Thank you .. will try to remember that if it happens again.. I am trying to move my forum to another server .. together with my gallery pro which don't seems to have an update to 1.1.3

Are there any places where I can copy the DB and upload it again ?? I know how to make a backup which downloads like a zip.. but (pulling hair).. I can't find any places to upload it again
Title: Re: Staff Page Mod
Post by: TrueSatan on June 28, 2007, 10:45:43 AM
You  will need to upload your backed up database using phpMyadmin or whatever your new host/server provides.

 You will need to read http://docs.simplemachines.org/index.php?topic=490 (http://docs.simplemachines.org/index.php?topic=490) and I would suggest that you read the full section in the documentation regarding "Saving/Restoring, and Moving SMF From a Host to Another " of which the above link is but a part.
Title: Re: Staff Page Mod
Post by: Mariane on June 28, 2007, 11:47:50 AM
Thanks dear, you saved my day...
Title: Re: Staff Page Mod
Post by: TrueSatan on June 28, 2007, 12:12:43 PM
Always a pleasure!
Title: Re: Staff Page Mod
Post by: hadesflames on June 28, 2007, 06:13:58 PM
patch for smf 1.1.3 coming soon?
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 28, 2007, 07:24:00 PM
Already released redownload mod
Title: Re: Staff Page Mod
Post by: hadesflames on June 28, 2007, 09:37:13 PM
its messing up >.<. like the place where staff is supposed to be in admin cp its blank. i just have a blank space there. also i dont get the tab im supposed to get either.
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 28, 2007, 09:41:17 PM
Copy text from themes/default/languages/modifications.english.php to every  themes/default/languages/modifications.anylanguage.php file

Repeat for all custom themes.
Title: Re: Staff Page Mod
Post by: hadesflames on June 28, 2007, 09:43:23 PM
i knew i forgot to do something after installing it last time ^_^ lol. thnx
Title: Re: Staff Page Mod
Post by: Cool999 on June 29, 2007, 09:45:24 AM
Hello Everyone, When i try to Enter Staff Configuration Option.,  i get this error- Unable to load the 'adminset' template.

Please Help Thanks.....
Title: Re: Staff Page Mod
Post by: Rudolf on June 29, 2007, 09:55:11 AM
Check that the  Staff.template.php is copied correctly in your the default theme, and that there's the adminset function defined.
Search for "function template_adminset()" in it.
Take the Staff.template.php from the package and copy it in the default theme, or your current theme, overwriting the existing one.
Check if you have any other error in the error log.
Title: Re: Staff Page Mod
Post by: Cool999 on June 29, 2007, 02:12:05 PM
Thanks A lot, you are the best sir.

Thanks once again, it worked  :D
Title: Re: Staff Page Mod
Post by: ham1299 on June 30, 2007, 10:50:29 PM
Great mod - thanks! :D
Title: Re: Staff Page Mod
Post by: FrEaK@ZoiD !!! on July 13, 2007, 12:13:59 AM
Open up staffsql.php
Find All
Code: [Select]
`And replace with nothing then save the file.
 
Sorry folks, but this help doesn´t work for me....
I´m on SMF 1.1.3 with MySQL: 4.1.10
I try with the package manager and with the phpmyadmin..... same sintax error:

Code: [Select]
Incorrect table name ''
file: /home/*****/public_html/forum/Packages/temp/staffsql.php
Line: 9

Regards!
Title: Re: Staff Page Mod
Post by: @TheOffice on July 14, 2007, 07:12:47 AM
At this moment only Admins can see the staff. Is it possible to let al users see the staff page?

I had to made some changes to the index.template.php so it fits in the template.

Code: [Select]
// the [staff list] button
if ($context['allow_view_stafflist'])
echo ($current_action == 'staff' || $context['browser']['is_ie4']) ? '' : '' , '
<div class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=staff">' , $txt['smfstaff_stafflist']  , '</a>
</div>' , $current_action == 'staff' ? '<div class="seperator"><!--no content--></div>' : '<div class="seperator"><!--no content--></div>';

Kind Regards
Daniel
Title: Re: Staff Page Mod
Post by: TrueSatan on July 14, 2007, 07:25:53 AM
See ACP>Members>Permissions From there you can modify the permissions for each group so that they can see the staff list.
Title: Re: Staff Page Mod
Post by: @TheOffice on July 14, 2007, 07:49:24 AM
See ACP>Members>Permissions From there you can modify the permissions for each group so that they can see the staff list.

Haha. Many thanks didn’t think at that. I was thinking to difficult it seems :P


Title: Re: Staff Page Mod
Post by: TrueSatan on July 14, 2007, 07:57:23 AM
After adding mods it's often a good idea to look through the permissions just in case there's something new to adjust...you'll soon get used to it.
Title: Re: Staff Page Mod
Post by: @TheOffice on July 14, 2007, 07:59:15 AM
SMF is not really new for me :) I was just thinking to difficult this time  :-[
Title: Re: Staff Page Mod
Post by: lodle on July 26, 2007, 04:21:38 PM
Hey, i like this alot but can you add one thing in.

change
Code: [Select]
if($manage_staff)
echo '<td class="windowbg"><a href="' . $scripturl . '?action=staff;sa=catdown;id=' . $data['id'] . '">' . $txt['smfstaff_down'] . '</a>&nbsp;<a href="' . $scripturl . '?action=staff;sa=catup;id=' . $data['id'] . '">' . $txt['smfstaff_up'] . '</a><br /><br /><a href="' . $scripturl . '?action=staff;sa=delete;id=' . $data['id'] . ';ret">' . $txt['smfstaff_delgroup'] . '</a></td>';

to
Code: [Select]

if($manage_staff)
{
echo '<td class="windowbg">';

if($firstid == $row2['ID_MEMBER'])
{

<a href="' . $scripturl . '?action=staff;sa=catup;id=' . $data['id'] . '">' . $txt['smfstaff_up'] . '</a>&nbsp;
<a href="' . $scripturl . '?action=staff;sa=catdown;id=' . $data['id'] . '">' . $txt['smfstaff_down'] . '</a><br /><br />
<a href="' . $scripturl . '?action=staff;sa=delete;id=' . $data['id'] . ';ret">' . $txt['smfstaff_delgroup'] . '</a>';
}
echo '</td>';
}


and insert

Code: [Select]
$firstid = $context['smfstaff_users'][$data['id']]['ID_MEMBER'][0];

before

Code: [Select]
foreach (@$context['smfstaff_users'][$data['id']]  as $id => $row2)
{
//if ($row2['ID_GROUP'] != $data['id'])
//continue;


what this does is make it so theres only one set of options per group.

(http://lodle.net/staff.jpg) (http://lodle.net/staff.jpg)

i removed the del button cause i think it doesnt belong there
Title: Re: Staff Page Mod
Post by: FrEaK@ZoiD !!! on July 30, 2007, 01:26:01 PM
nobody can help me with the SQL file??

Thanx !
Title: Re: Staff Page Mod
Post by: dl75 on August 07, 2007, 09:22:52 AM
Hello, First off Thank you vbgamer45 for an awesome mod, I desperately needed it for my forum.

Ok, here's my problem. Everything is working fine, but I went to check the Forum error logs, and I got like  bizzilion of these errors, each time member clicks on the button

8: Undefined variable: last
File: Themes/default/Admin.template.php (eval?)
Line: 657

Or

8: Undefined variable: first
File: Themes/default/Admin.template.php (eval?)
Line: 654

Any idea on what to do to fix it? Thanks in advance. ;D
Title: Re: Staff Page Mod
Post by: FreeSporePrints on August 09, 2007, 06:00:41 AM
Hello :)

I'm using (or better SMF is using me:) ) SMF 1.1.3 with a custom theme based on The Core Theme (same structure, different colours).

I added this code to the index.template.php to make appear the Staff button into the main menu:

Code: [Select]
// The [staff] button
if ($context['allow_memberlist'])
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[120] , '</a>
</td>' , $current_action == 'staff' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

I've setted into Themes/default/languages/index.language.php another variable for the text Staff into $txt[120]

All is working good, but..

I've these 2 problems:

1) When i click on the Staff button - i don't mean the hover function of the CSS - doesn't appear the changed background of the (active) button. What must i modify?

2) How can i modify the white background of the Staff page?

Thank you all ;)
F.

Title: Re: Staff Page Mod
Post by: Cool999 on August 15, 2007, 09:00:14 AM
SMF Ver - 1.1.3

I m getting this error-

apply Mod
This package is already installed, and no upgrade was found!

You should uninstall the old version first to avoid problems, or ask the author to create an upgrade from your old version.

Please remember to always make regular backups of your sources and database before installing mods, especially beta versions.

Install Actions
Installations actions for "SMF Staff Page":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


But the MOd is not already installed,

Please help

If u want to check any files, tell me , i will attach them in the next post so u can check.

Thanks a lot
Title: Re: Staff Page Mod
Post by: TrueSatan on August 15, 2007, 09:04:07 AM
I'd start by looking at installed.list in the Packages directory to see if the mod appears on that at all...post it here if you have any doubts
Title: Re: Staff Page Mod
Post by: Cool999 on August 15, 2007, 09:48:26 AM
Check the attachment

Thanks
Title: Re: Staff Page Mod
Post by: dl75 on August 15, 2007, 11:17:22 AM
I'm sorry for a bump but does anyone have anything helpful for this

8: Undefined variable: last
File: Themes/default/Admin.template.php (eval?)
Line: 657

Or

8: Undefined variable: first
File: Themes/default/Admin.template.php (eval?)
Line: 654


I tried EVERYTHING and still cant figure it out  :-[
Title: Re: Staff Page Mod
Post by: TrueSatan on August 15, 2007, 11:21:56 AM
Line 5 shows why the Package Manager has reacted as it has:

Code: [Select]
SMF Staff Page|^|staff.zip|^|vbgamer45:SMFStaff|^|1.5.1
That file lists the mods in the order that were installed so it is saying that some time back you did install this mod but don't appear to have uninstalled it and thus it won't let you install it again. The mod doesn't offer an upgrade option...you have to uninstall the old version to install a new one.

 If you go to ACP>Packages

...it should be listed in the "Browse Packages" tab and you should be able to try to uninstall it from there...looking at the number of mods installed after it I doubt that a Package Manager uninstall will work...it will probably show errors and if it does don't proceed with it...you'll have to do a manual uninstallation or, if you are upgrading to a newer version of the mod you can check each file for any differences in the new version and edit accordingly then edit the line in the installed.list I quoted above to reflect the new version...it you are unsure about this then do a full manual uninstall removing that line from the installed.list as well then install the new version from the Package Manager as normal.

 These links may help (official SMF Documentation)...reverse the process they describe.

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: Staff Page Mod
Post by: TrueSatan on August 15, 2007, 11:31:08 AM
@dl75

When you see (eval?) in the report it tells you that the error is in a different file but has tripped up the file shown in the report...it doesn't tell you what file it is in.

 I would suggest that you follow through the process of a manual installation checking at each step that everything is in place as it should be...the process is described in the links I put in my reply to cool999
Title: Re: Staff Page Mod
Post by: Cool999 on August 15, 2007, 12:16:57 PM
Sir, but i tried to manual uninstall it, but can find the text, so its not installed i think.

Please tell what should i do nwo

Thanks
Title: Re: Staff Page Mod
Post by: Bigguy on August 15, 2007, 12:28:01 PM
What type of editor are you using to search for the code in the files. ??? Are you using notepad.
Title: Re: Staff Page Mod
Post by: Cool999 on August 15, 2007, 12:30:48 PM
I m using EditPlus 2

What type of editor are you using to search for the code in the files. ??? Are you using notepad.
Title: Re: Staff Page Mod
Post by: TrueSatan on August 15, 2007, 01:25:34 PM
The mod edits a number of files...let's look at one as an example, Modifications.english.php in the language directory of the default theme:

The mod adds the following code :

Code: [Select]
//Begin SMF Staff Page Text Strings
$txt['smfstaff_stafflist'] = 'Staff List';
$txt['smfstaff_admin'] = 'Staff Configuration';

$txt['permissionname_view_stafflist'] = 'View Staff List';
$txt['permissionhelp_view_stafflist'] = 'Staff List shows all members on your Staff. You can change which member groups are shown by going to Layout and Options and look for SMF Staff filter. This permission allows you to toggle who can view the staff list.';
$txt['cannot_view_stafflist'] = 'You can not view the staff list.';

 You will need to remove that code from that file to remove the mod from it...the details of all the files you have to edit can be found if you use the links I already gave you and reverse the manual installation process. The mod is not removed by just editing one file...you have a number of different files to edit.
Title: Re: Staff Page Mod
Post by: dl75 on August 15, 2007, 11:08:00 PM
Arrrrggggg This is sooo frustrating. I changed everything, and I feel like my brain is fried. Now I get this message

8: Undefined variable: last
File: /Themes/default/languages/Staff.english.php (eval?)
Line: 658
Title: Re: Staff Page Mod
Post by: TrueSatan on August 16, 2007, 05:25:35 AM
Unfortunately you have another (eval?) error meaning that the file mentioned in the error report isn't the one with the error in it but the one that failed thanks to an error in another file...not the most helpful of error reports to put it mildly.

 The vast majority of such errors are due to missing a few lines of code...check and check again to make sure this is not the case... when adding a mod but if the problem is more deep rooted you may need to do a root and branch clearout to fix it.

 You can replace the files in your forum with a new set and add your mods and themes again and that is likely to fix the problem unless there is some clash between mods (though this doesn't, on the face of it, look like one.)

 You would do this by first backing up both your database and your forums files (via ftp) then getting the latest SMF forum installation package and studying the files in it...from your forum you would remove the files and directories that match those in the installation package save for the attachments directory and Settings.php and Settings_bak.php in your forum root...make sure they are preserved and not removed or overwritten...then upload the files from the installation package...this would give you a clean and unmodded forum without affecting your database and, as I said, you would then add your themes and mods to it again...check as you add each one that no obvious problems show up.
Title: Re: Staff Page Mod
Post by: razorblitz07 on August 20, 2007, 01:44:02 AM
I'm using the Babylon Theme.  Is the Staff Mod compatible in working with the theme?  or is it only compatible to working with the default SMF theme?
Title: Re: Staff Page Mod
Post by: TrueSatan on August 20, 2007, 04:42:20 AM
This mod can work in the Babylon theme but you have to manually edit it into that theme as you would with the vast majority of mods.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: Staff Page Mod
Post by: xiownthisplacex on September 09, 2007, 05:49:16 AM
Sorry about this guys,but i am new at this, where do i extract the files too? to which folder? and what do i have to do exactly? i saw the links before this post, but i did not understand what to do.. this is the folder i have my theme on /xxxx/xxxx/public_html/forum/Themes/ferrytemav2..
sorry but i do not know what to do, and sorry about bad english :s thanks in advance
Title: Re: Staff Page Mod
Post by: TrueSatan on September 09, 2007, 05:57:31 AM
You don't need to extract the files at all unless you are doing a manual installation.

 Begin by going to ACP>Packages>Options>

 Set the "Installation options" appropriate to your hosting then use the "Change Permissions" to make all files writeable...check that it has done so via ftp and if there is a problem review and alter as needed the setttings you gave to "Installation options"

 Backup both your files and database...you should do this prior to installing or uninstalling any mod or theme.

 Go to ACP>Packages>Download Packages>

 Either get the mod from the SMF site or upload it from your local machine...install it automatically using the package manager...details of the process will be shown when you have uploaded the mod to your forum.
Title: Re: Staff Page Mod
Post by: xiownthisplacex on September 09, 2007, 06:53:04 AM
ok nice, that was easy :p thanks for your help, just another question now, where does the staff page display? i have looked in the forum for a link to it, but i cannot find it.. thanks once again
Title: Re: Staff Page Mod
Post by: TrueSatan on September 09, 2007, 08:03:55 AM
If you are using the SMF default theme there will be a link for it in the main menu bar if not you will have to edit the index.template.php file for custom mods...this mod, like almost all mods, only installs into the SMF default theme...that is all it is required to do.

 Please also ensure that your forum language is set to English and not English UTF8...see ACP>Server Settings.
Title: Re: Staff Page Mod
Post by: xiownthisplacex on September 09, 2007, 08:18:26 AM
ok, i do have another theme and not the default, what do i need to edit on the index.template.php? something like this? echo '<li><a href="staff url here? but which url?"> Staff ' ,  '</a></li>';
Title: Re: Staff Page Mod
Post by: tatore on September 09, 2007, 08:35:22 AM
Tha main informations about modifications index.template.php are in the staff.xml file, into the package.
To create a new button you find in the staff.xml file the way you may add  new button in the default theme, not in customized themes.
If you open the index.template.php of your current theme, copy and paste here any block code like this (I use Dilber Mc):
Code: [Select]
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo'
<td align="center" class="menubg' , $current_action == 'pm' ? '2' : '' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>';
We can help you to add the new staff page to the header.
Any theme has it's own kind of style.
Title: Re: Staff Page Mod
Post by: TrueSatan on September 09, 2007, 08:39:46 AM
Please study the following:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)

 These will give you details of the edits the mod (and other mods) make...you need to look at what is done to the SMF default theme and to try to replicate it in your custom theme.

 Please note...a thorough reading of the official documentation would answer most of your questions....link at top of this page.
Title: Re: Staff Page Mod
Post by: xiownthisplacex on September 09, 2007, 05:02:14 PM
Tha main informations about modifications index.template.php are in the staff.xml file, into the package.
To create a new button you find in the staff.xml file the way you may add  new button in the default theme, not in customized themes.
If you open the index.template.php of your current theme, copy and paste here any block code like this (I use Dilber Mc):
Code: [Select]
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo'
<td align="center" class="menubg' , $current_action == 'pm' ? '2' : '' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>';
We can help you to add the new staff page to the header.
Any theme has it's own kind of style.

yes, this what i have on index.template.php, i have already added a button on the top to go to my tracker, these are the existing buttons:

// Show the default [home] button.
   echo   '<li><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
      
      
   // Show the [help] button.
   echo   '<li><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>';

   // How about the [search] button?
   if ($context['allow_search'])
      echo '<li><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>';

   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo   '<li><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></li>';

   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo '<li><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';

   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
      echo '<li><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a></li>';


   // The [calendar]!
   if ($context['allow_calendar'])
      echo '<li><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';

   // the [member] list button
   if ($context['allow_memberlist'])
      echo '<li><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></li>';


   // If the user is a guest, show [login] button.
   if ($context['user']['is_guest'])
      echo '<li><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';


   // If the user is a guest, also show [register] button.
   if ($context['user']['is_guest'])
      echo '<li><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';

//Button for tracker
echo '<li><a href="http://www.XXXXXXXXXX.info"> Tracker ' ,  '</a></li>';

like i had sad earlier, just like this one (Button for tracker) but i do not know which url or commando to put for it to redirect to the staff page.. i am thinking of something like echo '<li><a href="url or command to see the staff here, which what goes here?"> Staff ' ,  '</a></li>';
Title: Re: Staff Page Mod
Post by: vbgamer45 on September 09, 2007, 05:10:14 PM
', $scripturl, '?action=staff
Title: Re: Staff Page Mod
Post by: xiownthisplacex on September 09, 2007, 06:23:35 PM
ok thanks this works! but only admin can see the staff list, i have searched in Members->Permissions to let other people see the staff list, but i cannot find that option there..
Title: Re: Staff Page Mod
Post by: vbgamer45 on September 09, 2007, 06:24:36 PM
It should be there if the mod installed completely called View Staff List
Title: Re: Staff Page Mod
Post by: xiownthisplacex on September 09, 2007, 06:36:19 PM
ok i have found it, but nothing appears, just the check mark box! lol! thanks for all your help! great work guys!
Title: Re: Staff Page Mod
Post by: drgnmstr on October 22, 2007, 10:50:02 PM
Quick question, read through most of these posts...
Is there a way to have the staff page display members that have the associated
member group assigned as a secondary group? Currently only primamry membergroups are displayed. Thanks..

(ie: I have a team member group and say a server admin group. Someone who is assigned to both groups, team member-primary & server admin-secondary, to have that person listed on the staff page under both group headings.)
Title: Re: Staff Page Mod
Post by: vbgamer45 on October 22, 2007, 10:58:16 PM
Nope not currently built in.
Title: Re: Staff Page Mod
Post by: drgnmstr on October 22, 2007, 11:01:24 PM
K, thanks, didn't think I saw anything...
Title: Re: Staff Page Mod
Post by: Cadderpidder on November 09, 2007, 09:50:10 AM
I'm kind of new to the whole forum admin thing (kind of got dropped into having the ability to do these things).

I'd love to use this mod, but we're using a different theme. We're using the Helios_Multi theme. What would I have to edit in order to get this mod to work correctly with our mod?
Title: Re: Staff Page Mod
Post by: TrueSatan on November 09, 2007, 10:09:52 AM
Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: Staff Page Mod
Post by: Cadderpidder on November 09, 2007, 10:39:13 AM
Thanks for the help. I need all that I can get.
Title: Re: Staff Page Mod
Post by: Cadderpidder on November 09, 2007, 04:43:48 PM
Like I mentioned early in this post, I'm a total newb at this.

I'm trying to get this mod as well as a badges mod to work on our forums. When using the Package Parser, I'm assuming that 1.1.3 will work "ok" with 1.1.4? Also, do I want 'All Edits' or 'Only Theme' option?  ???

When it spits out the code for this, where do I find these files? Are they in the mod files or in the forum theme section?  ???

Any help would be greatly appreciated as I'm the only one from our new gaming clan who is going through the trouble of learning how to do all this coding stuff.  :(
Title: Re: Staff Page Mod
Post by: TrueSatan on November 09, 2007, 10:31:01 PM
OK

 The Package Parser when set to 1.1.3 will give the output you need...also set to "All Edits"

 The files it tells you to edit are in your forum and it should guide you to their locations as well...it will also tell you the new files to add (from the mod package) and where they should be placed. Not all files (by a long way) will be in the theme directory.

 You'll benefit greatly from the effort you're putting in to learn...it really is well worth doing.
Title: Re: Staff Page Mod
Post by: Cadderpidder on November 15, 2007, 08:39:30 AM
Well, I've been working and trying to learn this - and I've taken on this mod to work with. I've found the files that I needed to add the additional code to, using the Parser, except for two. The index and index.template files. I've found them (I think) in the default forums, but we're using a different theme (see above posts). Now what do I do?

We really need a staff page listing by registration date according to user groups.

Title: Re: Staff Page Mod
Post by: TrueSatan on November 15, 2007, 08:59:47 AM
If all is working as it should then when a custom theme is "missing" a file then the file of the same name in the SMF default theme will be automatically used by your forum...however sometimes this doesn't work and on those occasions you should copy the file(s) in question from the SMF default theme to each of your custom themes...so...if all is as it should be and your hosting is behaving itself you should be OK according to your last posting or you should now have what you need to fix it.
Title: Re: Staff Page Mod
Post by: Cadderpidder on November 16, 2007, 10:07:42 AM
Ok, so I found and edited them, but when I did so it screwed up the look of our page. The buttons were gone and turned into bunched up text to the left of the page.

If I sent up the .php - could someone take a look at it and maybe figure out whats wrong?
Title: Re: Staff Page Mod
Post by: vbgamer45 on November 16, 2007, 08:49:58 PM
Attach .php file to a post here.
Title: Re: Staff Page Mod
Post by: Cadderpidder on November 17, 2007, 01:05:34 AM
The first is the original. The edit is after the Parser did its work. Other than this file, everything else seemed to work ok.

Thanks for taking the time to look.
Title: Re: Staff Page Mod
Post by: xiownthisplacex on November 19, 2007, 04:29:55 AM
i uploaded this mod via admin in the forum, but when i try to install, it asks for ftp login, so i put it, but it is always saying that it is incorrect, even when i go to Admin->Packages->Options->Change all file permissions throughout the forum such that: and change it to All files are writable. but it asks for login, i put it, and it doesnt work, does anyone know why? thanks.
Title: Re: Staff Page Mod
Post by: TrueSatan on November 19, 2007, 07:07:42 AM
The very high probability is that you are putting in incorrect details for your ftp account.
Title: Re: Staff Page Mod
Post by: xiownthisplacex on November 19, 2007, 08:08:43 PM
lol, im not, i think i know how to put my correct info :p
Title: Re: Staff Page Mod
Post by: TrueSatan on November 19, 2007, 09:17:14 PM
Have you checked to see that you are taking into account that the forum may not be in the publichtml root of your hosting and thus the details may not be quite as obvious as you infer.
Title: Re: Staff Page Mod
Post by: Chopper on November 28, 2007, 05:36:05 PM
I get this error when trying to access the staff list:

"Unable to load the 'Staff' template."
Title: Re: Staff Page Mod
Post by: TrueSatan on November 28, 2007, 06:00:15 PM
Please make a manual check to see that all the files this mod seeks to add and all the edits it seeks to make are in place and, in particular, check to see that Staff.template.php is in place and is not of 0k in size...if it is please upload a new copy from the mod package.
Title: Re: Staff Page Mod
Post by: Chopper on November 28, 2007, 06:12:32 PM
check to see that Staff.template.php is in place

Thank you kind sir
Title: Re: Staff Page Mod
Post by: TrueSatan on November 28, 2007, 06:16:58 PM
My pleasure!
Title: Re: Staff Page Mod
Post by: eleven0 on November 29, 2007, 12:41:58 AM
I have a problem with this mod. I installed it, and it automatically put some groups in staff page. So i went to conf. page and removed them all. Now, when i add a group. It won't show up in staff list. Does it has to be their primary group?
Title: Re: Staff Page Mod
Post by: TrueSatan on November 29, 2007, 05:19:28 AM
The mod won't show secondary groups or post count groups.
Title: Re: Staff Page Mod
Post by: Krysia on January 26, 2008, 12:17:54 AM
I found out something rather strange tonight.

If I include a modifications.english.php file in the languages directory in my custom theme folder, the text for "Staff Configuration" in the Admin panel shows up in the left-hand menu.

However, it then deletes the text from some of the permissions and layout & options panels.

If I remove the modifications.english.php file from the custom language directory and only use the one in the main languages directory, then I have all the other text needed for the board, but not the Staff configuration text in the Admin panel menu.

I tried compromising by having ONLY the staff configuration in the custom directory, and the rest in the main, but that then puts the staff configuration text back, but removes the others.

Is there a way to get around this?

Thank you.
Title: Re: Staff Page Mod
Post by: TrueSatan on January 26, 2008, 08:31:19 AM
You will  need to go through the mod creating new copies of all the theme files it uses and adding them to your custom theme:

Staff.template.php
Staff.english.php
Staff.english-utf8.php

You will need to work on any existing Who.english.php, index.template.php in your custom theme to add the edits the mod uses and if there are no such files may need to copy them in from your SMF default theme (your forum should use the files from the default theme if no files of the same names are in your custom theme but on some hosting it may be necessary to copy them to your custom theme.)
Title: Re: Staff Page Mod
Post by: Krysia on January 26, 2008, 11:03:39 PM
You will  need to go through the mod creating new copies of all the theme files it uses and adding them to your custom theme:

Staff.template.php
Staff.english.php
Staff.english-utf8.php

You will need to work on any existing Who.english.php, index.template.php in your custom theme to add the edits the mod uses and if there are no such files may need to copy them in from your SMF default theme (your forum should use the files from the default theme if no files of the same names are in your custom theme but on some hosting it may be necessary to copy them to your custom theme.)
Oi.
LOL.

Think I'll tackle that tomorrow.

Thank you! :D
Title: Re: Staff Page Mod
Post by: ChaosEnergy on January 27, 2008, 04:58:10 AM
Hi
I use 1.5 version (cant upgrade, cause no deinstall function available)
so i dont know what has changed, but I miss one feature

Staff page shows only members, if they are used as primary group

most of my staff people get the membergroup not primary, so they dont get listed..could it be extened to show also non primamry membergroup members?
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 27, 2008, 07:31:18 PM
Version 1.6 Released
Adds support for additional groups on the staff page.
Changed the display for the admin options on the staff page.
Title: Re: Staff Page Mod
Post by: Krysia on January 27, 2008, 10:46:14 PM
You will  need to go through the mod creating new copies of all the theme files it uses and adding them to your custom theme:

Staff.template.php
Staff.english.php
Staff.english-utf8.php

You will need to work on any existing Who.english.php, index.template.php in your custom theme to add the edits the mod uses and if there are no such files may need to copy them in from your SMF default theme (your forum should use the files from the default theme if no files of the same names are in your custom theme but on some hosting it may be necessary to copy them to your custom theme.)
Okay... I've read that last bit a few times, and maybe it's been a long day, but I'm having trouble making sense of it.

The only thing missing appears to be the text in the Admin panel for the Staff Mod Settings. It's there when I try and have the modification.english.php file in the custom theme folder, but that negates the text in other areas, such as the permissions and admin layout & features pages. So in order to keep that text, I removed the modifications.english.php file from my custom theme folder.

Now my only problem is getting that specific text to show up. I have those Staff.template.php, Staff.english.php, Staff.english-utf8.php files in my custom theme already; and I've updated to 1.6, yet that text still doesn't show.
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 27, 2008, 10:47:26 PM
Check under admin -> Server Settings and make sure the language is set to english and not english utf8
Title: Re: Staff Page Mod
Post by: ChaosEnergy on January 28, 2008, 02:24:36 AM
Thanks for adding additional groups

one issiue:
the local mopderators are alway at bottom, no up/down button, the last group above..i click down it says there is no group below...
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 28, 2008, 08:02:34 PM
Correct they will always appear last
Title: Re: Staff Page Mod
Post by: Krysia on January 28, 2008, 08:24:25 PM
Check under admin -> Server Settings and make sure the language is set to english and not english utf8
Yep. It's under English. Don't have English utf8 as an option.
Title: Re: Staff Page Mod
Post by: TrueSatan on January 28, 2008, 09:08:03 PM
I'll try to rephrase what I stated previously...SMF is designed so that if a custom theme doesn't have a certain file then it uses the file of the same name from the SMF default theme, but on some hosting this can fail (it doesn't happen that often and it is due to incorrect server configuration) and in those cases you will need to copy the default theme file to the custom theme and add the mod edits to both copies. By doing this to all the theme files affected by this mod you should then get all the language strings from this mod into files that reside both in the default theme and your custom theme.

 So...you now need to look at the default theme files the mod edits and if copies of them aren't already in your custom theme copy them there...make sure that the custom theme has all the files and all the edits the mod makes and uses. If the custom theme already has the files the mod edits in the default theme then edit them, to match the mod codes, too
Title: Re: Staff Page Mod
Post by: ChaosEnergy on January 29, 2008, 03:29:14 AM
Correct they will always appear last
So this means you see the admin and global mod, than some special user groups as my beta testers for the game..and the more important group will be always the last,

this means i need to  make a dummy group, put there all local moderators, and remove the original local...
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 29, 2008, 08:22:33 AM
Yes for now.
Title: Re: Staff Page Mod
Post by: Pip2andahalf on January 29, 2008, 06:22:50 PM
I am using the Babylon Theme, and the buttons do not show up on the menu. Is there any way to fix this?

Thanks a lot!

-Pip
Title: Re: Staff Page Mod
Post by: vbgamer45 on January 29, 2008, 08:28:38 PM
Yes you would need to add a link/button for the staff page. I do include a button that can be used for balyon but you would need to modify the index.template.php for that theme.
Title: Re: Staff Page Mod
Post by: Pip2andahalf on January 29, 2008, 09:14:28 PM
Yes you would need to add a link/button for the staff page. I do include a button that can be used for balyon but you would need to modify the index.template.php for that theme.

Maybe this is asking too much, but I do not know how to do that... Could someone maybe walk me through what I would need to do to get this working? Sorry I'm such a noob...
Title: Re: Staff Page Mod
Post by: falguni1 on January 30, 2008, 01:55:04 AM
very nice mod.
Title: Re: Staff Page Mod
Post by: ChaosEnergy on February 04, 2008, 03:08:37 AM
hi

when creating new membergroups i now get:

Quote
Duplicate entry '53-view_stafflist' for key 1
File: /home/user/web/forum/Sources/ManagePermissions.php
Line: 1216
Title: Re: Staff Page Mod
Post by: fals on February 04, 2008, 05:59:25 PM
Any way to show online/offline status on the staffpage ?
Title: Re: Staff Page Mod
Post by: vbgamer45 on February 04, 2008, 09:48:38 PM
Yes you would need to modify the code though.
Title: Re: Staff Page Mod
Post by: fals on February 05, 2008, 03:33:20 AM
Yes you would need to modify the code though.
Yep, i thought so  ;) but how ?
Title: Re: Staff Page Mod
Post by: schnups on February 28, 2008, 07:17:05 AM
Hey,
I want the staff page to show a custom profile field(text field).I already found out the db name but I dont know how to insert it into the staff mod.can anybody help me on this who knows php and smf better?
Title: Re: Staff Page Mod
Post by: pinkfreak on April 05, 2008, 04:43:29 PM
I'd use it, but I'd wish it would work with other themes!

I agree with you there! I have a theme that I love, but had to change back to the good ol default theme to get to view it.
Title: Re: Staff Page Mod
Post by: vbgamer45 on April 05, 2008, 06:02:10 PM
For custom themes you just have to create a link/button to the staff page. This is going to change in SMF 2.0
Title: Re: Staff Page Mod
Post by: exxocet on April 20, 2008, 04:05:45 AM
Good mod, thanks vbgamer45,

 but it need an status icon, just like in memberlist. When users send a PM to the site staff, they got to see if the mod/admin is online and will got a quick reply, or is offline and will wait ages for a reply.
Title: Re: Staff Page Mod
Post by: vbgamer45 on April 20, 2008, 02:49:31 PM
Nice idea

Place all bug reports and feature requests on this site:
http://www.smfhacks.com/index.php?action=modtracker
Title: Re: Staff Page Mod
Post by: Marcus Forsberg on April 25, 2008, 12:40:21 AM
Swedish translation:

//Begin SMF Staff Page Text Strings
$txt['smfstaff_stafflist'] = 'Personallistan';
$txt['smfstaff_admin'] = 'Personallistan';

$txt['permissionname_view_stafflist'] = 'Visa personallistan';
$txt['permissionhelp_view_stafflist'] = 'Kan visa personallistan.';
$txt['cannot_view_stafflist'] = 'Du har inte lov att visa personallistan.';

(Staff.swedish.php attached)
Title: Re: Staff Page Mod
Post by: Eclipse16V on May 01, 2008, 03:06:50 PM
Great Mod.

Run it on SMF 2.0 Beta 3.1 Public ? ? ?

Thx
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 01, 2008, 07:40:13 PM
Only runs for SMF 1.1.x according to the mod site will be updated once SMF 2.0 final is released.
Title: Re: Staff Page Mod
Post by: SgtMic on May 02, 2008, 12:08:49 AM
Updated for 1.1.5?
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 02, 2008, 09:54:07 PM
Yes it is.
Title: Re: Staff Page Mod
Post by: Davy-D on May 07, 2008, 02:25:10 PM
Hi vbgamer,

great job - exactly what I needed, the "Staff mod". Was able to extend it with another column w/o any problems. Pretty much straight-forward, well done!

Question: is there an easy way to make Umlauts work with it? Strangely in my setup, links to the Staffs' profiles are shown with Umlauts, but text in other parts of the page shows typical UTF-8 problems when trying to print Umlauts.

Does the SMF framework maybe provide any function to convert DB values "on-the-fly" to UTF-8?

Thanks,
Davy
Title: Re: Staff Page Mod
Post by: vbgamer45 on May 07, 2008, 07:43:18 PM
It should be able to as long as you convert the Staff page tables to utf inside the database.
Title: Re: Staff Page Mod
Post by: Apllicmz on May 13, 2008, 08:11:07 PM
thank update portuguese and brazilian

Code: [Select]
<file name="$languagedir/Modifications.brazilian.php">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin SMF Staff Page Text Strings
$txt['smfstaff_stafflist'] = 'Staff';
$txt['smfstaff_admin'] = 'Configurações da Staff';

$txt['permissionname_view_stafflist'] = 'Ver a lista da Staff';
$txt['permissionhelp_view_stafflist'] = 'Mostra todos os membros em sua Staff. Você pode alterar quais os grupos de membros a serem mostrados indo em "Layout e Opções" e procurar pela "Lista SMF Staff". Esta permissão o permite ver a lista dos membros da Staff.';
$txt['cannot_view_stafflist'] = 'Você não pode ver a lista da Staff.';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese.php">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin SMF Staff Page Text Strings
$txt['smfstaff_stafflist'] = 'Staff';
$txt['smfstaff_admin'] = 'Configurações da Staff';

$txt['permissionname_view_stafflist'] = 'Ver a lista da Staff';
$txt['permissionhelp_view_stafflist'] = 'Mostra todos os membros em sua Staff. Você pode alterar quais os grupos de membros a serem mostrados indo em "Layout e Opções" e procurar pela "Lista SMF Staff". Esta permissão o permite ver a lista dos membros da Staff.';
$txt['cannot_view_stafflist'] = 'Você não pode ver a lista da Staff..';
]]></add>
</operation>
</file>


Code: [Select]
<file name="$languagedir/Who.brazilian.php">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin SMF Staff Page Text Strings
$txt['whoall_staff'] = 'Vendo os membros da <a href="' . $scripturl . '?action=staff">Staff</a>';
// END SMF Staff Page Text Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Who.portuguese.php">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin SMF Staff Page Text Strings
$txt['whoall_staff'] = 'Vendo os membros da <a href="' . $scripturl . '?action=staff">Staff</a>';
// END SMF Staff Page Text Strings
]]></add>
</operation>
</file>


Code: [Select]
//Staff text strings
$txt['smfstaff_local'] = 'Moderador Local';
$txt['smfstaff_lastactive'] = 'Último Acesso:';
$txt['smfstaff_forums'] = 'Fórums:';
$txt['smfstaff_dateregistered'] = 'Data de Registro:';
$txt['smfstaff_contact'] = 'Informações de Contato:';
$txt['smfstaff_sendpm'] = 'Enviar MP';
$txt['smfstaff_avatar'] = 'Avatar';
$txt['smfstaff_options'] = 'Opções';

$txt['smfstaff_nocatabove'] = 'Não há nenhum grupo acima do atual.';
$txt['smfstaff_nocatbelow'] = 'Não há nenhum grupo abaixo do atual.';
$txt['smfstaff_errgroupexists'] = 'Esse grupo sempre está na lista da Staff.';

$txt['smfstaff_staffsetting'] = 'Configurações da Staff';
$txt['smfstaff_showavatar'] = 'Mostrar Avatar';
$txt['smfstaff_showlastactive'] = 'Mostrar Último Acesso';
$txt['smfstaff_showdateregistered'] = 'Mostrar Data de Registro';
$txt['smfstaff_showcontactinfo'] = 'Mostar Informações de Contato';
$txt['smfstaff_showlocalmods'] = 'Mostrar Locais de Moderação';

$txt['smfstaff_groupstoshow'] = 'Grupos para mostrar na Página da Staff:';


$txt['smfstaff_groupstoadd'] = 'Grupos para adicionar na Página da Staff:';

$txt['smfstaff_addgroup'] = 'Adicionar Grupo';
$txt['smfstaff_delgroup'] = 'Remover Grupo';

$txt['smfstaff_up'] = 'Acima';
$txt['smfstaff_down'] = 'Abaixo';

$txt['smfstaff_savesettings'] = 'Gravar Alterações';
Title: Re: Staff Page Mod
Post by: The Saviour on May 17, 2008, 11:02:18 AM
Hi, everyone...

I have a little problem...

First of all, I'm new to SMF, so please bear with me...as I cannot get any of the mods I want to install done through the Package Parser of the Admin interface of SMF 1.1.5.

Unless I'm doing something wrong...or have a setting wrong in my FTP settings of SMF.

Anyway...I tried to install this mod with the package parser...the first few lines state the test was successful, so I continue to Install the mod and am redirected to a page cannot be displayed page.

So, this is what I did...

I followed the documentation for a manual install of this mod.  I made the necessary file changes and uploaded the other required files to my server (host is Site Ground, by the way) to the appropriate directories.

The manual install directions state the staffsql.php can be run stand alone, but I do not understand this step.  How do I run it...and do I have to upload it to create the database?

Currently, my board shows the "Staff List" button/tab, but when I click it, I get the following Database error:

Table 'xxxxxxxx_smf.smf_staff' doesn't exist
File: /home/xxxxxxxx/public_html/forums/Sources/Staff.php
Line: 59

Did I miss a step?

Again...installing manually...I made the manual edits to the following files which already reside on my server:

./Themes/default/languages/Modifications.english.php
./Themes/default/languages/Who.english.php
./index.php
./Themes/default/index.template.php
./Sources/ManagePermissions.php
./Sources/Subs.php

I uploaded the following files to their respective directories:

Move the included file "Staff.php" to "./Sources".
Move the included file "Staff.template.php" to "./Themes/default".
Move the included file "Staff.english.php" to "./Themes/default/languages".
Move the included file "Staff.english-utf8.php" to "./Themes/default/languages".

Now...manually speaking...the last thing to do would be to run the staffsql.php file, but for the life of me...do not know where to upload this file...or if I have to change permissions on any of the files mentioned above...since manual installation instructions aren't really written clearly enough for the SMF beginner.

So, if anyone can help me finish this installation...I'd really appreciate it.  I could also use some advice as to how to get the Package Parser to work...since I can't get any mods to install using it.

Again...thanks in advance.
Title: Re: Staff Page Mod
Post by: The Saviour on May 17, 2008, 12:22:40 PM
Please disregard my previous post...

I figured it out...as far as where to place the staffsql.php file and running it.

I still can't get the Package Parser to work, though...

Great mod!
Title: Re: Staff Page Mod
Post by: Cadderpidder on May 19, 2008, 03:55:29 PM
I guess I'm just missing something here.

I'm trying to add the staff page to our forums. We're running 1.1.5 and using Helio Multi theme.
I've found the files but don't know if they have to be edited, moved into the necessary theme directories, or both.

If you can help me, vbgamer45, I'd appreciate it. Just let me know what I need to give you (besides sex, drugs, women or money). :)
Title: Re: Staff Page Mod
Post by: ccbtimewiz on May 19, 2008, 06:26:05 PM
No edits needed.

Try going to:

http://yoursite.com/?action=staff


If that works, then just add:

Code: [Select]
// The [staff] 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">Staff List</a>
</td>' , $current_action == 'staff' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

To your index.template.php file.
Title: Re: Staff Page Mod
Post by: Cadderpidder on May 19, 2008, 06:54:47 PM
I've tried a couple variations of your http://yoursite.com/?action=staff you posted. I guess I'm just lost.

Our forums are http://www.xxxtremegamers.ca/forum/

I'm assuming I add after that - but when I do I get "An Error has Occurred"

and is that addition to index.template just anywhere in the file?
Title: Re: Staff Page Mod
Post by: ccbtimewiz on May 19, 2008, 07:17:15 PM
http://www.xxxtremegamers.ca/forum/?action=staff

Find:
Code: (index.template.php) [Select]
// Otherwise, they might want to [logout]...
Add Before:
Code: [Select]
// The [staff] 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">Staff List</a>
</td>' , $current_action == 'staff' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
Title: Re: Staff Page Mod
Post by: Cadderpidder on May 19, 2008, 07:30:20 PM
Ok - found and replaced the text - no problem.

Still getting the Error message.
Title: Re: Staff Page Mod
Post by: ccbtimewiz on May 19, 2008, 07:33:55 PM
Make sure that these files exist:

%root%/Themes/default/staff.template.php

%root%/Sources/staff.php
Title: Re: Staff Page Mod
Post by: Cadderpidder on May 19, 2008, 08:28:48 PM
Those files do exist.  Just having no luck bringing it up...*puzzled look* *breaks down into tears*
Title: Re: Staff Page Mod
Post by: ccbtimewiz on May 19, 2008, 08:48:45 PM
Any errors in the error log?
Title: Re: Staff Page Mod
Post by: Cadderpidder on May 19, 2008, 08:53:50 PM
This is there a few times which would relate to the staff page.

Error message '8: Undefined index: smfstaff_admin
File: /mnt/w0305/d42/s08/b0220764/www/xxxtremegamers.ca/forum/Sources/Subs.php
Line: 2779'
Title: Re: Staff Page Mod
Post by: ccbtimewiz on May 19, 2008, 09:02:24 PM
Ew... x.x

Try reinstalling the modification. If any errors come up when trying to install, post them here.
Title: Re: Staff Page Mod
Post by: Cadderpidder on May 19, 2008, 09:06:34 PM
It comes up with the standard installation information...no errors. Here's what it did.

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    /mnt/w0005/d42/s08/b0220764/www/xxxtremegamers.ca/forum/Themes/default/languages/Modifications.english.php    Test successful
2.    Execute Modification    /mnt/w0005/d42/s08/b0220764/www/xxxtremegamers.ca/forum/Themes/default/languages/Who.english.php    Test successful
3.    Execute Modification    ./index.php    Test successful
4.    Execute Modification    /mnt/w0005/d42/s08/b0220764/www/xxxtremegamers.ca/forum/Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
6.    Execute Modification    ./Sources/Subs.php    Test successful
7.    Extract File    ./Sources/Staff.php    
8.    Extract File    /mnt/w0005/d42/s08/b0220764/www/xxxtremegamers.ca/forum/Themes/default/Staff.template.php    
9.    Extract File    /mnt/w0005/d42/s08/b0220764/www/xxxtremegamers.ca/forum/Themes/default/languages/Staff.english.php    
10.    Extract File    /mnt/w0005/d42/s08/b0220764/www/xxxtremegamers.ca/forum/Themes/default/languages/Staff.english-utf8.php    
11.    Execute Code    staffsql.php

After that it said it was installed correctly and then redirected me to the setup page.
Title: Re: Staff Page Mod
Post by: ccbtimewiz on May 19, 2008, 09:07:58 PM
It still doesn't work even though you have the correct edits?

The only other answer I can think of would be the server environment. Let vbgamer help you. I have no clue. =T
Title: Re: Staff Page Mod
Post by: Cadderpidder on May 19, 2008, 09:11:12 PM
Ok, thanks for trying ccbtimewiz.

We're using Netfirms for our server - for anyone else who thinks they can help.

Title: Re: Staff Page Mod
Post by: Burke ♞ Knight on June 07, 2008, 09:05:46 AM
For those who use this great mod with custom themes, you will need to make images. I had made an image for this theme:

Cerberus design by Bloc
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 07, 2008, 09:48:24 AM
Thanks for the image!
Title: Re: Staff Page Mod
Post by: Burke ♞ Knight on June 10, 2008, 08:05:36 AM
Not a problem... :)
One of the first images I tried to make that actually came out 1/2 way decent...LOL
(Yes, I fully admit, image making and I don't usually get along...LOL)
Title: Re: Staff Page Mod
Post by: F4r4Zm0In on June 15, 2008, 06:17:33 AM

I tried installing this mod manually after getting "Test Failed" error in ./Themes/reddarkness/index.template.php
as i am using Reddarkness as my default theme for smf 1.1.5
but, when i tried editing
./Themes/reddarkness/index.template.php manually, i failed to find this code in index.template.php file
Code: [Select]
$current_action = 'admin'; if (in_array($context['current_action'], array(Any help will be appriciated
Thanks & Regards
F4r4Zm0In

   
   
Title: Re: Staff Page Mod
Post by: pp08 on June 18, 2008, 11:44:13 PM
what does this mod exactly do i dont really undersatnd can anyone tell me pls
Title: Re: Staff Page Mod
Post by: Bigguy on June 18, 2008, 11:45:19 PM
It adds a staff page to your forum so people will know who is on your staff.
Title: Re: Staff Page Mod
Post by: pp08 on June 18, 2008, 11:49:51 PM
wow thats really cool i am going to try installing it now
Title: Re: Staff Page Mod
Post by: pp08 on June 18, 2008, 11:55:01 PM
:( it installed fine and in the admin side i saw which clubs to add as staff then i hit save but from the user side i dont see any buttons or anything to show the staff members.

i am using smf 1.1.5 and i am using theme "fire" designed by Tamuril and this is the link to her theme if you need it
http://custom.simplemachines.org/themes/index.php?lemma=689

can you tell me if i need to edit something on the theme to make it show thanks
Title: Re: Staff Page Mod
Post by: Bigguy on June 19, 2008, 12:01:40 AM
You would have to add the tab or button to your themes index.template.php file.
Title: Re: Staff Page Mod
Post by: pp08 on June 19, 2008, 12:29:11 AM
how do i add the tab? i am sorry i am not that good at these things can you tell me what to add where pls thanks
Title: Re: Staff Page Mod
Post by: Bigguy on June 19, 2008, 09:15:03 AM
What theme are you using. ???
Title: Re: Staff Page Mod
Post by: TW1ST3D on June 19, 2008, 09:35:36 PM
Where (in which file) do I add the .gif  file for the button? I've tried different Image files and I can't get the button to show. The Text is there though. I'm using Babylon theme
Title: Re: Staff Page Mod
Post by: Bigguy on June 19, 2008, 09:47:24 PM
Right click on one of the other buttons and go to properties in the menu that pops up and it should give you a path to where the image is for that button. THat will tell you were the .gif should go that you are trying to place.
Title: Re: Staff Page Mod
Post by: TW1ST3D on June 19, 2008, 10:07:47 PM
Hmmmmmmm..............I've installed it in the right folder , It must have a different name other than staff.gif
Title: Re: Staff Page Mod
Post by: pp08 on June 20, 2008, 04:47:46 PM
What theme are you using. ???


i am using smf 1.1.5 and i am using theme "fire" designed by Tamuril and this is the link to her theme if you need it
http://custom.simplemachines.org/themes/index.php?lemma=689

can you tell me if i need to edit something on the theme to make it show thanks
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 21, 2008, 11:53:48 AM
You will need to edit the index.template.php of that theme to include a link/button to the staff list.
Title: Re: Staff Page Mod
Post by: pp08 on June 21, 2008, 10:06:52 PM
yes i understand i need to edit it but please someone tell me what i need to edit i mean what i need to find and change it to what exactly... (i have no knowledge of cooding..sorry)
Title: Re: Staff Page Mod
Post by: ccbtimewiz on June 22, 2008, 08:38:40 PM
Attach your template and I'll do it for you.
Title: Re: Staff Page Mod
Post by: pp08 on June 22, 2008, 09:23:14 PM
 :D wow thank you so much in advance ccbtimewiz

also i installed the theme "banlist" by SiNaN but same with this its not showing because i need a tab inorder to show it, if you dont mind and if its not too much trouble can you also add a tab for "banlist" thank so much really and btw this is the link for the banlist theme http://custom.simplemachines.org/mods/index.php?mod=1198
Title: Re: Staff Page Mod
Post by: ccbtimewiz on June 22, 2008, 10:03:35 PM
:D wow thank you so much in advance ccbtimewiz

also i installed the theme "banlist" by SiNaN but same with this its not showing because i need a tab inorder to show it, if you dont mind and if its not too much trouble can you also add a tab for "banlist" thank so much really and btw this is the link for the banlist theme http://custom.simplemachines.org/mods/index.php?mod=1198

Well, I'm done. Here you go.
Title: Re: Staff Page Mod
Post by: pp08 on June 22, 2008, 10:09:47 PM
 :( i just uploaded it but its not showing properly i am attaching a screen shot so you can see what i am talking about
Title: Re: Staff Page Mod
Post by: pp08 on June 22, 2008, 10:36:19 PM
i figured out that the other tabs are pulling a image from .......forum/Themes/fire/images/english/........gif and i made a image and uploaded it but it looks so bad by the side of other tabs because the original ones were translucent and mind isn't.... is there any way to have this link somewhere else like at the bottom of the main page like by the info center or something and not on the top? this way it wont atl ast look bad.... the mod itself is soooo good though and very useful
Title: Re: Staff Page Mod
Post by: ccbtimewiz on June 22, 2008, 10:49:55 PM
Make staff.gif and banlist.gif.

I'm no image maker, so you'll need to do that on your own. =T
Title: Re: Staff Page Mod
Post by: pp08 on June 22, 2008, 11:00:14 PM
i made the image but it looks bad so i was wondering is there a way to put the tab link at the bottom of the page rather then the top?
Title: Re: Staff Page Mod
Post by: ccbtimewiz on June 23, 2008, 12:11:26 AM
It's possible, but where exactly do you want it?

Like in the copyright?
Title: Re: Staff Page Mod
Post by: pp08 on June 23, 2008, 01:21:34 PM
right above the coyright on the bottom left hand side would it be possible? i attached a screen shot to show exactly where thanks so much
Title: Re: Staff Page Mod
Post by: ccbtimewiz on June 23, 2008, 02:02:50 PM
Finished.

Title: Re: Staff Page Mod
Post by: pp08 on June 24, 2008, 11:44:49 PM
when i uploaded that this is what it showing

Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.
Title: Re: Staff Page Mod
Post by: Anub1s on June 27, 2008, 07:14:56 AM
Is this mod going to be available for 2.0.3.1
Title: Re: Staff Page Mod
Post by: ccbtimewiz on June 27, 2008, 04:15:07 PM
when i uploaded that this is what it showing

Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.

Strange. Try the attached file here instead.

Title: Re: Staff Page Mod
Post by: pp08 on June 27, 2008, 09:42:29 PM
ok i just tried this one and now its saying this


Template Parse Error!
There was a problem loading the /Themes/fire/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in .../Themes/fire/index.template.php on line 311

302:
303:    // The following will be used to let the user know that some AJAX process is running
304:    echo '
305:    <div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>';
306:    
307:    // And then we're done!
308:    echo '
309: </div>';
310:

311: echo '', stupid_copyright() '';

312:
313: echo '
314: </body>
315: </html>';
Title: Re: Staff Page Mod
Post by: vbgamer45 on June 28, 2008, 12:04:07 AM
Get rid of
echo '', stupid_copyright() '';

That seems like an invalid function unless it is part of a theme.
Title: Re: Staff Page Mod
Post by: ccbtimewiz on June 28, 2008, 02:40:59 AM
echo '', stupid_copyright() '';

should be

echo stupid_copyright();
Title: Re: Staff Page Mod
Post by: pp08 on June 28, 2008, 11:07:41 PM
ok i changed it and the template loaded this time no error but the "staff" and "banllist" button are still at the top by the home and help buttons not at the bottom left of page.
Title: Re: Staff Page Mod
Post by: ccbtimewiz on June 28, 2008, 11:15:16 PM
They should be. Link to your forum?
Title: Re: Staff Page Mod
Post by: pp08 on June 28, 2008, 11:33:25 PM
the staff button was suppose to open to a page where staff is listed and banlist button was to open a page with all the banlist and as a favor which i am very thankful for... you made the buttons links for me. but the links were at the top with the home help and sarch then i had said that the author of the theme i am using has espicial buttons and i can not make something like that so i asked you if we can put the staff and banlist links on the bottom of the page... then you asked back where copyright... i then uploaded an image it should be somewhere on the bottom left side doesnt metter really exactly where as long as they are just by themself on the bottom of the page like this Staff ~ BanList
Title: Re: Staff Page Mod
Post by: ccbtimewiz on June 28, 2008, 11:34:27 PM
Very long run-on sentence. x.x

I assure you I put the edits in the right place. Can you please show me your forum?
Title: Re: Staff Page Mod
Post by: CesarManara on July 20, 2008, 12:09:35 AM
How i make for this mod work on Brazilian forum?
when a i put the lenguage as Portuguese Brazilias, the mode do not work.
What i have to do for mods work in Portuguese Brazilian?
Title: Re: Staff Page Mod
Post by: ccbtimewiz on July 20, 2008, 11:16:49 AM
I don't believe this modification has been translated. If you wish it, I can translate it to true Portuguese.
Title: Re: Staff Page Mod
Post by: CesarManara on July 20, 2008, 12:16:29 PM
I don't now if translate is the solution, becouse when i add this mod in my forum, with the forum in english function, but when i put the forum in portuguese, the buttom Staff List, desapear, i whant to now how to make for the mod function with the forum in portuguese language, the mod can stay in english, but i want that the buttom apears normally, how i make this?
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 21, 2008, 08:56:43 AM
Check the other topic that you made for the other mod I posted what you should do.
Title: Re: Staff Page Mod
Post by: M@nNiak on July 25, 2008, 05:20:58 AM
Hi, I have installed the Staff Page Mod and I did it manually, everything is right but i have a problem in this step

./Themes/default/index.template.php

Code: [Select]
Find: [Select]
$current_action = 'admin'; if (in_array($context['current_action'], array(

Add After: [Select]
'staff',


on default theme everything goes OK but i can't find this code in the theme that i´m using.
I use the theme Dark Fantasy and SMF version 1.1.5.
I don't find where i can insert this code in my theme index.template.php, and that causes a visual issue like this

(http://pic.leech.it/images/f7fdstaff.jpg)

, so if you can help me with this issue, I want that the letters saying "Staff List" looks equally to others, thanks in advance   :)
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 25, 2008, 08:34:32 PM
Compare the code to your other buttons and look to see how they other ones are defined it is different for each custom theme.
Title: Re: Staff Page Mod
Post by: Manu.G on August 23, 2008, 02:09:04 PM
Hi,

we are using this mods for a long time and we are happy to have it.
Today we moved the button "Staff List" out of the link list from the top of the forum to the bottom, cause our Linklist was running out of space.

Now we got the idea to show the staff list in a new window, but without the links. What have I to do to realize it?

Thanks in advance for your help. :)
Title: Re: Staff Page Mod
Post by: ccbtimewiz on August 23, 2008, 02:11:03 PM
Hi,

we are using this mods for a long time and we are happy to have it.
Today we moved the button "Staff List" out of the link list from the top of the forum to the bottom, cause our Linklist was running out of space.

Now we got the idea to show the staff list in a new window, but without the links. What have I to do to realize it?

Thanks in advance for your help. :)

You could try using the target="_blank" attribute.
Title: Re: Staff Page Mod
Post by: Manu.G on August 23, 2008, 02:43:55 PM
Hi,

we are using this mods for a long time and we are happy to have it.
Today we moved the button "Staff List" out of the link list from the top of the forum to the bottom, cause our Linklist was running out of space.

Now we got the idea to show the staff list in a new window, but without the links. What have I to do to realize it?

Thanks in advance for your help. :)

You could try using the target="_blank" attribute.

Ok, but the main links at the top of the forum will be there too, but I want to show the "Staff List"
without any links like "Home -  Help - Search and so on"

In the photo I removed the Links at the top
Title: Re: Staff Page Mod
Post by: Yigal on August 28, 2008, 03:24:11 AM
Hello,
I need help.
My staff list is not looking to good..

Is there a way..that you could give me the right codes, or give me a new file to make the staff look a bit more like this?

http://img210.imageshack.us/img210/7292/staffzq7.jpg
Title: Re: Staff Page Mod
Post by: ccbtimewiz on August 28, 2008, 11:37:32 AM
Hello,
I need help.
My staff list is not looking to good..

Is there a way..that you could give me the right codes, or give me a new file to make the staff look a bit more like this?

http://img210.imageshack.us/img210/7292/staffzq7.jpg

That looks like a custom built staff page; not this mod. Mainly because it shows online/offline and it shows more than 1 position. It would take heavy editing.

Likewise-- the action is different.
Title: Re: Staff Page Mod
Post by: Bugpac ™ on September 15, 2008, 10:41:48 PM
Im trying to unistall but am having problems...

4.     Execute Modification     ./Themes/default/index.template.php     Test failed
5.    Execute Modification    ./Sources/ManagePermissions.php            Test failed
6.    Execute Modification    ./Sources/Subs.php                                    Test failed
Title: Re: Staff Page Mod
Post by: genieuk on October 07, 2008, 07:26:30 AM
Hi,

I have installed this mod and have one slight niggle,

My theme uses a drop down menu and i wanted to add a link to the "Home" drop down menu.

I done this below, the link is there but no text shows on the drop down menu

Find:
Code: [Select]
$current_action = 'admin'; if (in_array($context['current_action'], array(
Add:
Code: [Select]
'staff',
That part above done without trouble.

Now this bit it where i must be dooing something wrong

I added this bit to drop down menu, as i said its linked to the staff page but no text shows for the link?

Code: [Select]
if ($context['allow_view_stafflist'])
      echo'
             <li><a href="index.php?action=staff">' , $txt['smfstaff_stafflist'] , '</a></li>

Thanks
Mat

IMAGE ATTACHED:
Title: Re: Staff Page Mod
Post by: The Saviour on October 09, 2008, 08:19:50 AM
You have four posts in a row pertaining to the same subject...and have absolutely no patience, at all.

Then you wonder why no one wants to help you.

Why don't you delete the three previous posts...then wait for someone to get back to you.

These people have other lives, you know...and do this as a service for you.  I'm sure someone will get back to you...eventually.  You just have to show a little patience.  It hasn't been that long.

Also...why not talk to the developers of your theme and ask them why your link is not showing up.  It is their theme, you know...
Title: Re: Staff Page Mod
Post by: genieuk on October 09, 2008, 08:29:03 AM
I have taken your advice on board.

Reason why is becasue i posted my first request for help on the 07/10/2008 which is two days and i think that is patient.

I only replied so i could bump it up so it can be seen as not many people goes after page on a board and it may get missed.

Well i don't think it the theme but some bit of code that i am missing as as link shows as shown in image and i can click on it and it take me to staff page but the text does not show that all it is.

I did not mean to irritate or upset anyone, sorry for that.

Thanks Mathew
Title: Re: Staff Page Mod
Post by: genieuk on October 09, 2008, 11:19:21 AM
SOLVED!

Thank you JCS!  :D , Appreciate your time and effort and all is good now, Cheers! ;)

Kindest Regards,
Mathew

Title: Re: Staff Page Mod
Post by: The Cadet on October 12, 2008, 10:53:55 AM
I am not using the default theme. My default is Dark Night (http://www.simplemachines.org/community/index.php?topic=228617.20). I installed everything correctly, the package works (default/index.template.php). However, it does not show up in the theme I am using. It shows up in the ACP from the style, but not the navbar on the main page. What part of the manual installation do I need to do on said file? 'cause it can't find any kind of array on the index.template.php from that one.
Title: Re: Staff Page Mod
Post by: Nibogo on October 12, 2008, 09:15:31 PM
vbgamer maybe you can add the status of every member: Online or Offline

Thanks
Title: Re: Staff Page Mod
Post by: EduardoP737 on October 14, 2008, 07:16:12 PM
I cant see the link.

Where is it? Need I change my default theme? :S
Title: Re: Staff Page Mod
Post by: jessicaanne010 on November 10, 2008, 02:41:37 PM
I just installed this mod, it said it installed correctly, but I can't see it on the default theme or the one I'm using, which is just a variation of the default.

Suggestions?
Jessica
Title: Re: Staff Page Mod
Post by: garybb on November 13, 2008, 07:03:18 AM
I have just installed this mod and everything works fine but i do have one little problem.

I am running smf 1.1.7 & Tinyportal 0.9.8. I am also using a custom theme.

(http://img.photobucket.com/albums/v223/homicidal/help.gif)

As you can see i dont get the pm icon.
Title: Re: Staff Page Mod
Post by: Kosedragen on November 14, 2008, 11:51:24 AM
Hello there. I'm having a minor issue with the "staff configuration"-button in the admin-panel ^^; For I run a forum with two languages, Norwegian and English. I'd like to have the button added to the Norwegian one as well =/ Any idea how I shall do this?
Title: Re: Staff Page Mod
Post by: garybb on November 16, 2008, 11:12:24 AM
Is there any support for this mod?
Title: Re: Staff Page Mod
Post by: vbgamer45 on November 16, 2008, 03:19:27 PM
Support is when we have free time. and is mostly member to member it sounds like a theme issue.
Title: Re: Staff Page Mod
Post by: garybb on November 16, 2008, 07:10:07 PM
Yeh i thought that aswell but it does the same with the default theme.

Its just the pm icon the rest is fine is there nothing i could try?

cheers.
Title: Re: Staff Page Mod
Post by: Burke ♞ Knight on November 16, 2008, 07:41:43 PM
Right Mouse the link to Send PM. Click properties.
It should tell what image is supposed to be there, and where image should be located.
Go look where it says, and make sure the PM image is there.
Title: Re: Staff Page Mod
Post by: garybb on November 16, 2008, 09:02:34 PM
Right Mouse the link to Send PM. Click properties.
It should tell what image is supposed to be there, and where image should be located.
Go look where it says, and make sure the PM image is there.

ok here is what i get.

when i click on missing link and look at properties i get: test/index.php?action=pm;sa=send;u=4

The others images point to:  Themes/MysticJade01_tp/images/

So the pm image isn't pointing to the images folder !!!
Title: Re: Staff Page Mod
Post by: Burke ♞ Knight on November 16, 2008, 09:25:55 PM
Ok, give me a link to the forum.
Title: Re: Staff Page Mod
Post by: garybb on November 17, 2008, 03:12:12 AM
Pmed you link.
Title: Re: Staff Page Mod
Post by: Burke ♞ Knight on November 17, 2008, 06:20:02 AM
Now that I see more closely, and actually look at the staff page on my 1.1.7 site, I see that it was made just as a link, without image. However, it would be a quick fix.

I have a fix, however, it only shows the offline pm icon. It will not show as the member being online, as I can not get the normal code to work right on the staff page at this time. So here is the quick fix:

Themes/default/Staff.template.php

Find:
Code: [Select]
// Send PM row
echo '<a href="' . $scripturl . '?action=pm;sa=send;u=' . $row2['ID_MEMBER'] . '">' . $txt['smfstaff_sendpm'] . '</a>';

Replace with:
Code: [Select]
// Send PM row
echo '<a href="' . $scripturl . '?action=pm;sa=send;u=' . $row2['ID_MEMBER'] . '"><img src="' . $settings['images_url'] . '/im_off.gif" alt="' . $txt['smfstaff_sendpm'] . '" /></a>';

That should do, until vbgamer45 can make the Staff Page show online/offline links to PM'ing the members. :)

EDIT:

If a guest tries to PM, it will tell them to login, or register.
Title: Re: Staff Page Mod
Post by: garybb on November 17, 2008, 08:19:54 AM
Thanks alot BurkeKnight works perfect.

Cheers.
Title: Re: Staff Page Mod
Post by: Burke ♞ Knight on November 17, 2008, 08:22:14 AM
Not a problem. :)

I hope that when vbgamer45 has time to do so, that the online/offline pm feature will be added, as well as a version for 2.0 :)
Title: Re: Staff Page Mod
Post by: Kosedragen on November 18, 2008, 02:36:46 AM
Once again I must ask you how I can add the staff-button in my Norwegian translation of SMF 1.1.7.

Attached image to show the error.

If someone told me how to fix it, I'm confident I could do it myself. Thanks.
Title: Re: Staff Page Mod
Post by: Burke ♞ Knight on November 18, 2008, 07:14:48 AM
You have to copy the staff page text from modifications.english.php to modifications.norwegian.php in order for the  correct text to appear.
Title: Re: Staff Page Mod
Post by: Kosedragen on November 18, 2008, 09:16:39 AM
Thanks ^^ Worked like a charm.
However; I'd like to translate the text in the staff-list as well. Where do I do that? =/
Title: Re: Staff Page Mod
Post by: Burke ♞ Knight on November 18, 2008, 09:22:30 AM
Staff.english.php

If you make translations, you may wish to post them here, as the Mod Author may add them to the next update.

I said MAY, not positive. You'd have to ask him if he will. :)
Title: Re: Staff Page Mod
Post by: Kosedragen on November 18, 2008, 09:49:45 AM
xD Thanks. I shall consider posting it :3
Title: Re: Staff Page Mod
Post by: Kosedragen on November 18, 2008, 10:12:58 AM
There, sorry for double posting. Just wanted to announce that I have translated everything related to the staff mod into norwegian, and it's in the attached zip file ^^

It contains:
- The necessary modification strings for the modifications.norwegian.php file.
- staff.norwegian.php
- staff.norwegian-utf8.php

The creator of the mod may implement it if he wishes to do so :3

And thanks again for the tips. If any files or strings are missing in the translation; I'd like to know it ^^
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on November 22, 2008, 01:13:59 AM
Added support for SMF 2.0!
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Burke ♞ Knight on November 22, 2008, 08:07:58 AM
Way to go!!!

Congrats!
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Nibogo on November 22, 2008, 04:39:02 PM
Added support for SMF 2.0!

Thanks vbgamer ;)

Also maybe you can add the online/offline status to the staff page
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: DirtRider on November 25, 2008, 02:38:46 AM
SMF2 the PM icon button is not showing up correctly in all profiles
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: CPOMorty on December 30, 2008, 04:42:10 PM
This is a really nice addition, however I can only get it to display for the Administrator.  Any other user or moderator who logs on cannot see it.  I am running a fresh install of 1.1.7.

Thanks,

Murray
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: SgtMic on December 30, 2008, 07:49:34 PM
This is a really nice addition, however I can only get it to display for the Administrator.  Any other user or moderator who logs on cannot see it.  I am running a fresh install of 1.1.7.

Thanks,

Murray

If I remember correctly CPO, you need to set the permissions in Admin CP.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: CPOMorty on December 30, 2008, 10:29:22 PM
Thanks SgtMic,

I had enabled the options in the Staff List section, but missed the box in the Permissions area.

CPOMorty
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: RoarinRow on December 31, 2008, 12:53:30 AM
thanks for the mod vbgamer!   8)
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Zeromus on January 09, 2009, 10:29:32 AM
for some reason the package doesn't show up in any of my forum, ohh and i tought this was a great idea, but if anybody can help me with this can some one help me.

I am using smf 1.17
and using the dirge theme as my default
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on January 09, 2009, 08:05:36 PM
For custom themes you need to add a link to the staff page in the index.template.php of your theme

point it to http://www.yourforum.com/index.php?action=staff
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: eviljesus on February 15, 2009, 12:24:51 PM
Hey nice mod vbgamer. I have a couple questions though I am using this as a roster of sorts for my clan. I have lots of custom profile options i added like adv xfire field gaming rig fav weapon all kinds of stuff. The question i have is i want to add extra contact info like steam, xfire, I can add those im pretty good at php not the greatest. But i cant get it to link properly for example it shows the image with the link but does not have the users id to finish the link ex: http://www.xfire.com/profile/     http://www.xfire.com/profile/eviljesus69/ Im wondering if someone can help me out on getting that to work i can figure out the rest for like steam and all the other stuff i got i just need one example of how you do it. Also i would like to add an active inactive to the list next to their name. I will most likely make it another option in their profile for me to change.

EDIT:
Basically i just need to know how you got yim msn email into your smfstaff_contacts sql table. Cause ive been through all the code and dont see it.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: spazz on February 27, 2009, 09:50:00 AM
i get these two errors i have 1.1.7
Quote
http://setitoffcreations.com/index.php?action=viewErrorLog;desc
Apply Filter: Only show the errors with the same message
8: Undefined index: smfstaff_admin
File: /home/setitoff/public_html/Sources/Subs.php
Line: 2757

Quote
8: Undefined index: smfstaff_stafflist
File: /home/setitoff/public_html/Themes/default/Admin.template.php (main_above sub template - eval?)
Line: 619
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on February 27, 2009, 08:36:03 PM
Those are missing langauge strings either from your language pack or a custom theme.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: spazz on February 28, 2009, 01:45:01 AM
i use the default core theme. So its not custom.

What do u recommend??
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on February 28, 2009, 10:11:02 AM
Copy the text from themes/default/modifications.english.php to every themes/default/modifications.*.php
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: GinaD on March 14, 2009, 02:16:14 PM
I have added this but it is not showing and I am using the default theme?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: SPerroud on March 14, 2009, 03:59:29 PM
nice mod, thanks for this mod.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Ravac on March 15, 2009, 03:38:17 PM
I'm getting 406 error page, when try to add some group on staff page...

He saying,

Quote
An appropriate representation of the requested resource /index.php could not be found on this server.

Any idea? oO
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on March 15, 2009, 04:01:07 PM
It is an issue with mod_security
www.simplemachines.org/community/index.php?topic=34270
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: venex on March 21, 2009, 08:42:51 PM
Hi vbgamer45,

congratulations... this is a great MOD. I just installed it on my forum and it works perfectly. But, I found two things that I didn't like a lot.

First, when I put the local mods with the forums that they moderate, the page got mess up because in my forum there is one person for 8 forums, something like that, so if there are 2 people in the page there's going to be 16 forums and you can't tell who's moderating which forum. Here is a screenshoot:

(http://www.kekomundo.com/images/staffpageproblem.PNG)

I know there is a little space between each person but, can you put it better? A line or a different color?

The other thing is that there is one person in my forum that is Gmod but she has the user group "hide". Nobody knows that she is still Gmod but she has all the powers. Look:

(http://www.kekomundo.com/images/staffpageproblem2.PNG)

So, since her member group is hided, she shouldn't appear in the Staff Page but she does. How can I fix that?

PS1: Sorry for my bad English lol... as you can see I'm Spanish.
PS2: I also translate you mod to Spanish, if you want it, tell me which files you want.

Thanks
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: b0dyr0ck2006 on March 25, 2009, 12:46:47 PM
This is a really nice addition, however I can only get it to display for the Administrator.  Any other user or moderator who logs on cannot see it.  I am running a fresh install of 1.1.7.

Thanks,

Murray

If I remember correctly CPO, you need to set the permissions in Admin CP.

Great mod!

I installed this on 1.1.8 fine.

Set-up the mod fine.

Selected the permissions.

Seem to be having the same problem as above, only admins can see the link. I'm using Dilber theme.

Any suggestions?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: b0dyr0ck2006 on March 28, 2009, 08:12:01 AM
anybody??
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: TheListener on April 24, 2009, 03:42:50 AM
I managed to install the staff tab with no problems or errors.

However it isn't showing in the tab nor is it showing as a link in the Configuration box.

What should I be doing?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: PatternInChaos on April 29, 2009, 03:15:12 AM
I had the same problem. Fixed it with this:
Move the included file "Staff.english-utf8.php" to "./Themes/default/languages".

I didn't move it at first because I didn't have any other utf8 files in there, so I thought I just needed 'Staff.english.php'

Well other than that I can just advise you to go through the mod instructions again. Another possible reason: look what theme you're using and if there's a file in there that needs modifications (maybe the instructions tell you to edit a default theme file when your theme includes this file, too. So you need to edit your custom theme file)

I hope that was comprehensible, english is not my mothertongue ^^
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Chit-Chat ChatterBox Boss on April 29, 2009, 10:44:34 AM
For this part

Quote
Groups to add on Staff Page:
Designer Add Group
Site Police Add Group
Webmaster Add Group

How can I manually add them? Reason being that my host allows max 755 chmod and it apears that this needs at least 775 to add it to the database. So can you give me directions of how to manually add the parts in the quote please.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on April 29, 2009, 07:49:18 PM
Manually install the mod? Or manually add groups?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Chit-Chat ChatterBox Boss on April 29, 2009, 08:23:01 PM
manually add the groups cause the list I showed 2 posts up is the list that has the check boxes next to it but my host blocks any 775 or 777 chmod work. so I have to know how to manually add them
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on April 29, 2009, 08:24:19 PM
If the mod is already installed you can just add people to the staff page. For the manual install instructions refer to the install page.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Chit-Chat ChatterBox Boss on April 29, 2009, 08:28:44 PM
yes the list of the mombergroups u can normally click the check boxes and hit save but i get a 501 error cause my host blocks any 775 or 777 chmod edits. so I need to manually go to the database and add those membergroups and I was asking how to do so.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on April 29, 2009, 08:39:20 PM
yes the list of the mombergroups u can normally click the check boxes and hit save but i get a 501 error cause my host blocks any 775 or 777 chmod edits. so I need to manually go to the database and add those membergroups and I was asking how to do so.
I have fix for you!

Please redownload the latest version of the Staff modification. Just released an update to fix your issue with mod_security
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Chit-Chat ChatterBox Boss on April 30, 2009, 12:03:03 AM
Worked GREAT! 

Off topic towards vbgamer45:
That fix you just did, I have a problem with a few other mods like the SMF Shop mod. I have to add items to the shop through the database cause of the same problem. Any way I can get some tips on how to correct that mod_settings problem like you just did so maybe I can fix them?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on April 30, 2009, 12:04:43 AM
Check out this post
www.simplemachines.org/community/index.php?topic=34270

If that does not work I can give code that you can change.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Chit-Chat ChatterBox Boss on April 30, 2009, 12:26:22 AM
I put that code in my .htaccess but my site still loads but it didnt stop the error blocking message for the mod_settings.

I also noticed 2 errors now in my error log:

Think this 1 has to do with the staff mod:
Code: [Select]
http://XXXXXXX/index.php?action=admin;area=staff;sa=adminset;d0f5b2190=4a590ddbf7e9ebd86a2624558fcb8674 
8: Undefined index: description
File: /home/XXXXXXX/public_html/cache/lang_Staff_english_default.php (generic_menu_dropdown_above sub template - eval?)
Line: 278 

This one has to do with usercp I think, so it has nothing to do on your end (i think):
Code: [Select]
http://XXXXXXXX/index.php?action=helpadmin;help=titlesEnable 
8: Undefined index: usercp
File: /home/XXXXXXXXX/public_html/Sources/Subs.php
Line: 3815 

EDIT:
I just cleared the site cache and so far no error msg returned. Let me know if you think this fixed it. If not and you know whats causing it let me know.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Eclipse16V on April 30, 2009, 05:43:39 AM
Need any one this in German?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Chit-Chat ChatterBox Boss on April 30, 2009, 09:21:51 AM
Check out this post
www.simplemachines.org/community/index.php?topic=34270

If that does not work I can give code that you can change.

What is the code I can change?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on April 30, 2009, 07:44:43 PM
You can only up the source files and template files of the mods that you install and
do the following
Find
Code: [Select]
;id=
Replace all with
Code: [Select]
&id=
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Chit-Chat ChatterBox Boss on April 30, 2009, 07:56:42 PM
Sweet, I will do that, what files is that code typically in?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on April 30, 2009, 07:59:11 PM
Any files added by a modification.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Chit-Chat ChatterBox Boss on April 30, 2009, 08:00:36 PM
Wow it worked. That is sweet. Love it ... Thanks bro ALOT!
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Chit-Chat ChatterBox Boss on May 02, 2009, 04:43:03 PM
I noticed that in my staff list If a staff member never logged in where it says "last login" it gives some bogus date like 1969 .... and crap. In the members profile info it says never. How can I correct this so if they have never logged in in the staff list it says never also and not some random date?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on May 02, 2009, 06:14:01 PM
That would be a bug. But how can they be staff if they never logged in?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Chit-Chat ChatterBox Boss on May 02, 2009, 06:40:38 PM
its my fiance's account she made it and right away we made her designer (its a admin rank) and then I had to do a few things on the site and I came across that.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: djkmmo on June 04, 2009, 07:18:18 AM
Hi and thanks for the mod. Here is the swedish translation:

./Themes/default/languages/Modifications.english.php
Code: [Select]
// Swedish translation by djkmmo
$txt['smfstaff_stafflist'] = 'Personal';
$txt['smfstaff_admin'] = 'Personalkonfiguration';

$txt['permissionname_view_stafflist'] = 'Visa personallista';
$txt['permissionhelp_view_stafflist'] = 'Personallistan visar all din personal på forumet. Du kan anpassa vilka grupper som visas i "Layout and Options" och titta efter SMF-personal-filtret. Med denna inställning kan du ställa in vilka som kan se personallistan.';
$txt['cannot_view_stafflist'] = 'Du har inte rättighet att se personallistan.';

./Themes/default/languages/Who.english.php
Code: [Select]
// Swedish translation by djkmmo
$txt['whoall_staff'] = 'Tittar på <a href="' . $scripturl . '?action=staff">Personallistan</a>';
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on June 04, 2009, 01:31:34 PM
Thanks for the translation
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: jpaytoncfd on June 14, 2009, 02:09:14 PM
Anyone know if it would be possible to add the staff members location to the list? We have a amsoil dealers network forum and we'd like to have customers be able to find the dealer closest to them. I would think that would be pretty easy but I have learned to not assume. lol

Thanks,
~Joe
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: rahul22 on June 16, 2009, 12:29:47 PM
its very nice mod i installed it but other members cant see that staff list it is howing error you dont have permission to view that page how should i change that and also it is telling Unable to load the 'adminset' template.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on June 16, 2009, 12:57:36 PM
Set permissions under Admin -> Permissions

What version of SMF are you using?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: rahul22 on June 16, 2009, 01:06:05 PM
i am using 1.1.9 smf
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: rahul22 on June 16, 2009, 01:20:21 PM
@vbgamer45  i got it man thanQ until now i am having a problem with permission lol now i corrected thanks man
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: jpaytoncfd on June 16, 2009, 01:35:35 PM
Anyone know if it would be possible to add the staff members location to the list? We have a amsoil dealers network forum and we'd like to have customers be able to find the dealer closest to them. I would think that would be pretty easy but I have learned to not assume. lol

Thanks,
~Joe

Anyone? Would be a big help
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on June 16, 2009, 02:01:37 PM
Would be possible to do just not built in.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: jpaytoncfd on June 16, 2009, 06:26:17 PM
Do you happen to know what files I'd look at. I may be able to find it if I knew where to look
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on June 16, 2009, 06:42:58 PM
Staff.template.php and Staff.php control and display the staff page
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Chaos Dragon on July 06, 2009, 04:20:45 AM
Hello,

I have the Staff page mod installed on my forum which is 2.0RC1-1 and I am getting this error in my error logs on SMF:

http://mydomain.com/forum/index.php?action=admin;area=staff;sa=admin;sesc;sa=adminset;e2c67a2ed22=ccd8fc5d1e988bb72716bc3defd83f50
8: Undefined index: description
File: /home/user/public_html/domain/forum/Themes/default/Staff2.template.php (eval?)
Line: 278

I looked in Staff2.template.php and this is line 278....
277:</form>
278:            </td> <-------------- Just a closing tag for a table cell
279:        </tr>
280:</table>
281:         </td>
282:      </tr>
283:</table>';
284:
285:}
286:?>

and this is also an error I get:

http://mydomain.com/forum/index.php?action=admin;area=staff;sa=admin;sesc;sa=adminset;e2c67a2ed22=ccd8fc5d1e988bb72716bc3defd83f50
8: Undefined index: description
File: /home/user/public_html/domain/forum/cache/lang_Staff_english_default.php (eval?)
Line: 278

I looked into lang_Staff_english_default.php and there in no line 278...
How do I fix this......
I also provided the Staff2.template.php

Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: alexandervba on July 06, 2009, 08:52:13 AM
is there a way for the mod to work with primary ranks only? Because on my list, people are showing up in like 3 different categories because of secondary member ranks...

Is it possible to let it only work on primary member rank?

thx!
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on July 06, 2009, 03:02:04 PM
Not at this time.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Nanotek on July 11, 2009, 10:47:06 AM
I confess I didn't look through all 29 pages of this topic, but I tried a quick Search.  I also looked on SMF hacks page to see if I could see anything relevant... if I missed this somewhere, please forgive me

I was wondering about a way one could make the gaps between members even, where users do not have avatars... either by some sort of avatar space/size hax, or by (perhaps this would be easier for you to code, if coding necessary?) defaulting to a noavatar image if they have no avatar

Thanks for your time
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: sepulchre on July 16, 2009, 05:51:21 PM
Sorry if this has been asked before, but the menu link which says "Staff List" can this be changed in the same manner you would change any other menu?

Maybe be a nice option to allow users to define the menu name from within the mod itself?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on July 22, 2009, 02:40:33 PM
Yes you can change it by modifying themes/default/modifications.english.php
Just change the staff button title text found in there.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: sepulchre on July 22, 2009, 02:58:07 PM
cheers, had got it figured and changed the text... great mod btw!!!
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on July 22, 2009, 03:02:24 PM
Glad you got it working
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Yigal on August 14, 2009, 01:42:45 AM
How do I remove the FORUMS column part for Local Moderators?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: bbmtalk on September 12, 2009, 11:48:04 AM
One question - does the mod not display avatars using external links? Some of my moderators have their avatar hosting at other sites and their avatars are not displayed on the staff page.

Any idea how I can modify and include their avatars? Thanks!!
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on September 12, 2009, 01:19:20 PM
Not sure. If you have a link to a page I can take a look
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: bbmtalk on September 12, 2009, 01:34:41 PM
never mind. I re-installed the latest version and it is displaying fine now with URL avatar.

I do need some help with adding one more column to the staff page. I have the country flag installed and what should I modify staff.template.php to add the flag to a column? Is it as simple as inserting the code somewhere? I have been playing around for a while but it is just not showing.

Code: [Select]
// Did they select a flag?
if(isset($message['member']['options']['country']) && !empty($modSettings['country_flag_show']) && !empty($message['member']['options']['country']))
{
$flags = CountryFlag();
echo '
<img src="', $settings['default_theme_url'], '/images/flags/', $message['member']['options']['country'], '.png" alt="', $flags[$message['member']['options']['country']], '" align="absmiddle" /><br />';
}

Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: swtdivalove on September 18, 2009, 01:39:09 AM
I would like to request an added feature to this if at all possible.

Instead of a link for a mailto:someone@somewhere.com, that it actually goes to a mail form.

That's if it is at all possible to have this feature instead of having our email address open publicly on the staff page.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on September 18, 2009, 02:48:52 PM
Possible for SMF 2.0 but not SMF 1.1.x
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Nibogo on September 18, 2009, 04:26:36 PM
Possible for SMF 2.0 but not SMF 1.1.x

You can easily add integration with the SMF User Email
System
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on September 18, 2009, 07:36:44 PM
I could but probably won't
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Spoogs on October 15, 2009, 12:03:48 PM
I had issues with another mod, Custom Form Mod (http://custom.simplemachines.org/mods/index.php?mod=1279) to be exact. When i tried to uninstall the mod it created some issues that has been resolved.

My issue is that the issue seemed to affect this mod also, when i tried to uninstall it the Staff list (since it stopped working) and this is the error i get... i wanted to reinstall now that the other mod has been fixed.


       Type     Action     Description
*    1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
      1.    Replace    ./Themes/default/languages/Modifications.english.php    Test successful
*    2.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
      1.    Replace    ./Themes/default/languages/Who.english.php    Test successful
*    3.    Execute Modification    ./index.php    Test failed
      1.    Replace    ./index.php    Test failed
*    4.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Replace    ./Sources/Admin.php    Test successful
*    5.    Execute Modification    ./Sources/Subs.php    Test successful
      1.    Replace    ./Sources/Subs.php    Test successful
      2.    Replace    ./Sources/Subs.php    Test successful
*    6.    Execute Modification    ./Sources/ManagePermissions.php    Test successful

Any help is appreciated (i'm very new to this so please provide basic details)
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on October 15, 2009, 07:37:27 PM
It should uninstall fine with that one error and you should then be able to install the new version
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: C4G-TK on November 07, 2009, 01:19:30 AM
Can't get this one to parse with the SMF parser for RC2.0 1.2
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on November 07, 2009, 09:05:34 AM
Try this one i think modsite broken
http://resourcez.biz/PackageParser/
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: C4G-TK on November 07, 2009, 11:26:15 AM
Thanks!

There seems to be a lot that aren't parsing for SMF 2.0 RC1-1 through 1.2 right now.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on November 08, 2009, 06:53:53 PM
Yeah hopefully will be better with RC2 public
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: vbgamer45 on November 08, 2009, 10:09:21 PM
Updated to work on SMF 2.0 RC2
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: Beagleboys on November 17, 2009, 05:46:49 PM
Updated to work on SMF 2.0 RC2
the description page say only RC1.2...
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: vbgamer45 on November 18, 2009, 12:41:45 AM
Updated to work on SMF 2.0 RC2
the description page say only RC1.2...
Fixed
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: ((Kakashi)) on December 10, 2009, 03:37:26 PM
Maybe I've missed it, but I can't find where the code is setting the menu button image. I've created a link to the AWESOME staff page at the bottom next to the members list in the Info Center in the modified yaBB 2.0 theme we are working with. The text "Staff List" is showing up between the Calendar and Log Out menu buttons. Obviously the gif is not where is suppose to be (not sure if you made a yaBB gif), so I'd either like to make a yaBB style button and put it where the mod is looking for it or remove it altogether, but.....I'm barely figuring out the new way that the theme interacts with Curve.

I'm using 2.0 RC2. Can you point me in the right direction?

Thanks in advance  :D
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: vbgamer45 on December 10, 2009, 07:01:34 PM
The menu code is found in the index.template.php of the theme

To add a button copy it to themes/yourthemes/images/english/
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: BCK on December 15, 2009, 12:25:30 PM
will this work in 1.1.11 and can it be installed thru admin as some others or does it have to be manually installed for themes???thx in advance
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: vbgamer45 on December 15, 2009, 01:30:15 PM
Works with 1.1.x other themes for 1.1.x requires small edit to index.template.php
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: BCK on December 17, 2009, 02:00:56 AM
thanks for the quick reply..much appriciated...thx again
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: hafizadam on January 09, 2010, 01:38:59 PM
how to change command
Code: [Select]
http://edit.yahoo.com/config/send_webmesg?.target=yahoousername to
Code: [Select]
ymsgr:sendIM?yahoousername for the Contact Information?
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: vbgamer45 on January 09, 2010, 01:40:54 PM
That you would have to edit the SMF source I believe or look inside Staff.template.php if you just want to change that page.
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: NoobDeveloper on January 16, 2010, 02:22:56 AM
Good Mod and works perfect with SMF 1.1.11.

however i tried to install it on SMF 2.0 RC2 and got error. i am using default theme.

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.



check screen shot.
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: vbgamer45 on January 16, 2010, 12:30:14 PM
Looks like you had another mod modify the same area but changed those two lines that the Staff page is looking for.... You would need to add the Staff code manually to that one file.
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: NoobDeveloper on January 16, 2010, 12:33:47 PM
Done...
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: vbgamer45 on January 16, 2010, 02:07:31 PM
Glad you got it!
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: NoobDeveloper on January 16, 2010, 03:05:30 PM
thanks.  and your mods are also awesome vbgamer45.

off-topic :
How about making a mod which will give PDF file or XML file as output having all topics with its data in it for particular member ?
 My forum is where people post their poems. Now there are some who have posted more than 200 poems of their own. they are using my forum to post their poems so that they can get it all at one place.

now they what that all the pomes they posted i,e all topics with its 1st post ( actual poem not comments) in PDF format. is this possible ? 
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: vbgamer45 on January 16, 2010, 03:16:45 PM
PDF would be really tricky requires either a php extension or a php library to export to pdf which would be a lot code.
Title: Re: Staff Page Mod updated for SMF 2.0 RC2!
Post by: NoobDeveloper on January 16, 2010, 03:20:32 PM
hmmm XML will do. I am a .net developer loving open source and SMF and hence I will convert this XML to PDF from my .net code.   i think XML is possible with out any issues.
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: vbgamer45 on March 08, 2010, 07:04:17 PM
Version 1.7
+Added SMF 2.0 RC3 Support
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: luuuciano on August 10, 2010, 06:31:52 PM
Hi!
Stupid question... how are sorted the staff members?

First I thought it was the user id? but then I checked it and member ids are unsorted...

there is any way to sort them by username?
(alphabetically)
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: tragidy on August 10, 2010, 06:38:22 PM

Works for SMF 2.0.x, 1.1.x and 1.0.x


Great mod absolutely love it, has anyone created a block code to work in EZportal or any of the others?
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: vbgamer45 on August 10, 2010, 06:47:05 PM
What would the block code show?
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: tragidy on August 10, 2010, 07:01:44 PM
Something like

Avatar
name
rank


perhaps have within the php a var to control how many staff members are pulled, seems like a nice idea to compliment ezportal and this module.
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: Apllicmz on November 02, 2010, 08:16:51 PM
dont forget portuguese


Code: [Select]
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
    <operation error="ignore">
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
// Begin SMF Staff Page Text Strings
$txt['smfstaff_stafflist'] = 'Lista do Funcion&aacute;rios';
$txt['smfstaff_admin'] = 'Configuração dos Funcion&aacute;rios';

$txt['permissionname_view_stafflist'] = 'Ver Lista dos Funcion&aacute;rios';
$txt['permissionhelp_view_stafflist'] = 'Staff List mostra todos os membros de sua equipe. Você pode alterar qual membro grupos são mostrados indo para layout e Opções e procure SMF Funcion&aacute;rios filtro. Esta autorização permite que você alterne quem pode ver a lista de funcion&aacute;rios.';
$txt['cannot_view_stafflist'] = 'Você não pode ver a lista de funcion&aacute;rios.';
]]></add>
    </operation>
</file>

<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
    <operation error="ignore">
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
// Begin SMF Staff Page Text Strings
$txt['smfstaff_stafflist'] = 'Lista do Funcion&aacute;rios';
$txt['smfstaff_admin'] = 'Configuração dos Funcion&aacute;rios';

$txt['permissionname_view_stafflist'] = 'Ver Lista dos Funcion&aacute;rios';
$txt['permissionhelp_view_stafflist'] = 'Staff List mostra todos os membros de sua equipe. Você pode alterar qual membro grupos são mostrados indo para layout e Opções e procure SMF Funcion&aacute;rios filtro. Esta autorização permite que você alterne quem pode ver a lista de funcion&aacute;rios.';
$txt['cannot_view_stafflist'] = 'Você não pode ver a lista de funcion&aacute;rios.';
]]></add>
    </operation>
</file>


Code: [Select]
<file name="$languagedir/Who.portuguese_pt.php" error="skip">
    <operation error="ignore">
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
// Begin SMF Staff Page Text Strings
$txt['whoall_staff'] = 'Vendo a Página dos <a href="' . $scripturl . '?action=staff">Funcion&aacute;rios</a>';
// END SMF Staff Page Text Strings           
]]></add>
    </operation>
</file>

<file name="$languagedir/Who.portuguese_pt-utf8.php" error="skip">
    <operation error="ignore">
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
// Begin SMF Staff Page Text Strings
$txt['whoall_staff'] = 'Vendo a Página dos <a href="' . $scripturl . '?action=staff">Funcion&aacute;rios</a>';
// END SMF Staff Page Text Strings           
]]></add>
    </operation>
</file>
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: azhriel on November 15, 2010, 12:30:48 AM
How can i make this mod not to display boards being moderated by the "Local Moderators"

It is so messy when one moderators moderates more than 1 board...
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: cloksin on January 18, 2011, 04:38:49 PM
Love this mod, have it installed on 2.0 RC3.  I have a question though, instead of just having the members listed one after another in a vertical format, I'd like to have them two across, with all the pertinent information about the staff member to the right of the avatar, so basically it would be a 4 column table with as many rows as half the amount of staff members.  How would I go about making this change?
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: vbgamer45 on January 18, 2011, 04:42:47 PM
You would need to edit the Staff.template.php file and change the code to organize it differently.
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: DasVON on March 13, 2011, 10:30:54 PM
How do you rename the button from "Staff List" to "Roster"

what files do I edit and what to look for ?

thanks
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: vbgamer45 on March 13, 2011, 10:57:42 PM
themes/default/languages/modifications.english.php

Look for Staff List
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: DasVON on March 13, 2011, 11:35:13 PM
Thank You...  ;D
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: gvalfer on April 25, 2011, 07:54:57 AM
you can give me only sql file please?
file.sql
thks
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: vbgamer45 on April 25, 2011, 10:49:29 AM
There is no .sql file but sql is found in the installer you can extract it to your root forum directory and run it to create tables
Title: Re: Staff Page Mod updated for SMF 2.0 RC3!
Post by: vbgamer45 on May 03, 2011, 07:30:45 PM
Two options.
1.  Get the manual install transactions for the mod and reverse it.
2. Uninstall all mods afterwords that were installed after this mod in order of last installed to uninstall cleanly
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: OCJ on July 14, 2011, 12:38:07 AM
Nice, like a lot of your mods - thanks always.

One suggestion is including avatars on the list.
Andy
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: 017 on September 11, 2011, 10:13:30 PM
So I gotta question... how would I edit the size of avatars on the page? I'd like to resize the avatars on it so the height is always at 25px. I think it has something to do with this code snippet, but not sure cause I don't see any of the usual context for image size or etc.:

Code: [Select]
if ($modSettings['smfstaff_showavatar'])
{
echo '<td class="windowbg">';
// Display the users avatar
            $memCommID = $row2['ID_MEMBER'];
            loadMemberData($memCommID);
            loadMemberContext($memCommID);
            echo $memberContext[$memCommID]['avatar']['image'];

echo '</td>';
}

Anyway, if someone can point out what I'm missing with this that'd be great.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on September 11, 2011, 10:14:56 PM
Not easily you would have to get your own picture url
   echo $memberContext[$memCommID]['avatar']['image'];
That above code includes all the html.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: 017 on September 11, 2011, 10:31:25 PM
Ack, that's what I feared was the case.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: luuuciano on September 12, 2011, 08:49:15 AM
You may try changing <td class="windowbg"> to <td class="windowbg avatar25">
then in the css adding something like
.avatar25 img {
height:25px;
}
or maybe
height:25px !important;
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: 017 on September 12, 2011, 11:11:08 AM
Worked like a charm. Thanks!
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Runmauk on September 15, 2011, 09:35:44 AM
I am using 2.0 Final and I attempted to change the Staff List to Roster in the modification.english.php file but it is not updating the site. Did I miss something? I tried using the default theme but no change there either.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: bruce86 on September 25, 2011, 07:39:35 AM
Italian Translation..;)
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on September 25, 2011, 11:36:33 AM
Thanks for translation
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Biology Forums on November 05, 2011, 01:15:35 AM
vbgamer45, could you assist me here.

Just as you've done in your mod, where you call out a membergroup of your choice and it displays the user names and link to their profile.

I want to create a block (outside the staff page) that displays the same information as found in the staff page, but only for membergroup 12. That it, I want to call out all users in member-group 12, display their usernames, a link that leads to their profile, and their avatar beside the username.

Could you help me do this? I'm totally stumped.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: dStruct on March 12, 2012, 01:34:26 AM
Is there a way to make the list display in alphabetical order? Rather then registration date
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on March 12, 2012, 08:33:42 AM
You would have to modify the sql query and do a sort by realName/real_name instead.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Biology Forums on April 10, 2012, 04:56:43 PM
Although a great mod, I ended up making my own staff page using SSI functions:

http://biology-forums.com/index.php?action=staff

One thing that would make me revert back however, if there was a possibility to resize the avatars.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on April 11, 2012, 11:52:37 AM
Resize avatars you mean control how large they are? Doesn't SMF have the settings to control that already?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Alb0 on April 28, 2012, 08:19:15 PM
Although a great mod, I ended up making my own staff page using SSI functions:

http://biology-forums.com/index.php?action=staff

One thing that would make me revert back however, if there was a possibility to resize the avatars.

I love what you've done with it. Really organized and clean. Won't you share with us all?!  ;D
I could definitely use that on my site. 
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Biology Forums on April 28, 2012, 09:14:41 PM
Although a great mod, I ended up making my own staff page using SSI functions:

http://biology-forums.com/index.php?action=staff

One thing that would make me revert back however, if there was a possibility to resize the avatars.

I love what you've done with it. Really organized and clean. Won't you share with us all?!  ;D
I could definitely use that on my site.

Yes, but to create it you'll need SMF version 1.x. I can share the code with you, and then you can revert it to the proper 2.x code. It was purely done using SSI functions.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Gavriel on May 28, 2012, 12:10:57 PM
I don't know if you need it, but I'm posting a brazilian portuguese translation (pt-br). Here it is:

Staff.portuguese_brazilian.php:
Code: [Select]
<?php
/*
SMF Staff
Version 1.6
by:vbgamer45
http://www.smfhacks.com
*/

//Staff text strings
$txt['smfstaff_local'] = 'Moderadores Locais';
$txt['smfstaff_lastactive'] = '&Uacute;ltima atividade:';
$txt['smfstaff_forums'] = 'F&oacute;runs:';
$txt['smfstaff_dateregistered'] = 'Data de Registro:';
$txt['smfstaff_contact'] = 'Informaç&otilde;es de Contato:';
$txt['smfstaff_sendpm'] = 'Enviar MP';
$txt['smfstaff_avatar'] = 'Avatar';
$txt['smfstaff_options'] = 'Opç&otilde;es';

$txt['smfstaff_nocatabove'] = 'N&atilde;o h&aacute; nenhum grupo acima do atual.';
$txt['smfstaff_nocatbelow'] = 'N&atilde;o h&aacute; nenhum grupo abaixo do atual.';
$txt['smfstaff_errgroupexists'] = 'Esse grupo &aacute; est&aacute; na staff list.';

$txt['smfstaff_staffsetting'] = 'Configuraç&otilde;es da P&aacute;gina de Staff';
$txt['smfstaff_showavatar'] = 'Mostrar Avatar';
$txt['smfstaff_showlastactive'] = 'Mostrar &Uacute;ltima Atividade';
$txt['smfstaff_showdateregistered'] = 'Mostrar Data de Registro';
$txt['smfstaff_showcontactinfo'] = 'Mostrar Informaç&otilde;es de Contato';
$txt['smfstaff_showlocalmods'] = 'Mostrar Moderadores Locais';

$txt['smfstaff_groupstoshow'] = 'Adicionar grupos &agrave; p&aacute;gina da Staff:';


$txt['smfstaff_groupstoadd'] = 'Grupos que aparecem na p&aacute;gina da Staff:';

$txt['smfstaff_addgroup'] = 'Adicionar Grupo';
$txt['smfstaff_delgroup'] = '[Deletar Grupo]';

$txt['smfstaff_up'] = '[Para cima]';
$txt['smfstaff_down'] = '[Para baixo]';

$txt['smfstaff_savesettings'] = 'Salvar Configuraç&otilde;es';
?>

staff2.xml:
Code: [Select]
<file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin SMF Staff Page Text Strings
$txt['smfstaff_stafflist'] = 'Staff';
$txt['smfstaff_admin'] = 'Configuraç&otilde;es da Lista de Staff';

$txt['permissionname_view_stafflist'] = 'Ver Staff';
$txt['permissionhelp_view_stafflist'] = 'A lista de staff mostra todos os membros da sua staff. Voc&ecirc; pode mudar quais grupos de membros s&atilde;o mostrados indo em Configuraç&otilde;es do F&oacute;rum e procure por Configuraç&otilde;es da Lista de Staff. Essa permiss&atilde;o permite que voc&ecirc; alterne quem pode ver a lista de staff.';
$txt['cannot_view_stafflist'] = 'Voc&ecirc; n&atilde;o pode ver a lista da Staff.';
]]></add>
</operation>
</file>
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: SMFHacks.com Team on May 28, 2012, 04:02:51 PM
Thank you for the translation!
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Gavriel on May 28, 2012, 06:10:46 PM
No problem, thank you for this mod  :)
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: SoSad on June 24, 2012, 06:15:41 PM
First of all, Thank you soo much for this mod. :)

Uhmmm, Can I change the name of the menu button into "Staff" instead of "Staff List"?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on June 24, 2012, 06:16:36 PM
Yes in themes/default/languages/modifications.english.php
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: SoSad on June 24, 2012, 09:07:59 PM
Yes in themes/default/languages/modifications.english.php

Cool. Works great! Thank you soo much. :)
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on June 24, 2012, 09:14:48 PM
Glad to help.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Sulfur on November 25, 2012, 01:27:50 PM
hi,

is it possible to add the Custom Title to show?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on November 25, 2012, 08:56:41 PM
Possible but not built into the mod
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: DreamZ1337 on December 07, 2012, 04:43:16 PM
Nice mod.
But when i install it nothing happends, i just get redirect to the staff page. But after i save and everything nothing happends.
Forum link: Crystal-server.com
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: mr.sonic on February 10, 2013, 11:02:22 AM
Could you tell me where I would have to go in the source to modify the permissions? Currently, it seems as if Global Moderators cannot view the page at all and I want all members to be able to.

Thanks a lot.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on February 10, 2013, 01:14:05 PM
Admin -> Permissions -> Modify group

Give them the View staff page permission.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: mr.sonic on February 10, 2013, 02:21:42 PM
Thanks.  :)
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on February 10, 2013, 02:28:18 PM
Glad to help.
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: than on June 17, 2013, 07:24:59 AM
Although a great mod, I ended up making my own staff page using SSI functions:

http://biology-forums.com/index.php?action=staff

One thing that would make me revert back however, if there was a possibility to resize the avatars.

I love what you've done with it. Really organized and clean. Won't you share with us all?!  ;D
I could definitely use that on my site.

Yes, but to create it you'll need SMF version 1.x. I can share the code with you, and then you can revert it to the proper 2.x code. It was purely done using SSI functions.

Any news about the code for SMF 2? I really like this staff page...
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Apllicmz on September 07, 2013, 07:45:03 PM
Update portuguese


Code: [Select]
<file name="$languagedir/Who.portuguese_pt.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin SMF Staff Page Text Strings
$txt['whoall_staff'] = 'Vendo a P&aacute;gina dos <a href="' . $scripturl . '?action=staff">Funcion&aacute;rios</a>';
// END SMF Staff Page Text Strings
]]></add>
</operation>
</file>


<file name="$languagedir/Who.portuguese_pt-utf8.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin SMF Staff Page Text Strings
$txt['whoall_staff'] = 'Vendo a P&aacute;gina dos <a href="' . $scripturl . '?action=staff">Funcion&aacute;rios</a>';
// END SMF Staff Page Text Strings
]]></add>
</operation>
</file>





Code: [Select]

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin SMF Staff Page Text Strings
$txt['smfstaff_stafflist'] = 'Lista do Funcion&aacute;rios';
$txt['smfstaff_admin'] = 'Configura&ccedil;&atilde;o dos Funcion&aacute;rios';


$txt['permissionname_view_stafflist'] = 'Ver Lista dos Funcion&aacute;rios';
$txt['permissionhelp_view_stafflist'] = 'Lista de Pessoal mostra todos os membros de sua equipe. Voc&ecirc; pode alterar qual membro grupos s&atilde;o mostrados indo para layout e Op&ccedil;ões e procure SMF Funcion&aacute;rios filtro. Esta autoriza&ccedil;&atilde;o permite que voc&ecirc; alterne quem pode ver a lista de funcion&aacute;rios.';
$txt['cannot_view_stafflist'] = 'Voc&ecirc; n&atilde;o pode ver a lista de funcion&aacute;rios.';
]]></add>
</operation>
</file>


<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin SMF Staff Page Text Strings
$txt['smfstaff_stafflist'] = 'Lista do Funcion&aacute;rios';
$txt['smfstaff_admin'] = 'Configura&ccedil;&atilde;o dos Funcion&aacute;rios';


$txt['permissionname_view_stafflist'] = 'Ver Lista dos Funcion&aacute;rios';
$txt['permissionhelp_view_stafflist'] = 'Lista de Pessoal mostra todos os membros de sua equipe. Voc&ecirc; pode alterar qual membro grupos s&atilde;o mostrados indo para layout e Op&ccedil;ões e procure SMF Funcion&aacute;rios filtro. Esta autoriza&ccedil;&ccedil;&atilde;o permite que voc&ecirc; alterne quem pode ver a lista de funcion&aacute;rios.';
$txt['cannot_view_stafflist'] = 'Voc&ecirc; n&atilde;o pode ver a lista de funcion&aacute;rios.';
]]></add>
</operation>
</file>



Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Aplion on October 08, 2013, 08:37:06 AM
After installing the mod, the "staff configuration" link in admin panel gives me just a blank page so the mod is unusable for me ... I'm running SMF version 2.0.5

Any thoughts - help will be much appreciated.


Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on October 08, 2013, 08:51:37 AM
Any errors in the forum error log that might be related?
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Aplion on October 08, 2013, 09:15:31 AM
Any errors in the forum error log that might be related?

No nothing relative except this "You did not select a package to upload." which has no meaning as I can see the mod installed and there is a link for manage it as well.

Is there any chance to conflicting with some other mod ? I'm running "TinyPortal" and "Team Page" mods also ...
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: Aplion on October 27, 2013, 06:39:01 AM
I still can't make it work ... it gives me a blank page right after installation and every time I'm trying to select its configuration link after that.

Please assist ...


EDIT

I found what causes the issue ... it is conflicting with this mod here http://custom.simplemachines.org/mods/?mod=2167 (Team Page) ... so we can't have them both installed  :'(
Title: Re: Staff Page Mod updated for SMF 2.0!
Post by: vbgamer45 on October 27, 2013, 10:10:05 AM
No they both do the same thing.
Title: Re: Staff Page Mod
Post by: SychO on September 19, 2015, 05:00:22 PM
greetings,

so i have a staff list page (from staff list mod)

here : http://dzairgaming.0fees.us/forum/index.php?action=staff

and as you know it has last time active, day registered and contact infos

so i want to add the number of posts of every staff

can you guide me ?
Title: Re: Staff Page Mod
Post by: lego-man on April 20, 2017, 10:12:56 AM
Is there still and help and support for this mod?
Title: Re: Staff Page Mod
Post by: vbgamer45 on April 20, 2017, 10:23:21 AM
yes
Title: Re: Staff Page Mod
Post by: lego-man on April 20, 2017, 10:27:09 AM
Sweet,

I have installed on one of my new site which installed fine yet every time I select a group to add I just take me straight to the staff list rather than adding the group.
Title: Re: Staff Page Mod
Post by: vbgamer45 on April 20, 2017, 10:28:25 AM
Which SMF Version?
Title: Re: Staff Page Mod
Post by: lego-man on April 20, 2017, 10:31:58 AM
2.0.13
Title: Re: Staff Page Mod
Post by: vbgamer45 on April 20, 2017, 12:51:16 PM
Not getting that in my test of the current version.
When adding a group or deleting a group it stays in the admin area of the Staff List
Title: Re: Staff Page Mod
Post by: lego-man on April 21, 2017, 05:17:02 AM
What I do is go to staff configuration then click add group for any of the groups I have and rather then add them it takes me straight to the staff list page instead.

Also tried reinstalling with no luck
Title: Re: Staff Page Mod
Post by: vbgamer45 on April 21, 2017, 08:34:02 AM
What other mods do you have installed?
Title: Re: Staff Page Mod
Post by: lego-man on April 21, 2017, 10:55:12 AM
SMFPacks Ads Manager 1.1
AvatarSelect 1.2.1 
Country Flags 3.0 
Global Topics 2.2 
nCode Image Resizer 1.4 
PhpInfo 1.2 
Say Thanks 1.3.6 
Search Topic And Boards Button 1.0
SMFPacks: SEO Pro Mod 2.1.6 
Contact Page 3.2 
SMF Staff Page 1.7 
Title: Re: Staff Page Mod
Post by: vbgamer45 on April 21, 2017, 12:49:55 PM
Try disableing the seo mod and see if that fixes it
Title: Re: Staff Page Mod
Post by: CreativeITWorld.com on July 06, 2018, 12:24:20 AM
Staff2.template.php edited to remove all references to MSN, ICQ and AIM - all redundant these days anyway.

New Additions: All email links show, with all email links handled by the SMF internal email system. Meaning your staff email addresses remain hidden.

Be sure to edit the permissions to allow users to send emails.
Title: Re: Staff Page Mod
Post by: vbgamer45 on July 09, 2018, 05:41:08 PM
Thanks for the edits will see If I can add some of those for a future release.
Title: Re: Staff Page Mod
Post by: landyvlad on February 12, 2019, 06:06:42 AM
Is this mod still a thing, will it be available in due course for SMF 2.1 ?

Ta
Title: Re: Staff Page Mod
Post by: vbgamer45 on February 12, 2019, 08:19:27 AM
At some point for SMF 2.1
Title: Re: Staff Page Mod
Post by: SMFHacks.com Team on December 30, 2019, 03:37:48 PM
Version 1.8
!Fixed some count errors with PHP 7.2+
Title: Re: Staff Page Mod
Post by: landyvlad on January 04, 2020, 11:08:26 AM
thanks vbgamer
Title: Re: Staff Page Mod
Post by: big red on February 16, 2020, 01:40:45 PM
   Is the message icon supposed to be missing for me (the admin) and global mod (my test account)?? The one it is showing for is another member (another admin).
Title: Re: Staff Page Mod
Post by: vbgamer45 on February 16, 2020, 02:06:40 PM
It's based on your profile settings if you allow to be contacting via email
Title: Re: Staff Page Mod
Post by: big red on February 16, 2020, 03:06:10 PM
  Thanks For Responding!

  That was a misunderstanding on my part as i thought that was just a message icon while it's actually email OR message. Understand now. Thanks Again  :)
Title: Re: Staff Page Mod
Post by: shadav on July 06, 2020, 09:59:01 PM
got an error in my logs

2: count(): Parameter must be an array or an object that implements Countable
File: /Themes/default/Staff2.template.php
Line: 33

line 33
Code: [Select]
$count_users = count(@$context['smfstaff_users'][$data['id']]);