solucion
  • 0
  • 6 RepliesReplies
  • 3012 ReadTimes Read
  • 0 PointsPoints

Topic: como cambiar cartel de Cargando....

no avatar
Usuario: pipi2010
Rango: Nuevo Usuario
Mensajes: 252
Points: 43
Mi web: http://uni2s.com/
Perfil: View Profile
Pais:
ar
como cambiar cartel de Cargando....
September 21, 2015 - 07:32 19:32
como cambiar cartel de Cargando....

Datos importantes:
Url del foro: unis.com
Version de SMF: 2.0.10
Theme del foro: DSV4

Descripcion del problema:
hola amigos lo que quiere saver es como modificar el artel de cargando...
ya que instale y modifique un mod viejo de ajax para las respuestas y quiero cambiar ese cartel por otro.
aca les dejo una imagen de referencia
Usuario: 4kstore
Rango: Moderador Global
Mensajes: 4916
Points: 8111
Mi web: http://www.smfsimple.com
Perfil: View Profile
Pais:
ar
Re:como cambiar cartel de Cargando....
Reply #1 September 22, 2015 - 08:55 08:55
Tendrias que buscar las clases css que la componen, el texto creo que esta como string de javascript en el index.template.php
no avatar
Usuario: pipi2010
Rango: Nuevo Usuario
Mensajes: 252
Points: 43
Mi web: http://uni2s.com/
Perfil: View Profile
Pais:
ar
Re:como cambiar cartel de Cargando....
Reply #2 September 22, 2015 - 01:27 13:27
Tendrias que buscar las clases css que la componen, el texto creo que esta como string de javascript en el index.template.php
si encontre la variable del javascript pero no encuentro el css ni el codigo html para modificarlo

EDITO:
despues de pensar un poco encontre la parte a modificar dejo mi modificacion para que vean como quedo

en el index.css edite la parte del id ajax_in_progress

buscar:
Code: [Select]
#ajax_in_progress
{
background: url(../images/theme/loadingbar.png) repeat-x;
color: #f96f00;
text-align: center;
font-size: 16pt;
padding: 8px;
width: 100%;
height: 66px;
line-height: 25px;
position: fixed;
top: 0;
left: 0;
}
Remplasar:

Code: [Select]
#ajax_in_progress
{
/* MODIFICATE BYE PIPI   */
    background: url(../images/theme/cargando.gif);
text-align: left;
font-size: 12pt;
color: #09F;
    width:60px;
height:60px;
position:absolute;
top:50%;
left:50%;
padding:2px;
    position: fixed;

}
y en el archivo scripts.js modifique para que no salga la X de cancelar
Buscar:
Code: [Select]
function create_ajax_indicator_ele()
{
// Create the div for the indicator.
ajax_indicator_ele = document.createElement('div');

// Set the id so it'll load the style properly.
ajax_indicator_ele.id = 'ajax_in_progress';

// Add the image in and link to turn it off.
var cancel_link = document.createElement('a');
cancel_link.href = 'javascript:ajax_indicator(false)';
var cancel_img = document.createElement('img');
cancel_img.src = smf_images_url + '/icons/quick_remove.gif';

if (typeof(ajax_notification_cancel_text) != 'undefined')
{
cancel_img.alt = ajax_notification_cancel_text;
cancel_img.title = ajax_notification_cancel_text;
}

// Add the cancel link and image to the indicator.
cancel_link.appendChild(cancel_img);
ajax_indicator_ele.appendChild(cancel_link);

// Set the text.  (Note:  You MUST append here and not overwrite.)
ajax_indicator_ele.innerHTML += ajax_notification_text;

// Finally attach the element to the body.
document.body.appendChild(ajax_indicator_ele);
}
Remplasar:
Code: [Select]
function create_ajax_indicator_ele()
{
// Create the div for the indicator.
ajax_indicator_ele = document.createElement('div');

// Set the id so it'll load the style properly.
ajax_indicator_ele.id = 'ajax_in_progress';

/* // Add the image in and link to turn it off.
var cancel_link = document.createElement('a');
cancel_link.href = 'javascript:ajax_indicator(false)';
var cancel_img = document.createElement('img');
cancel_img.src = smf_images_url + '/icons/quick_remove.gif';

if (typeof(ajax_notification_cancel_text) != 'undefined')
{
cancel_img.alt = ajax_notification_cancel_text;
cancel_img.title = ajax_notification_cancel_text;
}

// Add the cancel link and image to the indicator.
cancel_link.appendChild(cancel_img);
ajax_indicator_ele.appendChild(cancel_link);*/

// Set the text.  (Note:  You MUST append here and not overwrite.)
ajax_indicator_ele.innerHTML += ajax_notification_text;

// Finally attach the element to the body.
document.body.appendChild(ajax_indicator_ele);
}
les dejo una imagen adjunata de como quedo ;)
Usuario: 4kstore
Rango: Moderador Global
Mensajes: 4916
Points: 8111
Mi web: http://www.smfsimple.com
Perfil: View Profile
Pais:
ar
Re:como cambiar cartel de Cargando....
Reply #3 September 22, 2015 - 05:54 17:54
Genial man, te quedo super!
no avatar
Usuario: pipi2010
Rango: Nuevo Usuario
Mensajes: 252
Points: 43
Mi web: http://uni2s.com/
Perfil: View Profile
Pais:
ar
Re:como cambiar cartel de Cargando....
Reply #4 September 22, 2015 - 07:00 19:00
Genial man, te quedo super!
gracias bro quedo bien ;) al final era un toque la modificacion :)
Usuario: Papá distante
Rango: Moderador Global
Mensajes: 3504
Points: 168
Perfil: View Profile
Pais:
de
Re:como cambiar cartel de Cargando....
Reply #5 September 23, 2015 - 06:06 06:06
Se ve muy bien!
Sent through Adkimode
Usuario: 4kstore
Rango: Moderador Global
Mensajes: 4916
Points: 8111
Mi web: http://www.smfsimple.com
Perfil: View Profile
Pais:
ar
Re:como cambiar cartel de Cargando....
Reply #6 September 23, 2015 - 09:09 09:09
Me olvidaba, si queres y tenes tiempo podes crear un tema en la seccion tutoriales para que quede de referencia y sea mas facil buscarlo!
 

TAGS



top

Smfsimple.com es un sitio destinado a brindar un servicio de soporte y herramientas para foros realizados con el sistema de foros gratuito simplemachines.org. Contamos con un selecto equipo de desarrolladores y conocedores del sistema, sus foros estaran en buenas manos.
This site is not affiliated with or endorsed by Simple Machines