[Tutorial]Enlaces Permanentes del Mensaje
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:
![[Image: EnlacePermanente.jpg]](http://i1192.photobucket.com/albums/aa339/josem0802/EnlacePermanente.jpg)
[/spoiler]
Si usamos normal:[spoiler]
Agregamos antes:
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!
Este sera el resultado:
[attachment=907]
Vamos a editar esta plantilla:
ACP -> Plantillas y Temas -> Plantillas -> TU TEMA Plantillas -> Mostrar Mensaje Plantillas -> showthread
Buscamos:
{$threadexbox}Si usamos google seo url:[spoiler]
Agregamos antes:
<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:
// 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:
$thread['threadlink'] = get_thread_link($tid, 0);Quedando asi:
// 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);![[Image: EnlacePermanente.jpg]](http://i1192.photobucket.com/albums/aa339/josem0802/EnlacePermanente.jpg)
Si usamos normal:[spoiler]
Agregamos antes:
<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>[/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!
O: Muye bueno lo probare (:
EDIT: Me funciono muy bien gracias! xD
EDIT: Me funciono muy bien gracias! xD
Esta bien, me gusto
para un foro que tiene bastante contenido y si el tema se quiera mostrar en algún otro tema de la comunidad, perfecto.
ponle redondeo a los text area se ven mejor xD
lol estop estubo bueno amigo saludos...
Idea original, pero el diseño está feo.
![[Image: signature.png]](https://omarg.me/cache/images/signature.png)
![[Image: l7Qimoa.png]](http://i.imgur.com/l7Qimoa.png)