¿Qué tengo que tocar para conseguir esto?

Started by MalastiC, April 28, 2006, 04:33:18 AM

Previous topic - Next topic

MalastiC

Buenos días. Estoy tratando de modificar unas cosas y no tengo ni idea.
Así lo tengo:


Lo que quiero hacer es:

1º. Quitar esas líneas de gris claro que separan los diferentes modos.
2º. Mover lo de la parte de abajo a continuación de lo de arriba.
3º. Mover "cambiar color" a continuación.

En resumidas, dejar todo en una línea.

¿Qué hay que "destripar"?
¿Es muy complicado?

Gracias a todos.


MalastiC

Quote from: el bar ® on April 28, 2006, 05:11:21 AM
Usaste algun mod?
Proba con Subs-Post a la carpeta Sources..

No, no tengo ningún mod. Estoy con el de serie. Lo que he hecho es eliminar para que los usuarios no puedan hacer algunas cosas como, tablas, sup, sub, agrandar fuente, etc.

Fijate que aquí, cuando das a responder, pasa lo mismo, estan los iconos y las rayas grises...

Un saludo, miraré ese archivo.

Gracias.

Pedi que me borren

Ah...los eliminaste desde la admin...
Al subir el archivo que te mencione, va a volver a la normalidad...

Pedi que me borren

Revisa el post.template.php, mas o menos por aqui:
// The below array makes it dead easy to add images to this page. Add it to the array and everything else is done for you!
$context['bbc_tags'] = array();

MalastiC

Quote from: el bar ® on April 28, 2006, 05:25:40 AM
Ah...los eliminaste desde la admin...
Al subir el archivo que te mencione, va a volver a la normalidad...

No los eliminé a posta para que ellos no toquen. Lo que quiero ahora es dejar lo que queda en una línea.


MalastiC

Quote from: el bar ® on April 28, 2006, 05:37:30 AM
Revisa el post.template.php, mas o menos por aqui:
// The below array makes it dead easy to add images to this page. Add it to the array and everything else is done for you!
$context['bbc_tags'] = array();


Eres el mejor.

Ya lo tengo. Creo que queda bastante mejor.


MalastiC

#8
Solo 2 cosillas.

1º. ¿Habría posibilidad de subir [más] ? Me gustaría que quedase a continuacion de cambiar color y poner [Más Smiles]
2º. Si a alguien le gustan los smiles animados que he puesto y si los quiere, solo tiene que pedirlos.


He visto este código pero no sé por donde tocar...
// Now start printing all of the smileys.
if (!empty($context['smileys']['postform']))
{
echo '
<tr>
<td align="right"></td>
<td valign="middle">';

// Show each row of smileys ;).
foreach ($context['smileys']['postform'] as $smiley_row)
{
foreach ($smiley_row['smileys'] as $smiley)
echo '
<a href="javascript:void(0);" onclick="replaceText(\' ', $smiley['code'], '\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;"><img src="', $settings['smileys_url'], '/', $smiley['filename'], '" align="bottom" alt="', $smiley['description'], '" title="', $smiley['description'], '" /></a>';

// If this isn't the last row, show a break.
if (empty($smiley_row['last']))
echo '<br />';
}

// If the smileys popup is to be shown... show it!
if (!empty($context['smileys']['popup']))
echo '
<a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>';

echo '
</td>
</tr>';
}

// If there are additional smileys then ensure we provide the javascript for them.
if (!empty($context['smileys']['popup']))
{
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smileys = [';

foreach ($context['smileys']['popup'] as $smiley_row)
{
echo '
[';
foreach ($smiley_row['smileys'] as $smiley)
{
echo '
["', $smiley['code'], '","', $smiley['filename'], '","', $smiley['js_description'], '"]';
if (empty($smiley['last']))
echo ',';
}

echo ']';
if (empty($smiley_row['last']))
echo ',';
}

echo '];
var smileyPopupWindow;

function moreSmileys()
{
var row, i;

if (smileyPopupWindow)
smileyPopupWindow.close();

smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes");
smileyPopupWindow.document.write(\'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>\');
smileyPopupWindow.document.write(\'\n\t<head>\n\t\t<title>', $txt['more_smileys_title'], '</title>\n\t\t<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css" />\n\t</head>\');
smileyPopupWindow.document.write(\'\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">', $txt['more_smileys_pick'], '</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">\');

for (row = 0; row < smileys.length; row++)
{
for (i = 0; i < smileys[row].length; i++)
{
smileys[row][i][2] = smileys[row][i][2].replace(/"/g, \'&quot;\');
smileyPopupWindow.document.write(\'<a href="javascript:void(0);" onclick="window.opener.replaceText(&quot; \' + smileys[row][i][0] + \'&quot;, window.opener.document.forms.', $context['post_form'], '.', $context['post_box_name'], '); window.focus(); return false;"><img src="', $settings['smileys_url'], '/\' + smileys[row][i][1] + \'" alt="\' + smileys[row][i][2] + \'" title="\' + smileys[row][i][2] + \'" style="padding: 4px;" border="0" /></a> \');
}
smileyPopupWindow.document.write("<br />");
}

smileyPopupWindow.document.write(\'</td></tr>\n\t\t\t<tr><td align="center" class="windowbg"><a href="javascript:window.close();\\">', $txt['more_smileys_close_window'], '</a></td></tr>\n\t\t</table>\n\t</body>\n</html>\');
smileyPopupWindow.document.close();
}
// ]]></script>';
}

// Finally the most important bit - the actual text box to write in!
echo '
<tr>
<td valign="top" align="right"></td>
<td>
<textarea class="editor" name="', $context['post_box_name'], '" rows="', $context['post_box_rows'], '" cols="', $context['post_box_columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '"', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? ' style="border: 1px solid red;"' : '', '>', $message, '</textarea>
</td>
</tr>';
}

// The template for the spellchecker.
function template_spellcheck()
{
global $context, $settings, $options, $txt;

// The style information that makes the spellchecker look... like the forum hopefully!
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '>
<head>
<title>', $txt['spell_check'], '</title>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css" />
<style type="text/css">
body, td
{
font-size: small;
margin: 0;
}
.highlight
{
color: red;
font-weight: bold;
}
#spellview
{
border-style: outset;
border: 1px solid black;
padding: 5px;
width: 98%;
height: 344px;
overflow: auto;
}';

if ($context['browser']['needs_size_fix'])
echo '
@import(', $settings['default_theme_url'], '/fonts-compat.css);';

Pedi que me borren

Busca el [Más Smiles] en la traduccion, debe tener un codigo...no recuerdo cual es...
Una vez que lo tenes en la traduccion y sabes el numero de codigo...lo buscas por numero en el archivo que modificaste y aparece mas facil.
Debe estar en el index.spanish...managesimleis.spanish...creo..

Advertisement: