Discussione Piccoli Problemi...

Stato
Discussione chiusa ad ulteriori risposte.

-Luigi23-

Utente Electrum
13 Giugno 2012
157
23
12
107
Ragazzi uso un db ertix e un cms ertix e mi serve aiuto!
1.Vorrei eliminare l'auto incremento dei crediti, che aumenta i crediti di 500 ogni 2 o 3 minuti.
Come fare?
2.Il mio housekeeping non credo abbia tutte le funzioni e credo alcune non funzionino come per esempio creare un codice crediti, mi da errore dicendo che la tabella voucher non esiste non so da quale database prenderla!
3.Ho hostato i dcr su altervista e per provarli ho copiato il contenuto di flash.php in un nuovo file che si chiama prova.php ma quando vado ad aprirlo mi si fa tutto bianco posto sotto i file!

external_variables:
feed.badge_decorations.album=Feed_Badges
image.library.questing.url=http://skelpyhotel.altervista.org/r63/c_images/Quests/
productdata.load.url=http://skelpyhotel.altervista.org/r63/gamedata/productdata.txt
logout.url=http://%predefined%/account/disconnected?reason=%reason%&origin=%origin%
viral.furni.post_type=appRequest
image.library.playlist.url=http://skelpyhotel.altervista.org/r63/c_images/playlist/
billboard.adwarning.left.url=AdWarningsUK/ad_warning_L.png
navigator.default.view=public
latencytest.interval=20000
furnidata.load.url=http://skelpyhotel.altervista.org/r63/gamedata/furnidata.txt
external.figurepartlist.txt=http://skelpyhotel.altervista.org/r63/gamedata/figuredata.xml
image.library.url=http://skelpyhotel.altervista.org/r63/c_images/
external.texts.txt=http://skelpyhotel.altervista.org/r63/external_flash_texts.txt
latencytest.report.delta=100
client.hotel_view.image=hotel_view_images_hq/plane.png
billboard.adwarning.right.url=AdWarningsUK/ad_warning_R.png
image.library.catalogue.url=http://skelpyhotel.altervista.org/r63/c_images/catalogue/
flash.dynamic.download.url=http://skelpyhotel.altervista.org/r63/dcr/hof_furni/
flash.dynamic.download.samples.template=mp3/sound_machine_sample_%typeid%.mp3
flash.dynamic.download.name.template=%typeid%.swf
feed.badge_decorations.decoration_id=001
avatareditor.allowclubtryout=1
private.image.library.url=http://skelpyhotel.altervista.org/r63/c_images/
logout.disconnect.url=http://%predefined%/account/disconnected?reason=logout&origin=%origin%
hotelview.banner.url=http://skelpyhotel.altervista.org/r63/gamedata/banner.png
latencytest.report.index=3
client.allow.facebook.like=1
catalog.drag_and_drop=true
catalog.furniture.animation=true
link.format.friendlist.pref=http://%predefined%/profile/friendsmanagement?tab=6
room.dragging.always_center=0
group.badge.url=http://%predefined%/habbo-imaging/badge/%imagerdata%.gif
roomenterad.habblet.enabled=false
questing.showDetailsForNextQuest=false
habboinfotool.url=https://theallseeingeye.sulake.com/ase/habbo/us/housekeeping/extra/hobba/scam_userinfo_new.action?searchParamName=username&database=Stats&searchParamValue=
link.format.credits=http://%predefined%/credits
lagWarningLog.enabled=1
hover.name.enabled=true
client.toolbar.static.enabled=true
questing.startQuestDelayInSeconds=10
client.hotel_view.show_on_startup=1
cfh.usercategories.withnoharasser=101,102,103,104,105,106
roominfo.widget.enabled=1
navigator.always_open_after_login=0
client.minimail.embed.enabled=true
friend_bar.helper.friend_finding.enabled=true
interstitial.enabled=false
pixels.enabled=true
questing.enabled=true
welcome.screen.enabled=0
link.format.club=http://%predefined%/credits/habboclub
club.subscription.disabled=1
cfh.usercategories.withharasser=101,102,103,104,105,106
client.fatal.error.url=http://%predefined%/client_error
embed.showInRoomInfo=true
friendbar.enabled=true
moderatoractionlog.url=https://theallseeingeye.sulake.com/ase/habbo/us/housekeeping/extra/hobba/moderator_activity.action?searchCriteria.habboName=
interstitial.interval=120000
roomadmin.url=https://theallseeingeye.sulake.com/ase/habbo/us/housekeeping/extra/hobba/roomadmin_search.action?searchParamType=3&searchParamValue=
interstitial.show.time=5000
client.allow.external.links=1
menu.avatar.enabled=true
client.credits.embed.enabled=true
link.format.mail.compose=http://%predefined%/me#mail/compose/%recipientid%/%random%/
room.rating.enable=1
navigator.colorlimit.yellow=50
new.chat.widget.enabled=1
interstitial.max.displays=8
questing.defaultCampaign=room_builder
navigator.colorlimit.orange=80
link.format.collectibles=http://%predefined%/credits/collectibles
link.format.userpage=http://%predefined%//rd/%ID%
avatar.widget.enabled=1
navigator.default_tab=official
client.logout.enabled=true
infostand.report.show=1
subscription.reminder.when.days.left=5
navigator.colorlimit.red=92
client.news.embed.enabled=true
purse.widget.enabled=1

