[UberCMS]AutoUpdate WebBuild - Updated with SQL

Page 1 of 3 123 LastLast
Results 1 to 25 of 54
  1. #1
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    [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($inputstrlen($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_cronVALUES (66'1''webbuild.php'''1200); 
    and this one
    PHP Code:
    ALTER TABLE site_config ADD webbuild CHAR(40); 
    Done....
    Last edited by leenster; 06-03-11 at 04:39 PM.


  2. #2
    Proficient Member HabsHotel is offline
    MemberRank
    Jan 2011 Join Date
    CanadaLocation
    167Posts

    Re: [UberCMS]AutoUpdate WebBuild

    Good Job, Ima use this ;)
    \

  3. #3
    sexiess is a sin. Subway is offline
    MemberRank
    Jun 2010 Join Date
    2,491Posts

    Re: [UberCMS]AutoUpdate WebBuild

    thanks for this dude, will help alot of people :]

  4. #4
    Apprentice Jdude is offline
    MemberRank
    Mar 2011 Join Date
    in my houseLocation
    13Posts

    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
    Last edited by Jdude; 01-03-11 at 10:44 PM.

  5. #5
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: [UberCMS]AutoUpdate WebBuild

    Nice work.

  6. #6
    Banned c0mma is offline
    BannedRank
    Jan 2011 Join Date
    ^RaGEZONE^Location
    696Posts

    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??

  7. #7
    Account Upgraded | Title Enabled! Milw0rm is offline
    MemberRank
    Jul 2007 Join Date
    660Posts

    Re: [UberCMS]AutoUpdate WebBuild

    Awesome! Thanks alot for this!

  8. #8
    Account Upgraded | Title Enabled! simoneihg is offline
    MemberRank
    Dec 2010 Join Date
    PalermoLocation
    243Posts

    Re: [UberCMS]AutoUpdate WebBuild

    Doesn't work it is like the first UberCMS that isn't fixed in class.core.

  9. #9
    Account Upgraded | Title Enabled! Milw0rm is offline
    MemberRank
    Jul 2007 Join Date
    660Posts

    Re: [UberCMS]AutoUpdate WebBuild

    Then you have added it wrong. It works fine here.

  10. #10
    Account Upgraded | Title Enabled! simoneihg is offline
    MemberRank
    Dec 2010 Join Date
    PalermoLocation
    243Posts

    Re: [UberCMS]AutoUpdate WebBuild

    I have done all correctly..

  11. #11
    Account Upgraded | Title Enabled! Milw0rm is offline
    MemberRank
    Jul 2007 Join Date
    660Posts

    Re: [UberCMS]AutoUpdate WebBuild

    Doubt it. It works here, if it doesn't work with you then you have done something wrong.

  12. #12
    Account Upgraded | Title Enabled! simoneihg is offline
    MemberRank
    Dec 2010 Join Date
    PalermoLocation
    243Posts

    Re: [UberCMS]AutoUpdate WebBuild

    I have added the colummns in the database, i use uber vergin CMS.

  13. #13
    Apprentice Logger is offline
    MemberRank
    Feb 2011 Join Date
    Can't find itLocation
    22Posts

    Re: [UberCMS]AutoUpdate WebBuild

    Use my webbuild pack??? R63 /126 full??

  14. #14
    Member Im Legend is offline
    MemberRank
    Mar 2009 Join Date
    93Posts

    Re: [UberCMS]AutoUpdate WebBuild

    This sir is epic!!

  15. #15
    Dirty capitalists. X1M! is offline
    MemberRank
    Dec 2008 Join Date
    450Posts

    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

  16. #16
    ☮TAKU???? seanrom is offline
    MemberRank
    Nov 2009 Join Date
    1,004Posts

    Re: [UberCMS]AutoUpdate WebBuild

    Nice, good work!

  17. #17
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: [UberCMS]AutoUpdate WebBuild

    Quote Originally Posted by X1M! View Post
    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

  18. #18
    Hi. Wouto is offline
    MemberRank
    Feb 2011 Join Date
    London, UKLocation
    236Posts

    Re: [UberCMS]AutoUpdate WebBuild

    nice release 9/10 :)

  19. #19
    Account Upgraded | Title Enabled! Punk is offline
    MemberRank
    Dec 2008 Join Date
    VirginiaLocation
    892Posts

    Re: [UberCMS]AutoUpdate WebBuild

    good work will help alot of people

  20. #20
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: [UberCMS]AutoUpdate WebBuild

    Works for me, and your method is much better than mine.

  21. #21
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: [UberCMS]AutoUpdate WebBuild

    Quote Originally Posted by Jontycat View Post
    Works for me, and your method is much better than mine.
    How did you do it?
    Last edited by leenster; 04-03-11 at 12:21 AM.

  22. #22
    sexiess is a sin. Subway is offline
    MemberRank
    Jun 2010 Join Date
    2,491Posts

    Re: [UberCMS]AutoUpdate WebBuild

    Not to spam or anything but I think he means How* not Ho so don't offended Jonty.

  23. #23
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: [UberCMS]AutoUpdate WebBuild

    Quote Originally Posted by davidon View Post
    Not to spam or anything but I think he means How* not Ho so don't offended Jonty.
    LOL, yes..... ill edit

  24. #24
    Apprentice nasmen is offline
    MemberRank
    Jul 2009 Join Date
    8Posts

    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
    Last edited by nasmen; 05-03-11 at 01:24 AM.

  25. #25
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    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



Page 1 of 3 123 LastLast

Advertisement