Баг :Overrides "display of masks" for plug-ins.
Статус :Исправлено
Серьёзность :Улучшение
Репортер :Amro 09-07-13 01:34
Обновил :Amro 13-07-13 20:19
КатегорияGeneral
Версия :173
Частота :Постоянно
Пофиксено в :175
Детали :
Overrides «display of masks» for plug-ins.
 
On the example of the plugin Recentitems:
 
Replace 
 
$cfg['plu_mask_pages'] = "%3\$s"." "."%1\$s"." ".$cfg['separator']." "."%2\$s"."<br />";
// %1\$s = Link to the category
// %2\$s = Link to the page
// %3\$s = Date

$cfg['plu_mask_topics'] =  "%2\$s"." "."%3\$s"." ".$cfg['separator']." "."%4\$s"." ("."%5\$s".")<br />";
// %1\$s = "Follow" image
// %2\$s = Date
// %3\$s = Section
// %4\$s = Topic title
// %5\$s = Number of replies

$cfg['plu_mask_comments'] = "%3\$s %1\$s"." ".$cfg['separator']." "."%5\$s"." ".$cfg['separator']." %2\$s<br />";
// %1\$s = Link to the comment
// %2\$s = Author
// %3\$s = Date
// %4\$s = User Avatar
// %5\$s = Comments Text

$cfg['plu_mask_polls'] =  "<div>%1\$s</div>";

on

$cfg['plu_mask_pages'] = empty($cfg['plu_mask_pages']) ? "%3\$s"." "."%1\$s"." ".$cfg['separator']." "."%2\$s"."<br />" : $cfg['plu_mask_pages'];
// %1\$s = Link to the category
// %2\$s = Link to the page
// %3\$s = Date

$cfg['plu_mask_topics'] = empty($cfg['plu_mask_topics']) ? "%2\$s"." "."%3\$s"." ".$cfg['separator']." "."%4\$s"." ("."%5\$s".")<br />" : $cfg['plu_mask_topics'];
// %1\$s = "Follow" image
// %2\$s = Date
// %3\$s = Section
// %4\$s = Topic title
// %5\$s = Number of replies

$cfg['plu_mask_comments'] = empty($cfg['plu_mask_comments']) ? "%3\$s"." "."%1\$s"." ".$cfg['separator']." "."%5\$s"." ".$cfg['separator']." %2\$s<br />" : $cfg['plu_mask_comments'];
// %1\$s = Link to the comment
// %2\$s = Author
// %3\$s = Date
// %4\$s = User Avatar
// %5\$s = Comments Text

and in skinname.php may be use this

$cfg['plu_mask_pages'] = "<span class=\"rec-date\">%3\$s</span>"." "."%1\$s"." ".$cfg['separator']." "."%2\$s"."<br />";
// %1\$s = Link to the category
// %2\$s = Link to the page
// %3\$s = Date

$cfg['plu_mask_topics'] =  "<span class=\"rec-date\">%2\$s</span>"." "."%3\$s"." ".$cfg['separator']." "."%4\$s"." ("."%5\$s".")<br />";
// %1\$s = "Follow" image
// %2\$s = Date
// %3\$s = Section
// %4\$s = Topic title
// %5\$s = Number of replies

$cfg['plu_mask_comments'] = "<span class=\"rec-date\">%3\$s</span> %1\$s"." ".$cfg['separator']." "."%5\$s"." ".$cfg['separator']." %2\$s<br />";
// %1\$s = Link to the comment
// %2\$s = Author
// %3\$s = Date
// %4\$s = User Avatar
// %5\$s = Comments Text

$cfg['plu_mask_polls'] =  "<div>%1\$s</div>";

 

Затронутые части :

История и комментарии :

Нет записей