Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 25, 2013, 01:06:55 pm

Login with username, password and session length
Members
Total Members: 10771
Latest: Siphix
Stats
Total Posts: 32413
Total Topics: 5483
Online Today: 60
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 2
Guests: 42
Total: 44
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: DELETE BADGE Option Showing For Everyone  (Read 525 times)
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« on: June 25, 2012, 12:46:27 pm »

FYI - The DELETE BADGE option is showing for everyone... even when viewing other peoples badges.  Clicking on the delete link takes you to the ADMIN PASSWORD page...so regular members can't delete badges... but the delete link shouldn't be appearing (and the CSS looks wrong for it)

See attached...

Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11009


View Profile
« Reply #1 on: June 25, 2012, 12:55:05 pm »

Posted new version 1.0.9a to fix that issue for SMF 2.0
Logged
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« Reply #2 on: June 25, 2012, 01:18:44 pm »

So a guy can avoid having to re-download/re-install/re-install changes... etc...

Care to give the file name and edit to make to fix the issue by chance?

Cheesy
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11009


View Profile
« Reply #3 on: June 25, 2012, 01:21:39 pm »

Open themes/default/badgeawards2.template.php


Find Line 631
Code:
echo '<td><a href="' . $scripturl . '?action=admin;area=badgeawards;sa=delmembadge&id=' . $row['id_log'] . '">' . $txt['badge_delete'] . '</a></td>';
Change to
Code:
if ($user_info['is_admin'])
 echo '<td><a href="' . $scripturl . '?action=admin;area=badgeawards;sa=delmembadge&id=' . $row['id_log'] . '">' . $txt['badge_delete'] . '</a></td>';
Logged
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« Reply #4 on: June 25, 2012, 01:58:47 pm »

Fixed... thank you.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 11:40:49 am]

[May 24, 2013, 06:36:59 pm]

[May 24, 2013, 05:22:09 pm]

[May 24, 2013, 05:20:20 pm]

[May 24, 2013, 05:11:52 pm]

[May 23, 2013, 08:29:56 pm]

[May 23, 2013, 04:50:21 am]

[May 22, 2013, 10:03:30 pm]

[May 22, 2013, 03:00:09 pm]

[May 22, 2013, 03:03:31 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.119 seconds with 21 queries.