Support Forum

Reply window position

SE steve.engelking
steve.engelking
Member

One of our users has asked the following:

Would it be possible to change where the reply window appears? At present if you want to type a reply to a post at the top, you have to scroll right down to the bottom to write your reply. Ideally the reply window should appear directly above or below the post you are replying to.

It would also be good to be able to collapse the posts so you can just see summary details of the thread.

I would add that I have it ordered so that newest posts are at the top.

7 Answers

New Answer

MP Mr Papa
Mr Papa
Member

in 5.0, you can change the location of the reply window, by changing the location of the template tag in your sp theme that locates it… sp_TopicEditorWindow() in forum view and sp_PostEditorWindow() in topic view…

BR Brandon
Brandon
Member

steve.engelking said

One of our users has asked the following:

Would it be possible to change where the reply window appears? At present if you want to type a reply to a post at the top, you have to scroll right down to the bottom to write your reply. Ideally the reply window should appear directly above or below the post you are replying to.

.

Are you maybe talking about having to scroll down to click on the reply button?

If you sort newest to oldest then I can see why you would want the reply button on top, maybe next to or above the quote button.

You could add a reply button to the top by editing the spTopicView.php file and adding another entry or moving the original one to where you want it to be.

It does make sense that if sorting newest to oldest the default “Add Topic” & “Add Reply” are moved to the top automatically also.

MP Mr Papa
Mr Papa
Member

its just a matter of where it is in the template file… its done by template tag, so if you want it in new location you simply have to move the template tag to where you want it…

SE steve.engelking
steve.engelking
Member

That is really great help. I’ve managed to move the editor window to the top. It is really great to have such flexibility. You might want to make that automatic when changing the order because it is more logical as you say. Add topic and add reply are already at the top and bottom so you have already thought of that. 

I was wondering if it would be even better if the editor window always just appeared under the post entry and the buttons for ‘Add reply’ was next to ‘Quote’. That might seem more logical than the current placing. I was not sure how to move it there without messing up the whole code as I am not a true geek.

At this point I would like to congratulate you guys on all your hard work, a fantastic piece of software and the super support and I hope you are getting some donations to help feed your kids. You are certainly on my list.

MP Mr Papa
Mr Papa
Member

since its theme based with template tag, it cannot happen automatically (at least not without major rework and special code)… to make it automatically, would remove the flexibility of putting it where ever a user wants…

I dont really understand underneath the post entry (the logic that is) as that would indicate to me I wanted to reply specifically to that post which is what quote does…

you can still put a button for reply next to each quote button…  just replicate the add reply button template tag next to the quote template tag… it will auto scroll to the form itself…

SE steve.engelking
steve.engelking
Member

Thanks – really works like a dream! The difference is that the quote button will include the text out of the original post so it seems logical to me to have them next to each other. It think it is really exciting how this can be manipulated with a little care.

YS Yellow Swordfish
Yellow Swordfish
Member

Excellent. I will give some thought to editor placement for the future.