Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4252
Latest: Jwatson_785
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43228
Total Topics: 7514
Most Online Today: 77
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 108
Total: 108

Author Topic: DELETE BADGE Option Showing For Everyone  (Read 3489 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: 16422
    • 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: 16422
    • 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
5494 Views
Last post November 12, 2007, 10:17:19 pm
by SMFHacks
1 Replies
3527 Views
Last post June 07, 2012, 05:40:14 pm
by SMFHacks
4 Replies
3923 Views
Last post August 22, 2012, 08:50:17 am
by atomicblue
3 Replies
4136 Views
Last post June 20, 2013, 10:13:55 am
by SMFHacks
7 Replies
6051 Views
Last post February 17, 2014, 06:36:26 pm
by shuban

+- Recent Topics

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Request for admin notification by davejo
February 06, 2024, 09:02:12 am

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

User Gallery Feature: move / bulk move images by SMFHacks
January 30, 2024, 05:48:25 pm

In the future it may be for smf 2.1.x? by smithloo
January 30, 2024, 12:55:34 am

Clipboard image support for the editor by SMFHacks
January 29, 2024, 11:22:17 am

Release date? by SMFHacks
January 26, 2024, 02:00:45 pm

Powered by EzPortal