[]donJulio said:
I tried adding this one line to ubbthreads.php to make the lightbulbs work:
[] $UserID = $user['U_Number']; [/]
but I got all these errors:
[]
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/estrella/public_html/foros/templates/default/ubbt_photopost.tmpl on line 201
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/estrella/public_html/foros/templates/default/ubbt_photopost.tmpl on line 188
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/estrella/public_html/foros/templates/default/ubbt_photopost.tmpl on line 189 [/]
I removed that line from ubbthreads.php and the errors went away, but I'm not sure if the lightbulbs are working or not. [/]
The problem you are reporting is very strange indeed. I highly doubt that adding something like this $UserID = $user['U_Number']; which is just a defining statement really.
The later error is a mysql error and know issue with the sidebar hack. So if you are running the sidebar hack you might want to place this line with your database for threads on your last line right above ?>
mysql_select_db('DATABASE') or die("Could not select database 'DATABASE'\n");?>
I would try resetting the $UserID in ubbthreads again as your lightbulbs will never work unless you let threads know that the $UserID variable in photopost is equal to Threads U_Number field.
If you have any more questions contact me via PM. I know you have had problems in the past getting things set right and I have helped out.