MyBB Community Forums

Full Version: Odd code after upgrading to 1.8.12
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone,

Last night I graded my forum from 1.8.10 to 1.8.12. The forum is located at:

http://www.philcoradio.com/phorum/

It includes the following plugins:
  • Prune Old Threads 1.0
  • Required Approval 1.1
  • Resize Images 1.1
  • Welcome PM/Email 1.1
I thought everything seemed OK until one of my forum moderators alerted me to some extraneous code being added after every attached image. I have attached an example - the long red arrow at the bottom of the image is pointing to the extraneous code.

Any ideas?

Thanks.

Hey, it's doing it on this board as well!

What the heck?!?
if you know about using codes from GitHub then please see suggested fixes here

or you can temporarily use this suggestion ; see also replies here
Thanks. It only took modifying inc/functions_post.php at line 923 to fix my problem.

For anyone else looking:

Replace:

$attachdate = my_date ( 'relative' , $attachment [ 'dateuploaded' ]); 

with

$attachdate = date ( $mybb -> settings [ 'dateformat' ], $attachment [ 'dateuploaded' ]) . " - " . date ( $mybb -> settings [ 'timeformat' ], $attachment [ 'dateuploaded' ]);

BTW, this very board is also currently displaying the same error - see post #1 above after my attachment...