TGTmundo en Español Blog de TGTmundo Foro de TGTmundo Hosting de imágenes de TGTmundo


Retroceder   TGTmundo > Webmaster > vBulletin > Tutoriales

Ya Elegimos a Los Nuevos Miembros del Staff De TGTmundo. ¿Quieres Saber Quienes Son? ¡Click Aquí!

Respuesta
 
LinkBack Herramientas Desplegado
Antiguo 25-mar-2008, 02:14   #1 (permalink)
Fundador - Usuario Diamante
 
Avatar de michi122513
 
Fecha de Ingreso: septiembre-2007
Mensajes: 1.321
Thanks: 1.554
Thanked 8.541 Times in 568 Posts
michi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la fama
Predeterminado ¿como integrar el chat (vbshout) a el vbadvanced cmps?

Nivel: Fácil
1.-Crea una nueva plantilla basada en un modulo llamado 'Shoutbox' en CMPS [ACP > vBa CMPS > Add Module > Template].
2.-En 'Column', elige 'Center Column' (columna central).
3.-Pon 'Active' (activo) y 'Update All Pages' a Yes o si bueno ya me entienden xD
4.- En 'Template Content' (contenido de la plantilla), pega el siguiente código. Esto se añadirá a una plantilla del estilo selccionado llamado 'adv_portal_vbshout'.
Código:
<td class="alt1" align="left" width="100%">
	<form action="vbshout.php?{$session['sessionurl']}" method="post" name="vbshoutform" onsubmit="return postShout(this)">
		<input type='hidden' name='do' value='shout' />
		<input type='hidden' name='color' />
		<input type='hidden' name='fontFamily' />
		<input type='hidden' name='fontWeight' />
		<input type='hidden' name='textDecoration' />
		<input type='hidden' name='fontStyle' />

	<if condition="!$vboptions[shout_editor_position]">
		<if condition="$bbuserinfo[userid] > 0">
			<table width='100%' border='0' cellpadding='0' cellspacing='0'>
				<tr>
					<td width='100%'>
						<input type="text" name="shout" style="width: 90%" class="bginput" />
						</td>
						<td style='white-space:nowrap' width='1%'>
							<input type="submit" value="Shout" class="button" />
							<if condition="$vboptions[shout_extra_options]">
							<input type='button' class='button' value='Clear' onclick='sb_Clear()' />
							</if>
						</td>
					</tr>
					</table>
					<div style="height: 2px"></div>
					</if>
				</if>
					<div id="vbshout" style="overflow:auto;height:{$vboptions['shout_box_height']}px;width:100%;">
						Loading...
					</div>
				<if condition="$vboptions[shout_editor_position]">
					<if condition="$bbuserinfo[userid] > 0">
					<div style="height: 2px"></div>
					<table width='100%' border='0' cellpadding='0' cellspacing='0'>
					<tr>
						<td width='100%'>
							<input type="text" name="shout" style="width: 90%" class="bginput" />
						</td>
						<td style='white-space:nowrap' width='1%'>
							<input type="submit" value="Shout" class="button" />
							<if condition="$vboptions[shout_extra_options]">
							<input type='button' class='button' value='Clear' onclick='sb_Clear()' />													
							</if>
						</td>
					</tr>
					</table>
					</if>
				</if>
				</form>
				</td>

<script type='text/javascript'>
<!--

postingShout = false

function requestShouts()
{
	if (!postingShout)
	{
		ShoutRequest = new vB_AJAX_Handler(true)
		ShoutRequest.onreadystatechange(showShouts)
		ShoutRequest.send('vbshout.php', 'nocache=' + (5 * Math.random() * 1.33) )
	}
}

function showShouts()
{
	if (ShoutRequest)
	{
		if (ShoutRequest.handler.readyState == 4 && ShoutRequest.handler.status == 200 && ShoutRequest.handler.responseText)
		{
			Shouts           = fetch_object('vbshout')
			Shouts.innerHTML = '<table cellpadding="1" cellspacing="3" border="0" width="95%" align="left">' + ShoutRequest.handler.responseText + '</table>'
			setTimeout('requestShouts()', 10000)
			<if condition="$vboptions[shout_messages_order]">
			document.getElementById('vbshout').scrollTop = 99999;
			</if>
		}
	}
}

