RevCMS 3.0 [PHP, MVC, Multi-Support]

Status
Not open for further replies.

Kryptos

prjRev.com
Jul 21, 2010
2,205
1,252
I have invested a lot of time into putting sometime totally awesome for Rev3, it's something more of an addon that I will put in in 3.1 which will be given to donators for testing and then released. I swear it is extremely awesome, I will give full details on this Sep15 to avoid faggots stealing TeamRev's ideas.
 

Twisting

HFFM
Sep 4, 2011
362
79
I have invested a lot of time into putting sometime totally awesome for Rev3, it's something more of an addon that I will put in in 3.1 which will be given to donators for testing and then released. I swear it is extremely awesome, I will give full details on this Sep15 to avoid faggots stealing TeamRev's ideas.
Nice! Can't wait! What about leaks though?
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,135
2,461
Havent you heard?
RevCMS 4.0
Someone leaked 3.0

"RevCMS 4.0" is a very bad leak and "Fix" from nobrain (name says enough), thus it isn't an official release, and is NOT stable to use. You need to wait for Sep15 or use RevCMS 1.9.9.9.

So for the people who didn't know, don't use the fake-unstable-shit-release from nobrain.
 

iHarrison

Member
Mar 11, 2012
321
131
"RevCMS 4.0" is a very bad leak and "Fix" from nobrain (name says enough), thus it isn't an official release, and is NOT stable to use. You need to wait for Sep15 or use RevCMS 1.9.9.9.

So for the people who didn't know, don't use the fake-unstable-shit-release from nobrain.

I don't think the leaked version has many features compared to the legit version either ;)
 

ButtLord420

Please delete my devbest account.
Dec 11, 2010
463
32
I don't think the leaked version has many features compared to the legit version either ;)
Your right. I've got it and the code is shit. "Dwight" made a 5.0 that fixed an error but then the mod deleted it. Plus I hate how revcms dosent work on wamp.
 

iHarrison

Member
Mar 11, 2012
321
131
Your right. I've got it and the code is shit. "Dwight" made a 5.0 that fixed an error but then the mod deleted it. Plus I hate how revcms dosent work on wamp.

WAMP isn't designed for production use and shouldn't be used for such things either.

Head for something like Apache, nginx, or IIS ;p
 

Joopie

Active Member
Sep 13, 2011
135
65
Update:

Basicly finished the staff page.
Someone know what to put in the empty space?

1347216580-FVME8w.png


Snippet:
PHP:
<?php
 
/**
* Description of Staff
*
* @author Joopie
*/
 
  /**
    * Deny direct file access
    */
   
    defined('IN_INDEX') or die('Sorry, you cannot access this file :(');
       
class Controller_PageData_Habbo_Community_Staff extends Controller
{
   
    public function __construct()
    {
        parent::__construct();
     
        $this->load->Controller_User()->access(true, false, 'index');
 
        $this->getStaff();
 
    }
 
    private function getStaff()
    {
        $staff = $this->cUser->mUser->getStaff();
       
        if (empty($staff))
        {
            //no staffs yet
        }
       
        //get ranks and parse it
        $ranks = array();
        $temp = $this->cUser->mUser->getRanks();
        foreach ($temp as $value)
        {
            $ranks[$value['id']] = $value['name'];
        }
        unset($temp);
       
        //parse data
        $content = '';
        $oddeven = 'even';
        $last_rank = null;
        foreach($staff as $key => $value)
        {
            $oddeven = ($oddeven == 'even') ? 'odd' : 'even';
           
            if ($value['rank'] != $last_rank || empty($last_rank))
            {
                if (!empty($last_rank))
                {
                    $content .= $this->vView->driver->getFile("Widgets/Community/Staff/end");
                }
               
                $this->vView->driver->assign('widget->staff->title', $ranks[$value['rank']], true);
                $content .= $this->vView->driver->filterParams($this->vView->driver->getFile("Widgets/Community/Staff/start"));
               
                $oddeven = 'odd';
                $rank = current($ranks);
                $last_rank = $value['rank'];
            }
           
            $this->vView->driver->assign('staff->oddeven', $oddeven, true);
           
            $this->vView->driver->assign('staff->username', $value['username'], true);
            $this->vView->driver->assign('staff->motto', $value['motto'], true);
            $this->vView->driver->assign('staff->look', $value['look'], true);
            $this->vView->driver->assign('staff->online', ($value['online'] == 1 ? 'Online' : 'Offline'), true);
            $this->vView->driver->assign('staff->last_online', date('M j, Y g:i:s A', $value['last_online']), true);
           
            $content .= $this->vView->driver->filterParams($this->vView->driver->getFile("Widgets/Community/Staff/item"));
        }
       
        $content .= $this->vView->driver->getFile("Widgets/Community/Staff/end");
       
        $this->vView->driver->assign('widget->staff->container', $content);
    }
 
}
 
