The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How can I add the reply button in every post

4 posters

Go down

In progress How can I add the reply button in every post

Post by Yuushishio November 13th 2014, 12:48 pm

So in my forum: http://sharetheworld.forumvi.com/
I moved the quote button to the end of the every post.
Now I want to add a reply button in every post next to edit button.
How can I add the reply button in every post Reply-button_zpsaa1c1928
I even try to fix the code in template (viewtopic_body) but it aint working.

Code:
<td><span class="post-options">
                                          <!-- BEGIN switch_user_authreply -->
                                  <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0" /></a>
                                          <!-- END switch_user_authreply -->
                                          </span>
                                  </td>
                                      <td valign="middle" nowrap="nowrap" class="post-options"> 
            {postrow.displayed.REPLY_IMG}{postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}</td>



So please, someone help me figure out this.
avatar
Yuushishio
Forumember

Posts : 117
Reputation : 4
Language : English

http://sharetheworld.forumvi.com

Back to top Go down

In progress Re: How can I add the reply button in every post

Post by Ange Tuteur November 13th 2014, 8:35 pm

Hello Yuushishio,

See if this works :
Administration Panel > Modules > JavaScript codes management > Create a new script

Title : Your choice
Placement : In the topics
Paste the code below :
Code:
$(function() {
  postOption('/post?t='+window.location.pathname.replace(/\/t(\d+).*/,'$1')+'&mode=reply','<img src="http://2img.net/i/fa/subsilver/reply_en.gif">');
  
  function postOption(href, html) {$('.post-options').prepend('<a href="'+href+'">'+html+'</a>')};
});

It should add a new option to the posts. If you want to change the current image replace this URL in the script : https://2img.net/i/fa/subsilver/reply_en.gif
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: How can I add the reply button in every post

Post by SarkZKalie November 14th 2014, 5:44 am

Try this :3
How can I add the reply button in every post Untitl10
Code:
<td valign="middle" nowrap="nowrap" class="post-options">
<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" class="i_reply" alt="{L_POST_REPLY_TOPIC}" /></a>&nbsp;{postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}</td>


Last edited by sarkzkalie01 on November 14th 2014, 6:24 am; edited 1 time in total (Reason for editing : For default template)
SarkZKalie
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 1407
Reputation : 218
Language : English

https://rotavn.forumotion.com/

Back to top Go down

In progress Re: How can I add the reply button in every post

Post by Ramdaman November 14th 2014, 6:18 am

sarkzkalie01 wrote:Try this :3
How can I add the reply button in every post Untitl10
Code:
<td valign="middle" nowrap="nowrap" class="post-options">
<a href="{U_POST_REPLY_TOPIC}" class="yourclass" title="Reply">Reply</a>&nbsp;{postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}</td>

Where would that go?
Ramdaman
Ramdaman
Active Poster

Male Posts : 1615
Reputation : 99
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

In progress Re: How can I add the reply button in every post

Post by SarkZKalie November 14th 2014, 6:36 am

Just add to your viewtopic_template, you'll see :3


How can I add the reply button in every post Sarkzk10
SarkZKalie
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 1407
Reputation : 218
Language : English

https://rotavn.forumotion.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum