28 | 03 | 2024
Main menu
Login/Logout
 
Contacts
Реклама
Our button

Блог Ecolora

Код:

<a href="http://www.ecolora.com" target="_blank" rel="nothing" title="Ecolora.com"><img alt="Ecolora.com" height="31" src="http://www.ecolora.com/images/ecoloracom.gif" width="88" /></a>
Who's online

We have 119 guests and no members online

Лента новостей

Newsletter
Welcome, Guest
Username: Password: Remember me
Component and plugin for musical sites / Компонент для музыкальных сайтов и улучшенная версия плагина MP3 Browser

TOPIC: Display number of play

Display number of play 8 years 9 months ago #7160

  • skyfly24
  • skyfly24's Avatar
  • Offline
  • Новый участник
  • Posts: 2
  • Karma: 0
Hello,

it is possible the number played under the button play permanently display?

best regards
The administrator has disabled public write access.

Display number of play 8 years 9 months ago #7161

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 465
  • Thank you received: 40
  • Karma: 19
Hello, sure You can modify some code so the number of playing will display permanently.
In current version You can see number of plays if put mouse cursor on the play/pause button.
The administrator has disabled public write access.

Display number of play 8 years 9 months ago #7162

  • skyfly24
  • skyfly24's Avatar
  • Offline
  • Новый участник
  • Posts: 2
  • Karma: 0
hello, you can show here what I at which point would insert the code? many thanks :)
The administrator has disabled public write access.

Display number of play 8 years 9 months ago #7163

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 465
  • Thank you received: 40
  • Karma: 19
Sure. This code is for play/pause buttons:
<div id="playerplay_'.$mp3count.'" class="mp3button commplay" title="'.JTEXT::_('Play').($showPlayC?'. '.JTEXT::_('COMMEDIA_ALL_LISTEN').': '.$play_count:'').'"><div onclick="play('.$mp3count.',0); if (commgetCookie(\'commmp'.$rowid.'\') != \'1\') MP3Vote('.$rowid.',\'p\','.$uid.','.$play_count.','.$commcount.','.$mp3count.'); commsetCookie(\'commmp'.$rowid.'\', \'1\', 1440);" >PLAY</div></div>';
              $html.='<div id="playerpause_'.$mp3count.'" class="mp3button commpause" title="'.JTEXT::_('Pause').($showPlayC?'. '.JTEXT::_('COMMEDIA_ALL_LISTEN').': '.$play_count:'').'"><div onclick="pause('.$mp3count.')">PAUSE</div></div>

Lines 1898-1899 in plugins/content/commedia/commedia.php

$play_count stores value of playing count.
Last Edit: 8 years 9 months ago by admin.
The administrator has disabled public write access.
The following user(s) said Thank You: skyfly24
Time to create page: 0.209 seconds
for children older than 12 years