[1.X.X] Housekeeping Release.

Status
Not open for further replies.

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
Hey,

So I'm looking through my old files and I know that a few peopled wanted my housekeeping, before you download, read this, I once sent Kryptos my Rev Theme and he told me what I could improve and this was a lot as I called a lot that I didn't need to, and I did a fix up version but I cannot find this anywhere, this release is perfectly fine but you can easily improve it by a lot.

ALSO, I do not have the SQL's (YET), I'll post them soon, (as it logs the users IP/action due to some fuckers that had one of my staff members password, needed to do better tracking =D, also the coupon crap and 'nonurgenttickets' they need extra files from the CMS, which I might release later.

A few things to note: I edited some stuff in class.users, not sure if you guys need it, until I check, also some more things you could improve if you ain't lazy, the page ranks can be done in the classes and a few more, but you'll get to it, I'll not be using Rev no more, so no use to me.

Anyways, here is the link:



I'll post screenshots in a few minutes.

Also I know I didn't really use RevCMS to it's full advantage, but now I have no excuses, practice makes perfect =D.

- EDIT -


Also, FYI, this works for Phoenix by default, I didn't use Butterfly then, or did I, unsure ;/

- EDIT -

Screenshot:

6a2kW9mBgGYz.png

Also, I just remembered I made a pin-check and force-password update for the staff, so go to 'class.users.php', and find 'final public function loginHK()'.

Next, replace ALL of that function with this:


Then add this under the function:


Then run this SQL:


That should be enough, oh yeah you will need to add a field to the users table, which is 'housekeeping_pin'.

- Cheers.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
Screenshot:

6a2kW9mBgGYz.png

Also, I just remembered I made a pin-check and force-password update for the staff, so go to 'class.users.php', and find 'final public function loginHK()'.

Next, replace ALL of that function with this:


Then add this under the function:


Then run this SQL:


That should be enough, oh yeah you will need to add a field to the users table, which is 'housekeeping_pin'.

- Cheers.
 

Kristopher

Photographer
Dec 25, 2010
803
68
Screenshot:

6a2kW9mBgGYz.png

Also, I just remembered I made a pin-check and force-password update for the staff, so go to 'class.users.php', and find 'final public function loginHK()'.

Next, replace ALL of that function with this:


Then add this under the function:


Then run this SQL:


That should be enough, oh yeah you will need to add a field to the users table, which is 'housekeeping_pin'.

- Cheers.
As far as campign and values how does that go. Plan to release them?
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
As far as campign and values how does that go. Plan to release them?

Sure, I'll release them (eventually) probably not today or tomorrow, but when I remember I will. :p
 

Kristopher

Photographer
Dec 25, 2010
803
68
Sure, I'll release them (eventually) probably not today or tomorrow, but when I remember I will. :p
This works for campaigns. Just need to edit SQL as all this is prepared for your HK. Also your news comments would be even better and tags <3

PHP:
<?php
    $campaign = mysql_query("SELECT * FROM cms_campaigns ORDER BY `id` DESC"); // Query, Select data from cms_camps..
    if(mysql_num_rows($campaign) == 0){
        echo 'MAKE A CAMPAIGN TO FIX ME!!!'; // No campaigns? This will show.
    }else{
        echo '<div class="habblet-container ">'; // Container..
        echo '<div class="cbb clearfix orange ">'; // Decor..
        echo '<h2 class="title">Hot Campaigns</h2>
                  <div id="hotcampaigns-habblet-list-container">
            <div class="hotcampaign-container">';
        }
 
        while($row = mysql_fetch_array($campaign)){ // Fetch shit from $camps..
 
            // Start variables
            $id = $row["id"];
            $caption = $row["caption"];
            $image_url = $row["image_url"];
            $description = $row["description"];
            $url = $row["url"];
            // End variables
   
            echo '<ul id="hotcampaigns-habblet-list">
                  <li class="even">
                  <a href="'.$url.'">
                  <img src="'.$image_url.'" align="left" alt="'.$caption.'" /></a>
                  <h3>'.$caption.'</h3>
                  <p>'.$description.'</p>
                  <p class="link"><a href="'.$url.'">Go there &raquo;</a></p>
                  </li> </ul>
                        ';
    }
    ?>
    </div></div>
Code:
CREATE TABLE IF NOT EXISTS `cms_campaigns` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `order_id` int(11) NOT NULL DEFAULT '1',
  `enabled` enum('0','1') NOT NULL DEFAULT '1',
  `image_url` text NOT NULL,
  `caption` text NOT NULL,
  `description` text NOT NULL,
  `url` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
 

Logic

Bobby Billionaire
Feb 8, 2012
748
207
Thanks for this, . Is everything 100% functional? Like news and stuff?
 

lepos

thinking about you. yes you
Dec 11, 2011
2,024
687
Lots of people have been asking for this non-stop including myself, too bad my retro closed!
I'll download anyways and take a look.

Amazing release as always Craig.
 

Baevus

the names ethan
Nov 4, 2012
565
47
Very good , might use this if I reopen my hotel.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
No, i think that dude was referring to this;

Yeah, about that; I've lost all off my old files, but it's easy to build up a new table, if they read the source code. :p
 

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
Oh sledmore, I know you probobly don't have this anymore, but, How did you get the "quickbar" to work with your habbo template? Custom jscript?
 
Status
Not open for further replies.

Users who are viewing this thread

Top