Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Mensajes - & eDu &

#11
Podrías explicarte mejor.
#12
PHP / Re: ayuda para una condición "IF"
12 Diciembre 2012, 02:07 AM
Código (php) [Seleccionar]

<?php
/**
 *
 * Author: ArmyZ Rdz
 * Comaptible with: MyBB 1.4
 * Website: http://www.generalzone.net
 * License: GNU/GPL
 * Utilicelo a su propio riesgo
 * Disfrutalo =D
 *
 */
 
if(!defined('IN_MYBB'))
{
die();
}
$plugins->add_hook("global_start""imgflotante");
function 
imgflotante_info(){
return array(
"name" => "Imagen Flotante Para Invitados",
"description" => "Este plugin muestra una imagen flotante para los invitados",
"website" => "http://www.generalzone.net",
"author" => "ArmyZ Rodriguez",
"authorsite" => "http://www.generalzone.net",
"version" => "1.2.1",
"compatibility" => "14*,16*",
"guid" => ""
);
}
function 
imgflotante_activate(){
  global 
$db;
  
include 
MYBB_ROOT."/inc/adminfunctions_templates.php";
find_replace_templatesets("header""#".preg_quote('{$bannedwarning}')."#i"'{\$bannedwarning}{\$imgflotante}');
 
 
$imgflotante_group = array(
'gid' => 'NULL',
'name' => 'imgflotante',
'title' => 'Imagen flotante para invitados',
'description' => 'Settings For The imgflotante Plugin',
'disporder' => "1",
'isdefault' => 'no',
);
$db->insert_query('settinggroups'$imgflotante_group);
$gid $db->insert_id();

$imgflotante_setting_1 = array(
'sid' => 'NULL',
'name' => 'enabled_imgflotante',
'title' => 'Activado/Desactivado',
'description' => '',
'optionscode' => 'yesno',
'value' => '1',
'disporder' => 1,
'gid' => intval($gid),
);
$db->insert_query('settings'$imgflotante_setting_1);

$imgflotante_setting_2 = array(
'sid' => 'NULL',
'name' => 'imgflotante_location',
'title' => 'Arriva o Abajo?',
'description' => 'puedes poner "fromtop" para colocar la imagen arriva o "frombottom" para colocarla abajo',
'optionscode' => 'text',
'value' => 'fromtop',
'disporder' => 2,
'gid' => intval($gid),
);
$db->insert_query('settings'$imgflotante_setting_2);

$imgflotante_setting_3 = array(
'sid' => 'NULL',
'name' => 'imgflotante_img',
'title' => 'Ruta de la Imagen',
'description' => 'escribe la ruta nueva de tu imagen que se mostrara a los invitados...',
'optionscode' => 'text',
'value' => 'images/ifid.png',
'disporder' => 3,
'gid' => intval($gid),
);
$db->insert_query('settings'$imgflotante_setting_3);

$imgflotante_setting_4 = array(
'sid' => 'NULL',
'name' => 'imgflotante_img_close',
'title' => 'Ruta de la Imagen para cerrar',
'description' => 'escribe la ruta nueva de tu imagen que se mostrara a los invitados donde se cerrara...',
'optionscode' => 'text',
'value' => 'images/ifii.png',
'disporder' => 4,
'gid' => intval($gid),
);
$db->insert_query('settings'$imgflotante_setting_4);


rebuild_settings();
}
function 
imgflotante_deactivate(){
  global 
$db;

include 
MYBB_ROOT."/inc/adminfunctions_templates.php";
find_replace_templatesets("header""#".preg_quote('{$imgflotante}')."#i"''0);

$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name IN ('imgflotante_location','enabled_imgflotante','imgflotante_img','imgflotante_img_close')");
$db->query("DELETE FROM ".TABLE_PREFIX."settinggroups WHERE name='imgflotante'");
rebuild_settings();

}
function 
imgflotante()
{
global $mybb;
 if ($mybb->settings['enabled_imgflotante'] == 1)
    {
if($mybb->user['usergroup']==1)

{
                
$url 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
                if(
$url!='AQUI PONES LA URL DEL REGISTRO EJ: HTTP://WWW.TUWEB.COM/REGISTRO'){
      
global $templates,$settings,$imgflotante;
$imgflotante '<script type="text/javascript" src="jscripts/imgflotante.js?ver=1400"></script>
<script type="text/javascript"> 
var verticalpos = "'
.$mybb->settings['imgflotante_location'].'";
</script> 
<style type="text/css">#topbar{position:absolute;border: 0px solid white;padding: 5px;background-color: transparent;width: 450px;visibility: hidden;z-index: 400;}</style><div id="topbar"><a href="'
.$mybb->settings['bburl'].'/member.php?action=register"><img src="'.$mybb->settings['imgflotante_img'].'"" alt="Registrarte!" border="0" /></a><a href="#" onclick="closebar(); return false"><img src="'.$mybb->settings['imgflotante_img_close'].'" alt="Cerrar" border="0" /></a></div>';
                        }
}
    }

}
?>


