Support Forum

"Mark al topics as read" button not working

47 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

No – it is not a SQL problem. Also – Steve – not an AJAX request either but a full page load.

Perhaps time to ask your hosting if they can tell us why the REDIRECT_URL seems to not be set in the http headers…

CA Carlos
Carlos
Member

ok… will try to restore a backup on another server to see if it works…

I will keep you informed… thanks

MP Mr Papa
Mr Papa
Member

that’s what I said in my last post… wasnt ajax, but the actual button url in the page view… ;)

and I dont think its database related, so doubtful the restore will help… but let us know how it goes…

CA Carlos
Carlos
Member

Is there any way of override the button to a specific url? 

i think that if a put a button to this -> http://mysite.com/forum/?mark-read could help me

MP Mr Papa
Mr Papa
Member

to do so, you would have to make your own button and link it to that url…  there is no way to change the url of the core button (no reason for it to be different)…

still dont understand the real reason why its getting dorked up on your site…  did we ever talk about wp security plugins?  or if your server is running mod_security?

CA Carlos
Carlos
Member

Its a problem of my server… ´cause a made a new install and the same problem appears… 

CA Carlos
Carlos
Member

I cant add images to the spHead.php  

Parse error: syntax error, unexpected ‘<‘ in /problem-with-post-edit-buttonomepages/2/d364306731/problem-with-post-edit-buttontdocs/new/wp-content/sp-resources/forum-themes/gui/templates/spHead.php on line 139

 

any idea?

YS Yellow Swordfish
Yellow Swordfish
Member

Well that suggests that you have added some html or something in an area of the file that is not ready for it. What did you do?

CA Carlos
Carlos
Member

exactly that… i tried to add a button where is suppossed to be the “mark al topics as readed” to override the SP button… and fix the issue for me

YS Yellow Swordfish
Yellow Swordfish
Member

I need to see the actual code and understand where you put it in the template. You will need to sue the ‘code’ button on our toolbar. Highlight the pasted code and then select php in the code box on the toolbar.

CA Carlos
Carlos
Member

 

 

I put the code on this part of the Sp-Head.php

 

# Start the ‘p-‘ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spPlainSection spRight’, ‘pageTopStatus’);
sp_GoToBottom(‘tagClass=spGoToBottom spRight&iconClass=spIcon’, ”, __sp(‘Go to Bottom’));
sp_UnreadPostsInfo(‘tagClass=spRight spUnreadPostsInfo&spanClass=spLeft&iconClass=spLeft spIcon’, __sp(‘%COUNT% topics with<br />unread posts’), __sp(‘Most recent topics with unread posts’), __sp(‘Mark all topics as read’));
if (function_exists(‘sp_RankInfo’)) sp_RankInfo(‘tagClass=spButton spRight’, ”, __sp(‘Display Forum Ranks Information’));
sp_SectionEnd(”, ‘pageTopStatus’);

sp_InsertBreak();

 

YS Yellow Swordfish
Yellow Swordfish
Member

Well this bit doesn’t make any sense:

sp_UnreadPostsInfo(‘tagClass=spRight spUnreadPostsInfo&spanClass=spLeft&iconClass=spLeft spIcon’, __sp(‘%COUNT% topics with<br />unread posts’), __sp(‘Most recent topics with unread posts’), __sp(‘Mark all topics as read’));

That bit nestled inside  there should not be there for a start

MP Mr Papa
Mr Papa
Member

please post what you added? and where? did you put html in a php section?

CA Carlos
Carlos
Member

Mr Papa said
please post what you added? and where? did you put html in a php section?

yep… i put html in a php section… i thinked that it could work…. sorry i dont have any idea of coding

YS Yellow Swordfish
Yellow Swordfish
Member

There was no html additions to the code fragment you sent me above?