ArcEmu: Arccms Alpha Release 1 - ArcEmu

Jump to content

Toggle shoutbox Lastest Announcements

dfighter  : (07 December 2014 - 12:06 PM) Arcemu is in hibernation mode, please read http://arcemu.org/fo...showtopic=26903
dfighter  : (01 January 2013 - 05:56 PM) Arcemu wishes you all a happy new year!
Hasbro  : (12 September 2012 - 10:01 AM) Please excuse our outage from the web! Our web host had a major malfunction!
dfighter  : (01 September 2012 - 04:05 PM) Since the spam bots just don't want to stop, I've enabled admin verification when registering.
dfighter  : (23 January 2012 - 09:56 PM) Please note that from now on you will need to confirm your email on the wiki in order to edit it!
Hasbro  : (31 December 2011 - 12:50 PM) Happy New Years all!
Navid  : (26 December 2011 - 04:09 AM) Merry Christmas !!!!!! Happy holidays all :)
WAmadeus  : (24 December 2011 - 03:54 PM) Merry Christmas to all!
dfighter  : (24 December 2011 - 11:05 AM) The Arcemu team wishes y'all a Merry Christmukkah!
Hasbro  : (05 October 2011 - 12:53 PM) Looking for web designers for upcoming web related project. If you're interested in designing user interfaces contact me
dfighter  : (02 September 2011 - 03:47 PM) So who here wants vehicles in Arcemu? :P http://arcemu.org/fo...showtopic=25440
Hasbro  : (14 August 2011 - 03:25 PM) Join us on irc, grab an irc client and connect to irc.freenode.net join channel #arcemu /server irc.freenode.net:6667 /join #arcemu
jackpoz  : (03 August 2011 - 05:33 AM) to all Lua Engine (old one) users: please check http://arcemu.org/fo...showtopic=25274
Hasbro  : (20 May 2011 - 05:27 PM) Looking for people experienced with CMake configuration and setup! Contact me asap
Hasbro  : (15 May 2011 - 05:03 PM) ArcEmu is recruiting C++ programmers, contact Hasbro if interested.
paroxysm  : (03 May 2011 - 06:26 PM) Updated luabridge gossip example to describe the whole gossip creation process rather than just how to create menu. Gossip tutorial
paroxysm  : (23 April 2011 - 11:35 AM) Lua writers can refer to the Luabridge Tutorials section in the Wiki to learn how to write gossip code correctly.
Hasbro  : (20 April 2011 - 05:22 PM) Thank you for your continuous contribution of bug reports, we are working on them.
Hasbro  : (17 April 2011 - 03:20 AM) Please consider donating to support our bills. Donations can be sent using PayPal to donations@arcemu.org - Thank you for your support.
paroxysm  : (10 April 2011 - 12:43 AM) Refer to the Luabridge Tutorials section in the Wiki to learn the new syntax of luabridge.
Resize Shouts Area

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Arccms Alpha Release 1 This is the first public alpha release of ArcCms

#1 User is offline   Wuild 

  • Member
  • Pip
  • Group: Developers
  • Posts: 10
  • Joined: 10-August 11
  • Gender:Male
  • Server OS:Windows

  Posted 30 August 2011 - 03:00 AM

ArcCms Alpha release 1

Hi all im now releasing the ArcCms Alpha release out to the world
its just in alpha stage at this point but as time goes ArcCms will grow.

some new changes in the system

  • New updated armory
  • Multi server compability
  • Alot of bug fixes
  • Paginations
  • Unique visitors counter


A demo of ArcCms can be found http://server.phphome.se/arccms

SVN
In order to download and be up to date with ArcCms we are running on an SVN server
I recommend to use TortoiseSVN. Get it here

Svn server: https://server.phpho...vn/ArcCms/trunk
User: guest


Installation guide
To install ArcCms at this point is somewhat wierd, but i am working on a self installation process.
First of all, we need to activate some extensions in both apache and php.

I recommend to use AppServ, Get it here

Required Apache extension.
  • mod_rewrite


How to enable mod_rewrite
  • go to the config file in apache/conf/ and open httpd.conf
  • Search for #LoadModule rewrite_module modules/mod_rewrite.so
  • Remove the # in the beginning
  • Restart Apache


Recommended PHP extensions
  • cUrl (this is used to check for updates)
  • FTP (this is used to download updates from our ftp server)

(These extensions are not required at this point since the update service does not work 100% yet)
A guide on how to enable extensions can be found Here


Settings up ArcCms
Now we unpack all the files in the httpdocs.
When that is complete we go into arccms_root/configs and open mysql.php

where you will see this
<?php

$conf = array();
$conf['db_host'] = "";  // Mysql Server Host (default: localhost)
$conf['db_user'] = "";  // Mysql Server Username (default: root)
$conf['db_pass'] = "";  // Mysql Server Password


$conf['db_logon'] = ""; // ArcEmu Logon Table
$conf['db_website'] = ""; // ArcCms Website Table

define("COOKIE_PREFIX", "arccms_"); // ArcCms cookie prefix, (you should change this)

define("ARCCMS_INSTALLED", true); // Do not change this...

?>


fill in that information and we move on to the next step

Database Installation
i recommened to use Navicat or phpmyadmin

1. Import the setup.sql that can be found in the sql folder into a database
2. After the import is done enter table settings
3. edit the cms_url value into your full ArcCms url ie: http://my-server.com/arccms
4. save and exit


Finilize
You are now done with the setup and are now ready to start using arccms
all settings can be found in the administration/settings panel,

