PO
dúvida

Problemas com criação de conta pelo site- Colocando ONLINE!

Por Pokerangers, 13 de fev. de 2014 em Websites

resolvido
otserv
24
3.4k
PokerangersP
13 de fevereiro de 2014 às 16:22

Bom galera, vou direto ao assunto, o problema é o seguinte, fiz meu site, via XAMPP, peguei o template do Erondino: post-368776-0-35503100-1392315610_thumb.png

 

Ele ta certinho até, tem alguns bugs, mais coisa de minimo, o problema maior, é que você cria a conta, loga na conta pelo site e precisa criar um personagem, você escolhe o nome, clica em criar, e nada, simplesmente nada, porque?

 

Se tiverem o download do Modern AAC pra me passar, vou ficar muito grato, e se tiver algum tutorial ensinando a usar ele, muito mais grato.

 

O Segundo é mais uma duvida, fiz tudo como o tutorial, e tudo ficou com o IP 127.0.0.1, que é o IP Off, teria como eu alterar para um IP de Hamachi ou algo do tipo?

 

Fico no aguardo, desde já, obrigado.

VictorWEBMasterV
13 de fevereiro de 2014 às 19:36

Bom galera, vou direto ao assunto, o problema é o seguinte, fiz meu site, via XAMPP, peguei o template do Erondino: attachicon.gifsitedosv.png

 

Ele ta certinho até, tem alguns bugs, mais coisa de minimo, o problema maior, é que você cria a conta, loga na conta pelo site e precisa criar um personagem, você escolhe o nome, clica em criar, e nada, simplesmente nada, porque?

 

Se tiverem o download do Modern AAC pra me passar, vou ficar muito grato, e se tiver algum tutorial ensinando a usar ele, muito mais grato.

 

O Segundo é mais uma duvida, fiz tudo como o tutorial, e tudo ficou com o IP 127.0.0.1, que é o IP Off, teria como eu alterar para um IP de Hamachi ou algo do tipo?

 

Fico no aguardo, desde já, obrigado.

 

Amigo, um novo modern acc tem na sessao http://www.xtibia.com/forum/forum/581-downloads-de-websites/.. Basta escolher o do seu gosto.

 

Quanto ao 'ip off'. Bem.. Ele sempre esteve on oO (Como assim?)..

Sim, ele sempre esteve on, basta voce liberar as portas e tentar conectar pelo seu ip no-ip ou www.meuip.com.br.

Sabendo-se que se houver hamachi, somente os conectados no hamachi vão conseguir conectar-se ao site.

PokerangersP
13 de fevereiro de 2014 às 21:01

Eu peguei essa template em outro Forum, achei muito legal, porem coloco ela no htdocs vou entrar nela: localhost:8090...
E aparece: A Database Error Occurred
Unable to connect to your database server using the provided settings.

Oque é? eu realmente gostei dessa template.
E outra, victor, me adicione no skype? por favor mesmo, to precisando de uma boa ajuda.

Agradeço a todos.

Template aqui:

 

wskw.png

Editado Fevereiro 13 por Pokerangers

VictorWEBMasterV
13 de fevereiro de 2014 às 21:06

Eu peguei essa template em outro Forum, achei muito legal, porem coloco ela no htdocs vou entrar nela: localhost:8090...

E aparece: A Database Error Occurred

Unable to connect to your database server using the provided settings.

Oque é? eu realmente gostei dessa template.

E outra, victor, me adicione no skype? por favor mesmo, to precisando de uma boa ajuda.

Agradeço a todos.

 

Template aqui:

 

wskw.png

 

 

Cara, procure procurar suporte sempre no forum..

Quanto ao erro é: Não é possível conectar ao servidor de banco de dados usando as configurações fornecidas.

PokerangersP
13 de fevereiro de 2014 às 21:11

Eu vivo no XTibia, pesquisei no google e achei ele, sei que não fiz certo, mais eu realmente gostei desta template.

 

E eu não entendi o Modern AAC, é um programa ou um tipo de template?

 

Obrigado.

VictorWEBMasterV
13 de fevereiro de 2014 às 21:21

Eu vivo no XTibia, pesquisei no google e achei ele, sei que não fiz certo, mais eu realmente gostei desta template.

 

E eu não entendi o Modern AAC, é um programa ou um tipo de template?

 

Obrigado.

 

Verifique no seu config.php e veja as configurações do banco de dados.

PokerangersP
13 de fevereiro de 2014 às 21:32