variables:
simple.memenu.enabled=1
feed.badge_decorations.album=Feed_Badges
image.library.questing.url=http://skelpyhotel.altervista.org/r63/c_images/Quests/
productdata.load.url=http://skelpyhotel.altervista.org/r63/gamedata/productdata.txt
logout.url=http://%predefined%/client/disconnected.php
viral.furni.post_type=appRequest
image.library.playlist.url=http://skelpyhotel.altervista.org/r63/c_images/playlist/
billboard.adwarning.left.url=AdWarningsUK/ad_warning_L.png
navigator.default.view=public
latencytest.interval=20000
furnidata.load.url=http://skelpyhotel.altervista.org/r63/gamedata/furnidata.txt
external.figurepartlist.txt=http://skelpyhotel.altervista.org/r63/gamedata/figuredata.xml
image.library.url=http://skelpyhotel.altervista.org/r63/c_images/
external.texts.txt=http://skelpyhotel.altervista.org/r63/gamedata/texts.txt
latencytest.report.delta=100
flash.dynamic.download.name.template=%typeid%.swf
client.hotel_view.image=hotel_view_images_hq/plane.png
billboard.adwarning.right.url=AdWarningsUK/ad_warning_R.png
image.library.catalogue.url=http://skelpyhotel.altervista.org/r63/c_images/catalogue/
flash.dynamic.download.url=http://skelpyhotel.altervista.org/r63/dcr/hof_furni/
flash.dynamic.download.samples.template=mp3/sound_machine_sample_%typeid%.mp3
feed.badge_decorations.decoration_id=001
avatareditor.allowclubtryout=1
dynamic.download.name.template=cct/hh_furni_xx_%typeid%.cct
link.friendbar.stream.settings.see.more=http://%predefined%/articles.php
private.image.library.url=http://skelpyhotel.altervista.org/r63/c_images/
logout.disconnect.url=http://%predefined%/client/disconnected.php
hotelview.banner.url=http://skelpyhotel.altervista.org/r63/gamedata/banner.png
latencytest.report.index=3
dynamic.download.samples.template=%typeid%.cct
dynamic.download.url=http://skelpyhotel.altervista.org/r63/dcr/hof_furni/
client.allow.facebook.like=0
infostand.use.button.enabled=true
friendbar.stream.enabled=true
catalog.drag_and_drop=true
link.format.friendlist.pref=http://%predefined%/settings.php
club.membership.extend.vip.promotion.enabled=true
group.badge.url=http://%predefined%/habbo-imaging/badge/%imagerdata%.gif
room.dragging.always_center=0
roomenterad.habblet.enabled=true
questing.showDetailsForNextQuest=false
supersaverads.video.promo.development.mode=false
habboinfotool.url=http://%predefined%/housekeeping/
link.format.credits=http://%predefined%/credits.php
friendbar.requests.enabled=true
lagWarningLog.enabled=1
hover.name.enabled=false
client.toolbar.static.enabled=true
questing.useWing=true
questing.startQuestDelayInSeconds=10
client.hotel_view.show_on_startup=1
cfh.usercategories.withnoharasser=101,102,103,104,105,106
catalog.furniture.animation=true
roominfo.widget.enabled=1
navigator.always_open_after_login=0
client.minimail.embed.enabled=true
interstitial.enabled=false
friend_bar.helper.friend_finding.enabled=true
pixels.enabled=true
supersaverads.video.promo.enabled=false
welcome.screen.enabled=0
link.format.club=http://%predefined%/club.php
club.subscription.disabled=1
toolbar.new_additions.notification.enabled=true
cfh.usercategories.withharasser=101,102,103,104,105,106
client.fatal.error.url=http://%predefined%/client/disconnected.php
embed.showInRoomInfo=true
moderatoractionlog.url=http://%predefined%/housekeeping/
groupBadgeInfo.enabled=true
friendbar.stream.user.enabled=true
interstitial.interval=120000
purse.widget.currency.shells.enabled=1
interstitial.show.time=5000
roomadmin.url=http://%predefined%/housekeeping/
client.allow.external.links=1
menu.avatar.enabled=true
client.credits.embed.enabled=false
link.format.mail.compose=http://%predefined%/me.php
room.rating.enable=1
navigator.colorlimit.yellow=50
interstitial.max.displays=8
questing.defaultCampaign=room_builder
trax.player.sample.memory.purge.enabled=1
friendbar.notifications.enabled=true
friendbar.stream.liking.enabled=true
friendbar.stream.pet_purchase.publish.enabled=true
menu.own_avatar.enabled=1
navigator.colorlimit.orange=80
link.format.collectibles=http://%predefined%/collectibles.php
link.format.userpage=http://%predefined%//rd/%ID%
club.membership.extend.basic.promotion.enabled=true
avatar.widget.enabled=1
client.logout.enabled=true
friendbar.stream.status.enabled=true
navigator.default_tab=official
infostand.report.show=1
subscription.reminder.when.days.left=5
navigator.colorlimit.red=92
client.news.embed.enabled=false
purse.widget.enabled=1

