Quote from: emanuele on April 17, 2013, 07:27:28 AMmmhhhda dove inizio per capire come fare?e le immagini come si mettono in html, devo far sempre riferimento ad un link, giusto?
altrimenti devi scriverlo in HTML.
codice bbcode | equivalente HTML | |
http://qualcosa.com/pagina.html | <a href="http://qualcosa.com/pagina.html">http://qualcosa.com/pagina.html</a> | |
[url=http://qualcosa.com/pagina.html]clicca qui[/url] | <a href="http://qualcosa.com/pagina.html">clicca qui</a> | |
[img]http://qualcosa.com/immagine.jpg[/img] | <img src="http://qualcosa.com/immagine.jpg" /> |
[hr]
il separatore orizzontale... ::)
<span style="font-size: 8ptpx;">Mio testo</span>
<font size="1″>testo di grandezza 1</font>
ma neanche così...<span style="font-size: 8px;">Mio testo</span>
<span style="font-size: 1em;">Mio testo</span>
QuoteE in nessuno di questi due deve apparire l'autore del messaggio?almeno in display. ma se possibile sì, in tutt' e due
<th scope="col" class="lefttext"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a> / <a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext">
<a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a>
/
<a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a>
</th>
<th scope="col" class="lefttext">
<a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a>
</th>
<th scope="col" class="lefttext"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
echo '
<p>', $txt['started_by'], ' ', $topic['first_post']['member']['link'], '
<small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small>
</p>
</div>
</td>
echo '
</div>
</td>
Quote from: emanuele on April 19, 2013, 10:15:21 AMfatto :)
Ok, questa è "complicata" perché è difficile vedere dove iniziano e dove finiscono le cose:Code Select<th scope="col" class="lefttext"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a> / <a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
Se lo si spezzetta un po' si può capire meglio:Code Select<th scope="col" class="lefttext">
<a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a>
/
<a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a>
</th>
Quel che devi fare è rimuovere il secondo link:Code Select<th scope="col" class="lefttext">
<a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a>
</th>
e rimettere tutto su una riga (se vuoi):Code Select<th scope="col" class="lefttext"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
Il secondo pezzo è più facile:Code Selectecho '
<p>', $txt['started_by'], ' ', $topic['first_post']['member']['link'], '
<small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small>
</p>
</div>
</td>
Cosa devi fare?
Praticamente rimuovere tutto quello che c'è tra <p> e </p>:Code Selectecho '
</div>
</td>
QuoteOra il resto: immagino che a questo punto il numero di risposte diventi irrilevante (sarà sempre 0) ed anche il numero di visite diventa un po' inutile...o sbaglio?le risposte non m'interessano; forse le visite mi piacerebbe vederle, ma solo se non ti complica troppo la vita....
<th scope="col" width="14%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=replies', $context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['replies'], $context['sort_by'] == 'replies' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a> / <a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['views'], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
<th scope="col" width="14%">
<a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=replies', $context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['replies'], $context['sort_by'] == 'replies' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a>
/
<a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['views'], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a>
</th>';
<th scope="col" width="14%">
<a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['views'], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a>
</th>';
<th scope="col" width="14%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['views'], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
<td class="stats ', $color_class, '">
', $topic['replies'], ' ', $txt['replies'], '
<br />
', $topic['views'], ' ', $txt['views'], '
</td>
<td class="stats ', $color_class, '">
', $topic['views'], ' ', $txt['views'], '
</td>
<th scope="col" width="14%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['views'], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
<th scope="col" ', empty($context['can_quick_mod']) ? 'class="last_th"' : '', 'width="14%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['views'], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
// Show a "select all" box for quick moderation?
if (empty($context['can_quick_mod']))
echo '
<th scope="col" class="lefttext last_th" width="22%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['last_post'], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
else
echo '
<th scope="col" class="lefttext" width="22%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['last_post'], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
', $topic['views'], ' ', $txt['views'], '
</td>
<td class="lastpost ', $alternate_class, '">
<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" /></a>
', $topic['last_post']['time'], '<br />
', $txt['by'], ' ', $topic['last_post']['member']['link'], '
</td>';
', $topic['views'], ' ', $txt['views'], '
</td>';
// Show information about the poster of this message.
// Done with the information about the poster... on to the post itself.
echo '
</ul>
</div>
<div class="postarea">
echo '
<div class="postarea">
// Show "� Last Edit: Time by Person �" if this post was edited.
if ($settings['show_modify'] && !empty($message['modified']['name']))
echo '
« <em>', $txt['last_edit'], ': ', $message['modified']['time'], ' ', $txt['by'], ' ', $message['modified']['name'], '</em> »';
// Are there any custom profile fields for above the signature?
if (!empty($message['member']['custom_fields']))
{
$shown = false;
foreach ($message['member']['custom_fields'] as $custom)
{
if ($custom['placement'] != 2 || empty($custom['value']))
continue;
if (empty($shown))
{
$shown = true;
echo '
<div class="custom_fields_above_signature">
<ul class="reset nolist">';
}
echo '
<li>', $custom['value'], '</li>';
}
if ($shown)
echo '
</ul>
</div>';
}
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled'])
echo '
<div class="signature" id="msg_', $message['id'], '_signature">', $message['member']['signature'], '</div>';
QuoteIn pratica va tolto tutto quello che c'è tra:io ho lasciato
Code: [Select]
// Show information about the poster of this message.
e
Code: [Select]
// Done with the information about the poster... on to the post itself.
// Show information about the poster of this message.
e // Done with the information about the poster... on to the post itself.
hop tolto solo quel che c'è in mezzo.QuoteErrore nella scansione del template!
Si è verificato un problema caricando il file del modello o della traduzione /Themes/DuvvarModif/Display.template.php. Controlla la sintassi del file e prova di nuovo - fai attenzione agli apostrofi ('): spesso devono essere preceduti dal carattere di escape (\). Per visualizzare informazioni più dettagliate sull'errore, prova ad accedere direttamente al file. Puoi anche provare a ricaricare la pagina o utilizzare il tema predefinito.
Parse error: syntax error, unexpected '<' in .../Themes/DuvvarModif/Display.template.php on line 448
439: // Otherwise, you see NOTHING!
440: else
441: echo '
442: ', $txt['logged'];
443:
444: echo '
445: </div>';
446:
447:
448: <li>', $custom['value'], '</li>';
449: }
450: if ($shown)
451: echo '
452: </ul>
<span id="author">', $txt['author'], '</span>
.postarea, .moderatorbar {
margin: 0px 0px 0px 16em;
}
.postarea, .moderatorbar {
margin: 0;
}
.postarea, .moderatorbar {
margin: 0;
}
non fa succedere niente... ::), anzi mi si ripresenta l'autore nella board e nel topicQuote from: ivanom. on April 23, 2013, 02:26:38 PMPotresti postare uno screenshot di cosa ottieni? Non son mica sicuro di aver capito...
anzi mi si ripresenta l'autore nella board e nel topic
Quote from: ivanom. on April 25, 2013, 02:04:13 AMNo, scusa, ma questo è assolutamente impossibile.
Quando vado a modificare l'indexcss mi ritorna tutto come prima, cioè mi ricompare un topic normale con autore sia nella board che nel topic, come qualsiasi altro post.
// Show the topic information - icon, subject, etc.
echo '
<div id="forumposts">
<div class="cat_bar">
<h3 class="catbg">
<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />
', $txt[''], ' ', $context
// Show the topic information - icon, subject, etc.
echo '
<div id="forumposts">
<div class="cat_bar">
<h3 class="catbg">
<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />
', $context
Quote from: ivanom. on April 26, 2013, 06:55:34 AMsempre quando puoi, tranquillo... ;)
rimane solo da toglierlo nella board...qui non ci arriverei mai...
Quote from: emanuele on April 30, 2013, 03:45:26 AMmhhh, così non va bene ...devono poterlo leggere anche i visitatori...
)
C'è il piccolo disguido: che il primo child mostrerebbe una maschera di login se qualunque ci cliccasse sopra...
Quote from: ivanom. on April 30, 2013, 03:55:18 AMHai inteso male, leggerlo lo leggono senza problemi.
mhhh, così non va bene ...devono poterlo leggere anche i visitatori...
Simple Machines Community Forum » SMF Support » Language Specific Support » Italiano (Italian) (Moderators: Darknico, emanuele) » Topic: topic senza che ci sia l'autore
Quote from: ivanom. on April 30, 2013, 03:55:18 AMBoardIndex.template.php:
non fa niente, non ti preoccupare....pooi se un giorno te la senti di darmi indicazioni sulla modifica al codice ti aspetto,....tranquillo, sei stato già molto gentile e d'aiuto ;)
// Show some basic information about the number of posts, etc.
echo '
if ($board['id'] == ID_DELLA_BOARD)
echo '<td></td>';
else
// Show some basic information about the number of posts, etc.
echo '
</td>';
if ($board['is_redirect'])
echo '
<td class="windowbg" align="center" colspan="2" width="14%"><p>', $board['posts']. ' '. $txt['redirects'] , ' </p></td>
<td class="lastpost">';
else
echo '
<td class="windowbg" align="center" width="7%">', comma_format($board['posts']),'</td>
<td class="windowbg" align="center" width="7%">', comma_format($board['topics']),'</td>
<td class="lastpost">';
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<p><strong>', $txt['last_post'], '</strong> ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'],'
</p>';
echo '
</td>
</tr>';
// Show the "Child Boards: ". (there's a
immagino che riguardi la prima parte cosa dovrei fare di preciso? ::)
// Unset il last post così resta vuoto
if ($board['id'] == ID_DELLA_BOARD)
$board['last_post']['id'] = array();
/* The board's and children's 'last_post's have:
// Show some basic information about the number of posts, etc.
echo '
</td>';
if ($board['is_redirect'])
echo '
<td class="windowbg" align="center" colspan="2" width="14%"><p>', $board['posts']. ' '. $txt['redirects'] , ' </p></td>
<td class="lastpost">';
else
echo '
<td class="windowbg" align="center" width="7%">', comma_format($board['posts']),'</td>
<td class="windowbg" align="center" width="7%">', comma_format($board['topics']),'</td>
<td class="lastpost">';
// Unset il last post così resta vuoto
if ($board['id'] == 72)
$board['last_post']['id'] = array();
/* The board's and children's 'last_post's have:
questo è quello che ho adesso, ma non è successo niente...if (!empty($board['last_post']['id']))
if (!empty($board['last_post']['id']) && $board['id'] != 72))
// Show some basic information about the number of posts, etc.
echo '
</td>';
if ($board['is_redirect'])
echo '
<td class="windowbg" align="center" colspan="2" width="14%"><p>', $board['posts']. ' '. $txt['redirects'] , ' </p></td>
<td class="lastpost">';
else
echo '
<td class="windowbg" align="center" width="7%">', comma_format($board['posts']),'</td>
<td class="windowbg" align="center" width="7%">', comma_format($board['topics']),'</td>
<td class="lastpost">';
// Unset il last post così resta vuoto
if ($board['id'] == 72)
$board['last_post']['id'] = array();
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']) && $board['id'] != 72))
echo '
<p><strong>', $txt['last_post'], '</strong> ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'],'
</p>';
echo '
</td>
</tr>';
// Show the "Child Boards: ". (there's a
// Unset il last post così resta vuoto
if ($board['id'] == 72)
$board['last_post']['id'] = array();
Quote from: emanuele on May 06, 2013, 04:50:55 AMtolto.
Questo non serve:Code Select// Unset il last post così resta vuoto
if ($board['id'] == 72)
$board['last_post']['id'] = array();
QuoteSicuro la board sia la 72?sì
QuoteSicuro di modificare il BoardIndex.template.php giusto? (meglio chiedere)fai bene perchè a volte sbagliamo senza accorgercene, anche qui sì. Sto modificando quello del tema che abbiamo modificato e che adopero in quella sezione, daltronde tutte le altre variazioni che abbiamo apportato funzionano...
// Determine a global most recent topic.
if ($row_board['id_board'] == 72)
$this_category[$row_board['id_parent']]['children'][$row_board['id_board']]['last_post'] = array();
if ($row_board['id_parent'] == $boardIndexOptions['parent_id'] || ($isChild && !empty($row_board['poster_time']) && $this_category[$row_board['id_parent']]['last_post']['timestamp'] < forum_time(true, $row_board['poster_time']))))
if (($row_board['id_parent'] == $boardIndexOptions['parent_id'] || ($isChild && !empty($row_board['poster_time']) && $this_category[$row_board['id_parent']]['last_post']['timestamp'] < forum_time(true, $row_board['poster_time']))) && $row_board['id_board'] != 72)