En la última función.
#13
PHP / Re: error en php
8 Diciembre 2012, 01:12 AM
Código (php) [Seleccionar]


$rg=mysql_query(" SELECT * FROM ventasunidad",$conexion) or die("Problemas en el select:".mysql_error());


while($rs=mysql_fetch_array($rg))
{

$nombre=$rs['Nombre'];
$cantidadr=$rs['cantidaduni'];


$rt=mysql_query("select * from articulos where Nombre='.$nombre.'",$conexion) or die("Problemas en el select:".mysql_error());

if ($rg=mysql_fetch_array($rt))
{
$existenciat=$rg['existencia']-$cantidadr;
}

$registros=mysql_query("update articulos set existencia=' .$existenciat.' where Nombre='.$nombre.'",$conexion) or die("Problemas en el select:".mysql_error());

}

Prueba así a ver..
#14
PHP / Re: Script para Clasificados con Subdominios
8 Diciembre 2012, 00:59 AM
Xhushito, aver... mira, tu cuando entren a mexico.dominio.com , al configurar el htaccess, saca los datos de dominio.com/idioma.php?id=mexico

Por lo tanto tu haces.

HTACCESS:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/idioma\.php
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^(.+)\.dominio\.com
RewriteRule .* /idioma.php?id=%1 [L]


PHP:
Código (php) [Seleccionar]
<?
$idioma=$_GET['id'];
$query=mysql_query('SELECT * FROM anuncios WHERE idioma="'.$idioma.'"');
?>


Pruebalo y comenta... no aseguro que el HTACCESS funcione al 100%.
#15
PHP / Re: Script para Clasificados con Subdominios
2 Diciembre 2012, 01:25 AM
Lo que tienes que hacer es hacer una geolocalización del visitante y una vez obtienes su procedencia, lo rediriges al subdominio que quieras.
#16
Hardware / Re: ¿Porque se apaga?
16 Agosto 2012, 23:46 PM
Aver cuando se apaga la pantalla es como si se apagara el PC, pero solo la pantalla y lo tengo que apagar desde el boton de detrás... por lo tanto no me da tiempo ni aver las temperaturas que saca con el juego ni nada :S
#17
Hardware / ¿Porque se apaga?
16 Agosto 2012, 22:50 PM
Buenas, mirad, de repente hace unos días cuando intengo jugar a algun juego ej ( San Andreas, League of Legends, Fligh Simulator X ) cuando empieza el juego ( cuando la imagen ocupa toda la pantalla ) al segundo se me apaga la pantalla , es como si se apagara el PC pero con la torre enchufada bueno, mirando por internet vi que son problema de calentamiento, pues me baje el speedfan y me da esto:



Podemos ver que el CPU sale algo caliente, pero le puse un ventilador algo más potente ( se lo puse a lo xapuza con la torre tumbada ) y bajo 3 o 4 grados, es decir estaba en 48º y ninguna temperatura con el signo de quemando, vale así intenté entrar a un juego y me pasó lo mismo así que puse el ventilador de serie.

¿Que ocurre? Entré a la bios y puse el apagado de emergencia a 75º y cuando entro a un juego la pc no esta a 75º y se apaga igual, por lo tanto, cual es el problema? Gracias... :)
#18
Un ejemplo... algo básico...

Código (php) [Seleccionar]
<?
$clave="TU CONTRASEÑA";
if($_GET["password"]!=$clave){
echo '<form method=get name=validacion>Introduzca la clave: <input type="text" name="password"/><input type=submit value="Enviar" name=validar/></form>';
}else{

?>
TU PAGINA
<? } ?>
#19
Noticias / Re: ¿Mato o no mato al oso? Tú eliges
8 Septiembre 2010, 01:52 AM
Lo primero que se me ocurrió poner: "fuck" mirad lo que sale jajaj
#20
Seguridad / Re: Virus,¿Cómo eliminarlo?
6 Agosto 2010, 00:40 AM
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect /usepmtimer
C:\wubildr.mbr = "Ubuntu"