Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
public-topic
New Topic and Reply buttons not working properly.
Avatar
Sar S
Rookie
Free Members
sp_UserOfflineSmall Offline
Jun 27, 2016 - 1:22 am
sp_QuotePost Quote

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 27, 2016 - 2:48 am
sp_QuotePost Quote

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Sar S
Rookie
Free Members
sp_UserOfflineSmall Offline
Jun 27, 2016 - 3:15 am
sp_QuotePost Quote

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. 

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jun 27, 2016 - 10:25 am
sp_QuotePost Quote

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.

Avatar
Sar S
Rookie
Free Members
sp_UserOfflineSmall Offline
Jun 28, 2016 - 5:56 am
sp_QuotePost Quote

So what does that mean?

I have to purchase a product to be able to get an answer/support for this ?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 28, 2016 - 10:39 am
sp_QuotePost Quote

A membership yes. This post explains the reasoning: https://simple-press.com/simpl.....-reloaded/

andy-signature.png
YELLOW
SWORDFISH
Avatar
Sar S
Rookie
Free Members
sp_UserOfflineSmall Offline
Jun 29, 2016 - 3:30 am
sp_QuotePost Quote

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]

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 29, 2016 - 3:52 am
sp_QuotePost Quote

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 29, 2016 - 9:33 pm
sp_QuotePost Quote

odd indeed...

Avatar
Sar S
Rookie
Free Members
sp_UserOfflineSmall Offline
Jun 30, 2016 - 9:46 am
sp_QuotePost Quote

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!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626