?>

- Joopie
 

Sledmore

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

Basicly finished the staff page.
Someone know what to put in the empty space?

1347216580-FVME8w.png


Snippet:
PHP:
<?php
 
/**
* Description of Staff
*
* @author Joopie
*/
 
  /**
    * Deny direct file access
    */
 
    defined('IN_INDEX') or die('Sorry, you cannot access this file :(');
     
class Controller_PageData_Habbo_Community_Staff extends Controller
{
 
    public function __construct()
    {
        parent::__construct();
   
        $this->load->Controller_User()->access(true, false, 'index');
 
        $this->getStaff();
 
    }
 
    private function getStaff()
    {
        $staff = $this->cUser->mUser->getStaff();
     
        if (empty($staff))
        {
            //no staffs yet
        }
     
        //get ranks and parse it
        $ranks = array();
        $temp = $this->cUser->mUser->getRanks();
        foreach ($temp as $value)
        {
            $ranks[$value['id']] = $value['name'];
        }
        unset($temp);
     
        //parse data
        $content = '';
        $oddeven = 'even';
        $last_rank = null;
        foreach($staff as $key => $value)
        {
            $oddeven = ($oddeven == 'even') ? 'odd' : 'even';
         
            if ($value['rank'] != $last_rank || empty($last_rank))
            {
                if (!empty($last_rank))
                {
                    $content .= $this->vView->driver->getFile("Widgets/Community/Staff/end");
                }
             
                $this->vView->driver->assign('widget->staff->title', $ranks[$value['rank']], true);
                $content .= $this->vView->driver->filterParams($this->vView->driver->getFile("Widgets/Community/Staff/start"));
             
                $oddeven = 'odd';
                $rank = current($ranks);
                $last_rank = $value['rank'];
            }
         
            $this->vView->driver->assign('staff->oddeven', $oddeven, true);
         
            $this->vView->driver->assign('staff->username', $value['username'], true);
            $this->vView->driver->assign('staff->motto', $value['motto'], true);
            $this->vView->driver->assign('staff->look', $value['look'], true);
            $this->vView->driver->assign('staff->online', ($value['online'] == 1 ? 'Online' : 'Offline'), true);
            $this->vView->driver->assign('staff->last_online', date('M j, Y g:i:s A', $value['last_online']), true);
         
            $content .= $this->vView->driver->filterParams($this->vView->driver->getFile("Widgets/Community/Staff/item"));
        }
     
        $content .= $this->vView->driver->getFile("Widgets/Community/Staff/end");
     
        $this->vView->driver->assign('widget->staff->container', $content);
    }
 
}
 
?>

- Joopie

Nice! Could put a content box about each rank, or how staff are hired, and when?
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,135
2,461

Most people just put a box there with some information in it. However, maybe you can replace the online/offline information to a box in there, which shows the online Staff members.
 

Joopie

Active Member
Sep 13, 2011
135
65
Nice! Could put a content box about each rank, or how staff are hired, and when?

Thanks for the reply, I would add the content box of each ranks.
Also, I think that "how staff are hired" and "when" is up to the user that is going to use the cms.
For everybody is that part diffrent
 
Status
Not open for further replies.

Users who are viewing this thread

Top