Recordad que para pedir soporte alguno, debéis facilitar los datos de soporte oportunos por favor, mirad aquí y leer las Normas generales del foro, esto nos servirá de ayuda para dar el mejor soporte..
Gracias.
La Administración de phpBB España.
problema con el ancho en el editor Advanced BBCode Box 3
- XxApagaFuegosxx
- Mensajes: 43
- Registrado: 23 Ago 2012, 10:29
problema con el ancho en el editor Advanced BBCode Box 3
Os escribo porque tengo un problemilla con el mod ABBC3 en mi foro http://www.zonaactual.es/foro/
una vez instalado veo que el editor y lo que escribo no ocupa todo el ancho del foro que deberia ser
os pongo una imagen para que podais saber de lo que hablo http://fotos.subefotos.com/6df3ada0f0bb ... 0a8bfo.png
añadiendo problemas del spoiler en firefox que no funciona y no redimensiona imagenes.
me gustaria saber si es un problema de la plantilla o un problema mio a la hora de la instalación del mod
el tema que tengo es el "ALPHA" y por lo que pude ver,muchas opciones las trabaja a través de la plantilla prosilver (necesito prosilver para hacerla funcionar al 100% creo)
sabeis de alguna solución para mi pequeño problema?
muchas gracias de antemano y un saludo chicos.
URL: http://www.zonaactual.es/foro/
Versión phpBB: 3.3.0
MODs Instalados: Advanced BBCode Box, External Links Open in New Window, Lightbox, SiteSplat BBCore, Topic Restriction.
Plantilla(s) usada(s): Flat Style
Servidor: OVH
Actualización desde otra versión: No
Conversión desde otro sistema de foros: No
Re: problema con el ancho en el editor Advanced BBCode Box 3
¿esto te pasa cuando estas escribiendo el post tambien?
- Mis datos | Mostrar
- XxApagaFuegosxx
- Mensajes: 43
- Registrado: 23 Ago 2012, 10:29
Re: problema con el ancho en el editor Advanced BBCode Box 3
Al crear un nuevo hilo o al responder, el editor aparece tal y como se ve ne la imagen
la acción de sopiler no funciona en firefox y no redimensiona....
Volveré a mirar las ediciones del install a ver si fallé en algo y lo comento por aqui.
Muchas gracias!!!
URL: http://www.zonaactual.es/foro/
Versión phpBB: 3.3.0
MODs Instalados: Advanced BBCode Box, External Links Open in New Window, Lightbox, SiteSplat BBCore, Topic Restriction.
Plantilla(s) usada(s): Flat Style
Servidor: OVH
Actualización desde otra versión: No
Conversión desde otro sistema de foros: No
- XxApagaFuegosxx
- Mensajes: 43
- Registrado: 23 Ago 2012, 10:29
Re: problema con el ancho en el editor Advanced BBCode Box 3
despues de revisar la instalación "mea culpa" XD
recordé que dejé una parte de la instalación,porque los códigos que me mandaba a buscar no estaban en dicho archivo (tal y como lo describe)
exactamente la parte de: includes/acp/acp_bbcodes.php
Os pongo mi archivo:
Código: Seleccionar todo
<?php
/**
*
* @package Advanced BBCode Box 3
* @version $Id$
* @copyright (c) 2010 leviatan21 (Gabriel Vazquez) and VSE (Matt Friedman)
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* @package Advanced BBCode Box 3
*/
class acp_abbcodes
{
var $u_action;
var $u_back;
var $new_config;
var $submit;
var $dir;
function main($id, $mode)
{
global $db, $user, $auth, $template, $cache;
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
$user->add_lang(array('acp/styles', 'mods/info_acp_abbcodes', 'mods/abbcode'));
// Include files
require($phpbb_root_path . 'includes/abbcode.' . $phpEx);
// Set up general vars
$action = request_var('action', '');
$bbcode_id = request_var('bbcode_id', 0);
$this->tpl_name = 'acp_abbcodes';
$this->page_title = 'ACP_ABBC3_BBCODES';
$form_key = 'acp_abbcodes';
add_form_key($form_key);
$this->u_back = $this->u_action;
$this->submit = (isset($_POST['submit'])) ? true : false;
$abbc3_root_path = ($phpbb_admin_path) ? $phpbb_admin_path : $phpbb_root_path ;
$this->dir = $phpbb_root_path . 'styles/abbcode';
// Execute overall actions
switch ($mode)
{
case 'settings':
$this->abbc3_details();
break;
case 'bbcodes' :
switch ($action)
{
case 'sync':
$this->resync_abbcodes();
// no break;
case 'newdlb':
$this->add_division = (isset($_POST['add_division'])) ? true : false;
$this->add_linebreak= (isset($_POST['add_linebreak'])) ? true : false;
$this->add_new_division_or_linebreak($this->add_division, $this->add_linebreak);
// no break;
case 'move_up':
case 'move_down':
// Get current order id...
$sql = "SELECT bbcode_order as current_order
FROM " . BBCODES_TABLE . "
WHERE bbcode_id = $bbcode_id. ' AND abbcode = 0'";
$result = $db->sql_query($sql);
$current_order = (int) $db->sql_fetchfield('current_order');
$db->sql_freeresult($result);
if (($current_order == 0 && $action == 'move_up') || ($current_order <= 5 && $action == 'move_up'))
{
$bbcode_id = null;
break;
}
// on move_down, switch position with next order_id...
// on move_up, switch position with previous order_id...
$switch_order_id = ($action == 'move_down') ? $current_order + 1 : $current_order - 1;
$sql = "UPDATE " . BBCODES_TABLE . "
SET bbcode_order = $current_order
WHERE bbcode_order = $switch_order_id
AND bbcode_id <> $bbcode_id";
$db->sql_query($sql);
// Only update the other entry too if the previous entry got updated
if ($db->sql_affectedrows())
{
$sql = "UPDATE " . BBCODES_TABLE . "
SET bbcode_order = $switch_order_id
WHERE bbcode_order = $current_order
AND bbcode_id = $bbcode_id";
$db->sql_query($sql);
}
$bbcode_id = null;
// no break;
}
$this->bbcodes_edit($id, $mode, $action, $bbcode_id);
break;
}
}
/**
* Build Frontend with supplied options
* @version 3.0.7
*/
function abbc3_details()
{
global $user, $template, $cache, $config, $phpbb_root_path;
$this->page_title = 'ABBCODES_SETINGS';
// $isfounder = ($user->data['user_type'] == USER_FOUNDER) ? true : false;
$display_vars = array(
'title' => 'ABBCODES_SETINGS',
'lang' => array('mods/abbcode', 'mods/info_acp_abbcodes'),
'vars' => array(
'legend1' => 'GENERAL_OPTIONS',
'ABBC3_MOD' => array('lang' => 'ABBCODES_DISABLE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'ABBC3_BG' => array('lang' => 'ABBCODES_BG', 'validate' => 'string', 'type' => 'custom', 'function' => 'image_select', 'params' => array($this->dir . '/images/bg', '{CONFIG_VALUE}', 'config[ABBC3_BG]', true, $this->u_action, 'ABBC3_BG'), 'explain' => true),
'ABBC3_TAB' => array('lang' => 'ABBCODES_TAB', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'append' => ' <span>[ <img src="' . $this->dir . '/images/dots.gif" alt="" /> ]</span>'),
'ABBC3_BOXRESIZE' => array('lang' => 'ABBCODES_BOXRESIZE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'ABBC3_UCP_MODE' => array('lang' => 'ABBCODES_UCP_MODE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'legend2' => 'ABBCODES_WIZARD',
'ABBC3_WIZARD_width' => false,
'ABBC3_WIZARD_height' => false,
'ABBC3_WIZARD_MODE' => array('lang' => 'ABBCODES_WIZARD_MODE', 'validate' => 'int', 'type' => 'custom', 'function' => 'get_radio', 'params' => array('config[ABBC3_WIZARD_MODE]', $user->lang['ABBCODES_WIZARD_SELECTOR'], $config['ABBC3_WIZARD_MODE'], 'ABBC3_WIZARD_MODE'), 'explain' => false),
'ABBC3_WIZARD' => array('lang' => 'ABBCODES_WIZARD_SIZE', 'validate' => 'int', 'type' => 'dimension:3:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
'legend3' => 'ABBCODES_RESIZER',
'ABBC3_RESIZE' => array('lang' => 'ABBCODES_RESIZE', 'type' => 'string', 'explain' => true, 'append' => ' <span id="ABBC3_RESIZE">' . $user->lang['ABBCODES_JAVASCRIPT_EXPLAIN'] . '</span>'),
'ABBC3_RESIZE_METHOD' => array('lang' => 'ABBCODES_RESIZE_METHOD', 'validate' => 'string', 'type' => 'custom', 'function' => 'method_select', 'params' => array('{CONFIG_VALUE}', 'config[ABBC3_RESIZE_METHOD]', 'ABBC3_RESIZE_METHOD'), 'explain' => true),
'ABBC3_RESIZE_BAR' => array('lang' => 'ABBCODES_RESIZE_BAR', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'ABBC3_MAX_IMG_WIDTH' => array('lang' => 'ABBCODES_MAX_IMAGE_WIDTH', 'validate' => 'int', 'type' => 'text:7:15', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
'ABBC3_MAX_IMG_HEIGHT' => array('lang' => 'ABBCODES_MAX_IMAGE_HEIGHT', 'validate' => 'int', 'type' => 'text:7:15', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
'ABBC3_MAX_THUM_WIDTH' => array('lang' => 'ABBCODES_MAX_THUMB_WIDTH', 'validate' => 'int', 'type' => 'text:7:15', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
'ABBC3_RESIZE_SIGNATURE'=> array('lang' => 'ABBCODES_RESIZE_SIGNATURE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'ABBC3_MAX_SIG_WIDTH' => array('lang' => 'ABBCODES_SIG_IMAGE_WIDTH', 'validate' => 'int', 'type' => 'text:7:15', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
'ABBC3_MAX_SIG_HEIGHT' => array('lang' => 'ABBCODES_SIG_IMAGE_HEIGHT', 'validate' => 'int', 'type' => 'text:7:15', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
'legend4' => 'ABBC3_BBVIDEO_TAG',
'ABBC3_VIDEO' => array('lang' => 'ABBCODES_VIDEO_SIZE', 'validate' => 'int', 'type' => 'dimension:3:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
'ABBC3_VIDEO_width' => false,
'ABBC3_VIDEO_height' => false,
'ABBC3_VIDEO_OPTIONS' => array('lang' => 'ABBCODES_VIDEO_ALLOWED', 'validate' => 'string', 'type' => 'custom', 'function' => 'video_select', 'params' => array('{CONFIG_VALUE}', 'allowed_videos[]', $this->u_action, 'ABBC3_VIDEO_OPTIONS'), 'explain' => true),
'ABBC3_VIDEO_WMODE' => array('lang' => 'ABBCODES_VIDEO_WMODE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
)
);
if (isset($display_vars['lang']))
{
$user->add_lang($display_vars['lang']);
}
$this->new_config = $config;
$cfg_array = (isset($_REQUEST['config'])) ? request_var('config', array('' => '')) : $this->new_config;
$error = array();
// We validate the complete config if whished
validate_config_vars($display_vars['vars'], $cfg_array, $error);
// Do not write values if there is an error
if (sizeof($error))
{
$this->submit = false;
}
// Grab global variables, re-cache if necessary
if ($this->submit)
{
$config = $cache->obtain_config();
}
// We go through the display_vars to make sure no one is trying to set variables he/she is not allowed to...
foreach ($display_vars['vars'] as $config_name => $null)
{
if (!isset($cfg_array[$config_name]) || strpos($config_name, 'legend') !== false)
{
continue;
}
$this->new_config[$config_name] = $config_value = $cfg_array[$config_name];
if ($this->submit)
{
set_config($config_name, $config_value);
}
}
if ($this->submit)
{
$allowed_videos = request_var('allowed_videos', array(0));
$allowed_videos_string = implode(';', $allowed_videos);
// The config table only stores 255 chars, so we need to prevent any instance where this might be exceeded.
if (strlen($allowed_videos_string) > 255)
{
trigger_error($user->lang['ABBCODES_VIDEO_ERROR'] . adm_back_link($this->u_action), E_USER_WARNING);
}
set_config('ABBC3_VIDEO_OPTIONS', $allowed_videos_string);
add_log('admin', 'LOG_CONFIG_ABBCODES');
if (!sizeof($error))
{
trigger_error($user->lang['CONFIG_UPDATED'] . adm_back_link($this->u_action));
}
else
{
trigger_error($user->lang['LOG_CONFIG_ABBCODES_ERROR'] . adm_back_link($this->u_action), E_USER_WARNING);
}
}
// Output relevant page
foreach ($display_vars['vars'] as $config_key => $vars)
{
if (!is_array($vars) && strpos($config_key, 'legend') === false)
{
continue;
}
if (strpos($config_key, 'legend') !== false)
{
$template->assign_block_vars('options', array(
'S_LEGEND' => true,
'LEGEND' => (isset($user->lang[$vars])) ? $user->lang[$vars] : $vars)
);
continue;
}
$type = explode(':', $vars['type']);
$l_explain = '';
if ($vars['explain'] && isset($vars['lang_explain']))
{
$l_explain = (isset($user->lang[$vars['lang_explain']])) ? $user->lang[$vars['lang_explain']] : $vars['lang_explain'];
}
else if ($vars['explain'])
{
$l_explain = (isset($user->lang[$vars['lang'] . '_EXPLAIN'])) ? $user->lang[$vars['lang'] . '_EXPLAIN'] : '';
}
$template->assign_block_vars('options', array(
'KEY' => $config_key,
'TITLE' => (isset($user->lang[$vars['lang']])) ? $user->lang[$vars['lang']] : $vars['lang'],
'S_EXPLAIN' => $vars['explain'],
'TITLE_EXPLAIN' => $l_explain,
'CONTENT' => build_cfg_template($type, $config_key, $this->new_config, $config_key, $vars),
)
);
unset($display_vars['vars'][$config_key]);
}
$board_path = generate_board_url() . '/' . str_replace($phpbb_root_path, '', $this->dir) . '/';
$template->assign_vars(array(
'S_EDIT' => true,
'L_TITLE_EDIT' => $user->lang['ABBCODES_SETINGS'],
'L_TITLE_EXPLAIN' => $user->lang['ABBCODES_SETINGS_EXPLAIN'],
'ICON_BASEDIR' => $this->dir . '/images/bg/',
'S_ERROR' => (sizeof($error)) ? true : false,
'ERROR_MSG' => implode('<br />', $error),
'S_FOUNDER' => ($user->data['user_type'] == USER_FOUNDER) ? true : false,
'NO_FOUNDER' => $user->lang['NO_AUTH_OPERATION'],
'U_ABBC3' => $user->lang['ABBC3_HELP_ABOUT'],
'U_ACTION' => $this->u_action,
'ABBC3_VERSION' => $config['ABBC3_VERSION'],
'S_VERSION_UP_TO_DATE' => $this->abbc3_version_compare($config['ABBC3_VERSION']),
// Check which options can be used for the resize method
'ADVANCEDBOX_EXIST' => (@file_exists("$this->dir/AdvancedBox.js")) ? 1 : 0,
'L_NO_EXIST_EXPLAIN_ADVANCEDBOX' => sprintf($user->lang['NO_EXIST_EXPLAIN_ADVANCEDBOX'], $board_path),
'HIGHSLIDE_EXIST' => (@file_exists("$this->dir/highslide/highslide-full.js")) ? 1 : 0,
'L_NO_EXIST_EXPLAIN_HIGHSLIDE' => sprintf($user->lang['NO_EXIST_EXPLAIN_OTHERS'], "highslide-full.js", "4.1.13", "{$board_path}highslide/", "Highslide JS", "http://highslide.com/download.php"),
'LIGHTVIEW_EXIST' => (@file_exists("$this->dir/lightview/js/lightview.js")) ? 1 : 0,
'L_NO_EXIST_EXPLAIN_LIHTVIEW' => sprintf($user->lang['NO_EXIST_EXPLAIN_OTHERS'], "lightview.js", "2.8.0", "{$board_path}lightview/js/", "Lightview", "http://www.nickstakenburg.com/projects/lightview/"),
'PRETTYPHOTO_EXIST' => (@file_exists("$this->dir/prettyPhoto/js/jquery.prettyPhoto.js")) ? 1 : 0,
'L_NO_EXIST_EXPLAIN_PRETTYPHOTO' => sprintf($user->lang['NO_EXIST_EXPLAIN_OTHERS'], "jquery.prettyPhoto.js", "3.1.4", "{$board_path}prettyPhoto/js/", "prettyPhoto", "http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/"),
'SHADOWBOX_EXIST' => (@file_exists("$this->dir/shadowbox/shadowbox.js")) ? 1 : 0,
'L_NO_EXIST_EXPLAIN_SHADOWBOX' => sprintf($user->lang['NO_EXIST_EXPLAIN_OTHERS'], "shadowbox.js", "3.0.3", "{$board_path}shadowbox/", "Shadowbox", "http://www.shadowbox-js.com/download.html"),
));
}
/**
* Add a new division or break line
*/
function add_new_division_or_linebreak($add_division, $add_linebreak)
{
global $user, $db, $template, $config, $cache;
// get last bbcode id - Start
$sql = 'SELECT MIN(bbcode_id) as min_bbcode_id
FROM ' . BBCODES_TABLE;
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
if ($row)
{
$next_bbcode_id = $row['min_bbcode_id'];
}
else
{
$next_bbcode_id = 0;
}
$next_bbcode_id = $next_bbcode_id-1;
// get last bbcode id - End
// get last order - Start
$sql = 'SELECT MAX(bbcode_order) as max_bbcode_order
FROM ' . BBCODES_TABLE;
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$next_bbcode_order = (int) $row['max_bbcode_order'] + 1;
// get last order - End
$sql = 'SELECT *
FROM ' . BBCODES_TABLE . "
WHERE bbcode_helpline = '" . ($add_linebreak ? 'ABBC3_BREAK' : 'ABBC3_DIVISION') . "'
ORDER BY bbcode_order DESC";
$result = $db->sql_query_limit($sql, 1);
while ($row = $db->sql_fetchrow($result))
{
$bbcode = $row['bbcode_tag'];
}
$db->sql_freeresult($result);
// get the value of current tag
$number = preg_replace('#(break|division)(\d+)#s', '$2', $bbcode);
$next_bbcode_number = (int) $number + 1;
$sql_ary = array(
'bbcode_id' => $next_bbcode_id,
'bbcode_tag' => (($add_linebreak) ? 'break' : 'division') . $next_bbcode_number,
'bbcode_helpline' => ($add_linebreak) ? 'ABBC3_BREAK' : 'ABBC3_DIVISION',
'display_on_posting' => true,
'display_on_pm' => false,
'display_on_sig' => false,
'bbcode_match' => '.',
'bbcode_tpl' => '.',
'first_pass_match' => '.',
'first_pass_replace' => '.',
'second_pass_match' => '.',
'second_pass_replace' => '.',
'abbcode' => true,
'bbcode_image' => ($add_linebreak) ? 'spacer.gif' : 'dots.gif',
'bbcode_order' => $next_bbcode_order,
);
$db->sql_query('INSERT INTO ' . BBCODES_TABLE . $db->sql_build_array('INSERT', $sql_ary));
$cache->destroy('sql', BBCODES_TABLE);
$user->add_lang('acp/posting');
add_log('admin', 'LOG_BBCODE_ADD', $sql_ary['bbcode_tag']);
trigger_error($user->lang['BBCODE_ADDED'] . adm_back_link($this->u_action));
}
/**
* Synchronise order
*/
function resync_abbcodes()
{
global $user, $db;
$user->add_lang('mods/info_acp_abbcodes');
// This pseudo-bbcode should not change the position order
$bbcode_tag_ary = array('font=', 'size', 'highlight=', 'color');
$next_bbcode_order = sizeof($bbcode_tag_ary) + 1;
$sql = 'SELECT bbcode_id, bbcode_tag, abbcode, bbcode_order
FROM ' . BBCODES_TABLE . '
WHERE ' . $db->sql_in_set('bbcode_tag', $bbcode_tag_ary, true) . '
ORDER BY bbcode_order';
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
$sql = 'UPDATE ' . BBCODES_TABLE . "
SET bbcode_order = $next_bbcode_order
WHERE bbcode_id = {$row['bbcode_id']}";
$db->sql_query($sql);
$next_bbcode_order++;
}
$db->sql_freeresult($result);
trigger_error($user->lang['ABBCODES_RESYNC_SUCCESS'] . adm_back_link($this->u_action));
}
/**
* Show/edit bbcodes
* @version 1.0.12
*/
function bbcodes_edit($id, $mode, $action, $bbcode = '')
{
global $user, $db, $cache, $template, $config, $phpbb_root_path, $phpEx;
$user->add_lang(array('acp/posting', 'mods/info_acp_abbcodes', 'mods/abbcode'));
// Is this ABBC3 is disabled
if (!isset($config['ABBC3_MOD']))
{
trigger_error($user->lang['ABBCODES_MOD_DISABLE'] . adm_back_link($this->u_action), E_USER_WARNING);
}
$img_spacer = 'spacer.gif';
$img_noimg = 'no_image.png';
if ($this->submit && $bbcode)
{
// Get items to create/modify
$abbcode_name = (isset($_POST['name'])) ? request_var('name', array('' => '')) : array();
$display_on_posting = (isset($_POST['display_on_posting'])) ? request_var('display_on_posting', array('' => 0)) : array();
$display_on_pm = (isset($_POST['display_on_pm'])) ? request_var('display_on_pm', array('' => 0)) : array();
$display_on_sig = (isset($_POST['display_on_sig'])) ? request_var('display_on_sig', array('' => 0)) : array();
$bbcode_image = utf8_normalize_nfc(request_var('image', array('' => ''), true));
$group_ids = implode(',', request_var('group_id', array(0)));
$bbcode_sql = array(
'display_on_posting' => (isset($display_on_posting[$bbcode])) ? 1 : 0,
'display_on_pm' => (isset($display_on_pm[$bbcode])) ? 1 : 0,
'display_on_sig' => (isset($display_on_sig[$bbcode])) ? 1 : 0,
'bbcode_image' => (isset($bbcode_image[$bbcode])) ? $bbcode_image[$bbcode] : '',
'bbcode_group' => (isset($group_ids) && trim($group_ids) != '') ? $group_ids : 0,
);
// Fix for break line?
if (substr($abbcode_name[$bbcode],0,14) == 'ABBCODES_BREAK')
{
$bbcode_sql['bbcode_image'] = $img_spacer;
}
if ($abbcode_name[$bbcode] == 'ABBC3_COLOR' || $abbcode_name[$bbcode] == 'ABBC3_HIGHLIGHT')
{
if ($abbc3_color_mode = request_var('abbc3_color', ''))
{
set_config('ABBC3_COLOR_MODE', $abbc3_color_mode);
}
if ($abbc3_highlight_mode = request_var('abbc3_highlight', ''))
{
set_config('ABBC3_HIGHLIGHT_MODE', $abbc3_highlight_mode);
}
}
$sql = 'UPDATE ' . BBCODES_TABLE . '
SET ' . $db->sql_build_array('UPDATE', $bbcode_sql) . '
WHERE bbcode_id = ' . $bbcode;
$result = $db->sql_query($sql);
if ($result)
{
trigger_error($user->lang['LOG_CONFIG_ABBCODES'] . adm_back_link($this->u_action . "&last_id=$bbcode"));
}
else
{
trigger_error($user->lang['LOG_CONFIG_ABBCODES_ERROR'] . adm_back_link($this->u_action), E_USER_WARNING);
}
$bbcode = '';
}
$error = array();
// Exclude bots
$sql = 'SELECT group_id
FROM ' . GROUPS_TABLE . "
WHERE group_name IN ('BOTS')";
$result = $db->sql_query($sql);
$exclude = array();
while ($row = $db->sql_fetchrow($result))
{
$exclude[] = $row['group_id'];
}
$db->sql_freeresult($result);
$sql = 'SELECT abbcode, bbcode_order, bbcode_id, bbcode_group, bbcode_tag, abbcode, bbcode_helpline, abbcode, bbcode_image, display_on_posting, display_on_pm, display_on_sig
FROM ' . BBCODES_TABLE . '
ORDER BY bbcode_order';
$result = $db->sql_query($sql);
$bbcode_id = request_var('bbcode_id', 0);
$template->assign_vars(array(
'S_BBCODES' => true,
'LAST_ID' => request_var('last_id', $bbcode_id),
'L_TITLE_BBCODES' => $user->lang['ABBCODES_CONFIG'],
'L_EXPLAIN_BBCODES' => $user->lang['ABBCODES_CONFIG_EXPLAIN'],
'S_BBCODE_EDIT' => ($bbcode) ? true :false,
'ICON_BASEDIR' => $this->dir . '/images/',
'S_ERROR' => (sizeof($error)) ? true : false,
'ERROR_MSG' => implode('<br />', $error),
'U_ABBC3' => $user->lang['ABBC3_HELP_ABOUT'],
'U_ACTION' => $this->u_action,
'F_ACTION' => ($bbcode) ? $this->u_action . '&mode=bbcodes&action=edit&bbcode_id=' . $bbcode : null,
'A_ACTION' => (!$bbcode) ? $this->u_action . '&mode=bbcodes&action=newdlb' : null,
'U_SYNC' => (!$bbcode) ? $this->u_action . '&mode=bbcodes&action=sync' : null,
'U_BACK' => ($bbcode) ? $this->u_back : null,
'U_AJAX_REQUEST' => append_sid($phpbb_root_path . 'abbcode_ajax.' . $phpEx),
));
$no_move = array('ABBC3_FONT', 'ABBC3_SIZE', 'ABBC3_HIGHLIGHT', 'ABBC3_COLOR');
$first_row_to_move = 0;
while ($row = $db->sql_fetchrow($result))
{
// Some fixes
$bbcode_id = $row['bbcode_id'];
$abbcode = $row['abbcode'];
$abbcode_name = (($row['abbcode']) ? 'ABBC3_' : '') . strtoupper(str_replace('=', '', trim($row['bbcode_tag'])));
$abbcode_name = ($row['bbcode_helpline'] == 'ABBC3_ED2K_TIP') ? 'ABBC3_ED2K' : $abbcode_name;
$abbcode_image = trim($row['bbcode_image']);
$abbcode_tag = str_replace('=', '', trim($row['bbcode_tag']));
$is_a_bbcode = true;
// is a break line or division ?
if ((strpos($abbcode_name, 'ABBC3_DIVISION') !== false) || (strpos($abbcode_name, 'ABBC3_BREAK') !== false) || in_array($row['bbcode_tag'], array('imgshack', 'cut', 'copy', 'paste', 'plain')))
{
$is_a_bbcode = false;
if (strpos($abbcode_name, 'ABBC3_DIVISION') !== false)
{
if ($config['ABBC3_TAB'])
{
$abbcode_name = 'ABBCODES_DIVISION';
}
else
{
continue;
}
}
else if (strpos($abbcode_name, 'ABBC3_BREAK') !== false)
{
$abbcode_name = 'ABBCODES_BREAK';
}
}
if ($abbcode_name == 'ABBC3_COLOR')
{
$first_row_to_move = $row['bbcode_order'] + 1;
}
$abbcode_explain = '';
$bbcode_tagname = '';
if (!$abbcode)
{
$bbcode_tagname = '[' . $abbcode_tag . ']';
$abbcode_explain = $user->lang['ABBCODES_CUSTOM'] . ' <strong>' . $bbcode_tagname . '</strong>'; //$row['bbcode_helpline'];
}
else
{
$bbcode_tagname = (!$is_a_bbcode) ? '' : '[' . str_replace(array('listo', 'listb', 'listitem'), array('list=', 'list', '*'), $abbcode_tag) .']';
$abbcode_explain = (isset($user->lang[$abbcode_name . '_MOVER'])) ? $user->lang[$abbcode_name . '_MOVER'] : '';
$abbcode_explain.= (isset($user->lang[$abbcode_name . '_EXPLAIN'])) ? '<br />' . $user->lang[$abbcode_name . '_EXPLAIN'] : '';
}
if ($action != 'edit')
{
$template->assign_block_vars('items', array(
'ID' => $bbcode_id,
'ORDER' => $row['bbcode_order'],
'NAME' => str_replace('=', '', trim($row['bbcode_tag'])),
'TAG_NAME' => $bbcode_tagname,
'TAG_EXPLAIN' => $abbcode_explain,
'IMG_SRC' => ($abbcode_image && $abbcode_image != $img_spacer) ? $this->dir . '/images/' . $abbcode_image : '',
'ON_POST' => ($row['display_on_posting']) ? $user->lang['ENABLED'] : '<em>' . $user->lang['DISABLED'] . '</em>',
'ON_PM' => ($row['display_on_pm']) ? $user->lang['ENABLED'] : '<em>' . $user->lang['DISABLED'] . '</em>',
'ON_SIG' => ($row['display_on_sig']) ? $user->lang['ENABLED'] : '<em>' . $user->lang['DISABLED'] . '</em>',
'S_NOMOVE' => (in_array($abbcode_name, $no_move)) ? true : false,
'S_FIRST_ROW' => ($row['bbcode_order'] == $first_row_to_move) ? true : false,
'U_EDIT' => $this->u_action . '&mode=bbcodes&action=edit&bbcode_id=' . $row['bbcode_id'],
'U_MOVE_UP' => $this->u_action . '&mode=bbcodes&action=move_up&bbcode_id=' . $row['bbcode_id'],
'U_MOVE_DOWN' => $this->u_action . '&mode=bbcodes&action=move_down&bbcode_id=' . $row['bbcode_id'],
));
}
else if ($action == 'edit' && $row['bbcode_id'] == $bbcode)
{
$radio = '';
if ($abbcode_name == 'ABBC3_COLOR' || $abbcode_name == 'ABBC3_HIGHLIGHT')
{
$radio = get_radio(strtolower($abbcode_name), $user->lang['ABBCODES_COLOUR_SELECTOR'], $config[$abbcode_name . '_MODE'], $abbcode_name);
}
$template->assign_block_vars('items', array(
'ID' => $bbcode_id,
'NAME' => $abbcode_name,
'TAG_NAME' => $bbcode_tagname,
'TAG_EXPLAIN' => ($abbcode) ? $abbcode_explain : $row['bbcode_helpline'],
'IMG_SRC' => ($abbcode_image) ? ($abbcode_image != $img_spacer) ? $this->dir . '/images/' . $abbcode_image : '' : $this->dir . '/images/' . $img_noimg,
'S_NOMOVE' => (in_array($abbcode_name, $no_move)) ? true : null,
'S_NEW_IMG' => image_select($this->dir . '/images', $abbcode_image, 'image[' . $bbcode_id . ']', false, $this->u_action),
'POSTING_CHECKED' => ($row['display_on_posting']) ? ' checked="checked"' : '',
'PM_CHECKED' => ($row['display_on_pm']) ? ' checked="checked"' : '',
'SIG_CHECKED' => ($row['display_on_sig']) ? ' checked="checked"' : '',
'S_GROUP_OPTIONS' => groups_select_options(explode(',', $row['bbcode_group']), $exclude),
'S_RADIO_BUTTONS' => ($radio) ? $radio : '',
));
}
}
}
/**
* Obtains the latest version information
* @param string $current_version version information
* @param int $ttl Cache version information for $ttl seconds. Defaults to 86400 (24 hours).
*
* @return bool false on failure.
*/
function abbc3_version_compare($current_version = '', $version_up_to_date = true, $ttl = 86400)
{
global $cache, $template;
$info = $cache->get('abbc3_versioncheck');
if ($info === false)
{
$errstr = '';
$errno = 0;
$info = get_remote_file('orcamx.vlexofree.com', '/software', 'abbc3.txt', $errstr, $errno);
if ($info === false)
{
$template->assign_var('S_VERSIONCHECK_FAIL', true);
$cache->destroy('abbc3_versioncheck');
}
}
if ($info !== false)
{
$cache->put('abbc3_versioncheck', $info, $ttl);
$latest_version_info = explode("\n", $info);
$latest_version = strtolower(trim($latest_version_info[0]));
$current_version = strtolower(trim($current_version));
$version_up_to_date = version_compare($current_version, $latest_version, '<') ? false : true;
$template->assign_vars(array(
'LATEST_VERSION' => $latest_version,
'U_VERSIONCHECK' => ($version_up_to_date) ? false : $latest_version_info[1],
));
}
return $version_up_to_date;
}
}
/**
* Select list of images in current style folder
*/
function image_select($dir, $current, $name, $show = false, $u_action, $ide = 'ABBC3_BG')
{
global $user, $config, $phpbb_admin_path, $phpbb_root_path, $phpEx;
// Read the folder and get images
$dp = @opendir($dir);
$count = 0;
if ($dp)
{
while (($file = readdir($dp)) !== false)
{
if (preg_match('#\.(?:gif|jpg|png)$#', $file))
{
$imagesetlist[$count] = $file;
$count++;
}
}
closedir($dp);
}
else
{
trigger_error($user->lang['NO_IMAGESET'] . adm_back_link($u_action), E_USER_WARNING);
}
if (sizeof($imagesetlist))
{
// Make sure the list of possible images is sorted alphabetically
sort($imagesetlist);
$icons_list = '<select id="' .$ide .'" name="' . $name . '" onchange="update_image(this.options[selectedIndex].value);">' . "\n";
$icons_list .= '<option value="" ' . (($current == '') ? ' selected="selected"' : ''). '>' . $user->lang['NO_IMAGE'] . '</option>' . "\n";
for($i = 0; $i < count($imagesetlist); $i++)
{
$selected = ($imagesetlist[$i] == $current) ? ' selected="selected"' : '';
$icons_list .= '<option value="' . $imagesetlist[$i] . '"' . $selected . '>' . $imagesetlist[$i] . '</option>' . "\n";
}
$icons_list .= '</select>'. (($show) ? ' <label>' . $user->lang['PREVIEW'] . ':</label>
<span style="position:relative; display:inline-block; top:10px;">
<img src="' . $dir . '/' . $current .'" id="newimg" alt="" width="100" height="30" style="border: solid 1px silver;" />
<span style="position:absolute;top:5px;left:10px;width:100%;height:100%;">
<img src="' . $phpbb_root_path . '/styles/abbcode/images/bold.gif" width="20" height="20" alt="" /><img src="' . $phpbb_root_path . '/styles/abbcode/images/italic.gif" width="20" height="20" alt="" /><img src="' . $phpbb_root_path . '/styles/abbcode/images/url.gif" width="20" height="20" alt="" /><img src="' . $phpbb_root_path . '/styles/abbcode/images/img.gif" width="20" height="20" alt="" />
</span>
</span>' : '');
}
return $icons_list;
}
/**
* Select list of BBvideos
*/
function video_select($current, $name, $u_action, $ide = 'ABBC3_VIDEO_OPTIONS')
{
global $user, $config, $phpbb_admin_path, $phpbb_root_path, $phpEx;
$abbcode_video_ary = abbcode::video_init();
$allowed_videos = (!$current) ? array() : explode(';', $current);
if (sizeof($abbcode_video_ary))
{
$video_options = '';
$video_optgroup = false;
foreach ($abbcode_video_ary as $video_name => $video_data)
{
// Get option group labels
if ($video_name == 'video' || $video_name == 'file')
{
$video_options .= ($video_optgroup) ? '</optgroup>' . "\n" : '';
$video_options .= '<optgroup label="-- ' . $user->lang['ABBC3_BBVIDEO_' . strtoupper($video_name)] . ' --">' . "\n";
$video_optgroup = true;
}
// Now build options from videos that have match and replace data
else if ((isset($video_data['match']) && $video_data['match'] != '') && (isset($video_data['replace']) && $video_data['replace'] != ''))
{
$selected = (in_array($video_data['id'], $allowed_videos)) ? ' selected="selected"' : '';
$video_options .= '<option value="' . $video_data['id'] . '"' . $selected . '>' . $video_name . '</option>' . "\n";
}
else
{
continue;
}
}
$video_options .= ($video_optgroup) ? '</optgroup>' . "\n" : '';
}
return '<select id="' . $ide .'" name="' . $name . '" multiple="multiple" size="10">' . "\n" . $video_options . '</select>
<br /><a href="#" onclick="selector(true, \'' . $ide . '\'); return false;">' . $user->lang['ABBCODES_SELECT_ALL'] . '</a> :: <a href="#" onclick="selector(false, \'' . $ide . '\'); return false;">' . $user->lang['ABBCODES_DESELECT_ALL'] . '</a>
<br /><br />' . $user->lang['ABBCODES_VIDEO_ALLOWED_NOTE'];
}
/**
* Select list of display full size image
*/
function method_select($selected_method = 'AdvancedBox', $name, $ide)
{
global $user;
$method_options = $user->lang['ABBCODES_RESIZE_METHODS'];
$s_method_options = '<select id="' . $ide . '" name="' . $name . '">';
foreach($method_options as $method_name => $method_value)
{
$selected = ($selected_method == $method_name) ? ' selected="selected"' : '';
$s_method_options .= '<option value="' . $method_name . '"' . $selected . ' >' . $method_value . '</option>';
}
$s_method_options.= '</select>';
return $s_method_options;
}
/**
* Select list of display color picker
*/
function get_radio($name, $input_ary, $input_default = false, $id = false, $key = false)
{
global $user;
// destroy a single element of an array
if ($name == "abbc3_highlight")
{
unset($input_ary['phpbb']);
}
$html = '';
$id_assigned = false;
foreach ($input_ary as $value => $title)
{
$value = strtolower($value);
$selected = ($input_default !== false && $value == $input_default) ? ' checked="checked"' : '';
$html .= ' <label><input class="radio" type="radio" name="' . $name . '"' . (($id && !$id_assigned) ? ' id="' . $id . '"' : '') . ' value="' . $value . '"' . $selected . (($key) ? ' accesskey="' . $key . '"' : '') . ' /> ' . $title . ' </label>';
$id_assigned = true;
}
return $html;
}
function groups_select_options($select_id = false, $exclude_ids = false)
{
global $user, $db;
$sql = 'SELECT group_id, group_name, group_type
FROM ' . GROUPS_TABLE . '
WHERE ' . $db->sql_in_set('group_id', array_map('intval', $exclude_ids), true) .'
ORDER BY group_type DESC, group_name ASC';
$result = $db->sql_query($sql);
$group_options = '';
while ($row = $db->sql_fetchrow($result))
{
$selected = (is_array($select_id)) ? ((in_array($row['group_id'], $select_id)) ? ' selected="selected"' : '') : (($row['group_id'] == $select_id) ? ' selected="selected"' : '');
$group_options .= '<option value="' . $row['group_id'] . '"' . $selected . '>' . ucfirst(strtolower((($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']))) . '</option>';
}
$db->sql_freeresult($result);
return $group_options;
}
?>
un saludo y gracias
URL: http://www.zonaactual.es/foro/
Versión phpBB: 3.3.0
MODs Instalados: Advanced BBCode Box, External Links Open in New Window, Lightbox, SiteSplat BBCore, Topic Restriction.
Plantilla(s) usada(s): Flat Style
Servidor: OVH
Actualización desde otra versión: No
Conversión desde otro sistema de foros: No
Re: problema con el ancho en el editor Advanced BBCode Box 3
has puesto el de acp_abbcodes que es uno de los archivos que se sube con el mod .mira que el que hay que editar va si "a" acp_bbcodes.php
- Mis datos | Mostrar
- XxApagaFuegosxx
- Mensajes: 43
- Registrado: 23 Ago 2012, 10:29
Re: problema con el ancho en el editor Advanced BBCode Box 3
Muchisimas gracias por la ayuda, vi que puse por error otro archivo
he revisado 3 veces el archivo install y siguen los mismos errores, tanto anchura del editor como los spoiler
la verdad que no se si es problema de la plantilla,del mod WP-united o que estoy haciendo algo mal..
Ya que muchisimas ediciones las tengo que hacer en prosilver,ya que esta plantilla no dispone de algunos de los que te mandan algunos mods.
muchas gracias por ayudar.
URL: http://www.zonaactual.es/foro/
Versión phpBB: 3.3.0
MODs Instalados: Advanced BBCode Box, External Links Open in New Window, Lightbox, SiteSplat BBCore, Topic Restriction.
Plantilla(s) usada(s): Flat Style
Servidor: OVH
Actualización desde otra versión: No
Conversión desde otro sistema de foros: No
Re: problema con el ancho en el editor Advanced BBCode Box 3
¿que has vuelto a subir el estilo limpio? asi no es como se veia ayer.
necesitaría algun foro con permiso de esritura para invitados o usuario de prueba para poder verlo mejor
- Mis datos | Mostrar
- XxApagaFuegosxx
- Mensajes: 43
- Registrado: 23 Ago 2012, 10:29
Re: problema con el ancho en el editor Advanced BBCode Box 3
Estuve pensando que como puse algunos mods y los desinstalé,quizás se quedo algo por ahi colgado y me daba error
entonces lo que he decidido es eliminar todo el foro (archivos), y subirlos todos de nuevo limpiamente
phpBB SEO Ultimate SEO URL/
GYM sitemaps
la plantilla limpia totalmente
Y despues de instalar todo y dejar por último este mod con el que iniciamos la charla,decir que me dió de problemas "cero"
todo funcionando a la perfección, "editor de texto,imagenes redimensionadas,etc"
La verdad que no lo entiendo porque la ultima vez subí los archivos limpios del mod.
Asi que al final por lo que puedo ver,es si es problema del mod Wp-United o incompatibilidad con el editor,pero buscando encontré una edición de leviatan21 http://www.phpbbargentina.com/comunidad ... 5707#p5707
donde se arregla el redimensionamiento de imágenes,pero el tamaño del editor aun segue dando ese problema.
además de los spoilers, que a veces no abren en firefox y si en chrome y viceversa O..o
te paso por MP user y pass como me comentaste ok?
Y micontre,nuevamente te doy las gracias por el apoyo que me has mostrado y la ayuda desinteresada
URL: http://www.zonaactual.es/foro/
Versión phpBB: 3.3.0
MODs Instalados: Advanced BBCode Box, External Links Open in New Window, Lightbox, SiteSplat BBCore, Topic Restriction.
Plantilla(s) usada(s): Flat Style
Servidor: OVH
Actualización desde otra versión: No
Conversión desde otro sistema de foros: No
Re: problema con el ancho en el editor Advanced BBCode Box 3
editaste esta linea
Código: Seleccionar todo
<table id="abbc3posttable" width="100%" border="1" cellspacing="0" cellpadding="0">
style="width:100px;"
con eso le estas dando un ancho a la tabla de los botones de 100px.
elimina ese añadido de el codigo y ya lo tendras corregido(deve de quedar con el primer codigo sin ningun añadido).
- Mis datos | Mostrar
- XxApagaFuegosxx
- Mensajes: 43
- Registrado: 23 Ago 2012, 10:29
Re: problema con el ancho en el editor Advanced BBCode Box 3
pero hablamos del archivo ¿...? los únicos archivos que he modificado han sido los que incluye el mod
a no ser que el wp-united haga una modificación en el mismo sitio, no s eme ocurre donde
muchisimas gracias!!
PD: acabo de ver que el archivo posting_abbcode_buttons.html lleva este código
<table id="abbc3posttable" width="100%" border="1" cellspacing="0" cellpadding="0">
no incluye ningun 100%,pero si lo veo a través de firebug O..o
element.style {
width: 100px;
}
al eliminarlo si se pone bien, pero al ser element style, no se donde está ese 100%
te añado el codigo para que veas que no está
Código: Seleccionar todo
<!-- IF S_ABBC3_COMPACT -->
<script type="text/javascript" src="{ROOT_PATH}adm/style/tooltip.js"></script>
<!-- ENDIF -->
<!-- IF (S_ABBC3_COLOR_MODE eq 'tigra' or S_ABBC3_HIGHLIGHT_MODE eq 'tigra') -->
<script type="text/javascript" src="{S_ABBC3_PATH}/posting_abbcode_picker.js"></script>
<!-- ENDIF -->
<script type="text/javascript">
// <![CDATA[
<!-- INCLUDE ./../../abbcode/posting_abbcode_buttons.js -->
// ]]>
</script>
<!-- IF S_ABBC3_WIZARD_MODE eq '2' -->
</div>
</fieldset>
<span class="corners-bottom"><span></span></span></div>
</div>
<div id="ABBC3_Ajax_indicator">
<script type="text/javascript">
// <![CDATA[
<!-- INCLUDE ./../../abbcode/posting_abbcode_wizards.js -->
// ]]>
</script>
<div id="ABBC3_Ajax_Wizards"></div>
</div>
<div class="panel" id="postingbox2">
<div class="inner"><span class="corners-top"><span></span></span>
<fieldset class="fields1">
<div id="format-buttons2">
<!-- ENDIF -->
<noscript><div class="rules"><p style="text-align: center;"><strong>{L_ABBC3_NOSCRIPT}</strong><br />{L_ABBC3_NOSCRIPT_EXPLAIN}</p></div></noscript>
<table id="abbc3posttable" width="100%" border="1" cellspacing="0" cellpadding="0">
<tr align="{S_CONTENT_FLOW_BEGIN}">
<td <!-- IF S_ABBC3_BG -->style='background: url("{S_ABBC3_PATH}/images/bg/{S_ABBC3_BG}");'<!-- ELSE -->class="bg2"<!-- ENDIF --> valign="middle" colspan="2">
<span class="abbc3_link">
<a href="{S_ABBC3_HELP_PAGE}" rel="external" onclick="window.open(this.href);return false;" title="{L_ABBC3_HELP_TITLE}"><img src="{S_ABBC3_PATH}/images/help.gif" alt="{L_ABBC3_HELP_TITLE}" title="{L_ABBC3_HELP_TITLE}" /></a>
</span>
<!-- IF S_ABBC3_TAB -->
<img src="{S_ABBC3_PATH}/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- IF S_ABBC3_BOXRESIZE -->
<input type="button" value=" + " class="button2" onclick="textbox_resize(50);" /> <input type="button" value=" - " class="button2" onclick="textbox_resize(-50);" />
<!-- IF S_ABBC3_TAB -->
<img src="{S_ABBC3_PATH}/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF S_ABBC3_COMPACT -->
<ul class="_selector">
<li class="li_selector"><span id="button_selector" class="button2"> {L_ABBC3_SHORT} </span>
<ul id="ul_selector" class="panel ul_selector">
<!-- BEGIN abbc3_tags -->
<!-- IF abbc3_tags.S_ABBC3_BREAK or abbc3_tags.S_ABBC3_DIVISION -->
<!-- IF not abbc3_tags.S_FIRST_ROW --><li>------------------</li><!-- ENDIF -->
<!-- ELSE -->
<li id="abbcode_{abbc3_tags.BBCODE_ID}"<!-- IF abbc3_tags.BBCODE_IMG --> style='background-image: url("{S_ABBC3_PATH}/images/{abbc3_tags.BBCODE_IMG}");'<!-- ENDIF -->>
<a href="#abbcode_{abbc3_tags.BBCODE_ID}" onclick="bbstyle2('{abbc3_tags.BBCODE_NAME}', {abbc3_tags.BBCODE_TAG}, {abbc3_tags.BBCODE_ABBC3}); return false;" title="{abbc3_tags.BBCODE_MOVER}<br />{abbc3_tags.BBCODE_TIP}<br />{abbc3_tags.BBCODE_NOTE}<br />{abbc3_tags.BBCODE_EXAMPLE}">{abbc3_tags.BBCODE_MOVER}</a>
</li>
<!-- ENDIF -->
<!-- END abbc3_tags -->
<!-- IF .custom_tags -->
<li>------------------</li>
<!-- BEGIN custom_tags -->
<li id="abbcode_{custom_tags.BBCODE_ID}">
<a href="#abbcode_{custom_tags.BBCODE_ID}" onclick="bbstyle({custom_tags.BBCODE_ID}); return false;" <!-- IF custom_tags.BBCODE_HELPLINE !== '' -->title="{custom_tags.BBCODE_TAG}<br />{custom_tags.A_BBCODE_HELPLINE}"<!-- ENDIF -->>{custom_tags.BBCODE_TAG}</a>
</li>
<!-- END custom_tags -->
<!-- ENDIF -->
</ul>
</li>
</ul>
<!-- IF S_ABBC3_TAB -->
<img src="{S_ABBC3_PATH}/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF S_ABBC3_FONT -->
<select id="abbc3_font" name="abbc3_font" onchange="bbfontstyle('[font=' + this.form.abbc3_font.options[this.form.abbc3_font.selectedIndex].value + ']', '[/font]'); this.form.abbc3_font.selectedIndex = 0" onmouseover="helpline2('abbc3_font')" onmouseout="helpline2()" title="{L_ABBC3_FONT_MOVER}">
<option selected="selected" >- {L_ABBC3_FONT_MOVER} -</option>
<optgroup label="- {L_ABBC3_FONT_ABBC3} -">
<option style="font-family: Bradley Hand ITC;" value="Bradley Hand ITC" >Bradley Hand ITC</option>
<option style="font-family: Century Gothic;" value="Century Gothic" >Century Gothic</option>
<option style="font-family: Curlz MT;" value="Curlz MT">Curlz MT</option>
<option style="font-family: cursive;" value="cursive">Cursive</option>
<option style="font-family: fantasy;" value="fantasy">Fantasy</option>
<option style="font-family: French Script MT;" value="French Script MT">French Script MT</option>
<option style="font-family: Garamond;" value="Garamond">Garamond</option>
<option style="font-family: Garamond Bold;" value="Garamond Bold">Garamond Bold</option>
<option style="font-family: Goudy Stout;" value="Goudy Stout">Goudy Stout</option>
<option style="font-family: Helvetica;" value="Helvetica">Helvetica</option>
<option style="font-family: monospace;" value="monospace">Monospace</option>
<option style="font-family: OCR A Extended;" value="OCR A Extended">OCR A Extended</option>
<option style="font-family: Script MT Bold;" value="Script MT Bold">Script MT Bold</option>
</optgroup>
<!-- http://typetester.maratz.com/ -->
<optgroup label="- {L_ABBC3_FONT_SAFE} -">
<option style="font-family: Arial;" value="Arial">Arial</option>
<option style="font-family: Arial Black;" value="Arial Black">Arial Black</option>
<option style="font-family: Comic Sans MS;" value="Comic Sans MS">Comic Sans MS</option>
<option style="font-family: Courier New;" value="Courier New">Courier New</option>
<option style="font-family: Georgia;" value="Georgia">Georgia</option>
<option style="font-family: Impact;" value="Impact">Impact</option>
<option style="font-family: Times New Roman;" value="Times New Roman">Times New Roman</option>
<option style="font-family: Trebuchet MS;" value="Trebuchet MS">Trebuchet MS</option>
<option style="font-family: Verdana;" value="Verdana">Verdana</option>
</optgroup>
<optgroup label="- {L_ABBC3_FONT_WIN} -">
<option style="font-family: Lucida Console;" value="Lucida Console">Lucida Console</option>
<option style="font-family: Lucida Sans Unicode;" value="Lucida Sans Unicode">Lucida Sans Unicode</option>
<option style="font-family: Microsoft Sans Serif;" value="Microsoft Sans Serif">Microsoft Sans Serif</option>
<option style="font-family: MS Mincho;" value="MS Mincho">MS Mincho</option>
<option style="font-family: Palatino Linotype;" value="Palatino Linotype">Palatino Linotype</option>
<option style="font-family: Symbol;" value="Symbol">Symbol</option>
<option style="font-family: Tahoma;" value="Tahoma">Tahoma</option>
</optgroup>
</select>
<!-- IF S_ABBC3_TAB -->
<img src="{S_ABBC3_PATH}/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF S_ABBC3_SIZE -->
<select id="abbc3_size" name="abbc3_size" onchange="bbfontstyle('[size=' + this.form.abbc3_size.options[this.form.abbc3_size.selectedIndex].value + ']', '[/size]'); this.form.abbc3_size.selectedIndex = 0;" onmouseover="helpline2('abbc3_size')" onmouseout="helpline2()" title="{L_ABBC3_SIZE_MOVER}">
<option selected="selected" >- {L_ABBC3_SIZE_MOVER} -</option>
<option style="font-size: 50%;" value="50">{L_FONT_TINY}</option>
<option style="font-size: 85%;" value="85">{L_FONT_SMALL}</option>
<option style="font-size: 100%;" value="100">{L_FONT_NORMAL}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
<option style="font-size: 150%;" value="150">{L_FONT_LARGE}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
<option style="font-size: 200%;" value="200">{L_FONT_HUGE}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 300 -->
<option style="font-size: 300%;" value="300">{L_ABBC3_FONT_GIANT}</option>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- ENDIF -->
</select>
<!-- IF S_ABBC3_TAB -->
<img src="{S_ABBC3_PATH}/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF S_ABBC3_HIGHLIGHT -->
<!-- IF S_ABBC3_HIGHLIGHT_MODE eq 'dropdown' -->
<select id="abbc3_highlight" name="abbc3_highlight" onchange="bbfontstyle('[highlight=#' + this.form.abbc3_highlight.options[this.form.abbc3_highlight.selectedIndex].value + ']', '[/highlight]'); this.form.abbc3_highlight.selectedIndex = 0;" onmouseover="helpline2('abbc3_highlight')" onmouseout="helpline2()" title="{L_ABBC3_HIGHLIGHT_MOVER}">
<option selected="selected" class="selected">- {L_ABBC3_HIGHLIGHT_MOVER} -</option>
</select>
<!-- ELSEIF S_ABBC3_HIGHLIGHT_MODE eq 'fancy' -->
<ul class="_selector">
<li class="li_selector"><span id="button_highlight" class="button2"> {L_ABBC3_HIGHLIGHT_MOVER} </span>
<ul id="ul_highlight_selector" class="<!-- IF S_POST_ID is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --> ul_selector"><li></li></ul>
</li>
</ul>
<!-- ELSEIF S_ABBC3_HIGHLIGHT_MODE eq 'tigra' -->
<img src="{S_ABBC3_PATH}/images/highlight.gif" class="btnbbcode3 editor_Button" onclick="javascript:TCP.popup('{S_ABBC3_TIGRA_PAGE}', 'highlight', 0)" onmouseover="helpline2('abbc3_highlight')" onmouseout="helpline2()" alt="{L_ABBC3_HIGHLIGHT_MOVER}" title="{L_ABBC3_HIGHLIGHT_MOVER}" id="{ABBC3_HIGHLIGHT_NAME}" />
<!-- ENDIF -->
<!-- IF S_ABBC3_TAB -->
<img src="{S_ABBC3_PATH}/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF S_ABBC3_COLOR -->
<!-- IF S_ABBC3_COLOR_MODE eq 'phpbb' -->
<input type="button" class="button2" name="bbpalette" id="bbpalette" value="{L_FONT_COLOR}" onclick="change_palette();" title="{L_BBCODE_S_HELP}" />
<!-- ELSEIF S_ABBC3_COLOR_MODE eq 'dropdown' -->
<select id="abbc3_color" name="abbc3_color" onchange="bbfontstyle('[color=#' + this.form.abbc3_color.options[this.form.abbc3_color.selectedIndex].value + ']', '[/color]'); this.form.abbc3_color.selectedIndex = 0;" onmouseover="helpline2('abbc3_color')" onmouseout="helpline2()" title="{L_ABBC3_COLOR_MOVER}">
<option selected="selected" class="selected">- {L_ABBC3_COLOR_MOVER} -</option>
</select>
<!-- ELSEIF S_ABBC3_COLOR_MODE eq 'fancy' -->
<ul class="_selector">
<li class="li_selector"><span id="button_colour" class="button2"> {L_ABBC3_COLOR_MOVER} </span>
<ul id="ul_color_selector" class="<!-- IF S_POST_ID is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --> ul_selector"><li></li></ul>
</li>
</ul>
<!-- ELSEIF S_ABBC3_COLOR_MODE eq 'tigra' -->
<img src="{S_ABBC3_PATH}/images/fontcolor.gif" class="btnbbcode3 editor_Button" onclick="javascript:TCP.popup('{S_ABBC3_TIGRA_PAGE}', 'color', 0)" onmouseover="helpline2('abbc3_color')" onmouseout="helpline2()" alt="{L_ABBC3_COLOR_MOVER}" title="{L_ABBC3_COLOR_MOVER}" id="{ABBC3_COLOR_NAME}" />
<!-- ENDIF -->
<!-- IF S_ABBC3_TAB -->
<img src="{S_ABBC3_PATH}/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF S_ABBC3_COMPACT -->
</td>
</tr>
<!-- ELSE -->
<!-- BEGIN abbc3_tags -->
<!-- IF abbc3_tags.S_ABBC3_BREAK -->
<!-- IF S_ABBC3_TAB and not abbc3_tags.S_FIRST_ROW -->
<img src="{S_ABBC3_PATH}/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
</td>
</tr>
<tr align="{S_CONTENT_FLOW_BEGIN}">
<td <!-- IF S_ABBC3_BG -->style='background: url("{S_ABBC3_PATH}/images/bg/{S_ABBC3_BG}");'<!-- ELSE -->class="bg2"<!-- ENDIF --> valign="middle" colspan="2">
<!-- IF S_ABBC3_TAB -->
<img src="{S_ABBC3_PATH}/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- ELSEIF abbc3_tags.S_ABBC3_DIVISION -->
<!-- IF S_ABBC3_TAB and not abbc3_tags.S_LAST_ROW -->
<img src="{S_ABBC3_PATH}/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- ELSE -->
<img src="{S_ABBC3_PATH}/images/{abbc3_tags.BBCODE_IMG}" class="btnbbcode3 editor_Button" onclick="bbstyle2('{abbc3_tags.BBCODE_NAME}', {abbc3_tags.BBCODE_TAG}, {abbc3_tags.BBCODE_ABBC3}); return false;" onmouseover="helpline2('<!-- IF abbc3_tags.BBCODE_ABBC3 -->{abbc3_tags.BBCODE_NAME}<!-- ELSE -->{abbc3_tags.BBCODE_TIP}<!-- ENDIF -->')" onmouseout="helpline2()" alt="{abbc3_tags.BBCODE_MOVER}" title="{abbc3_tags.BBCODE_MOVER}" id="abbcode_{abbc3_tags.BBCODE_ID}" />
<!-- ENDIF -->
<!-- END abbc3_tags -->
<!-- IF S_ABBC3_TAB -->
<img src="{S_ABBC3_PATH}/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
</td>
</tr>
<!-- IF .custom_tags -->
<tr align="{S_CONTENT_FLOW_BEGIN}">
<td <!-- IF S_ABBC3_BG -->style='background: url("{S_ABBC3_PATH}/images/bg/{S_ABBC3_BG}");'<!-- ELSE -->class="bg2"<!-- ENDIF --> valign="middle" colspan="2">
<!-- IF S_ABBC3_TAB -->
<img src="{S_ABBC3_PATH}/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- BEGIN custom_tags -->
<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.A_BBCODE_HELPLINE}"<!-- IF custom_tags.BBCODE_HELPLINE !== '' --> onmouseover="helpline('cb_{custom_tags.BBCODE_ID}')" onmouseout="helpline2()"<!-- ENDIF --> />
<!-- END custom_tags -->
<!-- IF S_ABBC3_TAB -->
<img src="{S_ABBC3_PATH}/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
</td>
</tr>
<!-- ENDIF -->
<tr>
<td colspan="2">
<textarea readonly="readonly" id="helpbox" name="helpbox" rows="2" cols="76" class="helpline">{L_STYLES_TIP}</textarea>
</td>
</tr>
<!-- ENDIF -->
</table>
URL: http://www.zonaactual.es/foro/
Versión phpBB: 3.3.0
MODs Instalados: Advanced BBCode Box, External Links Open in New Window, Lightbox, SiteSplat BBCore, Topic Restriction.
Plantilla(s) usada(s): Flat Style
Servidor: OVH
Actualización desde otra versión: No
Conversión desde otro sistema de foros: No
Re: problema con el ancho en el editor Advanced BBCode Box 3
fallo mio , no te puse el archivo.
- Mis datos | Mostrar
- XxApagaFuegosxx
- Mensajes: 43
- Registrado: 23 Ago 2012, 10:29
Re: problema con el ancho en el editor Advanced BBCode Box 3
veo que en código fuente si lo encuentra (desde la pantalla nuevo tema),tambien igual que el firebug me lo encuentra,pero como te puse mas arriba en el archivo no está modificado.
no se que archivo puede ser, lo que pienso es que es muy posible que haga alguna llamada algun archivo del wp-united?
PD: Acabo de hacer la prueba de poner un tamaño en px para adecuarlo y veo que me sigue añadiendo un 100px de no se donde sale
<table width="100%" cellspacing="0" cellpadding="0" border="1" id="abbc3posttable" style="width: 785px;;width:100px;">
URL: http://www.zonaactual.es/foro/
Versión phpBB: 3.3.0
MODs Instalados: Advanced BBCode Box, External Links Open in New Window, Lightbox, SiteSplat BBCore, Topic Restriction.
Plantilla(s) usada(s): Flat Style
Servidor: OVH
Actualización desde otra versión: No
Conversión desde otro sistema de foros: No
Re: problema con el ancho en el editor Advanced BBCode Box 3
functions-css-magic
prueba esto
abre root/styles/prosilver/template/posting_abbcode_buttons.htlm(si subiste el archivo a tu estilo edita el de tu estilo)
busca
Código: Seleccionar todo
<table id="abbc3posttable" width="100%" border="1" cellspacing="0" cellpadding="0">
Código: Seleccionar todo
<table id="abbc3posttable" border="1" cellspacing="0" cellpadding="0">
busca
Código: Seleccionar todo
#abbc3posttable {
border: 1px solid #C0C0C0;
border-collapse: collapse;
vertical-align: top;
Código: Seleccionar todo
width:100% !important;
si ves algun problema , entonces vuelve a dejar el primer codigo como estaba.
sigue los pasos que indico en mi firma
- Mis datos | Mostrar
- XxApagaFuegosxx
- Mensajes: 43
- Registrado: 23 Ago 2012, 10:29
Re: problema con el ancho en el editor Advanced BBCode Box 3
De verdad que esa modificación me ha ido de fábula compañero,ahora cuando tenga tiempo aprenderé que hace cada modificación que he añadido
porque parece muy bonito,pero para aprender,quiero saber lo que ejerce cada modificación jejejejeje
Aunque siga el problema de los spoilers y el redimensionamiento (solo se arregla si edito el post) , pero eso ya es otro tema, no voy a molestarte mas que bastante has echo.
debo darte las gracias y sobretodo la paciencia que has tenido
Te doy la enhorabuena y espero que nos sigamos leyendo por el foro compañero
MUCHISIMAS GRACIAS!!
URL: http://www.zonaactual.es/foro/
Versión phpBB: 3.3.0
MODs Instalados: Advanced BBCode Box, External Links Open in New Window, Lightbox, SiteSplat BBCore, Topic Restriction.
Plantilla(s) usada(s): Flat Style
Servidor: OVH
Actualización desde otra versión: No
Conversión desde otro sistema de foros: No