flash.php(che ho modificato):
<?php


include('core.php');
include('includes/session.php');

if($logged_in){
require_once('includes/session.php');
} else {
header("location: clientutils.php?key=loginplease");
exit;
}

if($online !== "online" && $enable_status_image == "1"){
echo "<font color='white'><center><b>".$sitename." is offline</b></center></font>";
exit();
}

if($remote_ip == "79.27.149.247" || $remote_ip == "localhost" && $server_on_localhost == 1){
$ip = "79.27.149.247";
}

if(isset($_get['roomid']) && $_get['forwardid'] == "2"){
$roomid = $_get['roomid'];
$checksql = mysql_query("select id from rooms where id = '".$roomid."' limit 1");
$roomexists = mysql_num_rows($checksql);
if($roomexists > 0){
$forward = "1";
echo "<!-- forwarding to room ".$roomid." -->";
} else {
$forward = "0";
echo "<!-- room doesn't exist; not forwarding -->";
}
} else {
echo "<!-- no room forward requested, normal loader -->";
$forward = "0";
}
$myticket = GenerateTicket();
mysql_query("UPDATE users SET auth_ticket = '".$myticket."', ip_last = '".$remote_ip."' WHERE id = '".$my_id."' LIMIT 1") or die(mysql_error());
?>
<!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" xml:lang="en" lang="en" xmlns:eek:g="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7" />

