22 | 11 | 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 174 guests and no members online

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

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

TOPIC: "More info..." link

How to open a new tab when clicking 'more info' 11 years 10 months ago #6605

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 465
  • Thank you received: 40
  • Karma: 19
Open plugins/content/commedia/commedia.php file and find there:
if ($showDet)
              $html.='<div class="mp3det"'.(($showPop<2)?' style="width: '.$playWidth.'px;"':'').'><a href="'.$link.'" target="_self">'.JTEXT::_('COMMEDIA_DETAILES').'</a></div>';

replace it to
if ($showDet)
              $html.='<div class="mp3det"'.(($showPop<2)?' style="width: '.$playWidth.'px;"':'').'><a href="'.$link.'" target="_blank">'.JTEXT::_('COMMEDIA_DETAILES').'</a></div>';

Also replace:
$_name = '<div class="commname '.(($showName == 2)?'commcenter':'commleft').'" '.($showDet?'on-click="window.open(\''.$link.'\',\'_self\')" style="cursor: pointer;"':'').'>';
to
$_name = '<div class="commname '.(($showName == 2)?'commcenter':'commleft').'" '.($showDet?'on-click="window.open(\''.$link.'\',\'_blank\')" style="cursor: pointer;"':'').'>';

So You need replace _self option to _blank in Your code.
The administrator has disabled public write access.

"More info..." link 11 years 9 months ago #6657

  • deejaydole
  • deejaydole's Avatar
Hello.

I can't find how to hide the "more info..." link in the examples. Please, can you tell me how to do it?

Thanks.
Last Edit: 11 years 7 months ago by admin.
The administrator has disabled public write access.

Hide the "More info..." link 11 years 9 months ago #6658

  • deejaydole
  • deejaydole's Avatar
Also we would like to prevent people can go to the details page from each song, because it allow to download it. Can you tell us how to deactivate the details page and the "more info..." link? THanks.
The administrator has disabled public write access.

Hide the "More info..." link 11 years 9 months ago #6659

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 465
  • Thank you received: 40
  • Karma: 19
You can hide it in Commedia plugin options. It called 'Link to details'. Set it to Off value, please.

Also You can deactivate it on certain pages using tags:
{commedia detailes=no}Your_music_folder{commedia}
Last Edit: 11 years 7 months ago by admin.
The administrator has disabled public write access.
Time to create page: 1.075 seconds
for children older than 12 years