Nesystémová přizpůsobení - náhradní řešení
Napsal: úte 25. srp 2015 9:48:39
čeština v SEO URL:
Vyřešení problému s mezerama v tabulkách:
v /var/www/vhosts/nejen_cz/nejen.cz/includes/functions_content.php upravit takto:
Styling tabulek v příspěvcích. Do common.css dát u každého stylu na konec:
Kód: Vybrat vše
v /var/www/vhosts/nejen_cz/nejen.cz/ext/phpbbseo/usu/customise.php
odkomentovat a doeditovat toto:
public function inject()
{
// ===> Custom url replacements <===
// Here you can set up custom replacements to be used in title injection.
// Example : array('find' => 'replace')
$this->core->url_replace = array(
// Purely cosmetic replace
'$' => 'dollar', '€' => 'euro',
'\'s' => 's', // it's => its / mary's => marys ...
// Language specific replace (German example)
'ß' => 'ss',
'Ä' => 'Ae', 'ä' => 'ae',
'Ö' => 'Oe', 'ö' => 'oe',
'Ü' => 'Ue', 'ü' => 'ue',
'í' => 'i',
'č' => 'c',
'ř' => 'r',
'š' => 's',
'ě' => 'e',
'ú' => 'u',
'ů' => 'u',
'á' => 'a',
'ý' => 'y',
'ž' => 'z',
'ó' => 'o',
'ď' => 'd',
'ť' => 't',
'Í' => 'i',
'Č' => 'c',
'Ř' => 'r',
'Š' => 's',
'Ě' => 'e',
'Ú' => 'u',
'Á' => 'a',
'Ý' => 'y',
'Ž' => 'z',
'Ó' => 'o',
'Ď' => 'd',
'Ť' => 't',
);
v /var/www/vhosts/nejen_cz/nejen.cz/includes/functions_content.php upravit takto:
Kód: Vybrat vše
function bbcode_nl2br($text)
{
// custom BBCodes might contain carriage returns so they
// are not converted into <br /> so now revert that
$text = str_replace(array("\n", "\r", "<br /><br /><br />"), array('<br />', "\n", ""), $text);
$text = str_replace(array("\n", "\r", "</tr><br /><tr>", "</td><br />"), array('<br />', "\n", "</tr><tr>", "</td>"), $text);
return $text;
}
Kód: Vybrat vše
.pure-table {
/* Remove spacing between table cells (from Normalize.css) */
border-collapse: collapse;
border-spacing: 0;
empty-cells: show;
border: 1px solid #cbcbcb;
}
.pure-table caption {
color: #000;
font: italic 85%/1 arial, sans-serif;
padding: 1em 0;
text-align: center;
}
.pure-table td,
.pure-table th {
border-left: 1px solid #cbcbcb;/* inner column border */
border-width: 0 0 0 1px;
font-size: inherit;
margin: 0;
overflow: visible; /*to make ths where the title is really long work*/
padding: 0.5em 1em; /* cell padding */
background-color: #e2e2e2;
}
/* Consider removing this next declaration block, as it causes problems when
there's a rowspan on the first cell. Case added to the tests. issue#432 */
.pure-table td:first-child,
.pure-table th:first-child {
border-left-width: 0;
}
.pure-table thead {
background-color: #e0e0e0;
color: #000;
text-align: left;
vertical-align: bottom;
}
/*
striping:
even - #fff (white)
odd - #f2f2f2 (light gray)
*/
.pure-table td {
background-color: #f2f2f2;
}
.pure-table-odd td {
background-color: #f2f2f2;
}
/* nth-child selector for modern browsers */
.pure-table-striped tr:nth-child(2n-1) td {
background-color: #f2f2f2;
}
/* BORDERED TABLES */
.pure-table-bordered td {
border-bottom: 1px solid #cbcbcb;
}
.pure-table-bordered tbody > tr:last-child > td {
border-bottom-width: 0;
}