<title>Skelpy Hotel ~ Client</title>

<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
<link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="alternate" type="application/rss+xml" title="Habbo: RSS" href="http://www.habbo.it/articles/rss.xml" />
<script src="flashclient/libs2.js" type="text/javascript"></script>

<script src="flashclient/visual.js" type="text/javascript"></script>
<script src="flashclient/libs.js" type="text/javascript"></script>
<script src="flashclient/common.js" type="text/javascript"></script>
<link rel="stylesheet" href="flashclient/style.css" type="text/css" />
<link rel="stylesheet" href="flashclient/bottons.css" type="text/css" />
<link rel="stylesheet" href="flashclient/boxes.css" type="text/css" />
<link rel="stylesheet" href="flashclient/tooltips.css" type="text/css" />
<link rel="stylesheet" href="flashclient/changepassword.css" type="text/css" />


<script type="text/javascript">

</script>
<script type="text/javascript">
var habboReqPath = "";
var habboStaticFilePath = "http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/252/web-gallery";
var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
var habboDefaultClientPopupUrl = "http://localhost/client.php";



</script>





<link rel="stylesheet" href="flashclient/habboclient.css" type="text/css" />
<link rel="stylesheet" href="flashclient/habboflashclient.css" type="text/css" />
<script src="flashclient/habboflashclient.js" type="text/javascript"></script>
<script type="text/javascript">


if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "localhost",
"connection.info.port" : "30000",
"site.url" : "http://localhost",
"url.prefix" : "http://localhost",
"client.reload.url" : "/account/reauthenticate?page=/flash_client",
"client.fatal.error.url" : "/disconnesso.php",
"client.connection.failed.url" : "/disconnesso.php",
"external.variables.txt" : "http://skelpyhotel.altervista.org/r63/gamedata/external_variables.txt",
"external.texts.txt" : "http://skelpyhotel.altervista.org/r63/gamedata/external_flash_texts.txt",
"productdata.load.url" : "http://skelpyhotel.altervista.org/r63/gamedata/productdata.txt",
"furnidata.load.url" : "http://skelpyhotel.altervista.org/r63/gamedata/furnidata.txt",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php echo $myticket; ?>",
"processlog.enabled" : "0",
"account_id" : "0",
"client.starting" : "Attendi perfavore! Skelpy sta caricando.",
"flash.client.url" : "http://skelpyhotel.altervista.org/r63/gordon/new/",
"user.hash" : "",
"has.identity" : "0",
"flash.client.origin" : "popup"
};
var params = {
"base" : "http://skelpyhotel.altervista.org/r63/gordon/new/",
"allowScriptAccess" : "always",
"menu" : "false"
};

if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}

FlashExternalInterface.signoutUrl = "http://localhost/logout.php";

var clientUrl = "http://skelpyhotel.altervista.org/r63/gordon/new/Habbo.swf";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "flashclient/expressInstall.swf", flashvars, params);

window.onbeforeunload = unloading;
function unloading() {
var clientObject;
if (navigator.appName.indexOf("Microsoft") != -1) {
clientObject = window["flash-container"];
} else {
clientObject = document["flash-container"];
}
try {
clientObject.unloading();
} catch (e) {}
}
</script>

<meta name="description" content="Habbo Hotel: amici, divertimento, celebrità!" />
<meta name="keywords" content="habbo hotel, virtuale, mondo, social network, gratis, community, avatar, personaggio, chat, online, giovane, ragazzi, gioco di ruolo, giochi di ruolo, iscriviti, social, gruppi, forum, sicurezza, giocare, giochi, online, amici, giovani, rari, furni rari, collezione, creare, collezionare, connettersi, furni, mobili, cuccioli, animali, creazione stanze, condivisione, espressione, distintivi, badge, uscire, musica, VIP, celebrità, visite VIP, famosi, mmo, mmorpg, multiplayer" />




