[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 e...

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:
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($tid0"nextoldest");
    
$next_newest_link get_thread_link($tid0"nextnewest"); 

Agregamos esta linea exactamente despues:
Código PHP:
    $thread['threadlink'] = get_thread_link($tid0); 

Quedando asi:
Código PHP:
    // Fetch some links
    
$next_oldest_link get_thread_link($tid0"nextoldest");
    
$next_newest_link get_thread_link($tid0"nextnewest");
    
$thread['threadlink'] = get_thread_link($tid0); 

[Imagen: EnlacePermanente.jpg]
[/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>
[/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}
O: Muye bueno lo probare (:

EDIT: Me funciono muy bien gracias! xD
Esta bien, me gusto Smile 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
(1 Apr, 2011, 10:16 pm)DARKNESSDH escribió: ponle redondeo a los text area se ven mejor xD

Se puede hacer, pero creo que ya va de acuerdo a preferencias de apariencia de cada unoSmile Pero si alguien no sabe como y los quiere redondos dígame y pongo un segundo código.
{SIGNATURE_IMAGE}
Yo aqui se los dejo

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  style="border-bottom-left-radius: 7px; border-bottom-right-radius:7px; border-top-left-radius: 7px; border-top-right-radius: 7px;" 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  style="border-bottom-left-radius: 7px; border-bottom-right-radius:7px; border-top-left-radius: 7px; border-top-right-radius: 7px;" 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  style="border-bottom-left-radius: 7px; border-bottom-right-radius:7px; border-top-left-radius: 7px; border-top-right-radius: 7px;" 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>

asi se ve Big Grin

http://www.gx-evolution.com/Tema_descarg...0#pid19870

PD: gracias Sama
(1 Apr, 2011, 10:54 pm)DARKNESSDH escribió: Yo aqui se los dejo

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  style="border-bottom-left-radius: 7px; border-bottom-right-radius:7px; border-top-left-radius: 7px; border-top-right-radius: 7px;" 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  style="border-bottom-left-radius: 7px; border-bottom-right-radius:7px; border-top-left-radius: 7px; border-top-right-radius: 7px;" 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  style="border-bottom-left-radius: 7px; border-bottom-right-radius:7px; border-top-left-radius: 7px; border-top-right-radius: 7px;" 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>

asi se ve Big Grin

http://www.gx-evolution.com/Tema_descarg...0#pid19870

PD: gracias Sama

De nada, pero te dido que colocastes mucho codigo que se puede resumir en esto:
Código:
border-radius: 7px;

Y...(mas xD) border-radius solo lo lee opera pero chrome y firefox usan otros xD(usas opera como yo?)

Y tampoco necesitas agragarselo a cada caja si usas el atributo class=""

Por eso mismo no lo queria poner ya que es mucho esplicar xD

Aqui esta tu codigo pero simpleficado(segun yo debe de funcionar igual):
Código:
<style type="text/css">
.linkbox {-webkit-border-radius: 7px;
-moz-border-radius: 7px;
border-radius: 7px;}
</style>
<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 class="linkbox" border-top-left-radius: 7px; border-top-right-radius: 7px;" 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 class="linkbox" 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 class="linkbox" 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>

Usa este generados que me sirve de mucho para ahorrar tiempo, te da los codigos de opera, chrome y firefox lo mas simple posible. Aqui

Espero no te moleste pero es por ayudar >.<

Pd: Si soy un friki del css y >.>???(y de lo simple tambien)
{SIGNATURE_IMAGE}
lol estop estubo bueno amigo saludos...
Idea original, pero el diseño está feo.