function sb_CollectHV(sbForm)
{
	rString = ''
	inputObjs = sbForm.getElementsByTagName('input')
	for (i = 0; i < inputObjs.length; i++)
	{
		if (inputObjs[i].type == 'hidden' && inputObjs[i].value != '')
		{
			rString += '&' + inputObjs[i].name + '=' + PHP.urlencode(inputObjs[i].value)
		}
	}

	return rString
}

function postShout(formObj)
{
	doShout = new vB_AJAX_Handler(true)
	doShout.onreadystatechange(postedShout)

	if (postingShout)
	{
		alert('Posting in progress..')
		return false
	}

	Shout = formObj.shout.value

	if (Shout.replace(/ /g, '') == '')
	{
		alert('You must enter a shout!')
		return false
	}

	doShout.send('vbshout.php', 'do=shout&shout=' + PHP.urlencode(Shout) + sb_CollectHV(document.forms['vbshoutform']))
	sb_Clear()
	postingShout = true

	return false
}

function postedShout()
{
	if (doShout.handler.readyState == 4 && doShout.handler.status == 200)
	{
		postingShout = false
		requestShouts()
	}
}

function sb_Input_SC(sProperty, setting)
{
	eval('document.forms["vbshoutform"].shout.style.' + sProperty + ' = "' + setting + '"')
	eval('document.forms["vbshoutform"].' + sProperty + '.value = "' + setting + '"')
}

function getSelectionValue(eSelector)
{
	return eSelector.options[eSelector.options.selectedIndex].value == 'Default' ? '' : eSelector.options[eSelector.options.selectedIndex].value
}

function sb_PropChange(eSelector, sProperty)
{
	sb_Input_SC(sProperty, getSelectionValue(eSelector))
}

function sb_PropChange_Button_Value(sProperty)
{
	trueValue = ''
	switch (sProperty)
	{
		case 'fontWeight':
		falseValue = 'bold'
		break;

		case 'textDecoration':
		falseValue = 'underline'
		break;

		case 'fontStyle':
		falseValue = 'italic'
		break;
	}

	return (eval('document.forms["vbshoutform"].' + sProperty + '.value'))? trueValue : falseValue
}

function sb_PropChange_Button(cButton, sProperty)
{
	if (cButton.value.match(/\*/))
	{
		cButton.value = cButton.value.replace(/\s+\*/, '')
	}
	else
	{
		cButton.value = cButton.value + ' *'
	}

	sb_Input_SC(sProperty, sb_PropChange_Button_Value(sProperty))
}

function sb_Smilie(code)
{
	document.forms["vbshoutform"].shout.value += ' ' + code
	return false
}

function sb_Clear()
{
	document.forms["vbshoutform"].shout.value = ''
	return true;
}

function sb_Smilies(cButton)
{
	if (cButton.value.match(/\*/))
	{
		cButton.value = cButton.value.replace(/\s+\*/, '')
	}
	else
	{
		cButton.value = cButton.value + ' *'
	}
	
	document.getElementById('shout_emo').style.display   = (document.getElementById('shout_emo').style.display == 'none')? '' : 'none'
}

requestShouts()

-->
</script>
5.- En la seccion 'Module Shell Template Options' añade la siguiente url en 'Module Link'.

http://www.tu sitio.com/vbshout.php?do=archive

NOTA: esto es asumiendo que el vba esta en el mismo directorio que la raiz de tu foro
__________________



Gracias Pepe por la firma
TGTmundo x siempre



Fuera de línea   Responder Citando
Antiguo 25-mar-2008, 18:09   #2 (permalink)
Nivel 4
 
Avatar de juliancit0
 
Fecha de Ingreso: diciembre-2007
Mensajes: 76
Thanks: 39
Thanked 717 Times in 40 Posts
juliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgulloso
Predeterminado Re: ¿como integrar el chat (vbshout) a el vbadvanced cmps?

