Daily Lucky Numbers:
1
12
18
28
33
35

Profile error

Started by bigguy, April 05, 2018, 11:12:34 PM

Previous topic - Next topic

bigguy

When I view a profile I get an error. On line 209 of profile-view.php:

<a href="' . $scripturl . '?action=battle;sa=fight;attack=' . $message['member']['id'] . ';session=' . $context['session_id'] . $check . ';#battle_main">' . $txt['battle_statsATK'] . '</a>
QuoteType of error: Undefined
8: Undefined variable: message

bigguy

Is this part right ??

';session='

Chen Zhen


Most likely I used the wrong array for that parsing edit.
I will fix it this weekend.

The session part is correct as it is a unique session ID that Battle uses (SMF's + a bit of its own).
It has that special session id to stop people from cheating and works fairly well actually.
If you attempt to go back in the browser while playing Battle it will tell you not to do it.
Without that behavior people would cheat.
 

bigguy

Awesome, lol. that's cool. It just didn't look right to me so I thought that was the error.

bigguy

Found and fixed. I was playin around this morning:

https://www.whatsurbeef.net/index.php?topic=369.0

I'd copy it here but a bit lazy now, lol.