-
[UberCMS]AutoUpdate WebBuild - Updated with SQL
here is a nice little update for UberCMS - AutoUpdate WebBuild
open class.core.php
look for
PHP Code:
public static function GetMaintenanceStatus()
{
return mysql_result(dbquery("SELECT maintenance FROM site_config LIMIT 1"), 0);
}
add under it
PHP Code:
public static function GetWebBuild()
{
return mysql_result(dbquery("SELECT webbuild FROM site_config LIMIT 1"), 0);
}
open global.php
search for
PHP Code:
define('FORCE_MAINTENANCE', ((uberCore::GetMaintenanceStatus() == "1") ? true : false));
add under it
PHP Code:
define('WEBBUILD', uberCore::GetWebBuild());
open class.tpl.php
change
PHP Code:
$this->SetParam('web_build', '50_e3801d20ad745cc86660598ea0c4bdf4/15'); (your build will be different)
to
PHP Code:
$this->SetParam('web_build', WEBBUILD);
create a php file named WebBuild.php and put this in it.
PHP Code:
<?php
if (!defined('UBER') || !UBER)
{
exit;
}
function get_between($input, $start, $end)
{
$substr = substr($input, strlen($start)+strpos($input, $start), (strlen($input) - strpos($input, $end))*(-1));
return $substr;
}
$content = file_get_contents('http://habbo.com/');
$webbuild = get_between($content, "http://images.habbo.com/habboweb/", "/web-gallery");
dbquery("UPDATE site_config SET webbuild = '$webbuild' ");
?>
save that file in inc/cron_scripts
Run this SQL
PHP Code:
INSERT INTO `site_cron` VALUES (6, 6, '1', 'webbuild.php', '', 1200);
and this one
PHP Code:
ALTER TABLE site_config ADD webbuild CHAR(40);
Done....
-
Re: [UberCMS]AutoUpdate WebBuild
Good Job, Ima use this ;)
\
-
Re: [UberCMS]AutoUpdate WebBuild
thanks for this dude, will help alot of people :]
-
Re: [UberCMS]AutoUpdate WebBuild
im already using this :P becuz of u :D *hes my dad so thats why...* wait i wish ther was a LOVE BUTTON :D
-
Re: [UberCMS]AutoUpdate WebBuild
-
Re: [UberCMS]AutoUpdate WebBuild
Wait, I don't know what to add in the database, help please D:
---------- Post added at 07:10 PM ---------- Previous post was at 06:30 PM ----------
help??
-
Re: [UberCMS]AutoUpdate WebBuild
Awesome! Thanks alot for this!
-
Re: [UberCMS]AutoUpdate WebBuild
Doesn't work it is like the first UberCMS that isn't fixed in class.core.
-
Re: [UberCMS]AutoUpdate WebBuild
Then you have added it wrong. It works fine here.
-
Re: [UberCMS]AutoUpdate WebBuild
I have done all correctly..
-
Re: [UberCMS]AutoUpdate WebBuild
Doubt it. It works here, if it doesn't work with you then you have done something wrong.
-
Re: [UberCMS]AutoUpdate WebBuild
I have added the colummns in the database, i use uber vergin CMS.
-
Re: [UberCMS]AutoUpdate WebBuild
Use my webbuild pack??? R63 /126 full??
-
Re: [UberCMS]AutoUpdate WebBuild
-
Re: [UberCMS]AutoUpdate WebBuild
This is good work, could be better here and there but its okay I guess. A little too simple for a high rating. 5/10
-
Re: [UberCMS]AutoUpdate WebBuild
-
Re: [UberCMS]AutoUpdate WebBuild
Quote:
Originally Posted by
X1M!
This is good work, could be better here and there but its okay I guess. A little too simple for a high rating. 5/10
let me know how i can improve it
-
Re: [UberCMS]AutoUpdate WebBuild
-
Re: [UberCMS]AutoUpdate WebBuild
good work will help alot of people
-
Re: [UberCMS]AutoUpdate WebBuild
Works for me, and your method is much better than mine.
-
Re: [UberCMS]AutoUpdate WebBuild
Quote:
Originally Posted by
Jontycat
Works for me, and your method is much better than mine.
How did you do it?
-
Re: [UberCMS]AutoUpdate WebBuild
Not to spam or anything but I think he means How* not Ho so don't offended Jonty.
-
Re: [UberCMS]AutoUpdate WebBuild
Quote:
Originally Posted by
davidon
Not to spam or anything but I think he means How* not Ho so don't offended Jonty.
LOL, yes..... ill edit
-
Re: [UberCMS]AutoUpdate WebBuild
I'm stuck on the step of adding clomn
could you give me the code please insert
Sorry for my bad English, I'm French
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
For those who had problems with the database part I added the SQL scripts to the first post...
have fun
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Quote:
Originally Posted by
simoneihg
Thanks now it works :P
Good.....
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Aww well, I don't need this ;p I can just change it myself.
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Quote:
Originally Posted by
iPixelHotel
Aww well, I don't need this ;p I can just change it myself.
sure u can. who can't?
but look at it this way... ur mom drops u off at preschool in the morning just before Habbo changes its web build.... now ur site is going to look messed up until u get home and change it....
automation is the better way to go.... now ur site will always look good....
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Quote:
Originally Posted by
leenster
sure u can. who can't?
but look at it this way... ur mom drops u off at preschool in the morning just before Habbo changes its web build.... now ur site is going to look messed up until u get home and change it....
automation is the better way to go.... now ur site will always look good....
iPixelHotel is just a little prick who has wreck other peoples work because he can't do this himself. Just ignore him...
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Nice, help alot of people, including me.
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Quote:
Originally Posted by
FlyCoder
iPixelHotel is just a little prick who has wreck other peoples work because he can't do this himself. Just ignore him...
Yeah i know, i was just having a little fun with him....
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Someone has errors when habbo.com change their webbuild shit! Go-a-head
Fix:
go to your webbuild.php and edit this code:
Quote:
function get_between($input, $start, $end)
{
$substr = substr($input, strlen($start)+strpos($input, $start), (strlen($input) - strpos($input, $end))*(-1));
return $substr;
}
to
Quote:
function get_between($content,$start,$end){
$r = explode($start, $content);
if (isset($r[1])){
$r = explode($end, $r[1]);
return $r[0];
}
return '';
}
Then it will work 100%
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
It works! Thanks you so much ! :D
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Quote:
Originally Posted by
NewLights
Someone has errors when habbo.com change their webbuild shit! Go-a-head
Fix:
go to your webbuild.php and edit this code:
to
Then it will work 100%
Nice one, it actually works now. :)
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Quote:
Originally Posted by
NewLights
Someone has errors when habbo.com change their webbuild shit! Go-a-head
Fix:
go to your webbuild.php and edit this code:
to
Then it will work 100%
Cool, thanks.... haven't had any problems here but i'm gonna change my function to your function
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
I have got a problem,
PHP Code:
uberCore::GetWebBuild() in C:\xampp\htdocs\global.php on line 95
I just paste the php code under like you sat.
Code:
define('FORCE_MAINTENANCE', ((uberCore::GetMaintenanceStatus() == "1") ? true : false));
define('WEBBUILD', uberCore::GetWebBuild());
Never mind i forgot to save the file...
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Quote:
Originally Posted by
ladot1001
I have got a problem,
PHP Code:
uberCore::GetWebBuild() in C:\xampp\htdocs\global.php on line 95
I just paste the php code under like you sat.
Code:
define('FORCE_MAINTENANCE', ((uberCore::GetMaintenanceStatus() == "1") ? true : false));
define('WEBBUILD', uberCore::GetWebBuild());
Never mind i forgot to save the file...
Classic:lol:
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
ERROR: Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\inc\class.tpl.php on line 34 help?
and on line 34 is:
$this->SetParam('web_build_str', '51-BUILD45 - 18.05.2010 16:16 - uk');
Help?
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Quote:
Originally Posted by
robertm3363
ERROR: Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\inc\class.tpl.php on line 34 help?
and on line 34 is:
$this->SetParam('web_build_str', '51-BUILD45 - 18.05.2010 16:16 - uk');
Help?
im guessing that u missed the ; at the end of $this->SetParam('web_build', WEBBUILD);
on line 33
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Now everything's sticking to the left of the page for me.. Maybe I did something wrong.. Or my database just hates me >.>
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
help it says to be Cron Error
Could not execute cron job 'webbuild.php': could not locate script file.
Script execution was aborted. We apoligize for the possible inconvenience. If this problem is persistant, please contact an Administrator. how do i fix dat!?
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
'.' Habbo changed paths remmeber??
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
yer didnt they remove the v2 maps?
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Quote:
Originally Posted by
shaina000
Now everything's sticking to the left of the page for me.. Maybe I did something wrong.. Or my database just hates me >.>
Habbo removed the v2 folders, this script will still work though. you just have to find the v2 fix.
Quote:
Originally Posted by
ZackJarvis1
help it says to be Cron Error
Could not execute cron job 'webbuild.php': could not locate script file.
Script execution was aborted. We apoligize for the possible inconvenience. If this problem is persistant, please contact an Administrator. how do i fix dat!?
you have to make sure the webbuild.php is in inc/cron_scripts
Quote:
Originally Posted by
ntl200
yer didnt they remove the v2 maps?
yes they did, but like i said this will still work
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
so how would i fix this error please somebody msg me back on here will help me alot!!! Cron Error
Could not execute cron job 'webbuild.php': could not locate script file.
Script execution was aborted. We apoligize for the possible inconvenience. If this problem is persistant, please contact an Administrator.
---------- Post added at 02:38 AM ---------- Previous post was at 02:31 AM ----------
it is any other sulitions?
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Quote:
Originally Posted by
ZackJarvis1
so how would i fix this error please somebody msg me back on here will help me alot!!! Cron Error
Could not execute cron job 'webbuild.php': could not locate script file.
Script execution was aborted. We apoligize for the possible inconvenience. If this problem is persistant, please contact an Administrator.
---------- Post added at 02:38 AM ---------- Previous post was at 02:31 AM ----------
it is any other sulitions?
you have to make sure u did this right
create a php file named WebBuild.php and put this in it.
PHP Code:
<?php
if (!defined('UBER') || !UBER)
{
exit;
}
function get_between($input, $start, $end)
{
$substr = substr($input, strlen($start)+strpos($input, $start), (strlen($input) - strpos($input, $end))*(-1));
return $substr;
}
$content = file_get_contents('http://habbo.com/');
$webbuild = get_between($content, "http://images.habbo.com/habboweb/", "/web-gallery");
dbquery("UPDATE site_config SET webbuild = '$webbuild' ");
?>
save that file in inc/cron_scripts
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
ok now i got it up wat about this the image's are still messed up look. rangohotel.no-ip.org
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
try my webbuild fix, i think that should help.
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Search for it: webbuild fix 202+
Posted via Mobile Device
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
OK ty so much but now how can i get looks to work?
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL
Quote:
Originally Posted by
ZackJarvis1
OK ty so much but now how can i get looks to work?
just go to the thread http://forum.ragezone.com/f353/webbu...-202-a-742330/ why are you people such hard work :rolleyes:
-
Re: [UberCMS]AutoUpdate WebBuild - Updated with SQL