How to create a Widget
To create a Widget in ArcCms is realy easy, with a simple class we can create and mange widgets in no time.

to start creating a widget enter your widget folder at root/widgets

There we create a new file with our widget name.

In this tutorial im gonna name it status.php this widget will display the servers status of each server we got installed in the database.
when this file is created we open it up and write a start class

<?php
       // a widget class allways have to extend the class Widget
       class statusWidget extends Widget { // a widget allways have to have Widget after it name so that we dont mix it up with any other class
      

       }
?>


in this class we set some default variables and create a function with the same name as the class



<?php
       // a widget class allways have to extend the class Widget
       class statusWidget extends Widget { // a widget allways have to have Widget after it name so that we dont mix it up with any other class
             var $title = "Server Status"; // This will be displayed above the widget content on the website when active
             var $content;
                function statusWidget(){


                }
       }
?>



now that we got some basics up, we can start creating the widget content.

<?php
       // a widget class allways have to extend the class Widget
       class statusWidget extends Widget { // a widget allways have to have Widget after it name so that we dont mix it up with any other class
             var $title = "Server Status"; // This will be displayed above the widget content on the website when active
             var $content;
                function statusWidget(){
                    $this->content = "This is my widget"; //This will be the main content, make sure to allways use the $this-> constant before the content variable
                }
       }
?>


Finilized script
and thats it... in the end my script looked like this.
<?php

class statusWidget extends Widget {
    public $title = "Server Status";
    public $content;

    function statusWidget() {

        $db = new DB(config::getConf("db_website") . ".servers");
        $db->setSort("server_id ASC");
        $db->setColPrefix("server_");
        $db->select();

        while ($db->nextRecord()) {
            $online = new DB($db->character_table.".characters");
            $online->select("online = 1");
            $count = $online->numRows();

            $this->content .= "<strong><a href='status/view/".$db->name."'>" . $db->name . "</a></strong> (" . ServerStatus($db->ip, $db->port) . ")<br />
                Players Online : ".$count."<br />
                Realmlist : ".$db->realmlist."
                    <hr  style='width: 90%;'/>
            ";
        }
    }

}

?>


How to Create a Module page

To create a module page is very simple and easy

start off by creating a file in the root/modules folder
with the name you want on your page

in this example im gonna show you when i created the news page.

first off create a class name with the same name as your file, in this case news

<?php

class news { // The class name have to be the same as the file name.

    function index() { // the index function is a default function, this will be loaded if no method as been requested.

    }

   // For each function we create here we can access it by sending a method request, ie. http://localhost/news/method <-- the method is the name of the function we wanna load
   // We can also send up to 3 variables to that function ie. http://localhost/news/method/var1/var2


    // Method Example function

    function method($var1, $var2, $var3 = "running"){
      echo $var1;
      echo $var2;
      echo $var3;
    }
}

?>




Finilize
In the end i created this script for the news module
<?php

class news {

    function index() {

        $db = new DB(config::getConf("db_website") . ".news");
        $db->setSort("news_id DESC");
        $db->setColPrefix("news_");
        $db->select();
        while ($db->nextRecord()) {
            $this->content .= "
                    <div class='newspost'>
                    <h2><a href='news/more/" . $db->id . "'>" . $db->title . "</a></h2>
                    <img src='images/news_cat.jpg' width='84px' class='cat'>
                        <div class='post'>
                            " . $db->post . "
                        </div>
                        <p class='info'>   	
                             <em class='date'>" . showdate("longdate", $db->date) . "</em>
                             <em class='author'><a href=''>" . ucfirst(getAccount($db->poster, "login")) . "</a></em>
                        </p>
                    </div>
                    <br /><br />
             ";
        }
    }

    function more($id) {
        $db = new DB(config::getConf("db_website") . ".news");
        $db->setSort("news_id DESC");
        $db->setColPrefix("news_");
        $db->select("news_id = '$id'");
        $db->nextRecord();
        $this->content .= "
                    <div class='newspost'>
                    <h2>" . $db->title . "</h2>
                    <img src='images/news_cat.jpg' width='84px' class='cat'>
                        <div class='post'>
                            " . $db->post . "
                        </div>
                        <p class='info'>   		
                            <em class='date'>" . showdate("longdate", $db->date) . "</em>
                             <em class='author'><a href=''>" . ucfirst(getAccount($db->poster, "login")) . "</a></em>
                        </p>
                    </div>
                    <br /><br />
             ";  }

}

?>




i hope you will enjoy this release of ArcCms as it is the alpha release,
you may redistribute this on to other websites / Forums
Bugs can be posted here in the forum or on a PM


Some Updates.
  • Added random screenshots in header.
  • Created Image Gallery module
  • Added Image uploader avaible for users only, only .jpg files will be uploaded
  • Added Search Armory widget
  • Added Navigation guests definition to only display nav links to guests
  • Added Google Plus +1 on news posts.
  • News comments script is now complete
  • Fixed spacing in admin/navigation to give it a cleaner look
  • Added custom documents, avaible in admin.
  • Added accounts_extended table,
  • Added avatar upload
  • Added profile Avatars
  • Created Profiles
  • Added profile links on shouts and news
  • Added character rename on my characters

1

#2 User is offline   Calibur 

  • Member
  • Pip
  • Group: Members
  • Posts: 39
  • Joined: 24-May 11
  • Gender:Male
  • Location:127.0.0.1
  • Server OS:Windows

Posted 06 October 2011 - 06:16 AM

Sounds nice, but the demo page is down. I'm interested to see how it looks.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users