• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
  • This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Listen this post

PoLiZe

Well-known member
#1
Hi people of xf..


ok now i make a button for listen the post (with voice), in the forum, that is simple


EDIT template "message"

and search:

HTML:
<div class="messageContent">
and remplace with that:

HTML:
<div id="message-{$messageId}" class="messageContent">

ok so now need put the button..

search:

HTML:
<div class="messageInfo primaryContent">

and paste BEFORE:

HTML:
<script type="text/javascript" src="http://vozme.com/get_text.js"></script>
<div><a href="javascript:void(0);"
onclick="get_id('message-{$messageId},'en','ml');">
<img src="http://vozme.com/img/megaphone40x40w.gif" border="0"
style="margin-right:0.4em;" alt=""/></a>
<a href="javascript:void(0);"
onclick="get_id('message-{$messageId}','en','ml');">
Listen this post</a></div><br>
And the result is that: listenthis.png


for change the voice to woman voice:

<script type="text/javascript" src="http://vozme.com/get_text.js"></script>
<div><a href="javascript:void(0);"
onclick="get_id('message-{$messageId},'en','fm');">
<img src="http://vozme.com/img/megaphone40x40w.gif" border="0"
style="margin-right:0.4em;" alt=""/></a>
<a href="javascript:void(0);"
onclick="get_id('message-{$messageId}','en','fm');">
Listen this post</a></div><br>

Sorry for my bad english

Bye!


Note:

Too u can put only the image, without the text "Listen this post", with that code:

HTML:
<script type="text/javascript" src="http://vozme.com/get_text.js"></script>
<div><a href="javascript:void(0);"
onclick="get_id('message-{$messageId},'en','ml');">
<img src="http://vozme.com/img/megaphone40x40w.gif" border="0"
style="margin-right:0.4em;" alt=""/></a>
</div><br>


ATENTION

I UPGRADE THIS MODIFICATION IN THIS THREAD WITH OPTIONS ON THE ADMINCP..

http://xenforo.com/community/posts/122537/