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 587 guests and no members online

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

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

TOPIC: Rearrange columns

Rearrange columns 12 years 1 month ago #6544

  • cbaugher
  • cbaugher's Avatar
  • Offline
  • Новый участник
  • Posts: 10
  • Karma: 0
Is it possible to rearrange the category columns in the browser table. For example to move the download link column so that it is to the right of the player column in the browser table.
The administrator has disabled public write access.

Rearrange columns 12 years 1 month ago #6545

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 465
  • Thank you received: 40
  • Karma: 19
You can do it in the code of plugins/content/commedia/commedia.php file. In two places:

That code is the header:
if(($showDownload == 1) || (($showDownload == 2) && ($DownAcc)))
		   $html.='<td style="width:'.$downloadColWidth.'px;">'.$downloadText.'</td>';

Move it above the:
$html.= '<td class="center">'.$playText.'</td>';

and that code is data:
if(($showDownload == 1) || (($showDownload == 2) && ($DownAcc))) {
				  $html.='<td style="text-align:center; width:'.$downloadColWidth.'px;"><span style="cursor:pointer; display: inline-block;">';
				  if($DownAcc) {
				  	$html.='<a href="javascript:void(0);" title="'.JTEXT::_('Download Audio File').'" on-click="';
				    $html.='window.open(\''.((($ftht > 0)&&($drp))?$mdf:$mosConfig_live_site.($drp?$mdf:'index.php?option=com_commedia&amp;format=raw&amp;task=down&amp;pid='.$pid.'&amp;id='.$rowid)).'\'); ';
//				    $html.='window.open(\''.$mosConfig_live_site.($drp?$mdf:'index.php?option=com_commedia&amp;format=raw&amp;task=down&amp;pid='.$pid.'&amp;id='.$rowid).'\'); ';
				    $html.=' MP3Vote('.$rowid.',2,'.$uid.',0,'.$commcount.',0);">';
				  }
				  else $html.='<a title="'.JTEXT::_('Download Audio File').'" class="modal" rel="{handler: \'iframe\', size: {x: 300, y: 100}}"  href="'.$mosConfig_live_site.'index.php?option=com_commedia&format=raw&task=vote&yon=2" target="_blank">';
				  $html.='<img src="'.$mosConfig_live_site; if($i) $html.=$downloadImageAlt; else $html.=$downloadImage;
                  $html.='" alt="download" /></a></span>';
			      if($showDownloadC) $html.='<div class="center">'.JTEXT::_('Downloads').': <div id="mp3down_'.$commcount.'_'.$rowid.'" class="mp3down">'.intval($dc).'</div></div>';
                  /*$html.='<div class="mp3dm" id="mp3dm_'.$commcount.'_'.$rowid.'"></div>';*/
			      $html.='</td>';
				}

Move it in the file above the:
        $html.='<td class="center">';
        if ($showName == 2) $html.= $_name;
The administrator has disabled public write access.

Rearrange columns 12 years 1 month ago #6552

  • cbaugher
  • cbaugher's Avatar
  • Offline
  • Новый участник
  • Posts: 10
  • Karma: 0
Thank you very much that is exactly what I needed.
The administrator has disabled public write access.
Time to create page: 0.121 seconds
for children older than 12 years