Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4220
Latest: agolac
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 42854
Total Topics: 7464
Most Online Today: 86
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 55
Total: 55

Author Topic: DELETE BADGE Option Showing For Everyone  (Read 2616 times)

0 Members and 1 Guest are viewing this topic.

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
DELETE BADGE Option Showing For Everyone
« 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...


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16257
    • View Profile
Re: DELETE BADGE Option Showing For Everyone
« Reply #1 on: June 25, 2012, 12:55:05 pm »
Posted new version 1.0.9a to fix that issue for SMF 2.0
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: DELETE BADGE Option Showing For Everyone
« 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?

:D

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16257
    • View Profile
Re: DELETE BADGE Option Showing For Everyone
« Reply #3 on: June 25, 2012, 01:21:39 pm »
Open themes/default/badgeawards2.template.php


Find Line 631
Code: [Select]
echo '<td><a href="' . $scripturl . '?action=admin;area=badgeawards;sa=delmembadge&id=' . $row['id_log'] . '">' . $txt['badge_delete'] . '</a></td>';
Change to
Code: [Select]
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>';
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: DELETE BADGE Option Showing For Everyone
« Reply #4 on: June 25, 2012, 01:58:47 pm »
Fixed... thank you.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4423 Views
Last post November 12, 2007, 10:17:19 pm
by SMFHacks
1 Replies
2511 Views
Last post June 07, 2012, 05:40:14 pm
by SMFHacks
4 Replies
3129 Views
Last post August 22, 2012, 08:50:17 am
by atomicblue
3 Replies
3196 Views
Last post June 20, 2013, 10:13:55 am
by SMFHacks
7 Replies
4884 Views
Last post February 17, 2014, 06:36:26 pm
by shuban

+- Recent Topics

Is the PayPal Sandbox still working? by Nicole
June 02, 2023, 06:51:18 am

Question on Completed Listing & Reserve Price by Nicole
June 01, 2023, 06:06:12 pm

[Mod]GDPR Helper by Nicole
May 29, 2023, 11:58:49 pm

RSS Feed Poster Database Error by SMFHacks
May 22, 2023, 06:26:18 pm

Errors With Older Version. by Ken.
May 09, 2023, 05:35:40 pm

Pretty Urls SEO Pro by SMFHacks
May 06, 2023, 03:30:11 pm

New Post Image Upload Error by Mike66
April 28, 2023, 07:30:28 am

Copyright Removal Key by SMFHacks
April 03, 2023, 02:44:28 pm

Converting from Aeva Media by sudhakar
April 02, 2023, 11:09:54 am

Using SMF's Built-in Search Algorithm by shuban
March 27, 2023, 09:15:10 am

Powered by EzPortal