Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 218
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 214
Total: 214

Author Topic: Unidentified Index Help  (Read 4171 times)

0 Members and 1 Guest are viewing this topic.

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Unidentified Index Help
« on: August 26, 2012, 12:19:37 pm »
Alright... i updated using beyond compare as I have done too many changes to mine to simply swap out now (unfortunately we are at that point now)...

I am getting the following Unidentified Index error... can you help me track down what I've managed to mess up by chance?

Quote
8: Undefined index: show_online
File: /home/ahaforum/public_html/Sources/badgeawards2.php
Line: 1275

I am assuming I've missed an edit somewhere?

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Re: Unidentified Index Help
« Reply #1 on: August 26, 2012, 06:58:18 pm »
Just undo it for now. Sometimes beyond compare misses a } somewhere.

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Unidentified Index Help
« Reply #2 on: August 26, 2012, 08:06:00 pm »
I double checked my edits and they are fine... I double checked using a mix of beyond compare, Notepad ++ and my online code editor...

The invalid index error is being generated by the INVISIBLE badge code...

Code: [Select]
1274: $badgeAction = 'invisible';
1275: if ($memberContext[$memberID]['show_online'] == "0" && !in_array($badgeAction,$currentBadges))
1276: {
1277: $badgeID = GetBadgeIDByAction($badgeAction);
1278: $ret = AddBadgeToMember($memberID,$badgeID,false);
1279: if ($ret == true)
1280: {
1281: $currentBadges[] = $badgeAction;
1282: $newBadges[]  = $badgeAction;
1283: }

The error is generated by Line 1275.   Where is "show_online" defined?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Unidentified Index Help
« Reply #3 on: August 26, 2012, 08:08:22 pm »
Just remove that whole code for now wasn't working correctly.
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: Unidentified Index Help
« Reply #4 on: August 26, 2012, 08:22:00 pm »
Just remove that whole code for now wasn't working correctly.

Removed... glad it wasn't just me.

;)

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
6289 Views
Last post October 10, 2006, 08:03:25 pm
by SMFHacks
42 Replies
41004 Views
Last post November 18, 2007, 02:15:29 pm
by hlh212
0 Replies
3953 Views
Last post March 27, 2009, 02:52:42 pm
by dry3210
1 Replies
3660 Views
Last post May 14, 2009, 01:52:46 pm
by propyl
14 Replies
13335 Views
Last post June 04, 2012, 07:35:31 pm
by SMFHacks

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal