Bienvenido, Invitado
Nombre de Usuario Contraseña: Recordarme

Personalizar Fireboard Joni Edition
(1 viendo) (1) Invitado
  • Página:
  • 1

TEMA: Personalizar Fireboard Joni Edition

Personalizar Fireboard Joni Edition hace 3 años, 5 meses #9249

En este post iré poniendo cómo personalizar fireboard Joni Edition

La mejor forma de editar un archivo (php, js, html, css, ect) es como el programa Notepad++

Para buscar pulsa CONTROL + F
Para remplazar automáticamente pulsa CONTROL + H (recomendado sólo si el trabajo es repetitivo)
  • JoniJnm
  • DESCONECTADO
  • Administrador
  • Temas: 4167
  • Karma: 144
Última Edición: hace 3 años, 1 mes Por JoniJnm.
El tema ha sido cerrado.
Los siguientes usuarios han agradecido: JoniJnm

Dejar el buscador original de fireboard hace 3 años, 5 meses #9251

Dejar el buscador original de fireboard


1. Abre:
components/com_kunena/template/default_ex/fb_layout.php

2. Busca:
function getSearchBox()

3. Borra hacia abajo todo hasta que encuentres un corchete que cierre (está al final del todo):
}

4. Después pega esto:
function getSearchBox()
{
$return = '<div id="fb_searchbox"><form action="' . sefRelToAbs(JB_LIVEURLREL . '&amp;func=search') . '" name="searchFB" method="post">';
$boxsize = strlen(_GEN_SEARCH_BOX);
 
if ($boxsize <= 15) { $boxsize = 15; }
 
$return .= '<input class="fb_search_inputbox fbs" type="text" name="searchword" size="'. $boxsize . '" value="' . _GEN_SEARCH_BOX . '" onblur="if(this.value==\'\') this.value=\'' . _GEN_SEARCH_BOX . '\';" onfocus="if(this.value==\'' . _GEN_SEARCH_BOX . '\') this.value=\'\';" />';
$return .= ' <input type="submit" value="'._FB_GO.'" name="submit" class="fb_search_button fbs"/>';
$return .= '</form></div>';
return $return;
}
  • JoniJnm
  • DESCONECTADO
  • Administrador
  • Temas: 4167
  • Karma: 144
Última Edición: hace 3 años, 5 meses Por JoniJnm.
El tema ha sido cerrado.
Los siguientes usuarios han agradecido: JoniJnm

Dejar los [code] originales hace 3 años, 5 meses #9252

Dejar los 'code' originales


1. Abre:
/components/com_kunena/sources/interpreter.fireboard.inc.php

2. Cambia (linea 268):
                case 'code':
 
$types = array ("php", "mysql", "html", "js", "javascript");
 
$code_start_html = '<div style="background: #EEEEEE; border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 700px; max-height: 300px; text-align: left;">';
if (in_array($tag->options["type"], $types)) {
$t_type = $tag->options["type"];
}
else {
$t_type = "php";
}
 
// make sure we show line breaks
$code_start_html .= "<code class=\"{$t_type}\">";
$code_end_html = '</code></div>';
 
// Preserve spaces and tabs in code
$codetext = str_replace("\t", "__FBTAB__", $between);
 
$codetext = htmlspecialchars($codetext, ENT_QUOTES);
$codetext = str_replace(" ", "&nbsp;", $codetext);
 
$tag_new = $code_start_html. $codetext .$code_end_html;
#reenter regular replacements
$task->in_code = FALSE;
return TAGPARSER_RET_REPLACED;
break;


Por:
                case 'code':
 
$types = array ("php", "mysql", "html", "js", "javascript");
 
$code_start_html = '<div class="fbcode"><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr><td><b>'._FB_MSG_CODE.'</b></td></tr><tr><td><hr />';
if (in_array($tag->options["type"], $types)) {
$t_type = $tag->options["type"];
}
else {
$t_type = "php";
}
 
// make sure we show line breaks
$code_start_html .= "<code class=\"{$t_type}\">";
$code_end_html = '</code><hr /></td></tr></table></div>';
 
// Preserve spaces and tabs in code
$codetext = str_replace("\t", "__FBTAB__", $between);
 
$codetext = htmlspecialchars($codetext, ENT_QUOTES);
$codetext = str_replace(" ", "&nbsp;", $codetext);
 
$tag_new = $code_start_html. $codetext .$code_end_html;
#reenter regular replacements
$task->in_code = FALSE;
return TAGPARSER_RET_REPLACED;
break;
  • JoniJnm
  • DESCONECTADO
  • Administrador
  • Temas: 4167
  • Karma: 144
Última Edición: hace 3 años, 4 meses Por JoniJnm.
El tema ha sido cerrado.

Mantener las imágenes originales hace 3 años, 1 mes #10120

Mantener las imágenes originales


Si no te gustan cómo quedan las imágenes con los divs o frames (ni aumentando el área de texto en la configuración de FB) podéis dejarlo como estaba

1. Abrir components/com_kunena/sources/interpreter.fireboard.inc.php
2. Remplazar
            case 'img':
if($between) {
$task->autolink_disable--;
$width = (int)(($GLOBALS["fbConfig"]->rtewidth * 9) / 10);
$height = (int)$GLOBALS["fbConfig"]->rteheight;
$imgtagsize = isset($tag->options["size"]) ? (int)htmlspecialchars($tag->options["size"]) : 0;
 
$tag_new = '<div style="width: '.$width.'px; border: 0px inset; margin: 0px; padding: 6px; overflow: auto; max-height: '.$height.'px; text-align: center;">';
$tag_new .= "<img src='".$between."'".(($imgtagsize) ? " width='".$imgtagsize."'" : "")." border='0'/></div>";
 
return TAGPARSER_RET_REPLACED;
}
return TAGPARSER_RET_NOTHING;
break;


3. Por
            case 'img':
if($between) {
$task->autolink_disable--; # continue autolink conversion
// Make sure we add image size if specified and while we are
// at it also set maximum image width from text width config.
//
// NOTICE: image max variables from config are not intended
// for formating but to limit the size of uploads, which can
// be larger than the available post area to support super-
// sized popups.
$imgmaxsize = (int)(($GLOBALS["fbConfig"]->rtewidth * 9) / 10); // 90% of text width
$imgtagsize = isset($tag->options["size"]) ? (int)htmlspecialchars($tag->options["size"]) : 0;
 
if($imgtagsize>0 && $imgtagsize<$imgmaxsize)
{
$imgmaxsize = $imgtagsize;
}
 
$tag_new = "";
$tag_new .= "<img src='".$between.($imgtagsize ?"' width='".$imgmaxsize:'')."' style='max-width:".$imgmaxsize."px; ' />";
 
return TAGPARSER_RET_REPLACED;
}
return TAGPARSER_RET_NOTHING;
break;
  • JoniJnm
  • DESCONECTADO
  • Administrador
  • Temas: 4167
  • Karma: 144
Última Edición: hace 3 años, 1 mes Por JoniJnm.
El tema ha sido cerrado.
  • Página:
  • 1
Página generada en: 0.87 segundos