Cara, consegui, era só a senha que fatalva, outros problemas você poderia me ajudar a resolver via skype? pois são varias perguntas.

VictorWEBMasterV
13 de fevereiro de 2014 às 21:45

Por favor, tire suas dúvidas no fórum.


Sua dúvida poderá ser a de demais usuários.


PokerangersP
13 de fevereiro de 2014 às 23:42

Se eu comprar um HOST e criar um IP fixo dentro dele, me explica a fazer isso?

VictorWEBMasterV
14 de fevereiro de 2014 às 00:37

Se eu comprar um HOST e criar um IP fixo dentro dele, me explica a fazer isso?

 

Sim, com certeza.

Duvida sanada?

Editado Fevereiro 14 por VictorWebMaster

PokerangersP
14 de fevereiro de 2014 às 08:35

Como eu faria pra por ele online pelo host? Tem algum tutorial?

 

E porque ao criar um personagem aparece isto:

 

An Error Was Encountered

Sample character could not be found!

Me perdoa pela minha falta de experiencia neste assunto, :\

VictorWEBMasterV
14 de fevereiro de 2014 às 08:57

Bem..Execute isto em seu banco de dados amigo

 

 

ALTER TABLE `accounts` ADD `page_access` int(11);
ALTER TABLE `accounts` ADD `page_lastday` int(11);
ALTER TABLE `accounts` ADD `email_new` varchar(255);
ALTER TABLE `accounts` ADD `email_new_time` int(15);
ALTER TABLE `accounts` ADD `rlname` varchar(255);
ALTER TABLE `accounts` ADD `location` varchar(255);
ALTER TABLE `accounts` ADD `created` int(16);
ALTER TABLE `accounts` ADD `email_code` varchar(255);
ALTER TABLE `accounts` ADD `next_email` int(11);
ALTER TABLE `accounts` ADD `premium_points` int(11);
ALTER TABLE `accounts` ADD `nickname` char(48);
ALTER TABLE `accounts` ADD avatar char(48);
ALTER TABLE `accounts` ADD about_me text;
ALTER TABLE `accounts` CHANGE `key` `key` VARCHAR( 128 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '';
ALTER TABLE `players` ADD `old_name` varchar(255);
ALTER TABLE `players` ADD `hide_char` int(11);
ALTER TABLE `players` ADD `worldtransfer` int(11);
ALTER TABLE `players` ADD `created` int(16);
ALTER TABLE `players` ADD `nick_verify` int(11);
ALTER TABLE `players` ADD `comment` text;
UPDATE `players` SET `hide_char` = 0;
UPDATE `accounts` SET `key` = '';
INSERT INTO `players` (`name`, `world_id`, `group_id`, `account_id`, `level`, `vocation`, `health`, `healthmax`, `experience`, `lookbody`, `lookfeet`, `lookhead`, `looklegs`, `looktype`, `lookaddons`, `maglevel`, `mana`, `manamax`, `manaspent`, `soul`, `town_id`, `posx`, `posy`, `posz`, `conditions`, `cap`, `sex`, `lastlogin`, `lastip`, `save`, `skull`, `skulltime`, `rank_id`, `guildnick`, `lastlogout`, `blessings`, `balance`, `stamina`, `direction`, `loss_experience`, `loss_mana`, `loss_skills`, `loss_containers`, `loss_items`, `premend`, `online`, `marriage`, `promotion`, `deleted`, `description`, `created`, `nick_verify`, `old_name`, `hide_char`, `worldtransfer`, `comment`) VALUES
('Rook Sample', 0, 1, 1, 1, 0, 150, 150, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 50, 50, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
('Sorcerer Sample', 0, 1, 1, 8, 1, 185, 185, 4200, 0, 0, 0, 0, 110, 0, 0, 35, 35, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
('Druid Sample', 0, 1, 1, 8, 2, 185, 185, 4200, 0, 0, 0, 0, 110, 0, 0, 35, 35, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
('Paladin Sample', 0, 1, 1, 8, 3, 185, 185, 4200, 0, 0, 0, 0, 110, 0, 0, 35, 35, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
('Knight Sample', 0, 1, 1, 8, 4, 185, 185, 4200, 0, 0, 0, 0, 110, 0, 0, 35, 35, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.');
CREATE TABLE IF NOT EXISTS `bugtracker` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`category` int(3) NOT NULL,
`time` int(11),
`author` int(11) NOT NULL,
`text` text,
`title` varchar(120),
`done` tinyint(3),
`priority` tinyint(3),
`closed` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
FOREIGN KEY (`author`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `friends` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`with` int(11),
`friend` int(11),
`time` int(11),
`active` tinyint(1),
PRIMARY KEY (`id`),
FOREIGN KEY (`with`) REFERENCES `accounts` (`id`) ON DELETE CASCADE,
FOREIGN KEY (`friend`) REFERENCES `accounts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`from` int(11),
`to` int(11),
`title` varchar(120),
`text` tinytext,
`time` int(11),
`delete_from` tinyint(1),
`delete_to` tinyint(1),
`unread` tinyint(1),
PRIMARY KEY (`id`),
FOREIGN KEY (`from`) REFERENCES `accounts` (`id`) ON DELETE CASCADE,
FOREIGN KEY (`to`) REFERENCES `accounts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `news` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(150) DEFAULT '',
`body` text,
`time` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`news_id` int(11),
`body` text,
`time` int(11) DEFAULT '0',
`author` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
FOREIGN KEY (`news_id`) REFERENCES `news` (`id`) ON DELETE CASCADE,
FOREIGN KEY (`author`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `forums` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(120),
`description` tinytext,
`access` smallint(5) DEFAULT '1' COMMENT 'Min. access to see the board',
`closed` tinyint(1),
`moderators` tinytext,
`order` int(6),
`requireLogin` tinyint(1),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
ALTER TABLE `forums` ADD `guild` int(11);
CREATE TABLE IF NOT EXISTS `threads` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(120),
`sticked` tinyint(1),
`closed` tinyint(1),
`author` varchar(64),
`time` int(11),
`board_id` int(11),
PRIMARY KEY (`id`),
FOREIGN KEY (`board_id`) REFERENCES `forums` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `posts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(120) ,
`text` text,
`time` int(11),
`author` varchar(64),
`board_id` int(11),
`thread_id` int(11),
PRIMARY KEY (`id`),
FOREIGN KEY (`board_id`) REFERENCES `forums` (`id`) ON DELETE CASCADE,
FOREIGN KEY (`thread_id`) REFERENCES `threads` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `videos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`author` int(11) ,
`title` varchar(120),
`description` tinytext,
`youtube` varchar(45),
`views` int(11),
`time` int(11),
PRIMARY KEY (`id`),
FOREIGN KEY (`author`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `video_comments` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`author` int(11),
`video` int(11),
`time` int(11),
`text` tinytext,
PRIMARY KEY (`id`),
FOREIGN KEY (`video`) REFERENCES `videos` (`id`) ON DELETE CASCADE,
FOREIGN KEY (`author`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `poll` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`question` varchar(150) ,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`date_start` datetime ,
`date_end` datetime ,
`status` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `question` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `poll_answer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`poll_id` int(11) NOT NULL,
`answer` varchar(150) ,
PRIMARY KEY (`id`),
FOREIGN KEY (`poll_id`) REFERENCES `poll` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `poll_votes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`answer_id` int(11) ,
`poll_id` int(11) ,
`account_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
FOREIGN KEY (`answer_id`) REFERENCES `poll_answer` (`id`) ON DELETE CASCADE,
FOREIGN KEY (`poll_id`) REFERENCES `poll` (`id`) ON DELETE CASCADE,
FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

 

 

 

Isso antes de ter importado o banco de dados do servidor.

PokerangersP
14 de fevereiro de 2014 às 09:44

Da erro:

 

 

Erro

Comando SQL:

ALTER TABLE `accounts` ADD `page_access` INT( 11 ) ;

Mensagens do MySQL : dot.gif

#1060 - Duplicate column name 'page_access' ]

 

oque faço?

Editado Fevereiro 14 por Pokerangers

VictorWEBMasterV
14 de fevereiro de 2014 às 19:33

Da erro:

 

 

Erro

Comando SQL:

ALTER TABLE `accounts` ADD `page_access` INT( 11 ) ;

 

Mensagens do MySQL : dot.gif

#1060 - Duplicate column name 'page_access' ]

 

oque faço?

 

 

Exclua a dataabse inteira, quando ela estiver pelada voce executa isso.

PokerangersP
14 de fevereiro de 2014 às 19:48

Limpar ou Eliminar, clicar em eliminar não é possivel.

 

post-368776-0-92915700-1392414503_thumb.png

 

E se eu limpar todos, não terei problemas futuros?