Version: SMF 2.0 RC3
Forum Site: everlastingquest.co.cc/dev/index.php
Error Log: N/A
Description of issue:
Ok i have just installed this version of SMF on our site and I assume it is the same version as the one used on these forums? If so, the screen where you post a new topic, or reply to an existing topic does not look at all like this one. Here is a description of what i see on our forums:
Subject field shows.
Message icon Drop-down menu appears with the selected icon next to it.
The post field (where you enter the actual text of the post) shows.
and then underneath it, I get the following:
' }); var oBBCBox_message = new smc_BBCButtonBox({ sUniqueId: 'BBCBox_message', sContainerDiv: 'bbcBox_message', sButtonClickHandler: 'oEditorHandle_message.handleButtonClick', sSelectChangeHandler: 'oEditorHandle_message.handleSelectChange', aButtonRows: [ [ { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/bold.gif', sCode: 'b', sBefore: '[b]', sAfter: '[/b]', sDescription: 'Bold' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/italicize.gif', sCode: 'i', sBefore: '[i]', sAfter: '[/i]', sDescription: 'Italicized' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/underline.gif', sCode: 'u', sBefore: '[u]', sAfter: '[/u]', sDescription: 'Underline' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/strike.gif', sCode: 's', sBefore: '[s]', sAfter: '[/s]', sDescription: 'Strikethrough' }, { sType: 'divider' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/pre.gif', sCode: 'pre', sBefore: '[pre]', sAfter: '[/pre]', sDescription: 'Preformatted Text' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/left.gif', sCode: 'left', sBefore: '[left]', sAfter: '[/left]', sDescription: 'Left Align' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/center.gif', sCode: 'center', sBefore: '[center]', sAfter: '[/center]', sDescription: 'Centered' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/right.gif', sCode: 'right', sBefore: '[right]', sAfter: '[/right]', sDescription: 'Right Align' }, { sType: 'select', sName: 'sel_face', oOptions: { '': 'Font Face', 'courier': 'Courier', 'arial': 'Arial', 'arial black': 'Arial Black', 'impact': 'Impact', 'verdana': 'Verdana', 'times new roman': 'Times New Roman', 'georgia': 'Georgia', 'andale mono': 'Andale Mono', 'trebuchet ms': 'Trebuchet MS', 'comic sans ms': 'Comic Sans MS' } }, { sType: 'select', sName: 'sel_size', oOptions: { '': 'Font Size', '1': '8pt', '2': '10pt', '3': '12pt', '4': '14pt', '5': '18pt', '6': '24pt', '7': '36pt' } }, { sType: 'select', sName: 'sel_color', oOptions: { '': 'Change Color', 'black': 'Black', 'red': 'Red', 'yellow': 'Yellow', 'pink': 'Pink', 'green': 'Green', 'orange': 'Orange', 'purple': 'Purple', 'blue': 'Blue', 'beige': 'Beige', 'brown': 'Brown', 'teal': 'Teal', 'navy': 'Navy', 'maroon': 'Maroon', 'limegreen': 'Lime Green', 'white': 'White' } } ], [ { sType: 'button', bEnabled: false, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/flash.gif', sCode: 'flash', sBefore: '[flash=200,200]', sAfter: '[/flash]', sDescription: 'Insert Flash' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/img.gif', sCode: 'img', sBefore: '[img]', sAfter: '[/img]', sDescription: 'Insert Image' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/url.gif', sCode: 'url', sBefore: '[url]', sAfter: '[/url]', sDescription: 'Insert Hyperlink' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/email.gif', sCode: 'email', sBefore: '[email]', sAfter: '[/email]', sDescription: 'Insert Email' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/ftp.gif', sCode: 'ftp', sBefore: '[ftp]', sAfter: '[/ftp]', sDescription: 'Insert FTP Link' }, { sType: 'divider' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/glow.gif', sCode: 'glow', sBefore: '[glow=red,2,300]', sAfter: '[/glow]', sDescription: 'Glow' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/shadow.gif', sCode: 'shadow', sBefore: '[shadow=red,left]', sAfter: '[/shadow]', sDescription: 'Shadow' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/move.gif', sCode: 'move', sBefore: '[move]', sAfter: '[/move]', sDescription: 'Marquee' }, { sType: 'divider' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/sup.gif', sCode: 'sup', sBefore: '[sup]', sAfter: '[/sup]', sDescription: 'Superscri' +'pt' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/sub.gif', sCode: 'sub', sBefore: '[sub]', sAfter: '[/sub]', sDescription: 'Subscri' +'pt' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/tele.gif', sCode: 'tt', sBefore: '[tt]', sAfter: '[/tt]', sDescription: 'Teletype' }, { sType: 'divider' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/table.gif', sCode: 'table', sBefore: '[table]\\n[tr]\\n[td]', sAfter: '[/td]\\n[/tr]\\n[/table]', sDescription: 'Insert Table' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/code.gif', sCode: 'code', sBefore: '[code]', sAfter: '[ /code ]', sDescription: 'Insert Code' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/quote.gif', sCode: 'quote', sBefore: '[quote]', sAfter: '[/quote]', sDescription: 'Insert Quote' }, { sType: 'divider' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/list.gif', sCode: 'list', sBefore: '[list]\\n[list][li]', sAfter: '[/li][/list]\\n[list][li][/li][/list]\\n[/list]', sDescription: 'Insert Unordered List' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/orderlist.gif', sCode: 'orderlist', sBefore: '[list type=decimal]\\n[list][li]', sAfter: '[/li][/list]\\n[list][li][/li][/list]\\n[/list]', sDescription: 'Insert Ordered List' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/hr.gif', sCode: 'hr', sBefore: '[hr]', sAfter: null, sDescription: 'Horizontal Rule' }, { sType: 'divider' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/unformat.gif', sCode: 'unformat', sBefore: '', sAfter: null, sDescription: 'Remove Formatting' }, { sType: 'button', bEnabled: true, sImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/toggle.gif', sCode: 'toggle', sBefore: '', sAfter: null, sDescription: 'Toggle View' } ] ], sButtonTemplate: '\n\t\t\t\t\t\t%buttonDescri' +'ption%\n\t\t\t\t\t', sButtonBackgroundImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/bbc_bg.gif', sButtonBackgroundImageHover: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/bbc_hoverbg.gif', sActiveButtonBackgroundImage: 'http://www.everlastingquest.co.cc/dev/Themes/default/images/bbc/bbc_hoverbg.gif', sDividerTemplate: '\n\t\t\t\t\t\t|\n\t\t\t\t\t', sSelectTemplate: '\n\t\t\t\t\t\t
after this, there is an empty dropdown menu and then the options to
- Notify me of replies.
- Lock this topic.
- Return to this topic.
- Sticky this topic.
- Don't use smileys.
- Move this topic.
- Announce topic.
I then get the text stating the shortcuts and the post and preview buttons, though it appears as if the background is interrupted behind these.
does anyone know why i get this? and how to fix it? I see it isn't an issue on these forums, so why is it an issue on mine?
As a guest I cant post so I am unable to have a look.
Maybe you'll understand I dont want to register on every forum where a problem is detected.
ok. guest posting temporarily allowed for the duration of this error.
Thank you for your assistance.
Not sure which file...
But, in one of them, you either have the closing php tag ?> either in the wrong place (Not on the very last line), or maybe it's missing, altogether, I suspect.
Have you just added any mods?
EDIT: Having looked, now, it could be the theme's index.template.php file.
ok. thank you. i'll take a look. and no, haven't installed any mods at all. it is a completely fresh install. let me take a look at that file and see what I find. thank you.
Pleasure.
Let us know how it goes. :)
nope. that doesn't seem to be the error. I looked in that file, looked in post.template.php, and i also looked in personalmessage.template.php as it appears to be affecting that too. the only clue i can find, is the following lines, possibly:
if ($context['show_bbc'])
{
echo '
<div id="bbcBox_message"></div>';
}
as that is about where, as far as i can determine, the error is happening. which file builds the "BBCbox?"
Which file is that from?
EDIT: OK, found it.
Can you attach the copy of the file to your next post, Drakmyr.
personalmessage.template.php
as well as
post.template.php
though the later is tabbed a bit further.
Nope. That bit of code's fine.
If your forum's new, with no mods, I'd suggest replacing those two files from the SMF install archive.
ok. which file is the one that outputs the bbc buttons or the smileys. I think that's the file that has the error as that appears to be where the text that shows under the text box is from and i don't have my bbc buttons or my smileys available. also, is captcha enabled by default? because that doesn't show either.
i've tried replacing the files, but the files i replace it with are the same as the files there. that was the first thing I tried.
just saw your edit above... attached here are the two files previously mentioned.
Well, let me put it this way...
If that was my forum, I think I'd replace every single file in the "sources" directory and everything within the default theme's directory, too, with files from the install archive.
If any of those get weird, that'll affect your whole forum.
You would need to consider replacing Sources/Subs-Editor.php as well as Themes/default/GenericControls.template.php, and Themes/default/script/editor.js
These three files are responsible for the editor component in SMF 2.0 series.
I'm sorry for wasting everyone's time. I think I found the error and it was not related in anyway to SMF. My host is forcing ads after I was under the impression that there would be no forced ads. One of their ads is smack dab in the middle of the block of code affecting the bbc buttons. I found this out after logging into the site from home on a browser without AdBlock+ installed and saw the ads. If Iget this resolved and still have the issue,then i will try a complete reinstall and go from there.
Thank you,
Drakmyr
I think you need a new host... ;)
nope, they were pretty good about it. I brought the issue to their notice and they got it fixed. additionally, my girlfriend and i decided to go ahead and upgrade to their ad-free service to avoid any future issues with it.
That's quite good of them.
Bit norty, changing code and not telling you, though.
possibly, but apparently the change went into effect right before i signed up. I was referred from free-webhosts.com and they reported that there were no forced ads. according to posts in sixserve's support forum, the policy changed on free accounts right before i signed up, so what could i do?
Not much, I suspect.
They'll come up with that old "You should've read the small print" chestnut, I guess.
it doesn't matter to me now. I'm now upgraded to a premium account which gives me an ad free experience, real estate on a low load server, 24 hours to resolve a dispute with my website instead of having it removed immediately, and priority technical support. All of this for only $2.99 a month, or as i purchased it, $29.90 for a year, that's 12 months for the price of 10. not a bad deal, I think. webspace as well as bandwidth is unlimited, I also have unlimited email. I registered my domain name for free for a whole year, so I think I got a pretty good deal. and if i now have priority support, and my issue while having the "free support" was handled so quickly, I don't have anything to complain about now. The only other "unlimited" free host i was able to find, I signed up with, and hadn't heard back from them for 4 days before canceling and going with my current host. so, all in all, not a bad experience. I probably would have had my error fixed sooner if I didn't have AdBlock Plus installed and running on my computer at work, then I would have seen the ad and known what the issue was.
Just so you know, webspace isn't possible to be unlimited, meaning that your server shares with many other sites, and if you go above a certain amount of usage (be it space, or computing time, if your site gets busy) you can still get shut down.
Have a search around here for 'oversellers'.
I understand that. but as I'm just starting out right now and don't have a huge player base yet. I think I'll stick with what i've got for now. thank you. If i encounter problems in the future, I'll look into further options at that time.
You would be advised to take very regular backups because the proverbial axe could fall at any time - and you likely won't be told in advance, paid or otherwise...