<!--[if IE 8]>
<link rel="stylesheet" href="flashclient/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="flashclient/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="flashclient/ie6.css" type="text/css" />
<script src="flashclient/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>

<style type="text/css">
body { behavior: url(/js/csshover.htc); }
</style>
<![endif]-->
<meta name="build" content="63-BUILD259 - 23.02.2011 23:10 - it" />
</head>

<body id="client" class="flashclient">
<div id="overlay"></div>
<img src="flashclient/page_loader.gif" style="position:absolute; margin: -1500px;" />

<div id="overlay"></div>
<div id="client-ui" >
<div id="flash-wrapper">

<div id="flash-container">
<div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
<div class="cbb clearfix">
<h2 class="title">Aggiorna Flash Player all'ultima versione disponibile</h2>
<div class="box-content">
<p>Puoi scaricare e istallare Adobe Flash Player <a href="http://get.adobe.com/flashplayer/">da questa URL</a>. Puoi trovare le istruzioni di istallazione <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">cliccando qui</a>.</p>

<p><a href="http://www.adobe.com/go/getflashplayer"><img src="flashclient/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</div>
</div>
<script type="text/javascript">
$('content').show();
</script>
<noscript>
<div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
<p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
</div>
</noscript>
</div>
</div>

<div id="content" class="client-content"></div>
</div>
<div style="display: none">
<div id="habboCountUpdateTarget">
4,017 Habbo in Hotel
</div>
<script language="JavaScript" type="text/javascript">
setTimeout(function() {
HabboCounter.init(600);
}, 20000);
</script>
</div>
<script type="text/javascript">
RightClick.init("flash-wrapper", "flash-container");
if (window.opener && window.opener != window && window.opener.location.href == "/") {
window.opener.location.replace("/me");
}
$(document.body).addClassName("js");
HabboClient.startPingListener();
</script>




<script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-448325-20");
pageTracker._trackPageview();
</script>

<script type="text/javascript">
HabboView.run();
</script>

</body>
</html>
Serve altro?
Aiutatemi per favore...
 
1° errore = sto controllando
2° errore = aggiungi sti query al tuo db

Codice:
CREATE TABLE IF NOT EXISTS `credit_vouchers` (
  `code` varchar(50) NOT NULL,
  `value` int(11) NOT NULL DEFAULT '0',
  KEY `code` (`code`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

3° errore = i dcr non sono configurati...
 
come configurare i dcr allora?

- - - Updated - - -

P.S. Il secondo errore quella tabella gia ce l'ho

- - - Updated - - -

2° errore risolto
 
Allora, dato che non hai ancora detto che hai risolto, ti invito a cambiare le seguenti righe:

"connection.info.host" : "localhost",
"connection.info.port" : "30000",
"site.url" : "http://localhost",
"url.prefix" : "http://localhost",


In

"connection.info.host" : "Tuo Ip Senza Http://",
"connection.info.port" : "30000",
"site.url" : "http://Tuo Ip/",
"url.prefix" : "http://Tuo Ip/",


Se lo hai già fatto hai sbagliato a postare il flash.php e ti invito a cambiarlo.
In modo contrario dici che hai risolto e farò chiudere.


- - - Updated - - -

var habboDefaultClientPopupUrl = "http://localhost/client.php";

In

var habboDefaultClientPopupUrl = "http://Tuo ip/client.php";

E anche

var habboDefaultClientPopupUrl = "http://localhost/client.php";


In

var habboDefaultClientPopupUrl = "http://Tuo Ip/client.php";


Ti ripeto, se risolvi avvisa, in modo che i Moderatori possano spostare e rinominare come Risolto il topic.


 
Stato
Discussione chiusa ad ulteriori risposte.