Support Forum
Thanks Andy, but this is way to complicated for me right now.
I did exactly what you suggested and it did not work.
I also don't like the fact that the forums scripts are not compressed anymore after making this change. Our site is not the fastest, this will add even more weight to it.
I am out. I need to find a better solution for this issue or ignore it for now.
if its loading sp-forum.js and not sp-forum-dev.js, its not loading the one you modified... please show us what you added to wp-config.php and show us where you added it... make sure you have valid quote chars... sometimes if you copy it from formatted html you may get the wrong one... always best when copying code to use the copy raw button...
I have already coded up a enhancement for the reply button to always scroll to the form...
in the same js file, find these lines (sorry, dont have line number as I am on travel)...
$('#' + editorId).slideDown();
if (!window.location.hash) location.href = location.href + '#spEditFormAnchor';
spj.editorOpen(formType);
after those, just add:
$('html, body').animate({scrollTop: $('#' + editorId).offset().top - sp_platform_vars.headpadding}, 500);
which of course assumes you can get it to load the right file...
Visit Cruise Talk Central and Mr Papa's World
Thanks, Mr. Papa,
the issue was indeed my copy and paste of the code you gave me for the wp-config.php!
After i corrected the code to use proper quotes, it works.
Thank you!
However, I think there is a weakness in the way you have coded this button feature in general.
When I scroll up, after the click on the button took me to the text editor, and I click again on the button, nothing happens. In my opinion, it would be more user-friendly if the focus would again lead the user directly to the text editor, no matter if he was there already or not.
So I think it would be smarter to make sure the button always scrolls to the form - no matter what.
What are your thoughts?
1 Guest(s)