Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/mybb-es.com/html/inc/class_language.php on line 201
Tutoriales xThreads
Omar G.   10 Aug, 2011, 7:53 pm
#1
Para comentarios/sugerencias/dudas y/o soporte sobre estos tutoriales por favor de abrir un tema en el foro de Soporte para Plugins MyBB 1.6 o comentar en este tema.

Por motivos de orden, no desvirtuar el tema y por que son muchos tutoriales he decidido aportar en un solo tema todo ese basto contenido.

Primero descarga, instala y activa xThreads para poder usar estos tutoriales.

Lista de Tutoriales:
  1. Descripciones en los Temas
  2. Galeria de Videos YouTube
  3. Temas Pre-formateados
Última modificación: 10 Aug, 2011, 8:38 pm por nicods_20055.
Omar G.   10 Aug, 2011, 10:39 pm
#2
Dificultad: 1/5

Con este tutorial lograremos colocar descripciones en nuestro foro que aparezcan al ver la lista de temas y cuando busquemos Smile

  1. Ve a ACP -> Configuración -> Custom Thread Fields
  2. Selecciona Add Thread Field
  3. Coloca estos datos:
    • Title: Descripcion de Tema
    • Key: desc
    • Description: Describe tus temas de forma mas completa.
    • Display Format: <div>{VALUE}</div>
    • El resto como default.
  4. Ve a abajo y presiona "Add Thread Field"
  5. Cuendo intentes crear un tema nuevo, un nuevo campo llamado "Descripcion de Tema" debe haber aparecido. Pero ahora necesitamos agregar las descripciones a los templates.
  6. Ve a ACP -> Estilos y plantillas -> Plantillas ->Tu_Tema Templates -> Mostrar foro - Plantillas -> forumdisplay_thread
  7. Busca:
    Código PHP:
    <?php 
    <div class="author smalltext">{$thread['profilelink']}</div>

