Support Forum
I've got a very strange issue going on with simplepress.
When i click 'Add Topic' or 'Add Reply' buttons, it works almost perfectly.
Has the little animation and it opens the editor boxes.
But, right after that it redirects the page to http://mysite.com/#spEditFormAnchor
PS: The site im working on is a bit graphic, so not sure if i should be sharing the link. So feel free to remove this bit if inappropriate. http://hsh.wpengine.com/forum/
I've been trying to find what could possibly cause this other than a js based redirect. Because i did not find any redirection functions in the js files yet. The <a href=""> links have javascript:void() and http://mysite/forums/?new=topic
The most likely candidate would be another WordPress plugin that is, in some way, incorrectly manipulating url's or just performing re-directs when not understanding the forum permalinks. Only you would know if you have anything active like that.
We are always happy to take a look and if you need us to then please open a proper support topic. If you would like us to take a close look we will need an account and you can send a private message to the admins with credentials.
YELLOW
SWORDFISH
|
Ok. I'll check into the other plugins i got.
How do i create a private message here? This was the only place i found that i could type anything in.
As Andy said, you would need to open up a topic in our support forum for us to look into it for you. Sorry, but you've posted here in the pre-membership forum because your membership has expired meaning you no longer have access to the support forum or the private messaging system.
So what does that mean?
I have to purchase a product to be able to get an answer/support for this ?
A membership yes. This post explains the reasoning: https://simple-press.com/simpl.....-reloaded/
YELLOW
SWORDFISH
|
I fixed it. Found the bug... hopefully it helps other people in my position out.
function spjOpenEditor(editorId, formType) {
jQuery(document).ready(function() {
/* remove header space div if needed */
if (sp_platform_vars.headpadding > 0) {
jQuery('#'+editorId).before( "<div id='spHeadPad'> </div>");
jQuery('#spHeadPad').css('height', sp_platform_vars.headpadding+'px');
}
jQuery('#'+editorId).slideDown();
location.href= '#spEditFormAnchor'; !!!!! this is the problem !!!!!
Change to: location.href= location.href+'#spEditFormAnchor';
spjEdOpenEditor(formType);
});
}
Inside sp-foum.js [Its minified, so take the code from dev version and minify it]
How curious... Thanks for the update and the tip.
We will, of course, take a very close look. The question that needs to be solved though is why you and not everyone... which is a bit puzzling.
YELLOW
SWORDFISH
|
Downloaded it from right here in the download section. Free version of course.
It was used in a site with a lot of custom js though and i didn't write that.
Lucky enough this plugin was the only place that had used location.href=URL.
A quick search using Find&Replace got me to it.
Don't know why though that made my page change instead of just adding the anchor, it went to webroot/#anchor. All other js functions were working just fine.
Cheers! a good plugin!
1 Guest(s)