solved How can i move the Like it button?

Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
9 years ago
224 posts
Hi again.

my topic says it all. the proble is, that the Like it Button is on the bottom of the page, and nobody notice it between all the other share buttons.

How can i move it to the top directly under the music player?
The templates at /like/admin/templates
don't support any like that what i want to do.

greetings, Marco
Unbenannt.PNG.png
Unbenannt.PNG.png  •  460KB


updated by @bandwerkstatt: 06/25/15 02:37:57PM
michael
@michael
9 years ago
7,715 posts
What you have there is the default button showing in the details page. That part was added automatically when you allowed it for the quota.

If you want to put it in a custom location, you can add it to the template your after with the code from this page:

"{jrLike_button}"
https://www.jamroom.net/the-jamroom-network/documentation/modules/1722/like-it


The code your after is probably:
{jrLike_button module="jrAudio" item=$item action="like"}

and you'll want to put that in item_detail.tpl of the audio module, so via acp its:
ACP -> MEDIA -> AUDIO -> TEMPLATES -> item_detail.tpl

Put it in somewhere above "jraudio_detail_player_right" by the looks of the screenshot.

--edit--
actually try looking for this:
<div style="text-align:left;padding-left:6px">
<span class="info">{jrCore_lang module="jrAudio" id="31" default="album"}:

and squeeze it in there:
<div style="text-align:left;padding-left:6px">
<div style="float:right">{jrLike_button module="jrAudio" item=$item action="like"}</div>
<span class="info">{jrCore_lang module="jrAudio" id="31" default="album"}:
Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
9 years ago
224 posts
Hi, thanks for your help. That works.

and how can i delete the button on the bottom?

Greetings, Marco
michael
@michael
9 years ago
7,715 posts
The code for the delete button is:
{jrCore_item_delete_button module="jrAction" profile_id=$item._profile_id item_id=$item._item_id}

To find out the code to use, check through the .tpl files that you have, you'll probably find what your after in them.

With that code, make sure to update the items to the correct values

{jrCore_item_delete_button module="????" profile_id=????? item_id=????}

Tags