Register for your free account! | Forgot your password?

You last visited: Today at 01:03

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



ShaiyaCMS

Discussion on ShaiyaCMS within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old 12/30/2018, 02:11   #16
 
Velocity.'s Avatar
 
elite*gold: 0
Join Date: Jul 2016
Posts: 237
Received Thanks: 323
Updated to Version 1.2:
- Updated to Bootstrap 4.2.1
- Updated to PDO
- Adjuted Navigation functions
- Removed Extra Autoloaders
- New function added "do_pre" in Content Class - used for debugging purposes

This version should be a lot faster than the old ones due to removing the requirements for everything to load through database and constantly checking for version updates.
Velocity. is offline  
Thanks
10 Users
Old 12/30/2018, 16:57   #17
 
Blober's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 194
Received Thanks: 67
Can't wait to see it full featured!

Awesome work!
Blober is offline  
Thanks
1 User
Old 12/31/2018, 09:23   #18
 
Jettaboy's Avatar
 
elite*gold: 0
Join Date: Dec 2013
Posts: 21
Received Thanks: 9
Awesome job man! Keep up the good work!
Jettaboy is offline  
Old 12/31/2018, 09:27   #19
 
[ADM]Sculvania's Avatar
 
elite*gold: 0
Join Date: Jun 2015
Posts: 33
Received Thanks: 41
Looks good! I'll have to try it
[ADM]Sculvania is offline  
Old 01/02/2019, 07:58   #20
 
Velocity.'s Avatar
 
elite*gold: 0
Join Date: Jul 2016
Posts: 237
Received Thanks: 323
Updated to Version 1.3:
Preloader:

