Aquí les traigo un tutorial sencillo y rápido. Original de aqui y modificado a mi gusto.
Este sera el resultado:
[attachment=907]
Vamos a editar esta plantilla:
ACP -> Plantillas y Temas -> Plantillas -> TU TEMA Plantillas -> Mostrar Mensaje Plantillas -> showthread
Buscamos:
Si usamos google seo url:[spoiler]
Agregamos antes:
Ahora, abrimos el archivo showthread.php y buscamos esto:
Agregamos esta linea exactamente despues:
Quedando asi:
[/spoiler]
Si usamos normal:[spoiler]
Agregamos antes:
[/spoiler]
Para agregar las cajas redondeadas usa este codigo (gracias a DARKNESSDH).
Se supone que debe estar entre {$quickreply} y {$threadexbox}, por si tienen dudas.
Live Preview: Mi foro xD, BlixCore
Nota: Aun no le ayo como hacer que sea con enlaces SEO, pero funciona(aun así, no se si afecta al SEO)
Nota: El estilo original de mybb puede gustar mucho, pero si intentar ponerlo deben de saber que tiene muchos errores de html, quizás por lo antiguo que es.
.See Ya!
{SIGNATURE_IMAGE}
Este sera el resultado:
[attachment=907]
Vamos a editar esta plantilla:
ACP -> Plantillas y Temas -> Plantillas -> TU TEMA Plantillas -> Mostrar Mensaje Plantillas -> showthread
Buscamos:
Código:
{$threadexbox}
Si usamos google seo url:[spoiler]
Agregamos antes:
Código:
<br /><table class="tborder" cellpadding="5" cellspacing="1" border="0" width="100%" >
<tr><td class="thead"><strong>Enlaces Permanentes</strong></td></tr>
<tr><td class="trow2">
<table cellspacing="1" border="0" width="100%">
<tr>
<td><strong>Enlace del Tema:</strong></td>
<td><textarea name="link" cols="100" READONLY onfocus="javascript: this.select()" rows="1">{$mybb->settings['bburl']}/{$thread['threadlink']}</textarea></td>
</tr>
<tr>
<td><strong>Codigo Foros:</strong></td>
<td><textarea name="bbkodu" cols="100" READONLY onfocus="javascript: this.select()" rows="1">[url={$mybb->settings['bburl']}/{$thread['threadlink']}[/url]</textarea></td>
</tr>
<tr>
<td><strong>Codigo Webs:</strong></td>
<td><textarea name="htmlkodu" cols="100" READONLY onfocus="javascript: this.select()" rows="1"><a href="{$mybb->settings['bburl']}/{$thread['threadlink']}">{$thread['subject']}</a></textarea></td>
</tr>
</table>
</td>
</tr>
</table>
Ahora, abrimos el archivo showthread.php y buscamos esto:
Código PHP:
// Fetch some links
$next_oldest_link = get_thread_link($tid, 0, "nextoldest");
$next_newest_link = get_thread_link($tid, 0, "nextnewest");
Agregamos esta linea exactamente despues:
Código PHP:
$thread['threadlink'] = get_thread_link($tid, 0);
Quedando asi:
Código PHP:
// Fetch some links
$next_oldest_link = get_thread_link($tid, 0, "nextoldest");
$next_newest_link = get_thread_link($tid, 0, "nextnewest");
$thread['threadlink'] = get_thread_link($tid, 0);
[/spoiler]
Si usamos normal:[spoiler]
Agregamos antes:
Código:
<br /><table class="tborder" cellpadding="5" cellspacing="1" border="0" width="100%" >
<tr><td class="thead"><strong>Enlaces Permanentes</strong></td></tr>
<tr><td class="trow2">
<table cellspacing="1" border="0" width="100%">
<tr>
<td><strong>Enlace del Tema:</strong></td>
<td><textarea name="link" cols="100" READONLY onfocus="javascript: this.select()" rows="1">{$mybb->settings['bburl']}/showthread.php?tid={$tid}</textarea></td>
</tr>
<tr>
<td><strong>Codigo Foros:</strong></td>
<td><textarea name="bbkodu" cols="100" READONLY onfocus="javascript: this.select()" rows="1">[url={$mybb->settings['bburl']}/showthread.php?tid={$tid}]{$thread['subject']}[/url]</textarea></td>
</tr>
<tr>
<td><strong>Codigo Webs:</strong></td>
<td><textarea name="htmlkodu" cols="100" READONLY onfocus="javascript: this.select()" rows="1"><a href="{$mybb->settings['bburl']}/showthread.php?tid={$tid}">{$thread['subject']}</a></textarea></td>
</tr>
</table>
</td>
</tr>
</table>
Para agregar las cajas redondeadas usa este codigo (gracias a DARKNESSDH).
Se supone que debe estar entre {$quickreply} y {$threadexbox}, por si tienen dudas.
Live Preview: Mi foro xD, BlixCore
Nota: Aun no le ayo como hacer que sea con enlaces SEO, pero funciona(aun así, no se si afecta al SEO)
Nota: El estilo original de mybb puede gustar mucho, pero si intentar ponerlo deben de saber que tiene muchos errores de html, quizás por lo antiguo que es.
.See Ya!