The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How can I add the reply button in every post

View previous topic View next topic Go down

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

Post by Yuushishio on 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.

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.

Yuushishio
Forumember

Posts : 117
Reputation : 3
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 on 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://illiweb.com/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 : http://illiweb.com/fa/subsilver/reply_en.gif

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

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

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

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>&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
Forumember

Male Posts : 419
Reputation : 74
Language : English

http://rotavn.nstars.org/

Back to top Go down

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

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

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>&nbsp;{postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}</td>

Where would that go?

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 96
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 on November 14th 2014, 6:36 am

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

SarkZKalie
Forumember

Male Posts : 419
Reputation : 74
Language : English

http://rotavn.nstars.org/

Back to top Go down

View previous topic View next topic Back to top


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