como y como seria para el infernoshout ??? pk lo probe y no resulta
Fuera de línea   Responder Citando
Antiguo 25-mar-2008, 22:18   #3 (permalink)
Fundador - Usuario Diamante
 
Avatar de michi122513
 
Fecha de Ingreso: septiembre-2007
Mensajes: 1.321
Thanks: 1.554
Thanked 8.541 Times in 568 Posts
michi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la fama
Predeterminado Re: ¿como integrar el chat (vbshout) a el vbadvanced cmps?

te bota error o simplemente no aparece? si es lo segundo revisa si lo colocaste en el estilo correcto
__________________



Gracias Pepe por la firma
TGTmundo x siempre



Fuera de línea   Responder Citando
Antiguo 26-mar-2008, 22:38   #4 (permalink)
Nivel 4
 
Avatar de juliancit0
 
Fecha de Ingreso: diciembre-2007
Mensajes: 76
Thanks: 39
Thanked 717 Times in 40 Posts
juliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgullosojuliancit0 tiene mucho para estar orgulloso
Predeterminado Re: ¿como integrar el chat (vbshout) a el vbadvanced cmps?

dice "cargando" ..... todo el rato ...
Fuera de línea   Responder Citando
Antiguo 13-abr-2008, 01:48   #5 (permalink)
Nivel 2
 
Avatar de matador01
 
Fecha de Ingreso: abril-2008
Mensajes: 22
Thanks: 37
Thanked 164 Times in 12 Posts
matador01 es como un diamante en brutomatador01 es como un diamante en brutomatador01 es como un diamante en brutomatador01 es como un diamante en bruto
Predeterminado Re: ¿como integrar el chat (vbshout) a el vbadvanced cmps?

Ami tambien me dice Loading...

Alguien me diga porque dice eso?...

See Later
Fuera de línea   Responder Citando
Antiguo 14-abr-2008, 04:11   #6 (permalink)
Fundador - Usuario Diamante
 
Avatar de michi122513
 
Fecha de Ingreso: septiembre-2007
Mensajes: 1.321
Thanks: 1.554
Thanked 8.541 Times in 568 Posts
michi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la famamichi122513 tiene una reputación que sobrepasa la fama
Predeterminado Re: ¿como integrar el chat (vbshout) a el vbadvanced cmps?

la razon es porque tienen el cmps en otro directorio, solo funciona si el portal esta en el mismo directorio del foro
__________________



Gracias Pepe por la firma
TGTmundo x siempre



Fuera de línea   Responder Citando
Antiguo 15-abr-2008, 01:32   #7 (permalink)
Super Moderator
 
Avatar de BOSS
 
Fecha de Ingreso: noviembre-2007
Ubicación: Mexico
Mensajes: 151
Thanks: 80
Thanked 927 Times in 72 Posts
BOSS tiene un brillante futuroBOSS tiene un brillante futuroBOSS tiene un brillante futuroBOSS tiene un brillante futuroBOSS tiene un brillante futuroBOSS tiene un brillante futuroBOSS tiene un brillante futuroBOSS tiene un brillante futuroBOSS tiene un brillante futuroBOSS tiene un brillante futuroBOSS tiene un brillante futuro
Predeterminado Re: ¿como integrar el chat (vbshout) a el vbadvanced cmps?

Pues como dise michi este codigo es solo para cmps que este en el mismo directorio, para ello solo hay que editar los links del codigo poniendolo la ubicación donde estan los archivos del vbshout por ejemplo:

/Nombre de la carpeta/vbshout.php
Fuera de línea   Responder Citando
Respuesta

Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder temas
No puedes subir archivos adjuntos
No puedes editar tus mensajes

Los Códigos BB están Activado
Las Caritas están Activado
[IMG] está Activado
El Código HTML está Desactivado
Trackbacks are Activado
Pingbacks are Activado
Refbacks are Activado



La franja horaria es GMT. Ahora son las 07:55.




Desarrollado por: vBulletin® Versión 3.7.3
Derechos de Autor ©2000 - 2008, Jelsoft Enterprises Ltd.
Traducido por XxBOSSMASTERxX