Ho inserito la possibilità di aggiungere il testo personalizzato direttamente dal PCA.
Riscrivo direttamente tutti i passaggi da fare per chi legge per la prima volta questo post.
Nel codice sono inclusi i bottoni per Facebook, Google Plus e Twitter.
Procedimento - Prosilver
Cercare e aprire il file "./styles/prosilver/template/view_topicbody.html"
e cercare
Codice: Seleziona tutto
<hr class="divider" />
Codice: Seleziona tutto
<!-- IF postrow.S_FIRST_ROW -->
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>Condividi su</dt>
</dl>
</li>
</ul>
<ul class="topiclist forums">
<li class="row">
<dl style="width: 100%; margin-left: 5px; font-size: 1.2em;">
<dd style="width: 67%;">{CONDIVIDI}</dd>
<dd style="width: 17%; text-align: center;">
<a name="fb_share" type="button_count" share_url="" href="http://www.facebook.com/sharer.php">Condividi su Facebook</a>
</dd>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<dd style="width: 7%; text-align: center;">
<!-- Place this tag where you want the +1 button to render -->
<g:plusone size="medium" annotation="none"></g:plusone>
<!-- Place this render call where appropriate -->
<script type="text/javascript">
window.___gcfg = {lang: 'it'};
(function()
{
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
}
)();
</script>
</dd>
<dd style="width: 7%; text-align: center;">
<a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-via="vostronick" data-lang="it">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
</dd>
</dl>
<div style="float:clear;"></div>
</li>
</ul>
<span class="corners-bottom"><span></span></span>
</div>
</div> <!-- ENDIF -->
Procedimento - SubSIlver e altri Style
Cercare e aprire il file "./styles/subsilver2/template/view_topicbody.html"
e cercare il codice
Codice: Seleziona tutto
<td class="profile"><strong><a href="#wrapheader">{L_BACK_TO_TOP}</a></strong></td>
<td><div class="gensmall" style="float: {S_CONTENT_FLOW_BEGIN};"> <!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{PROFILE_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_PM --><a href="{postrow.U_PM}">{PM_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_EMAIL --><a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a> <!-- ENDIF --> </div> <div class="gensmall" style="float: {S_CONTENT_FLOW_END};"><!-- IF not S_IS_BOT --><!-- IF postrow.U_EDIT --><a href="{postrow.U_EDIT}">{EDIT_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_QUOTE --><a href="{postrow.U_QUOTE}">{QUOTE_IMG}</a> <!-- ENDIF --> <!-- ENDIF --> </div></td>
<!-- ENDIF -->
</tr>
Codice: Seleziona tutto
<!-- IF postrow.S_FIRST_ROW -->
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<th colspan="4">Condividi questa discussione</th>
</tr>
<tr>
<td class="row1" style="width: 70%;">{CONDIVIDI}</td>
<td class="row1" style="width: 15%; text-align: center;">
<a name="fb_share" type="button_count" share_url="" href="http://www.facebook.com/sharer.php">Condividi su Facebook</a>
</td>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<td class="row1" style="width: 7%; text-align: center;">
<!-- Place this tag where you want the +1 button to render -->
<g:plusone size="medium" annotation="none"></g:plusone>
<!-- Place this render call where appropriate -->
<script type="text/javascript">
window.___gcfg = {lang: 'it'};
(function()
{
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
}
)();
</script>
</td>
<td class="row1" style="width: 7%; text-align: center;">
<a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-via="vostronick" data-lang="it">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
</td>
</tr>
</table>
<br clear="all" /> <!-- ENDIF -->
Cerchiamo e apriamo il file ".\includes\acp\acp_board.php"
E cerchiamo il codice
Codice: Seleziona tutto
'site_desc' => array('lang' => 'SITE_DESC', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => false),
Codice: Seleziona tutto
'condividi' => array('lang' => 'CONDIVIDI', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => false),
Andiamo a cercare il codice
Codice: Seleziona tutto
'SITE_DESCRIPTION' => $config['site_desc'],
Codice: Seleziona tutto
'CONDIVIDI' => $config['condividi'],
Potrebbe essere necessiario fare una pulizia della cache tramite il PCA
Bene ora dal PCA potrete cambiare il vostro testo senza ogni volta andare a cambiare i file.
Buon DIvertimento
Tiestoale