Y agrega esto justo antes:
Código PHP:
<?php 
{$threadfields['desc']}
  • Guarda
  • Ve a ACP -> Estilos y plantillas -> Plantillas ->Tu_Tema Templates -> Búsqueda - Plantillas -> search_results_threads_thread
  • Busca:
    Código PHP:
    <?php 
    <div class="author smalltext">{$thread['profilelink']}</div>

  • Y agrega esto justo antes:
    Código PHP:
    <?php 
    {$threadfields['desc']}

  • Imagenes:
    http://img24.imageshack.us/img24/964/xth...cripti.png (crear tema)
    http://img190.imageshack.us/img190/964/x...cripti.png (lista de temas)
    http://img560.imageshack.us/img560/964/x...cripti.png (busqueda)
    Omar G.   2 Sep, 2011, 7:36 am
    #3
    Dificultad: 2/5

    Con este tutorial lograremos colocar campos que los usuarios deberán llenar antes de crear sus temas, algo parecido a un foro de soporte.

    1. Ve a ACP -> Configuración -> Foros y mensajes -> Edita tu foro
    2. Edita conforme esto:
      • Template Prefix: intro_
      • Show first post on every showthread page: Yes
    3. Ve a ACP -> Configuración -> Custom Thread Fields -> Add Thread Field
      • Title: Direccion de tu Foro
      • Key: wwwurl
      • Description: Llena este campo con tu la URL de tu foro. (Requerido)
      • Applicable Forums: (foro seleccionado en el primer paso)
      • Input Field Type:: Textbox
      • Editable by / Required Field?:: Everyone (Required)
      • Display Format: <strong>URL del Foro: {VALUE}</strong><br />
      • Add Thread Field
    4. Repite el paso anterior.
      • Title: Versión de tu foro
      • Key: forumurl
      • Description: Llena este campo con tu la versión de tu foro. (Opcional)
      • Applicable Forums: (foro seleccionado en el primer paso)
      • Input Field Type:: Textbox
      • Editable by / Required Field?:: Everyone
      • Display Order: 2
      • Blank Replacement Value: <strong>Version de Foro: <i>vació</i></strong><br />
      • Display Format: <strong>Version de Foro: {VALUE}</strong><br />
      • Add Thread Field
    5. ACP -> Estilos y plantillas -> Plantillas -> Plantillas globales -> Agregar plantilla
      • Nombre de la plantilla: intro_postbit_first
      • Contenido:
        Código PHP:
        <?php 
        {$ignore_bit}
        <
        a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
        <
        table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
        <
        tbody>
        <
        tr>
        <
        td class="tcat">
        <
        div class="float_left smalltext">
        {
        $post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
        </
        div>
        {
        $post['posturl']}
        </
        td>
        </
        tr>

        <
        tr>
        <
        td class="trow1 {$unapproved_shade}">
        <
        table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
        <
        tr>
        <
        td class="post_avatar" width="1" style="{$post['avatar_padding']}">
        {
        $post['useravatar']}
        </
        td>
        <
        td class="post_author">
        <
        strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
        <
        span class="smalltext">
        {
        $post['usertitle']}<br />
        {
        $post['userstars']}
        {
        $post['groupimage']}
        </
        span>
        </
        td>
        <
        td class="smalltext post_author_info" width="165">
        {
        $post['user_details']}
        </
        td>
        </
        tr>
        </
        table>
        </
        td>
        </
        tr>

        <
        tr>
        <
        td class="trow2 post_content {$unapproved_shade}">
        <
        span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>

        <
        div class="post_body" id="pid_{$post['pid']}">
        {
        $GLOBALS['threadfields']['wwwurl']}{$GLOBALS['threadfields']['forumurl']}{$post['message']}
        </
        div>
        {
        $post['attachments']}
        {
        $post['signature']}

        <
        div class="post_meta" id="post_meta_{$post['pid']}">
        {
        $post['iplogged']}
        </
        div>
        </
        td>
        </
        tr>

        <
        tr>
        <
        td class="trow1 post_buttons {$unapproved_shade}">
        <
        div class="author_buttons float_left">
        {
        $post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
        </
        div>
        <
        div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
        </
        div>
        </
        td>
        </
        tr>
        </
        tbody>
        </
        table>
    El contenido de esta plantilla es el mismo de la plantilla postbit predeterminada de MyBB, si tienes una plantilla personalizada, debes copiar su contenido aqui, buscar {$post['message']} y agregar justo antes esto {$GLOBALS['threadfields']['wwwurl']}{$GLOBALS['threadfields']['forumurl']}.
  • ACP -> Estilos y plantillas -> Plantillas -> Plantillas globales -> Agregar plantilla
    • Nombre de la plantilla: intro_postbit_first_classic
    • Contenido:
      Código PHP:
      <?php 
      {$ignore_bit}
      <
      table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
      <
      tr>
      <
      td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
      <
      strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
      <
      span class="smalltext">
      {
      $post['usertitle']}<br />
      {
      $post['userstars']}
      {
      $post['groupimage']}
      {
      $post['useravatar']}<br />
      {
      $post['user_details']}{$post['newpoints_postbit']}
      </
      span>
      </
      td>
      <
      td class="{$altbg}" valign="top">
      <
      table width="100%">
      <
      tr><td>{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
      <
      br />
      <
      div id="pid_{$post['pid']}" style="padding: 5px 0 5px 0;">
      {
      $GLOBALS['threadfields']['wwwurl']}{$GLOBALS['threadfields']['forumurl']}{$post['message']}
      </
      div>
      {
      $post['attachments']}
      {
      $post['signature']}
      <
      div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
      <
      div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
      {
      $post['iplogged']}
      </
      div>
      </
      td></tr>
      </
      table>
      </
      td>
      </
      tr>
      <
      tr>
      <
      td class="{$altbg}" style="white-space: nowrap; text-align: center; vertical-align: middle;"><span class="smalltext">{$post['postdate']} {$post['posttime']}</span></td>
      <
      td class="{$altbg}" style="vertical-align: middle;">
      <
      table width="100%" border="0" cellpadding="0" cellspacing="0">
      <
      tr valign="bottom">
      <
      td align="left" ><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></td>
      <
      td align="right">{$post['button_tyl']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}</td>
      </
      tr>
      </
      table>
      </
      td>
      </
      tr>
      </
      table>
  • El contenido de esta plantilla es el mismo de la plantilla postbit_classic predeterminada de MyBB, si tienes una plantilla personalizada, debes copiar su contenido aqui, buscar {$post['message']} y agregar justo antes esto {$GLOBALS['threadfields']['wwwurl']}{$GLOBALS['threadfields']['forumurl']}.

    Imagenes (directo de MyBBHacks ^^u):
    http://i42.tinypic.com/xc7x8m.jpg (crear tema)
    http://i40.tinypic.com/2v2igq8.jpg (resultado postbit)
    http://i40.tinypic.com/10xeovp.jpg (resultado postbit_classic)
    http://i44.tinypic.com/33w8go1.jpg (error mostrado si no llenan el campo obligatorio)

    Como verán esto puede ser bien usado en foros de descargas, información de películas, foros de soporte, etc.
    Omar G.   2 Oct, 2011, 6:26 am
    #4
    Dificultad: 4/5

    Con este tutorial lograremos convertir el foro que deseemos en una galería de Youtube, con su propio estilo y permisos Smile

    1. Ve a ACP -> Configuración -> Custom Thread Fields -> Add Thread Field
      • Title: ID/URL Video YouTube
      • Key: ytvgalid
      • Applicable Forums: (Eligimos un foro, en este caso "Foro Youtube")
      • Input Field Type: Textbox
      • Maximum Text Length: 50
      • Field Input Width: 50
      • Display Format:
        Código:
        {VALUE$1}{VALUE$2}
        Si el usuario coloca el ID del video, {VALUE$1} se usara y {VALUE$2} quedara vació.
        Si el usuario coloca la URL del video, {VALUE$2} se usara y {VALUE$1} quedara vació.
      • Text Mask Filter:
        Código:
        ^(?:([a-zA-Z0-9_\-+]{8,16})$|http\://(?:[a-z]{1,4}\.)?youtube\.com/watch\?v=([a-zA-Z0-9_\-+]{8,16}))
        Este código permitirá solo el uso de estas url:
        Cita:Video_ID
        http://www.youtube.com/watch?v=video_id
        http://www.youtube.com/watch?v=video_id&feature=featured
        http://youtube.com/watch?v=video_id
        http://youtube.com/watch?v=video_id&feature=featured
      • Editable by / Required Field?: Everyone (required)
      • Add Thread Field
      Esta sera la variable para colocar en la plantilla: {$GLOBALS['threadfields']['ytvgalid']}.
    2. Ve a ACP -> Configuración -> Custom Thread Fields -> Add Thread Field
      • Title: Categoria de Videos
      • Key: ytvgalcat
      • Applicable Forums: (mismo foro anterior "Foro Youtube")
      • Input Field Type: Listbox
      • Field Input Height: 1
      • Values List:
        Código:
        Musica
        Anime
        Juegos
        Modificalo a tu gusto.
      • Editable by / Required Field?: Everyone (required)
      • Allow Filtering: Yes
        Tendremos que agregar las URL del filtro manualmente en los templates, los que usaremos aqui se encuentran en estos:
        1. Template #7 - ytvgal_forumdisplay_threadlist
        2. Template #16 - ytvgal_showthread
        Si agregas por ejemplo, "Chistes" a la lista, debes editar la plantilla manualmente y agregar la URL de filtro.
      • Add Thread Field
    3. ACP -> Foros y mensajes -> (Foro anterior, en este caso "Foro Youtube") -> Opciones -> Editar Foro
      • Template Prefix: ytvgal_
      • Thread Grouping: 4
      • Show first post on every showthread page: Yes
      • Enable XThreads' Inline Forum Search: Yes
      • Override Threads Per Page: 20
        Modificalo a tu gusto.
      • Override Posts Per Page: 5
        Modificalo a tu gusto.
      • Force Postbit Layout: Force horizontal postbit layout
      • Custom WOL Text:
        • Forum Display: Viendo <a href="{1}">{2}</a>
        • New Thread: Agregando Nuevo Video
        • New Reply: Comentando Video <a href="{1}">{2}</a>
        • Show Thread: Viendo Video <a href="{1}">{2}</a>
        Podemos editar las opciones del foro, por ejemplo para no permitir el uso que los usuario usen los MyCode [IMG], [VIDEO].

        También podemos modificar los permisos del foro para decidir quien puede dejar videos, comentar, o ver, de la misma forma que cualquier otro foro.
    4. ACP -> Estilos y plantillas -> Plantillas -> Plantillas globales -> Agregar plantilla
      • Nombre de la plantilla: ytvgal_forumdisplay_group_sep
      • Contenido:
        Código PHP:
        <?php 
        </tr><tr>
  • Nombre de la plantilla: ytvgal_forumdisplay_inlinemoderation_col
  • Contenido:
    Código PHP:
    <?php 
    <td align="center" width="1" style="background: #ADCBE7; border-top: 2px solid #0F5C8E; border-bottom: 2px solid #0F5C8E;"><input type="checkbox" name="allbox" onclick="inlineModeration.checkAll(this)" /></td>
  • Nombre de la plantilla: ytvgal_forumdisplay_nothreads
  • Contenido:
    Código PHP:
    <?php 
    <td>
    <
    table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%" style="border-bottom: 2px solid #8DC93E;">
    <
    tr>
    <
    td style="background: #D6ECA6; border-top: 2px solid #8DC93E; border-bottom: 2px solid #8DC93E;">
    <
    strong>No Video</strong>
    </
    td>
    </
    tr>
    <
    tr>
    <
    td align="center">
    {
    $lang->nothreads}
    </
    td>
    </
    tr>
    </
    table>
    </
    td>
  • Nombre de la plantilla: ytvgal_forumdisplay_searchforum_inline
  • Contenido:
    Código PHP:
    <?php 
    <table border="0" cellspacing="{$GLOBALS['theme']['borderwidth']}" cellpadding="{$GLOBALS['theme']['tablespace']}" width="100%" style="border-bottom: 2px solid #0F5C8E;">
    <
    tr>
    <
    td style="background: #ADCBE7; border-top: 2px solid #0F5C8E; border-bottom: 2px solid #0F5C8E;">
    <
    strong>Search Video</strong>
    </
    td>
    </
    tr>
    <
    tr>
    <
    td align="center">
    <
    form action="forumdisplay.php" method="get">
    <
    input type="text" class="textbox" name="search" value="{$searchval}" /> {$gobutton}
    <
    input type="hidden" name="fid" value="{$fid}" />
    <
    input type="hidden" name="sortby" value="{$sortby}" />
    <
    input type="hidden" name="order" value="{$sortordernow}" />
    <
    input type="hidden" name="datecut" value="{$datecut}" />
    </
    form>
    </
    td>
    </
    tr>
    </
    table>
  • Nombre de la plantilla: ytvgal_forumdisplay_sticky_sep
  • Contenido:
    Código PHP:
    <?php 
    <td colspan="{$colspan}" style="display: none;"></td>
    </
    tr>
    <
    tr>
  • Nombre de la plantilla: ytvgal_forumdisplay_thread
  • Contenido:
    Código PHP:
    <?php 
    <td width="25%" valign="top">
    <
    table border="0" width="100%">
    <
    tr>
    {
    $modbit}
    <
    td valign="top" align="center">
    <
    a href="{$thread['threadlink']}">
    <
    img src="http://img.youtube.com/vi/{$GLOBALS['threadfields']['ytvgalid']}/default.jpg" alt="" title="{$thread['subject']}" />
    </
    a>
    <
    div style="width: 150px; overflow: hidden; white-space: nowrap">
    <
    a href="{$thread['threadlink']}" class="{$inline_edit_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>
    </
    div>
    <
    div>
    {
    $rating}
    <
    span class="smalltext">
    By: {$thread['profilelink']}<br />
    {
    $thread['threaddate']}, {$thread['threadtime']}<br />
    {
    $thread['views']} {$lang->views}, {$thread['replies']}{$unapproved_posts} Comments
    </span>
    </
    div>
    </
    td>
    </
    tr>
    <
    tr>
    <
    td valign="top" colspan="2">
    {
    $thread['multipage']}
    </
    td>
    </
    tr>
    </
    table>
    </
    td>
  • Nombre de la plantilla: ytvgal_forumdisplay_threadlist
  • Contenido:
    Código PHP:
    <?php 
    <table width="100%" border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" style="clear: both;">
    <
    tr>
    <
    td valign="middle" colspan="2">
    <
    a href="{$forumurl}"><strong>Categories</strong></a>
    <
    table border="0" width="100%">
    <
    tr>
    <
    td align="center">
    <
    a href="{$forumurl_q}filtertf_ytvgalcat=Music"><img src="http://i28.tinypic.com/2vskbwx.jpg" alt="" /></a><br />
    <
    a href="{$forumurl_q}filtertf_ytvgalcat=Music"><strong>Music</strong></a>
    </
    td>
    <
    td align="center">
    <
    a href="{$forumurl_q}filtertf_ytvgalcat=Anime"><img src="http://i30.tinypic.com/30c9agi.jpg" alt="" /></a><br />
    <
    a href="{$forumurl_q}filtertf_ytvgalcat=Anime"><strong>Anime</strong></a>
    </
    td>
    <
    td align="center">
    <
    a href="{$forumurl_q}filtertf_ytvgalcat=Funny"><img src="http://i30.tinypic.com/34t6fsj.jpg" alt="" /></a><br />
    <
    a href="{$forumurl_q}filtertf_ytvgalcat=Funny"><strong>Funny</strong></a>
    </
    td>
    </
    tr>
    </
    table>
    </
    td>
    </
    tr>
    <
    tr>
    <
    td valign="top">
    <
    div class="float_right">{$newthread}</div>
    <
    table width="100%" border="0">
    <
    tr>
    <
    td>
    <
    table border="0">
    <
    tr>
    <
    td class="smalltext"><strong>Sorted By:</strong></td>
    <
    td class="smalltext"><strong><a href="{$sorturl}&amp;sortby=subject&amp;order=asc">Title</a> {$orderarrow['subject']}</strong> | </td>
    <
    td class="smalltext"><strong><a href="{$sorturl}&amp;sortby=starter&amp;order=asc">Poster</a> {$orderarrow['starter']}</strong> | </td>
    <
    td class="smalltext"><strong><a href="{$sorturl}&amp;sortby=replies&amp;order=desc">Comments</a> {$orderarrow['replies']}</strong> | </td>
    <
    td class="smalltext"><strong><a href="{$sorturl}&amp;sortby=views&amp;order=desc">{$lang->views}</a> {$orderarrow['views']}</strong> | </td>
    {
    $ratingcol}
    <
    td class="smalltext"><strong><a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc">Last Comments</a> {$orderarrow['lastpost']}</strong></td>
    </
    tr>
    </
    table>
    </
    td>
    </
    tr>
    <
    tr>
    <
    td>
    <
    table border="0" width="100%">
    <
    tr>
    {
    $threads}{$nullthreads}
    </
    tr>
    </
    table>
    </
    td>
    </
    tr>
    </
    table>
    <
    div class="float_left">
    {
    $multipage}
    </
    div>
    </
    td>
    </
    tr>
    <
    tr>
    <
    td>
    <
    table border="0" width="100%">
    <
    tr>
    <
    td valign="middle" align="center" class="smalltext">
    <
    img src="http://i27.tinypic.com/2w3njbn.jpg" alt="" /><br />
    YouTube Video Gallery<br />
    Powered By <a href="http://mybbhacks.zingaburga.com">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
    </
    td>
    <
    td valign="top" width="600">
    <
    table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%">
    <
    tr>
    <
    td align="center" style="background: #ADCBE7; border-top: 2px solid #0F5C8E; border-bottom: 2px solid #0F5C8E;">
    <
    form action="forumdisplay.php" method="get">
    <
    input type="hidden" name="fid" value="{$fid}" />
    <
    select name="sortby">
    <
    option value="subject" {$sortsel['subject']}>{$lang->sort_by_subject}</option>
    <
    option value="lastpost" {$sortsel['lastpost']}>{$lang->sort_by_lastpost}</option>
    <
    option value="starter" {$sortsel['starter']}>{$lang->sort_by_starter}</option>
    <
    option value="started" {$sortsel['started']}>{$lang->sort_by_started}</option>
    {
    $ratingsort}
    <
    option value="replies" {$sortsel['replies']}>{$lang->sort_by_replies}</option>
    <
    option value="views" {$sortsel['views']}>{$lang->sort_by_views}</option>
    </
    select>
    <
    select name="order">
    <
    option value="asc" {$ordersel['asc']}>{$lang->sort_order_asc}</option>
    <
    option value="desc" {$ordersel['desc']}>{$lang->sort_order_desc}</option>
    </
    select>
    <
    select name="datecut">
    <
    option value="1" {$datecutsel['1']}>{$lang->datelimit_1day}</option>
    <
    option value="5" {$datecutsel['5']}>{$lang->datelimit_5days}</option>
    <
    option value="10" {$datecutsel['10']}>{$lang->datelimit_10days}</option>
    <
    option value="20" {$datecutsel['20']}>{$lang->datelimit_20days}</option>
    <
    option value="50" {$datecutsel['50']}>{$lang->datelimit_50days}</option>
    <
    option value="75" {$datecutsel['75']}>{$lang->datelimit_75days}</option>
    <
    option value="100" {$datecutsel['100']}>{$lang->datelimit_100days}</option>
    <
    option value="365" {$datecutsel['365']}>{$lang->datelimit_lastyear}</option>
    <
    option value="9999" {$datecutsel['9999']}>{$lang->datelimit_beginning}</option>
    </
    select>
    {
    $gobutton}
    </
    form>
    </
    td>
    {
    $inlinemodcol}
    </
    tr>
    </
    table>
    {
    $searchforum}
    </
    td>
    </
    tr>
    </
    table>
    <
    br class="clear" />
    <
    div class="float_right">
    {
    $forumjump}
    </
    div>
    <
    br class="clear" />
    </
    td>
    </
    tr>
    </
    table>
    <
    div class="float_right">
    {
    $inlinemod}
    </
    div>
    <
    br class="clear" />
    {
    $inline_edit_js}
  • Nombre de la plantilla: ytvgal_forumdisplay_threadlist_rating
  • Contenido:
    Código PHP:
    <?php 
    <td class="smalltext">
    <
    strong><a href="{$sorturl}&amp;sortby=rating&amp;order=desc">{$lang->rating}</a> {$orderarrow['rating']}</strong> |
    <
    script type="text/javascript" src="jscripts/rating.js?ver=1400"></script>
    <
    script type="text/javascript">
    <!--
    lang.stars = new Array();
    lang.stars[1] = "{$lang->one_star}";
    lang.stars[2] = "{$lang->two_stars}";
    lang.stars[3] = "{$lang->three_stars}";
    lang.stars[4] = "{$lang->four_stars}";
    lang.stars[5] = "{$lang->five_stars}";
    // -->
    </script>
    </
    td>
  • Nombre de la plantilla: ytvgal_forumdisplay_threads_sep
  • Contenido:
    Código PHP:
    <?php 
    <td colspan="{$colspan}" style="display: none;"></td>
    </
    tr>
    <
    tr>
  • Nombre de la plantilla: ytvgal_forumdisplay_thread_modbit
  • Contenido:
    Código PHP:
    <?php 
    <td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap; width: 1px;"><input type="checkbox" class="checkbox" name="inlinemod_{$multitid}" id="inlinemod_{$multitid}" value="1" {$inlinecheck} /></td>
  • Nombre de la plantilla: ytvgal_forumdisplay_thread_null
  • Contenido:
    Código PHP:
    <?php 
    <td></td>
  • Nombre de la plantilla: ytvgal_forumdisplay_thread_rating
  • Contenido:
    Código PHP:
    <?php 
    <div id="rating_table_{$thread['tid']}" align="center">
    <
    ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}">
    <
    li style="width: {$thread['width']}%" class="current_rating" id="current_rating_{$thread['tid']}">{$ratingvotesav}</li>
    </
    ul>
    <
    script type="text/javascript">
    <!--
    Rating.build_forumdisplay({$thread['tid']}, { width: '{$thread['width']}', extra_class: '{$not_rated}', current_average: '{$ratingvotesav}' });
    // -->
    </script>
    </
    div>
  • Nombre de la plantilla: ytvgal_postbit
  • Contenido:
    Código PHP:
    <?php 
    {$ignore_bit}
    <
    a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
    <
    table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%" style="border-bottom: 2px solid #8DC93E; {$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    <
    tbody>
    <
    tr>
    <
    td style="background: #D6ECA6; border-top: 2px solid #8DC93E; border-bottom: 2px solid #8DC93E;">
    <
    div class="float_left smalltext">
    {
    $post['onlinestatus']} <span style="vertical-align: top;"><strong>{$post['profilelink']}</strong> - {$post['postdate']}, {$post['posttime']}</span>
    </
    div>
    {
    $post['posturl']}
    <
    br class="clear" />
    <
    span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
    </
    td>
    </
    tr>
    <
    tr>
    <
    td class="{$unapproved_shade}">
    <
    table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
    <
    tr>
    <
    td class="post_avatar" width="1" style="{$post['avatar_padding']}" valign="top" rowspan="2">
    {
    $post['useravatar']}
    </
    td>
    <
    td class="post_author" valign="top">
    <
    span class="smalltext">
    <
    strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong>
    </
    span>
    <
    span class="post_meta float_right smalltext" id="post_meta_{$post['pid']}">
    {
    $post['iplogged']}
    </
    span>
    <
    div class="post_body" id="pid_{$post['pid']}">
    {
    $post['message']}
    </
    div>
    </
    td>
    </
    tr>
    <
    tr>
    <
    td height="1">
    <
    a href="#" id="post_options_{$post['pid']}" style="display: none"><img src="images/usercp/options.gif" alt="Post Options" title="Post Options" /></a>
    <
    div class="float_right post_management_buttons">
    {
    $post['button_multiquote']}{$post['button_edit']}
    </
    div>
    <
    div id="post_options_{$post['pid']}_popup" class="popup_menu_post_options" style="display: none;">
    <
    div class="popup_item_container_post_options post_management_buttons" style="background: #D6ECA6; border-top: 2px solid #8DC93E; border-bottom: 2px solid #8DC93E; padding: 1px 7px;">
    {
    $post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_quote']}{$post['button_report']}{$post['button_warn']}{$post['button_quickdelete']}
    </
    div>
    </
    div>
    <
    noscript>
    <
    div class="post_management_buttons float_right" style="margin-right: 5px;">
    {
    $post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}
    </
    div>
    </
    noscript>
    </
    td>
    </
    tr>
    </
    table>
    </
    td>
    </
    tr>
    </
    tbody>
    </
    table>
    <
    script type="text/javascript">
    // <!--
    if(use_xmlhttprequest == "1")
    {
    new
    PopupMenu("post_options_{$post['pid']}");
    }
    $(
    'post_options_{$post['pid']}').style.display = '';
    // -->
    </script>
  • Nombre de la plantilla: ytvgal_postbit_first
  • Contenido:
    Código PHP:
    <?php 
    {$ignore_bit}
    <
    a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
    <
    table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%" style="border-bottom: 2px solid #FFD324; {$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    <
    tbody>
    <
    tr>
    <
    td style="background: #FFF6BF; border-top: 2px solid #FFD324; border-bottom: 2px solid #FFD324;">
    <
    div class="float_left smalltext">
    {
    $post['onlinestatus']} <span style="vertical-align: top;"><strong>{$post['profilelink']}</strong> - {$post['postdate']}, {$post['posttime']}</span>
    </
    div>
    {
    $post['posturl']}
    <
    br class="clear" />
    <
    span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
    </
    td>
    </
    tr>
    <
    tr>
    <
    td class="{$unapproved_shade}">
    <
    table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
    <
    tr>
    <
    td class="post_avatar" width="1" style="{$post['avatar_padding']}" valign="top" rowspan="2">
    {
    $post['useravatar']}
    </
    td>
    <
    td class="post_author" valign="top">
    <
    span class="smalltext">
    <
    strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong>
    </
    span>
    <
    span class="post_meta float_right smalltext" id="post_meta_{$post['pid']}">
    {
    $post['iplogged']}
    </
    span>
    <
    div class="post_body" id="pid_{$post['pid']}">
    {
    $post['message']}
    </
    div>
    </
    td>
    </
    tr>
    <
    tr>
    <
    td height="1">
    <
    a href="#" id="post_options_{$post['pid']}" style="display: none"><img src="images/usercp/options.gif" alt="Post Options" title="Post Options" /></a>
    <
    div class="float_right post_management_buttons">
    {
    $post['button_multiquote']}{$post['button_edit']}
    </
    div>
    <
    div id="post_options_{$post['pid']}_popup" class="popup_menu_post_options" style="display: none;">
    <
    div class="popup_item_container_post_options post_management_buttons" style="background: #FFF6BF; border-top: 2px solid #FFD324; border-bottom: 2px solid #FFD324; padding: 1px 7px;">
    {
    $post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_quote']}{$post['button_report']}{$post['button_warn']}{$post['button_quickdelete']}
    </
    div>
    </
    div>
    <
    noscript>
    <
    div class="post_management_buttons float_right" style="margin-right: 5px;">
    {
    $post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}
    </
    div>
    </
    noscript>
    </
    td>
    </
    tr>
    </
    table>
    </
    td>
    </
    tr>
    </
    tbody>
    </
    table>
    <
    script type="text/javascript">
    // <!--
    if(use_xmlhttprequest == "1")
    {
    new
    PopupMenu("post_options_{$post['pid']}");
    }
    $(
    'post_options_{$post['pid']}').style.display = '';
    // -->
    </script>
  • Nombre de la plantilla: ytvgal_postbit_iplogged_hiden
  • Contenido:
    Código PHP:
    <?php 
    <strong><a href="moderation.php?action=getip&amp;pid={$post['pid']}">[IP]</a></strong>
  • Nombre de la plantilla: ytvgal_showthread
  • Contenido:
    Código PHP:
    <?php 
    <html>
    <
    head>
    <
    title>{$thread['subject']}</title>
    {
    $headerinclude}
    <
    script type="text/javascript">
    <!--
    var
    quickdelete_confirm = "{$lang->quickdelete_confirm}";
    // -->
    </script>
    <
    script type="text/javascript" src="jscripts/thread.js?ver=1400"></script>
    </
    head>
    <
    body>
    {
    $header}
    <
    table width="100%" border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" style="clear: both; width: 100%;">
    <
    tr>
    <
    td valign="middle" colspan="2">
    <
    a href="{$forumurl}"><strong>Categories</strong></a>
    <
    table border="0" width="100%">
    <
    tr>
    <
    td align="center">
    <
    a href="{$forumurl_q}filtertf_ytvgalcat=Music"><img src="http://i28.tinypic.com/2vskbwx.jpg" alt="" /></a><br />
    <
    a href="{$forumurl_q}filtertf_ytvgalcat=Music"><strong>Music</strong></a>
    </
    td>
    <
    td align="center">
    <
    a href="{$forumurl_q}filtertf_ytvgalcat=Anime"><img src="http://i30.tinypic.com/30c9agi.jpg" alt="" /></a><br />
    <
    a href="{$forumurl_q}filtertf_ytvgalcat=Anime"><strong>Anime</strong></a>
    </
    td>
    <
    td align="center">
    <
    a href="{$forumurl_q}filtertf_ytvgalcat=Funny"><img src="http://i30.tinypic.com/34t6fsj.jpg" alt="" /></a><br />
    <
    a href="{$forumurl_q}filtertf_ytvgalcat=Funny"><strong>Funny</strong></a>
    </
    td>
    </
    tr>
    </
    table>
    </
    td>
    </
    tr>
    </
    table>
    {
    $pollbox}
    <
    div class="float_right">
    {
    $newreply}
    </
    div>
    <
    table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" style="border-top-width: 0; width: 100%;">
    <
    tr>
    <
    td valign="top" width="50%">
    <
    div align="center">
    <
    strong>{$thread['subject']}</strong>
    </
    div>
    {
    $ratethread}
    <
    div align="center">
    <
    object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{$GLOBALS['threadfields']['ytvgalid']}" width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{$GLOBALS['threadfields']['ytvgalid']}" /><param name="FlashVars" value="playerMode=embedded" /><p>{$thread['subject']}</p></object>
    </
    div>
    <
    br class="clear" />
    <
    div>
    {
    $first_post}
    </
    div>
    <
    br class="clear" />
    <
    div align="center">
    <
    strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
    </
    div>
    <
    br class="clear" />
    <
    div align="center" class="smalltext">
    <
    img src="http://i27.tinypic.com/2w3njbn.jpg" alt="" /><br />
    YouTube Video Gallery<br />
    Powered By <a href="http://mybbhacks.zingaburga.com">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
    </
    div>
    </
    td>
    <
    td width="1">&nbsp;</td>
    <
    td valign="top">
    <
    div style="float: left;">
    <
    strong>Comments</strong>
    </
    div>
    <
    div style="float: right;">
    <
    span class="smalltext"><strong><a href="showthread.php?mode=threaded&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span>
    </
    div>
    <
    br class="clear" />
    <
    div id="posts">
    {
    $posts}
    </
    div>
    <
    div class="float_right">
    {
    $multipage}
    </
    div>
    {
    $search_thread}
    </
    td>
    </
    tr>
    </
    table>
    {
    $threadexbox}
    {
    $quickreply}
    <
    br style="clear: both;" />
    {
    $similarthreads}
    <
    br style="clear: both;" />
    <
    div class="float_right" style="text-align: right;">
    {
    $moderationoptions}
    {
    $forumjump}
    </
    div>
    <
    div class="float_left">
    <
    ul class="thread_tools">
    <
    li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
    <
    li class="sendthread"><a href="sendthread.php?tid={$tid}">{$lang->send_thread}</a></li>
    <
    li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a></li>
    </
    ul>
    </
    div>
    <
    br style="clear: both;" />
    {
    $footer}
    </
    body>
    </
    html>
  • Nombre de la plantilla: ytvgal_showthread_noreplies
  • Contenido:
    Código PHP:
    <?php 
    <table border="0" cellspacing="{$GLOBALS['theme']['borderwidth']}" cellpadding="{$GLOBALS['theme']['tablespace']}" width="100%" style="border-bottom: 2px solid #8DC93E;" id="xthreads_noreplies">
    <
    tbody>
    <
    tr>
    <
    td style="background: #D6ECA6; border-top: 2px solid #8DC93E; border-bottom: 2px solid #8DC93E;">
    <
    div class="float_left smalltext">
    <
    span style="vertical-align: top;">
    <
    strong>{$GLOBALS['thread']['subject']}</strong> - {$GLOBALS['thread']['threaddate']}, {$GLOBALS['thread']['threadtime']}
    </
    span>
    </
    div>
    </
    td>
    </
    tr>
    <
    tr>
    <
    td align="center">
    <
    strong><em>No Comment Yet</em></strong>
    </
    td>
    </
    tr>
    </
    tbody>
    </
    table>
  • Nombre de la plantilla: ytvgal_showthread_ratethread
  • Contenido:
    Código PHP:
    <?php 
    <div align="center">
    <
    table>
    <
    tr>
    <
    td>
    <
    script type="text/javascript" src="jscripts/rating.js?ver=1400"></script>
    <
    div id="success_rating_{$thread['tid']}"></div>
    <
    div class="inline_rating">
    <
    ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}">
    <
    li style="width: {$thread['width']}%" class="current_rating" id="current_rating_{$thread['tid']}">{$ratingvotesav}</li>
    <
    li><a class="one_star" title="{$lang->one_star}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=1&amp;my_post_key={$mybb->post_code}">1</a></li>
    <
    li><a class="two_stars" title="{$lang->two_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=2&amp;my_post_key={$mybb->post_code}">2</a></li>
    <
    li><a class="three_stars" title="{$lang->three_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=3&amp;my_post_key={$mybb->post_code}">3</a></li>
    <
    li><a class="four_stars" title="{$lang->four_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=4&amp;my_post_key={$mybb->post_code}">4</a></li>
    <
    li><a class="five_stars" title="{$lang->five_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=5&amp;my_post_key={$mybb->post_code}">5</a></li>
    </
    ul>
    </
    div>
    </
    td>
    </
    tr>
    </
    table>
    </
    div>
  • Nombre de la plantilla: ytvgal_showthread_search
  • Contenido:
    Código PHP:
    <?php 
    <br class="clear" />
    <
    br class="clear" />
    <
    table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%" style="border-bottom: 2px solid #0F5C8E;">
    <
    tr>
    <
    td style="background: #ADCBE7; border-top: 2px solid #0F5C8E; border-bottom: 2px solid #0F5C8E;">
    <
    strong>Search Comments</strong>
    </
    td>
    </
    tr>
    <
    tr>
    <
    td align="center">
    <
    form action="search.php" method="post">
    <
    input type="hidden" name="action" value="thread" />
    <
    input type="hidden" name="tid" value="{$thread['tid']}" />
    <
    input type="text" name="keywords" value="{$lang->enter_keywords}" onfocus="if(this.value == '{$lang->enter_keywords}') { this.value = ''; }" onblur="if(this.value=='') { this.value='{$lang->enter_keywords}'; }" class="textbox" size="25" />
    <
    input type="submit" class="button" value="Search" />
    </
    form>
    </
    td>
    </
    tr>
    </
    table>

  • Imágenes:
    http://img17.imageshack.us/img17/7599/ytvgal1.jpg (crear tema)
    http://img838.imageshack.us/img838/2082/ytvgal2.jpg (vista de foro)
    http://img10.imageshack.us/img10/936/ytvgal3.jpg (vista de video)

    Original: http://mybbhacks.zingaburga.com/showthread.php?tid=292

    {SIGNATURE_IMAGE}
      
    Powered By MyBB, © 2002-2024 MyBB Group.
    Made with by Curves UI.