- Adjusted Theme
- Added Option for Jumbotron(Banner) - with option to have it enabled or disabled
- Added Option for Carousel(Slider) - with option to have it enabled or disabled
- Added Preloader - with option to have it enabled or disabled
- Added Left Sidebar
- Added Server Status on Navbar - with option to have it enabled or disabled
- pageid setting issue fixed (wasn't using user setting for pageid across website)
- Secured cookies and session
- Updated Login and registration pages
- Added Error Codes for Register/Login
- Added Recover Password Script
- Added Bless bar - with option to have it enabled or disabled
Velocity. is offline  
Thanks
7 Users
Old 01/05/2019, 21:42   #21
 
elite*gold: 0
Join Date: Dec 2018
Posts: 4
Received Thanks: 0
Warning: require_once(C:/xampp/htdocs/assets/classes/Autoloader.class.php): failed to open stream: No such file or directory in C:\xampp\htdocs\shweb\index.php on line 11

Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs/assets/classes/Autoloader.class.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\shweb\index.php on line 11

Huh?
Bauss- is offline  
Old 01/05/2019, 21:46   #22
 
Velocity.'s Avatar
 
elite*gold: 0
Join Date: Jul 2016
Posts: 237
Received Thanks: 323
Quote:
Originally Posted by Bauss- View Post
Warning: require_once(C:/xampp/htdocs/assets/classes/Autoloader.class.php): failed to open stream: No such file or directory in C:\xampp\htdocs\shweb\index.php on line 11

Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs/assets/classes/Autoloader.class.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\shweb\index.php on line 11

Huh?
This means that you're missing the Autoloader class or it's looking for it in the wrong directory.

open up the classes folder and check to see if the autoloader is in there.

Updated to Version 1.4:
- Dropdown shows on hover
- Added Light/Dark Mode Switch
- Theme Update (added footer,sections and more)
-- Easier to add your own custom css now that i made sure all base theme css was in one file and custom is now clean
- GRB Countdown on Footer
- ACP Profile/Settings now available to all staff
- Guild Ranking faction error fixed
- Added Breadcrumb
- Download page updated - changed to a class and made it look nicer
- Added Image Gallery
- Fixed ACP Nav Issue where anyone could see all nav items
- Added Loot Box Rewards (credit to 1alphaslanbey)
-- Put in a class/small edits
- Added Avatar upload on registration
- Fixed GS'S not being able to login (status issue)
- Added automatic login after successfull registration
- Put Drop Finder MobIDs/MapIDs in a seperate table

Gallery 1

To add a new image to the image gallery:
you can call it like so:
$this->Tpl->_add_new_img_Gallery("imgsrc","imgtitle","imgalt" );
Velocity. is offline  
Thanks
4 Users
Old 01/05/2019, 22:01   #23
 
elite*gold: 0
Join Date: Dec 2018
Posts: 4
Received Thanks: 0
Yes, Velocity.. it's right there but i still get same error.
Bauss- is offline  
Old 01/05/2019, 22:06   #24
 
Velocity.'s Avatar
 
elite*gold: 0
Join Date: Jul 2016
Posts: 237
Received Thanks: 323
Quote:
Originally Posted by Bauss- View Post
Yes, Velocity.. it's right there but i still get same error.
add me on skype and i'll take a look
Velocity. is offline  
Old 01/06/2019, 05:34   #25
 
elite*gold: 0
Join Date: May 2018
Posts: 67
Received Thanks: 4
Arrow

Quote:
Originally Posted by Velocity. View Post
First of all, I want to say Merry Christmas Everyone! and I want to apologize for how long this thread is going to be, because thiss is going to be a guide aswell. I have to explain how everything works or I'm sure a lot of people will get confused.

I have been working on a project for awhile, as you guys may have seen the little preview of my ACP.

Well, I have decided to turn that into a bigger project.

I have made that into a whole website. Changed from bootstrap 3 to bootstrap 4 and added a lot more features.

The website and ACP are merged together so if you just want to use one you would need to adjust the cms to work with that (not too hard).

Here's a gallery of the website with most of the features

Gallery 1

I Went with a basic style, hopefully I will be able to make the theme a lot better in the future.

Features:

The sidebars are made as plugins, and i have made a few pre made plugins for use.

- GRB Rankings
- Server Information
- Players Online (Lubes)
- Server Status (Lubes)
- Server Time
- GRB Time
- User Info/Member Area
- Boss Records

Some of these plugins are also available as pages.

Pages will include:
- About Information
- Boss Records
- Download
- Drop Finder
- Guild Rankings
- PvP Rankings
- News
- Patch Notes
- Terms of Service
- Members Page - view players online profiles with character display (Wont be released yet)

News/Patchnotes/Homepage edits can be made through the acp/databasse

AJAX Features:
- Check Registration Availability Names
- Private Message System (Wont be released yet)
- Support System (Wont be released yet)
- User Profile (Wont be released yet)
- Gift System (Wont be released yet)

User Profile will contain a full user control system where they will be able to see their characters informations aswell as edit their account information.

Website Management:

To manage this website, may be a little confusing for those who have never used a website like this before.

I'll do my best to try and explain how everything works.

Pages are managed through the database (might make a acp feature for it in the future)

As you can see, what this does it loads the classes (required files) and then displays the website.

Should be pretty self explanatory, NAV.class.php is for the navbar
Display.class.php will be where it displays the template and basic stuffs, and then Content.class.php will be Where it starts displaying the content
Just take a look inside and explore, have fun.

ACP Features:

To use the avatar/header for profile option you need to allow file write/access to your website.

Now i could sit here all day and show you all of the features, but how about you take a look and find out for yourself!

Work In Progress:

- Webmall with ACP Edit Features
- PvP Rewards
- Donate with IPN
- Forum

Make sure to run the sql file inside the Dbase folder (you can change the database name to anything you like)

Requirements:
- PHP with ODBC (< PHP 7)
For the website to work correctly, all users need to be in the WEB_PRESENCE table
- Should be compatible with any SQL over 2008

I plan to make this compatible with PHP 7 later on so stay with me.

You could do this with a simple query which would select all from users_master and then insert into said table and then with the registration it would insert new users into both tables.

All scripts required should be in the dBase folder. I have a lot of adjustments in my database, but i triple checked and I'm pretty sure everything is there.

I have my passwords encrypted in my database, so I will release that aswell since its being used for the login.

Everything in the dBase folder is required since i use so much custom scripts, If you go through it all you can just grab bits and pieces or adjust the scripts to not require them.

Plugins
Here you can manage which plugins you want to use by simply enabling or disabling them. (check gallery)

I Don't recommend using this for live use yet as there could be some bugs or errors that I don't know about, but do as you please.

I Made sure that all pages on the acp require authentication/appropriate access.

Please let me know if you find any errors, I will try my best to fix them and help you guys out.

Credits:
- Ash (friend of mine who helped a lot)
- Dash (used a lot of his scripts and converted)
- EPvP Community for some of the scripts i used
- anyone else who I may have forgotten

Configuration:
- Run the SQL Files
- Edit your database information/db name in Database.class.php and DB_Info.class.php
Everything should work once that is done
- to add or delete pages that must be done through the database table.

Downloads:





Please let me know If i forgot anything!

Changelog:

v1:
*Fixed database queries, added instructions

v1.1:
*Removed ACP Version Check
*Removed Database settings (converted to php files instead for faster load time)

v1.2:
*Updated to Bootstrap 4.2.1
*Updated to PDO
*Adjuted Navigation functions
*Removed Extra Autoloaders
*New function added "do_pre" in Content Class - used for debugging purposes

v1.3:
*Adjusted Theme
*Added Option for Jumbotron(Banner) - with option to have it enabled or disabled
*Added Option for Carousel(Slider) - with option to have it enabled or disabled
*Added Preloader - with option to have it enabled or disabled
*Added Left Sidebar
*Added Server Status on Navbar - with option to have it enabled or disabled
*pageid setting issue fixed (wasn't using user setting for pageid across website)
*Secured cookies and session
*Updated Login and registration pages
*Added Error Codes for Register/Login
*Added Recover Password Script
*Added Bless bar - with option to have it enabled or disabled

v1.4:
*Dropdown shows on hover
*Added Light/Dark Mode Switch
*Theme Update (added footer,sections and more)
*GRB Countdown on Footer
*ACP Profile/Settings now available to all staff
*Guild Ranking faction error fixed
*Added Breadcrumb
*Download page updated - changed to a class and made it look nicer
*Added Image Gallery
*Fixed ACP Nav Issue where anyone could see all nav items
*Added Loot Box Rewards (credit to 1alphaslanbey) - changed it to a class
*Added Avatar upload on registration
*Fixed GS'S not being able to login (status issue)
*Added automatic login after successfull registration
*Put Drop Finder MobIDs/MapIDs in a seperate table
Great Work!! Happy new year to you
anon112 is offline  
Old 01/15/2019, 19:18   #26
 
elite*gold: 0
Join Date: Nov 2014
Posts: 16
Received Thanks: 0
thank you so much but im having an error

dpunkz09 is offline  
Old 01/15/2019, 21:31   #27
 
Velocity.'s Avatar
 
elite*gold: 0
Join Date: Jul 2016
Posts: 237
Received Thanks: 323
Quote:
Originally Posted by dpunkz09 View Post
thank you so much but im having an error

that's just because you are using an older php version which doesn't support those arrays. You can just delete that code as it's not being used yet.
Velocity. is offline  
Thanks
1 User
Old 02/03/2019, 10:08   #28
 
elite*gold: 0
Join Date: Sep 2013
Posts: 16
Received Thanks: 1
pls help tnx

where to place the database

<?php
class Database{
private $Type = "DEV";

protected $dns;
protected $dbname;
protected $user;
protected $pw;

# Public Vars
public $conn = NULL;

function __construct(){
$this->load_params();
$this->db_open_conn();
}
function load_params(){
require_once('Db_Info.class.php');
}
function db_open_conn(){
try {
$this->conn = new PDO('sqlsrv:Server='.$this->dns.';Database='.$this->dbname,$this->user,$this->pwd);
} catch (PDOException $e) {
# echo 'Connection failed: ' . $e->getMessage();
throw new SystemException('Database is <b>unavailable</b> or <b>offline</b>!',0,0,__FILE__,__LINE__);
}
}
function db_close_conn(){
$this->conn = NULL;
}
function get_TABLE($table){
switch($table){
rendel12 is offline  
Old 02/03/2019, 13:52   #29
 
[GameAdvisor]Finn's Avatar
 
elite*gold: 0
Join Date: Sep 2016
Posts: 171
Received Thanks: 107
Quote:
Originally Posted by rendel12 View Post
where to place the database

<?php
class Database{
private $Type = "DEV";

protected $dns;
protected $dbname;
protected $user;
protected $pw;

# Public Vars
public $conn = NULL;

function __construct(){
$this->load_params();
$this->db_open_conn();
}
function load_params(){
require_once('Db_Info.class.php');
}
function db_open_conn(){
try {
$this->conn = new PDO('sqlsrv:Server='.$this->dns.';Database='.$this->dbname,$this->user,$this->pwd);
} catch (PDOException $e) {
# echo 'Connection failed: ' . $e->getMessage();
throw new SystemException('Database is <b>unavailable</b> or <b>offline</b>!',0,0,__FILE__,__LINE__);
}
}
function db_close_conn(){
$this->conn = NULL;
}
function get_TABLE($table){
switch($table){
Open Db_Info.class.php

then edit

<?php
if($this->Type == "DEV"){
$this->dns = "127.0.0.1";
$this->dbname = "PS_UserData";
$this->user = "sa";
$this->pwd = "Shaiya123";
}
elseif($this->Type == "REL"){
$this->dns = "127.0.0.1";
$this->dbname = "PS_UserData";
$this->user = "sa";
$this->pwd = "Shaiya123";
}
?>
[GameAdvisor]Finn is offline  
Old 02/07/2019, 13:20   #30
 
elite*gold: 0
Join Date: Jun 2017
Posts: 69
Received Thanks: 5
Error!Please help me for teamviewer.

assets\classes\Database.class.php(15): Database->db_open_conn()
index.php(14): Database->__construct()


went through all php from 5.3 to 7.2.
I made the pdo connection through the article -

[PHP_SQLSRV_54_NTS]
extension=php_sqlsrv_54_nts.dll
[PHP_PDO_SQLSRV_54_NTS]
extension=php_pdo_sqlsrv_54_nts.dll
[PHP_PDO_SQLITE]
extension=php_pdo_sqlite.dll
[PHP_PDO_PGSQL]
extension=php_pdo_pgsql.dll
[PHP_SQLSRV_55_TS]
extension=php_sqlsrv_55_ts.dll
[PHP_PDO_SQLSRV_55_TS]
extension=php_pdo_sqlsrv_55_ts.dll
[PHP_PDO_SQLSRV_54_TS]
extension=php_pdo_sqlsrv_54_ts.dll
[PHP_PDO_SQLSRV_55_NTS]
extension=php_pdo_sqlsrv_55_nts.dll
[PHP_PDO_SQLSRV_56_NTS]
extension=php_pdo_sqlsrv_56_nts.dll
[PHP_PDO_SQLSRV_56_TS]
extension=php_pdo_sqlsrv_56_ts.dll
[PHP_SQLSRV_54_TS]
extension=php_sqlsrv_54_ts.dll
[PHP_SQLSRV_55_NTS]
extension=php_sqlsrv_55_nts.dll
[PHP_SQLSRV_56_NTS]
extension=php_sqlsrv_56_nts.dll
[PHP_SQLSRV_56_TS]
extension=php_sqlsrv_56_ts.dll
mr.hellraven is offline  
Reply




All times are GMT +2. The time now is 01:03.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.