Broke my posting.php...I assume

Need help with your forum? Ask away. Remember though that there's always http://www.phpbb.com/community

Moderator: Experts

Post Reply
Master_Cylinder
Posts: 13
Joined: Tue Aug 06, 2013 11:36 am

Broke my posting.php...I assume

Post by Master_Cylinder » Wed Oct 23, 2013 8:20 pm

I'm not sure which MOD broke it but when composing a post, clicking on smilies or bbcodes (like bold or img) no longer inserts them, it just sends me to the top of the page, like a top anchor tag. If I just knew where *that* part of the code was I might be able to figure out which MOD broke it and fix it. Is it posting.php or somewhere else?

Ideas?

User avatar
DavidIQ
Site Admin
Posts: 581
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Broke my posting.php...I assume

Post by DavidIQ » Thu Oct 24, 2013 12:06 am

Sounds like a JavaScript error. Check the console in FireFox or turn on the debugger in Internet Explorer so you can get more details to track it down.

Master_Cylinder
Posts: 13
Joined: Tue Aug 06, 2013 11:36 am

Re: Broke my posting.php...I assume

Post by Master_Cylinder » Thu Oct 24, 2013 12:54 am

According to the IE debugger:
SCRIPT1002: Syntax error
editor.js, line 390 character 138
SCRIPT5009: 'colorPalette' is undefined
posting.php, line 351 character 4

Editor.js - line 390

Code: Select all

				document.write('<td bgcolor="#' + color + '" style="width: ' + width + 'px; height: ' + height + 'px; background-color: #' + color + ;">');
posting.php - line 351

Code: Select all

			colorPalette('h', 15, 10);

EDIT:
I found the solution on phpbb.com
https://www.phpbb.com/community/viewtop ... #p13300378
Since I'm not a programer I never would have seen that problem and I don't know what MOD broke it.

User avatar
DavidIQ
Site Admin
Posts: 581
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Broke my posting.php...I assume

Post by DavidIQ » Thu Oct 24, 2013 6:38 am

That doesn't seem like much that the guys provided. Did it fix your issue though?

Master_Cylinder
Posts: 13
Joined: Tue Aug 06, 2013 11:36 am

Re: Broke my posting.php...I assume

Post by Master_Cylinder » Thu Oct 24, 2013 1:12 pm

The only difference was that he was using a new Style and I was using prosilver but the symptoms (non-clickable smilies and bbcodes) were the same. I found the solution by searching for "background-color: #' + color + ;">');" in the phpbb forums and there it was...a missing single quote. I have to assume that it was a MOD that broke it but I haven't tracked down which. Perhaps it was the WP to phpBB bridge plugin that did it, I'll have to check that one still.

It works now though, that's the important part.

Post Reply