Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 24, 2013, 03:22:55 am

Login with username, password and session length
Members
Total Members: 10768
Latest: CayoTTe
Stats
Total Posts: 32395
Total Topics: 5480
Online Today: 44
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 44
Total: 44
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Unidentified Index Help  (Read 692 times)
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« 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?
Logged
shuban
Badge Awards Customer
Full Member
*****
Offline Offline

Posts: 164


View Profile WWW
« Reply #1 on: August 26, 2012, 06:58:18 pm »

Just undo it for now. Sometimes beyond compare misses a } somewhere.
Logged

FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« 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:
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?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11003


View Profile
« Reply #3 on: August 26, 2012, 08:08:22 pm »

Just remove that whole code for now wasn't working correctly.
Logged
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« 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.

Wink
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[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]

[May 21, 2013, 03:27:16 pm]

[May 21, 2013, 02:11:10 pm]

[May 21, 2013, 01:18:58 pm]

[May 21, 2013, 12:22:02 am]

[May 21, 2013, 12:20:41 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.699 seconds with 19 queries.