SMFHacks.com
SMFHacks
Community Suite
SMF Gallery Pro
SMF Store
SMF Classifieds
Newsletter Pro
Downloads System Pro
Ad Seller Pro
Hacks and Mods
Latest SMF Hacks
TopTen Hacks
Styles and Themes
Add a Hack
Manage Hacks
Earn Money from Your Forum with these tips
SMF Theme Generator
SMF Package Parser
Free SMF Hosting
HostGator Webhosting for SMF
Site Showcase
Search Forums
Advanced search
User
Welcome,
Guest
. Please
login
or
register
.
February 10, 2012, 07:14:37 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Stats
Members
Total Members: 9903
Latest:
jaredvaldez2
Stats
Total Posts: 27784
Total Topics: 4859
Online Today: 76
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 68
Total: 68
SMFHacks.com
Forum
Modifications/Themes
Modifications Talk
Staff Mod Update to Staff.template.php
0 Members and 1 Guest are viewing this topic.
« previous
next »
Pages:
[
1
]
Author
Topic: Staff Mod Update to Staff.template.php (Read 1601 times)
Bolerro
Newbie
Offline
Posts: 4
Staff Mod Update to Staff.template.php
«
on:
October 17, 2009, 12:59:50 am »
I made an update to the Staff.template.php file to make a better graphicall UI for the Staff Configuration page.
The change is done within the function template_adminset()
Code:
function template_adminset()
{
global $scripturl, $modSettings, $txt, $context;
echo '<table border="1px" width="90%" cellspacing="0" align="center" cellpadding="4" class="tborder">
<tr class="titlebg">
<td colspan="2">', $txt['smfstaff_staffsetting'], '</td>
</tr>
<br />
<tr class="windowbg">
<td colspan="2"><b>', $txt['smfstaff_staffsetting'], '</b></td>
</tr>
<tr>
<td colspan="2">
<form method="post" action="', $scripturl, '?action=staff;sa=admin2">
<input type="checkbox" name="smfstaff_showavatar" ', ($modSettings['smfstaff_showavatar'] ? ' checked="checked" ' : '') . ' />', $txt['smfstaff_showavatar'], '<br />
<input type="checkbox" name="smfstaff_showlastactive" ', ($modSettings['smfstaff_showlastactive'] ? ' checked="checked" ' : ''), ' />' . $txt['smfstaff_showlastactive'], '<br />
<input type="checkbox" name="smfstaff_showdateregistered" ', ($modSettings['smfstaff_showdateregistered'] ? ' checked="checked" ' : ''), ' />' . $txt['smfstaff_showdateregistered'], '<br />
<input type="checkbox" name="smfstaff_showcontactinfo" ', ($modSettings['smfstaff_showcontactinfo'] ? ' checked="checked" ' : ''), ' />' . $txt['smfstaff_showcontactinfo'], '<br />
<input type="checkbox" name="smfstaff_showlocalmods" ', ($modSettings['smfstaff_showlocalmods'] ? ' checked="checked" ' : ''), ' />' . $txt['smfstaff_showlocalmods'], '<br />
<input type="submit" name="savesettings" value="' . $txt['smfstaff_savesettings'] . '" />
</form>
</td>
</tr>
<br />
<tr class="windowbg">
<td colspan="2"><b>',$txt['smfstaff_groupstoadd'], '</td>
</tr>
<tr>';
foreach ($context['smfstaff_groups'] as $id => $data)
{
echo '<td width="auto">', $data['name'], '
</td>
<td width="20%" align="center">
<a href="', $scripturl, '?action=staff;sa=add&id=', $data['id'], '">' . $txt['smfstaff_addgroup'] . '</a>
</td>
</tr>';
}
echo '
<br />
<tr class="windowbg">
<td colspan="2"><b>',$txt['smfstaff_groupstoshow'], '</td>
</tr>
<tr>';
foreach ($context['smfstaff_showgroups'] as $id => $data)
{
echo '<td width="auto">', $data['name'], '
</td>
<td width="20%" align="center">
<a href="', $scripturl, '?action=staff;sa=delete&id=', $data['id'], '">' . $txt['smfstaff_delgroup'] . '</a>
</td>
</tr>';
}
echo '
<br />
<tr class="windowbg">
<td colspan="2">
<b>Has SMF Staff Page helped you?</b> Then support the developers:<br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="sales@visualbasiczone.com">
<input type="hidden" name="item_name" value="SMF Staff Page">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" border="0" name="submit" alt="Make payments with PayPal - it is fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
</td>
</tr>
</table></td>
</tr>
</table>';
}
Maybe the mod author would like to change the code to include this. If not, at least its here now so anyone can use it. Enjoy.
Logged
Bolerro
Newbie
Offline
Posts: 4
Re: Staff Mod Update to Staff.template.php
«
Reply #1 on:
October 18, 2009, 11:44:19 am »
Ok, I updated this again to use the standard CSS that should fit better with the theme your using.
Code:
function template_adminset()
{
global $scripturl, $modSettings, $txt, $context;
echo '<table border="1px" width="90%" cellspacing="0" align="center" cellpadding="4" class="tborder">
<tr class="titlebg">
<td align="center" colspan="2">', $txt['smfstaff_staffsetting'], '</td>
</tr>
<br />
<tr class="windowbg">
<td colspan="2"><b>', $txt['smfstaff_staffsetting'], '</b></td>
</tr>
<tr class="windowbg2">
<td colspan="2">
<form method="post" action="', $scripturl, '?action=staff;sa=admin2">
<input type="checkbox" name="smfstaff_showavatar" ', ($modSettings['smfstaff_showavatar'] ? ' checked="checked" ' : '') . ' />', $txt['smfstaff_showavatar'], '<br />
<input type="checkbox" name="smfstaff_showlastactive" ', ($modSettings['smfstaff_showlastactive'] ? ' checked="checked" ' : ''), ' />' . $txt['smfstaff_showlastactive'], '<br />
<input type="checkbox" name="smfstaff_showdateregistered" ', ($modSettings['smfstaff_showdateregistered'] ? ' checked="checked" ' : ''), ' />' . $txt['smfstaff_showdateregistered'], '<br />
<input type="checkbox" name="smfstaff_showcontactinfo" ', ($modSettings['smfstaff_showcontactinfo'] ? ' checked="checked" ' : ''), ' />' . $txt['smfstaff_showcontactinfo'], '<br />
<input type="checkbox" name="smfstaff_showlocalmods" ', ($modSettings['smfstaff_showlocalmods'] ? ' checked="checked" ' : ''), ' />' . $txt['smfstaff_showlocalmods'], '<br />
<input type="submit" name="savesettings" value="' . $txt['smfstaff_savesettings'] . '" />
</form>
</td>
</tr>
<br />
<tr class="catbg">
<td colspan="2"><b>',$txt['smfstaff_groupstoadd'], '</td>
</tr>
<tr>';
foreach ($context['smfstaff_groups'] as $id => $data)
{
echo '<td class="windowbg2" width="auto">', $data['name'], '
</td>
<td class="windowbg2" width="20%" align="center">
<a href="', $scripturl, '?action=staff;sa=add&id=', $data['id'], '">' . $txt['smfstaff_addgroup'] . '</a>
</td>
</tr>';
}
echo '
<br />
<tr class="catbg">
<td colspan="2"><b>',$txt['smfstaff_groupstoshow'], '</td>
</tr>
<tr>';
foreach ($context['smfstaff_showgroups'] as $id => $data)
{
echo '<td class="windowbg2" width="auto">', $data['name'], '
</td>
<td class="windowbg2" width="20%" align="center">
<a href="', $scripturl, '?action=staff;sa=delete&id=', $data['id'], '">' . $txt['smfstaff_delgroup'] . '</a>
</td>
</tr>';
}
echo '
<br />
<tr class="windowbg2">
<td colspan="2">
<b>Has SMF Staff Page helped you?</b> Then support the developers:<br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="sales@visualbasiczone.com">
<input type="hidden" name="item_name" value="SMF Staff Page">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" border="0" name="submit" alt="Make payments with PayPal - it is fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
</td>
</tr>
</table></td>
</tr>
</table>';
}
?>
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 9391
Re: Staff Mod Update to Staff.template.php
«
Reply #2 on:
October 18, 2009, 07:09:40 pm »
Thanks for the suggestion
Logged
Rafferty
SMF Gallery Pro Customer
Full Member
Offline
Posts: 158
Re: Staff Mod Update to Staff.template.php
«
Reply #3 on:
October 19, 2009, 08:36:39 pm »
I suggest what would be handy, if the avatars could be resized to a standard setting, mine are mostly all different sizes looks messy.
Logged
Don't Follow Me I Have No Idea What I'm Doing
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
SMFHacks.com
-----------------------------
=> News
=> Site Discussion
===> Suggestions
===> Bugs
-----------------------------
SMF Gallery Pro
-----------------------------
=> Announcements
=> Presales
=> Support
===> Bugs
===> Feature Requests
-----------------------------
SMF Store
-----------------------------
=> Announcements
=> Presales
=> Support
===> Guides and Tips
===> Feature Requests
===> Bugs
-----------------------------
SMF Classifieds
-----------------------------
=> Announcements
=> Presales
=> Support
===> Bugs
===> Feature Requests
-----------------------------
Downloads System Pro
-----------------------------
=> Announcements
=> Presales
=> Support
===> Feature Requests
===> Bugs
-----------------------------
Ad Seller Pro
-----------------------------
=> Presales
=> Support
-----------------------------
Newsletter Pro
-----------------------------
=> Presales
=> Support
===> Feature Requests
-----------------------------
Social Login Pro
-----------------------------
=> Presales
-----------------------------
Tweet Topics System
-----------------------------
=> Presales
-----------------------------
SMF Gallery Lite
-----------------------------
=> SMF Gallery Lite
-----------------------------
Modifications/Themes
-----------------------------
=> General SMF Forum
=> Modifications Talk
===> Latest Mods
===> Modification Showcase
=> Theme Talk
===> Theme Showcase
===> Latest Themes
Recent
boardindex categories
by
exit
[
Today
at 06:10:53 am]
Profile comments ERROR he...
by
jaredvaldez2
[
Today
at 03:46:15 am]
Support needed please
by
dantheman
[
Today
at 02:30:16 am]
Any news?
by
maxipes
[
Today
at 02:29:51 am]
Simple Audio Video Embede...
by
simibill
[February 09, 2012, 05:30:55 pm]
statistics?
by
exit
[February 09, 2012, 04:47:13 pm]
Gallery Pro Support Neede...
by
SMFHacks
[February 08, 2012, 09:09:16 pm]
Question about permission...
by
SMFHacks
[February 08, 2012, 09:11:02 am]
Bulk comment delete?
by
SMFHacks
[February 08, 2012, 09:07:32 am]
Link?
by
chinaren
[February 08, 2012, 03:46:49 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Loading...