How can I add the reply button in every post
4 posters
Page 1 of 1
How can I add the reply button in every post
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.
I even try to fix the code in template (viewtopic_body) but it aint working.
So please, someone help me figure out this.
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.
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.
Re: How can I add the reply button in every post
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 :
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
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
Re: How can I add the reply button in every post
Try this :3
- 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> {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, 5:24 am; edited 1 time in total (Reason for editing : For default template)
Re: How can I add the reply button in every post
sarkzkalie01 wrote:Try this :3
- Code:
<td valign="middle" nowrap="nowrap" class="post-options">
<a href="{U_POST_REPLY_TOPIC}" class="yourclass" title="Reply">Reply</a> {postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}</td>
Where would that go?
Similar topics
» When onclick button of "Post Reply" scroll down to the quick reply
» Creat function button using BBCodes for new post and post reply
» No post or reply button
» Missing "post reply" button
» Visitor messages Post Reply button
» Creat function button using BBCodes for new post and post reply
» No post or reply button
» Missing "post reply" button
» Visitor messages Post Reply button
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum