PDA

View Full Version : Showthread.php upgrade line typo??


Ski-Whiz
04-16-2005, 12:50 PM
Ok, the upgrade says to look for this line in the functions_showthread.php:

if ($post[userid]==$bbuserinfo[userid] AND $postadmin!=1 AND ($post[warning_level]>0

When I do a search it doesn't find it.. However a few lines down, you'll see a similar line:

if ($post[userid]==$bbuserinfo[userid] AND $postadmin!=1 AND $post[warning_level]>0)

I'm gonna try and consider this a typo for now, and see if it works.. :D

There is the same typo in the member.php edits..

Missing the trailing ")" ???

I upgraded, and fixed it, and it seems to be working..

sv1cec
04-16-2005, 01:03 PM
I had changed the word wrap size of my editor, and I probably missed the second line! Silly me, you are right, the right parenthesis is missing in both cases.

Thanks for the heads-up.

Ski-Whiz
04-16-2005, 01:10 PM
Here's another one:

Sorry bro!

You are missing the line to add 'warn_alertcomment' into the warning_type table.. :D

That's a simple fix.. :D I just got the SQL error, when I edited my Warnings, to be used as Alerts!

No biggie.. These are ALL easy fixes!! :D Godd job on keeping with this hack!! We ALL appreciate it!

sv1cec
04-16-2005, 01:27 PM
No, I am sorry I haven't documented everything when I was doing it.

Rgds

Ski-Whiz
04-16-2005, 01:35 PM
It's ok.. Glad I was able to test this early for ya! :D

Especially, glad that you are updating this for everyone pretty quickly!! Cuodos to you my friend!! :D

These ALL were pretty easy fixes.. I just wanted to let you know. All you have to do if quickly update the upgrade doc.. :D

I doubt that many people have downloaded this new version yet.. :D

sv1cec
04-16-2005, 07:15 PM
Thanks, the biggest worry I have every time I publish a new version, is if I have the instructions correctly. I know the program works, but I always worry I left something out of the instructions!

Again, tnx and rgds