[HABBO] Hot Campaigns

Page 2 of 3 FirstFirst 123 LastLast
Results 26 to 50 of 63
  1. #26
    Infraction Banned Suzushima is offline
    Grand MasterRank
    Apr 2009 Join Date
    686Posts

    Re: [HABBO] Hot Campaigns

    The housekeeping doesnt work.You click Hot Randoms Edit then Go!Then it says saved succesfully

  2. #27
    retired Andrew is offline
    Grand MasterRank
    Jun 2008 Join Date
    985Posts

    Re: [HABBO] Hot Campaigns

    Just make a table like cms_campaigns

    and then do it like iJames' staff picks

    ID
    Name
    Image
    URL
    Desc

    then in HK make a "add" and a "manage"
    then on the page
    [php]

    <div class="habblet-container ">
    <div class="cbb clearfix orange ">

    <h2 class="title">Hot Campaigns
    </h2>
    <div id="hotcampaigns-habblet-list-container">
    <ul id="hotcampaigns-habblet-list">
    <?php
    $getcampaigns = mysql_query("select * from cms_campaigns");
    while($campaigns = mysql_fetch_assoc($getcampaigns)) {
    ?>
    <li class="even">
    <div class="hotcampaign-container">
    <a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
    <h3><?php echo $campaigns['name']; ?></h3>
    <p><?php echo $campaigns['desc']; ?></p>
    <p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there

  3. #28
    8-bit Bitch Slapper Alpha Ducky is offline
    Grand MasterRank
    Mar 2007 Join Date
    In My HouseLocation
    2,436Posts

    Re: [HABBO] Hot Campaigns

    [quote=handyandy160;5022844]Just make a table like cms_campaigns

    and then do it like iJames' staff picks

    ID
    Name
    Image
    URL
    Desc

    then in HK make a "add" and a "manage"
    then on the page
    [php]

    <div class="habblet-container ">
    <div class="cbb clearfix orange ">

    <h2 class="title">Hot Campaigns
    </h2>
    <div id="hotcampaigns-habblet-list-container">
    <ul id="hotcampaigns-habblet-list">
    <?php
    $getcampaigns = mysql_query("select * from cms_campaigns");
    while($campaigns = mysql_fetch_assoc($getcampaigns)) {
    ?>
    <li class="even">
    <div class="hotcampaign-container">
    <a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
    <h3><?php echo $campaigns['name']; ?></h3>
    <p><?php echo $campaigns['desc']; ?></p>
    <p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there

  4. #29
    Old Habbo Developer AresCJ is offline
    Grand MasterRank
    Jan 2009 Join Date
    USALocation
    1,183Posts

    Re: [HABBO] Hot Campaigns

    [quote=handyandy160;5022844]Just make a table like cms_campaigns

    and then do it like iJames' staff picks

    ID
    Name
    Image
    URL
    Desc

    then in HK make a "add" and a "manage"
    then on the page
    [php]

    <div class="habblet-container ">
    <div class="cbb clearfix orange ">

    <h2 class="title">Hot Campaigns
    </h2>
    <div id="hotcampaigns-habblet-list-container">
    <ul id="hotcampaigns-habblet-list">
    <?php
    $getcampaigns = mysql_query("select * from cms_campaigns");
    while($campaigns = mysql_fetch_assoc($getcampaigns)) {
    ?>
    <li class="even">
    <div class="hotcampaign-container">
    <a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
    <h3><?php echo $campaigns['name']; ?></h3>
    <p><?php echo $campaigns['desc']; ?></p>
    <p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there

  5. #30
    retired Andrew is offline
    Grand MasterRank
    Jun 2008 Join Date
    985Posts

    Re: [HABBO] Hot Campaigns

    Yes, I think thats the best way to do it Ricky.
    No problem on the explaination

    @Cornelius, do whatever you like :P

  6. #31
    Sorcerer Supreme ARMYDUDE is offline
    Member +Rank
    May 2007 Join Date
    Arcola, LouisiaLocation
    441Posts

    Re: [HABBO] Hot Campaigns

    wait instead of us doing all this copy paste and upload and u make the files for us and then like release it and we upload it to the rite spot?

  7. #32
    Elite Member succeded is offline
    Member +Rank
    Nov 2008 Join Date
    Nova's DBLocation
    201Posts

    Re: [HABBO] Hot Campaigns

    this looks great hope you can finish the Housekeeping way soon.

    Here i leave the style.css for it:

    Code:
    /* Hot campaigns */
    
    #hotcampaigns-habblet-list-container { padding: 5px 5px 0 5px; }
    #hotcampaigns-habblet-list-container p { padding: 5px; }
    
    #hotcampaigns-habblet-list { list-style-type: none; margin: 0; padding: 0; }
    #hotcampaigns-habblet-list li { float: left; clear: both; width: 100%; }
    #hotcampaigns-habblet-list li div.hotcampaign-container { padding: 5px 10px; }
    #hotcampaigns-habblet-list li.even:hover { background-color: #dceafa; }
    #hotcampaigns-habblet-list li.odd:hover { background-color: #f1f8ff; }
    #hotcampaigns-habblet-list li p.link { margin: 0; padding: 0; text-align: right; }
    #hotcampaigns-habblet-list li p.link a { color:#399001; }
    #hotcampaigns-habblet-list li p { margin: 0; padding: 0; }
    #hotcampaigns-habblet-list li h3 { font-size: 13px; margin: 5px 0 0 0; padding: 0; }
    #hotcampaigns-habblet-list li img { margin: 5px 5px 5px 0; }
    Just add it to your style.css at web-gallery/v2/styles/style.css

  8. #33
    Sorcerer Supreme bartskinu is offline
    Member +Rank
    Dec 2007 Join Date
    320Posts

    Re: [HABBO] Hot Campaigns

    [quote=handyandy160;5022844]Just make a table like cms_campaigns

    and then do it like iJames' staff picks

    ID
    Name
    Image
    URL
    Desc

    then in HK make a "add" and a "manage"
    then on the page
    [php]

    <div class="habblet-container ">
    <div class="cbb clearfix orange ">

    <h2 class="title">Hot Campaigns
    </h2>
    <div id="hotcampaigns-habblet-list-container">
    <ul id="hotcampaigns-habblet-list">
    <?php
    $getcampaigns = mysql_query("select * from cms_campaigns");
    while($campaigns = mysql_fetch_assoc($getcampaigns)) {
    ?>
    <li class="even">
    <div class="hotcampaign-container">
    <a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
    <h3><?php echo $campaigns['name']; ?></h3>
    <p><?php echo $campaigns['desc']; ?></p>
    <p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there

  9. #34
    8-bit Bitch Slapper Alpha Ducky is offline
    Grand MasterRank
    Mar 2007 Join Date
    In My HouseLocation
    2,436Posts

    Re: [HABBO] Hot Campaigns

    Quote Originally Posted by bartskinu View Post
    What's the sql by this
    My sql won't work
    You need to make it yourself :P
    I'm currently working on one
    but won't be able to release unless I get a hotel to test it with...

  10. #35
    Grand Master Pure is offline
    Grand MasterRank
    May 2008 Join Date
    809Posts

    Re: [HABBO] Hot Campaigns

    You rly don't need a beta lulz, It's a simple bit of code, I done it pretty much the same was as Andy!

    It's a simple php while loop, I've got to say, If you can't code basic php, you should be releasing a script like this :)

    Then, all you have to do for the housekeeping is edit the recommended groups to coincide with your SQL, and it's really that simple.

    Many thanks,
    iJames.

  11. #36
    Member Riiad is offline
    MemberRank
    Jan 2009 Join Date
    80Posts

    Re: [HABBO] Hot Campaigns

    Sql insertion code ?

  12. #37
    8-bit Bitch Slapper Alpha Ducky is offline
    Grand MasterRank
    Mar 2007 Join Date
    In My HouseLocation
    2,436Posts

    Re: [HABBO] Hot Campaigns

    I almost got it :P
    Should be done in a bit

  13. #38
    Member Riiad is offline
    MemberRank
    Jan 2009 Join Date
    80Posts

    Re: [HABBO] Hot Campaigns

    You can give us the whole pack?

  14. #39
    Sorcerer Supreme Hazzbo@Ragezone is offline
    Member +Rank
    Apr 2009 Join Date
    GermanyLocation
    281Posts

    Re: [HABBO] Hot Campaigns

    I can't test if it

  15. #40
    Member Riiad is offline
    MemberRank
    Jan 2009 Join Date
    80Posts

    Re: [HABBO] Hot Campaigns

    Nice...
    SQL INSERTION COE ?

  16. #41
    Member gabrieol is offline
    MemberRank
    Feb 2009 Join Date
    64Posts

    Re: [HABBO] Hot Campaigns

    erro enter

  17. #42
    Member gabrieol is offline
    MemberRank
    Feb 2009 Join Date
    64Posts

    Re: [HABBO] Hot Campaigns

    postssssssssss

  18. #43
    Sorcerer Supreme Hazzbo@Ragezone is offline
    Member +Rank
    Apr 2009 Join Date
    GermanyLocation
    281Posts

    Re: [HABBO] Hot Campaigns

    Quote Originally Posted by Riiad View Post
    Nice...
    SQL INSERTION COE ?
    SQL is in Download? [sql.sql] Click Here to Download

    Quote Originally Posted by gabrieol View Post
    erro enter
    What are you talking about, stop posting shit!

  19. #44
    Sorcerer Supreme Hazzbo@Ragezone is offline
    Member +Rank
    Apr 2009 Join Date
    GermanyLocation
    281Posts

    Re: [HABBO] Hot Campaigns

    Sorry for Double Post, but here is the Fix (It works, because I tested it):

    Me.php:

    PHP Code:
                    <div class="habblet-container ">        
                            <div class="cbb clearfix orange ">
        
                                <h2 class="title">Hot Campaigns
                                </h2>
                            <div id="hotcampaigns-habblet-list-container">
        <ul id="hotcampaigns-habblet-list">
    <?php
    $getcampaigns 
    mysql_query("select * from cms_campaigns");
    while(
    $campaigns mysql_fetch_assoc($getcampaigns)) {
    ?>
            <li class="even">
                <div class="hotcampaign-container">
                    <a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
                    <h3><?php echo $campaigns['name']; ?></h3>
                    <p><?php echo $campaigns['desc']; ?></p>
                    <p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there &raquo;</a></p>
                </div>
            </li>
    <?php  ?>
        </ul>
    </div>
        
                            
                        </div>
                    </div>
                    <script type="text/javascript">if (!$(document.body).hasClassName('process-template)) { Rounder.init(); }</script>
    Housekeeping/Index.php:

    PHP Code:
                } elseif($p == "campaign"){
                    
    $tab 3;
                    include(
    'campaign.php');
                } elseif(
    $p == "campaigns"){
                    
    $tab 3;
                    include(
    'campaigns.php'); 
    Downloadlink: MediaFire

    Housekeeping/campaings.php is just an overview, because edit and delete doesn

  20. #45
    C++ WoW Scripter NitroHabbz is offline
    Grand MasterRank
    Mar 2008 Join Date
    551Posts

    Re: [HABBO] Hot Campaigns

    Quote Originally Posted by Retro! View Post
    I thought habbzhotel had it first?
    Never heard of epichotel,
    Epichotel = SickHotel.

    Habbz was infact 2nd to get it, Epic was first

  21. #46
    Old Habbo Developer AresCJ is offline
    Grand MasterRank
    Jan 2009 Join Date
    USALocation
    1,183Posts

    Re: [HABBO] Hot Campaigns

    There are different methods of making it, and I see all of you have different types.

  22. #47
    Grand Master Mark1994123 is offline
    Grand MasterRank
    May 2007 Join Date
    NetherlandsLocation
    814Posts

    Re: [HABBO] Hot Campaigns

    Good Job AresCJ :)

    Mark

  23. #48
    Sorcerer Supreme bartskinu is offline
    Member +Rank
    Dec 2007 Join Date
    320Posts

    Re: [HABBO] Hot Campaigns

    [quote=Hazzbo@Ragezone;5023956]Sorry for Double Post, but here is the Fix (It works, because I tested it):

    Me.php:

    PHP Code:
                    <div class="habblet-container ">        
                            <div class="cbb clearfix orange ">
        
                                <h2 class="title">Hot Campaigns
                                </h2>
                            <div id="hotcampaigns-habblet-list-container">
        <ul id="hotcampaigns-habblet-list">
    <?php
    $getcampaigns 
    mysql_query("select * from cms_campaigns");
    while(
    $campaigns mysql_fetch_assoc($getcampaigns)) {
    ?>
            <li class="even">
                <div class="hotcampaign-container">
                    <a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
                    <h3><?php echo $campaigns['name']; ?></h3>
                    <p><?php echo $campaigns['desc']; ?></p>
                    <p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there &raquo;</a></p>
                </div>
            </li>
    <?php  ?>
        </ul>
    </div>
        
                            
                        </div>
                    </div>
                    <script type="text/javascript">if (!$(document.body).hasClassName('process-template)) { Rounder.init(); }</script>
    Housekeeping/Index.php:

    PHP Code:
                } elseif($p == "campaign"){
                    
    $tab 3;
                    include(
    'campaign.php');
                } elseif(
    $p == "campaigns"){
                    
    $tab 3;
                    include(
    'campaigns.php'); 
    Downloadlink: MediaFire

    Housekeeping/campaings.php is just an overview, because edit and delete doesn

  24. #49
    Grand Master Lyserinc is offline
    Grand MasterRank
    Mar 2008 Join Date
    SwedenLocation
    554Posts

    Re: [HABBO] Hot Campaigns

    Where do you put the code in?

  25. #50
    Grand Master Mark1994123 is offline
    Grand MasterRank
    May 2007 Join Date
    NetherlandsLocation
    814Posts

    Re: [HABBO] Hot Campaigns

    Can someone upload a rar with all include?

    and a Readme file?

    - Thanks - Mark



Page 2 of 3 FirstFirst 123 LastLast

Advertisement