Staff Page Mod

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

Previous topic - Next topic

JustSimpsons

Is this where you are talking about? What change do I need to make?

// 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';

vbgamer45

Hmm, It should work then strannge
I see it in here

if (in_array($context['current_action'], array('staff','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

JustSimpsons

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.

[Lucien]

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
I'm using SMF 2.0.2 and SimplePortal 2.3.4

mohoganybrwn

Quote from: mohoganybrwn on January 25, 2007, 01:03:29 AM
Quote from: 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?

anyone?

can anyone help me with this problem?

moraidh

Quote from: vbgamer45 on February 06, 2007, 07:33:38 PM
try changing it to SSI.php

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

QuoteDatabase Error
Please try again. If you come back to this error screen, report the error to an administrator.

LostProphecy

Quote from: mohoganybrwn on February 07, 2007, 12:39:05 PM
Quote from: mohoganybrwn on January 25, 2007, 01:03:29 AM
Quote from: 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?
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


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

Angelus Ex Quo Nox

vbgamer45

Should be fixed if you are using the latest Staff Mod version.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

moraidh

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:

QuoteIncorrect 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?

vbgamer45

Open up staffsql.php
Find All
`
And replace with nothing then save the file.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

moraidh

THANK YOU, thank you, vbgamer!!!

:-*

Works perfectly now!

Now my forum's fully functional!

moraidh

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?

Bigguy

You shouldn't have to run it or delete it.  

hotjunkie

Thank you for making this mod. :)

diosjmk

#274
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

Daniel Marquard

Quote from: 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.

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?

diosjmk

<?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.

Daniel Marquard

Quote from: diosjmk on March 16, 2007, 01:26:58 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:
?>

...and replace that with:



?>


Or just add three line breaks between it.  :P

diosjmk

Can you please paste the lines Im missing in modifications.english.php so I add them??

And Im picky 2 ^^ Good picky tip :P

Daniel Marquard

Quote from: diosjmk on March 16, 2007, 01:36:23 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.  ;)

Advertisement: