• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[ALPHA] CypeReboot

Status
Not open for further replies.
Joined
Jul 12, 2011
Messages
1,229
Reaction score
475
Pushed out an update this morning which adds initial support for custom database prefixes (eg instead of the default cype_ prefix, you can use mysite_ or whatever)
Also updated CSS to Bootstrap v3.0.2, and fixed some small styling issues.
Basically, I'm just fixing up all the backend, and some design problems to make the CMS ready for beta, which will include a brand new theme (yay)

11/30:
- Updated all the UCP files, those are almost ready for beta (along with main content pages, except rankings).
- Reimplemented Tickets, Mail should be coming soon..
- AdminCP is the next to be upgraded!
 
Last edited:
Banned
Banned
Joined
Sep 11, 2012
Messages
333
Reaction score
45
I saw this on your github before it was released, this is fantastic imo. THANKS! :D

Since I am just learning PHP (Not that far in AT ALL) there's an error in properties.php:
Code:
$prop = $properties->fetch_assoc();
Fatal error: Call to a member function fetch_assoc() on a non-object in C:\xampp\htdocs\cype\assets\config\properties.php on line 7

No idea how to fix that. :O
P.S: Just testing out the site, going to see what I can do with my CSS knowledge. :D
 
Last edited:
Joined
Jul 12, 2011
Messages
1,229
Reaction score
475
I saw this on your github before it was released, this is fantastic imo. THANKS! :D

Since I am just learning PHP (Not that far in AT ALL) there's an error in properties.php:
Code:
$prop = $properties->fetch_assoc();
Fatal error: Call to a member function fetch_assoc() on a non-object in C:\xampp\htdocs\cype\assets\config\properties.php on line 7

No idea how to fix that. :O
P.S: Just testing out the site, going to see what I can do with my CSS knowledge. :D
Thanks for reporting the bug, it will be fixed tonight (will update post when done)
EDIT: Found the problem, please redownload the latest revision and give it a go!
Edit2: Thought I fixed it, but now I've actually fixed it (along with some UCP bugs). I've also added support for dark themes.
 
Last edited:
Banned
Banned
Joined
Sep 11, 2012
Messages
333
Reaction score
45
Thanks for reporting the bug, it will be fixed tonight (will update post when done)
EDIT: Found the problem, please redownload the latest revision and give it a go!
Edit2: Thought I fixed it, but now I've actually fixed it (along with some UCP bugs). I've also added support for dark themes.
Thanks for the update! :)
Edit:
Code:
Fatal error: Call to a member function fetch_assoc() on a non-object in C:\xampp\htdocs\cype\assets\config\properties.php on line 7

Still broken. No idea what's wrong.
 
Last edited:
Joined
Jul 12, 2011
Messages
1,229
Reaction score
475
Thanks for the update! :)
Edit:
Code:
Fatal error: Call to a member function fetch_assoc() on a non-object in C:\xampp\htdocs\cype\assets\config\properties.php on line 7

Still broken. No idea what's wrong.
Can you try doing a fresh install? Delete all your old cype sql tables and run the new installer again (updated last night).
If it doesn't work, I'll give it a try with xampp, since I develop with wamp.
 
Banned
Banned
Joined
Sep 11, 2012
Messages
333
Reaction score
45
Can you try doing a fresh install? Delete all your old cype sql tables and run the new installer again (updated last night).
If it doesn't work, I'll give it a try with xampp, since I develop with wamp.
Alright, it may have been due to the fact that I didn't delete my sql files. I will update you.

Edit:
PHP:
<?php 
if(basename($_SERVER["PHP_SELF"]) == "properties.php"){
	die("403 - Access Forbidden");
}
/* Site Controls */
$properties = $mysqli->query("SELECT * FROM ".$prefix."properties");
$prop = $properties->fetch_assoc();
$ipaddress = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

/* Name of server */
$servername = $prop['Cype'];
/* Site title */
$sitetitle = $prop['Cype'];
$pb = " (Powered by Cype)";
$siteurl = $prop['http://localhost/cype'];
/* Download link for client */
$client = $prop[''];
/* Server Version */
$version = $prop['v117.2'];
/* Forum url*/
$forumurl = $prop[''];
/* Server Rates */
$exprate = $prop['10'];
$mesorate = $prop['8'];
$droprate = $prop['2'];
/* Flood Prevention */
$cypeflood = $prop['flood'];
$pcap = $prop['pcap'];
/* Flood Interval */
$cypefloodint = $prop['floodint'];
/* Level for GMs and up */
$gmlevel = $prop['gmlevel'];
/* Accounts Per IP */
$MaxAcc = $prop['maxaccounts'];
/* Get Theme */
$theme = $prop['theme'];
$getdarkhemes = array("cyborg", "slate");
if (in_array($theme, $getdarkhemes)) {
    $themetype = "dark";
} else{
	$themetype = "light";
}
/*Get Vote Config*/
$vlink = $prop['vlink'];
$gnx = $prop['gnx'];
$gvp = $prop['gvp'];
$colnx = $prop['colnx'];
$colvp = $prop['colvp'];
$vtime = $prop['vtime'];
	
$censored = array("duck","penis","fail","suck","penis","witch","butt","punt","vagina","penis","punt");
?>
I set-up the configs again, and made a new database.
PHP:
<?php
if(basename($_SERVER["PHP_SELF"]) == "database.php"){
    die("403 - Access Forbidden");
}
//SQL Information
$host['hostname'] = 'localhost'; // Hostname [Usually locahost]
$host['user'] = 'root'; // Database Username [Usually root]
$host['password'] = ''; // Database Password [Leave blank if unsure]
$host['database'] = 'cype'; // Database Name

//Database Prefix
$prefix = "";
// What is your server`s log in port - Don`t change if you aren`t sure.
$loginport = "7575";
// What is your server`s world port - Don`t change if you aren`t sure.
$worldport = "8484";

/* Don`t touch. */
$mysqli = new MySQLi($host['hostname'],$host['user'],$host['password'],$host['database']);

?>
So, it must be an issue with xampp. Or, I'm doing something wrong (which I don't think I am.)
 
Last edited:
Joined
Jul 12, 2011
Messages
1,229
Reaction score
475
Alright, it may have been due to the fact that I didn't delete my sql files. I will update you.

Edit:
PHP:
<?php 
if(basename($_SERVER["PHP_SELF"]) == "properties.php"){
	die("403 - Access Forbidden");
}
/* Site Controls */
$properties = $mysqli->query("SELECT * FROM ".$prefix."properties");
$prop = $properties->fetch_assoc();
$ipaddress = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

/* Name of server */
$servername = $prop['Cype'];
/* Site title */
$sitetitle = $prop['Cype'];
$pb = " (Powered by Cype)";
$siteurl = $prop['http://localhost/cype'];
/* Download link for client */
$client = $prop[''];
/* Server Version */
$version = $prop['v117.2'];
/* Forum url*/
$forumurl = $prop[''];
/* Server Rates */
$exprate = $prop['10'];
$mesorate = $prop['8'];
$droprate = $prop['2'];
/* Flood Prevention */
$cypeflood = $prop['flood'];
$pcap = $prop['pcap'];
/* Flood Interval */
$cypefloodint = $prop['floodint'];
/* Level for GMs and up */
$gmlevel = $prop['gmlevel'];
/* Accounts Per IP */
$MaxAcc = $prop['maxaccounts'];
/* Get Theme */
$theme = $prop['theme'];
$getdarkhemes = array("cyborg", "slate");
if (in_array($theme, $getdarkhemes)) {
    $themetype = "dark";
} else{
	$themetype = "light";
}
/*Get Vote Config*/
$vlink = $prop['vlink'];
$gnx = $prop['gnx'];
$gvp = $prop['gvp'];
$colnx = $prop['colnx'];
$colvp = $prop['colvp'];
$vtime = $prop['vtime'];
	
$censored = array("duck","penis","fail","suck","penis","witch","butt","punt","vagina","penis","punt");
?>
I set-up the configs again, and made a new database.
PHP:
<?php
if(basename($_SERVER["PHP_SELF"]) == "database.php"){
    die("403 - Access Forbidden");
}
//SQL Information
$host['hostname'] = 'localhost'; // Hostname [Usually locahost]
$host['user'] = 'root'; // Database Username [Usually root]
$host['password'] = ''; // Database Password [Leave blank if unsure]
$host['database'] = 'cype'; // Database Name

//Database Prefix
$prefix = "";
// What is your server`s log in port - Don`t change if you aren`t sure.
$loginport = "7575";
// What is your server`s world port - Don`t change if you aren`t sure.
$worldport = "8484";

/* Don`t touch. */
$mysqli = new MySQLi($host['hostname'],$host['user'],$host['password'],$host['database']);

?>
So, it must be an issue with xampp. Or, I'm doing something wrong (which I don't think I am.)

I'll try it out with xampp tonight. Will update this post later.
EDIT: I forgot to delete the installdone.txt from the install directory, which means you never really installed the CMS. This means that you'll have to go to assets/config/install and delete installdone.txt, navigate to Cype in your browser, run the installer, and it should work.
 
Last edited:
Banned
Banned
Joined
Sep 11, 2012
Messages
333
Reaction score
45
I'll try it out with xampp tonight. Will update this post later.
EDIT: I forgot to delete the installdone.txt from the install directory, which means you never really installed the CMS. This means that you'll have to go to assets/config/install and delete installdone.txt, navigate to Cype in your browser, run the installer, and it should work.
The installer does work now, but there is a few other issues: Screenshot by Lightshot

PHP:
<?php 
if(basename($_SERVER["PHP_SELF"]) == "properties.php"){
	die("403 - Access Forbidden");
}
/* Site Controls */
$properties = $mysqli->query("SELECT * FROM ".$prefix."properties");
$prop = $properties->fetch_assoc();
$ipaddress = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

/* Name of server */
$servername = $prop['Cype'];
/* Site title */
$sitetitle = $prop['Cype'];
$pb = " (Powered by Cype)";
$siteurl = $prop['http://localhost/cype'];
/* Download link for client */
$client = $prop['http://www.google.com'];
/* Server Version */
$version = $prop['v117.2'];
/* Forum url*/
$forumurl = $prop['/forum'];
/* Server Rates */
$exprate = $prop['10'];
$mesorate = $prop['8'];
$droprate = $prop['2'];
/* Flood Prevention */
$cypeflood = $prop['flood'];
$pcap = $prop['pcap'];
/* Flood Interval */
$cypefloodint = $prop['floodint'];
/* Level for GMs and up */
$gmlevel = $prop['7'];
/* Accounts Per IP */
$MaxAcc = $prop['15'];
/* Get Theme */
$theme = $prop['theme'];
$getdarkhemes = array("cyborg", "slate");
if (in_array($theme, $getdarkhemes)) {
    $themetype = "dark";
} else{
	$themetype = "light";
}
/*Get Vote Config*/
$vlink = $prop['vlink'];
$gnx = $prop['gnx'];
$gvp = $prop['gvp'];
$colnx = $prop['colnx'];
$colvp = $prop['colvp'];
$vtime = $prop['vtime'];
	
$censored = array("duck","penis","fail","suck","penis","witch","butt","punt","vagina","penis","punt");
?>
 
Joined
Jul 12, 2011
Messages
1,229
Reaction score
475
The installer does work now, but there is a few other issues: Screenshot by Lightshot

PHP:
<?php 
if(basename($_SERVER["PHP_SELF"]) == "properties.php"){
	die("403 - Access Forbidden");
}
/* Site Controls */
$properties = $mysqli->query("SELECT * FROM ".$prefix."properties");
$prop = $properties->fetch_assoc();
$ipaddress = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

/* Name of server */
$servername = $prop['Cype'];
/* Site title */
$sitetitle = $prop['Cype'];
$pb = " (Powered by Cype)";
$siteurl = $prop['http://localhost/cype'];
/* Download link for client */
$client = $prop['http://www.google.com'];
/* Server Version */
$version = $prop['v117.2'];
/* Forum url*/
$forumurl = $prop['/forum'];
/* Server Rates */
$exprate = $prop['10'];
$mesorate = $prop['8'];
$droprate = $prop['2'];
/* Flood Prevention */
$cypeflood = $prop['flood'];
$pcap = $prop['pcap'];
/* Flood Interval */
$cypefloodint = $prop['floodint'];
/* Level for GMs and up */
$gmlevel = $prop['7'];
/* Accounts Per IP */
$MaxAcc = $prop['15'];
/* Get Theme */
$theme = $prop['theme'];
$getdarkhemes = array("cyborg", "slate");
if (in_array($theme, $getdarkhemes)) {
    $themetype = "dark";
} else{
	$themetype = "light";
}
/*Get Vote Config*/
$vlink = $prop['vlink'];
$gnx = $prop['gnx'];
$gvp = $prop['gvp'];
$colnx = $prop['colnx'];
$colvp = $prop['colvp'];
$vtime = $prop['vtime'];
	
$censored = array("duck","penis","fail","suck","penis","witch","butt","punt","vagina","penis","punt");
?>
You've modified your core files, you cannot expect the CMS to work if you do this. Here is a clean properties.php:
PHP:
<?php 
if(basename($_SERVER["PHP_SELF"]) == "properties.php"){
	die("403 - Access Forbidden");
}
/* Site Controls */
$properties = $mysqli->query("SELECT * FROM ".$prefix."properties");
$prop = $properties->fetch_assoc();
$ipaddress = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

/* Name of server */
$servername = $prop['name'];
/* Site title */
$sitetitle = $prop['name'];
$pb = " (Powered by Cype)";
$siteurl = $prop['siteurl'];
/* Download link for client */
$client = $prop['client'];
/* Server Version */
$version = $prop['version'];
/* Forum url*/
$forumurl = $prop['forumurl'];
/* Server Rates */
$exprate = $prop['exprate'];
$mesorate = $prop['mesorate'];
$droprate = $prop['droprate'];
/* Flood Prevention */
$cypeflood = $prop['flood'];
$pcap = $prop['pcap'];
/* Flood Interval */
$cypefloodint = $prop['floodint'];
/* Level for GMs and up */
$gmlevel = $prop['gmlevel'];
/* Accounts Per IP */
$MaxAcc = $prop['maxaccounts'];
/* Get Theme */
$theme = $prop['theme'];
$getdarkhemes = array("cyborg", "slate");
if (in_array($theme, $getdarkhemes)) {
    $themetype = "dark";
} else{
	$themetype = "light";
}
/*Get Vote Config*/
$vlink = $prop['vlink'];
$gnx = $prop['gnx'];
$gvp = $prop['gvp'];
$colnx = $prop['colnx'];
$colvp = $prop['colvp'];
$vtime = $prop['vtime'];
	
$censored = array("duck","penis","fail","suck","penis","witch","butt","punt","vagina","penis","punt");
?>
 
Banned
Banned
Joined
Sep 11, 2012
Messages
333
Reaction score
45
You've modified your core files, you cannot expect the CMS to work if you do this. Here is a clean properties.php:
PHP:
<?php 
if(basename($_SERVER["PHP_SELF"]) == "properties.php"){
	die("403 - Access Forbidden");
}
/* Site Controls */
$properties = $mysqli->query("SELECT * FROM ".$prefix."properties");
$prop = $properties->fetch_assoc();
$ipaddress = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

/* Name of server */
$servername = $prop['name'];
/* Site title */
$sitetitle = $prop['name'];
$pb = " (Powered by Cype)";
$siteurl = $prop['siteurl'];
/* Download link for client */
$client = $prop['client'];
/* Server Version */
$version = $prop['version'];
/* Forum url*/
$forumurl = $prop['forumurl'];
/* Server Rates */
$exprate = $prop['exprate'];
$mesorate = $prop['mesorate'];
$droprate = $prop['droprate'];
/* Flood Prevention */
$cypeflood = $prop['flood'];
$pcap = $prop['pcap'];
/* Flood Interval */
$cypefloodint = $prop['floodint'];
/* Level for GMs and up */
$gmlevel = $prop['gmlevel'];
/* Accounts Per IP */
$MaxAcc = $prop['maxaccounts'];
/* Get Theme */
$theme = $prop['theme'];
$getdarkhemes = array("cyborg", "slate");
if (in_array($theme, $getdarkhemes)) {
    $themetype = "dark";
} else{
	$themetype = "light";
}
/*Get Vote Config*/
$vlink = $prop['vlink'];
$gnx = $prop['gnx'];
$gvp = $prop['gvp'];
$colnx = $prop['colnx'];
$colvp = $prop['colvp'];
$vtime = $prop['vtime'];
	
$censored = array("duck","penis","fail","suck","penis","witch","butt","punt","vagina","penis","punt");
?>
Oh, I thought you were supposed to edit that! D: My bad, thanks for the update anyways. :)
 
Joined
Jul 12, 2011
Messages
1,229
Reaction score
475
Oh, I thought you were supposed to edit that! D: My bad, thanks for the update anyways. :)

No problem. By the way, if you're planning on testing Cype out, then update it from github. I've pushed out some major bug fixes which basically revamped the public, gmcp, ucp, misc, structure, and public folders (still need to do admin). I also fixed the GM Panel issues.
EDIT: Added background configuration (as well as banner config):
92VrJGJ - [ALPHA] CypeReboot - RaGEZONE Forums



EDIT2: Added centering options:
jbwAFyk - [ALPHA] CypeReboot - RaGEZONE Forums


ITAdfV1 - [ALPHA] CypeReboot - RaGEZONE Forums
 
Last edited:

Rey

The Shrewd
Loyal Member
Joined
Oct 29, 2011
Messages
1,336
Reaction score
196
dat bg iz awezome <3 it looks like Mac bg recolored :p
 
Junior Spellweaver
Joined
Jul 1, 2008
Messages
138
Reaction score
39
My god, they grow up so fast! CypeReboot has been an awesome project to follow and take part in and too watch it evolve has truly been a treat.
 

Rey

The Shrewd
Loyal Member
Joined
Oct 29, 2011
Messages
1,336
Reaction score
196
UPDATE : purple navnar doesnt fit the Red bg you should edit it :)
 

Rey

The Shrewd
Loyal Member
Joined
Oct 29, 2011
Messages
1,336
Reaction score
196
But, the background can be configured though o-o. You could edit the nav bar too if you want .


Sent from my iPhone using Tapatalk

im saying if a noobie want to use the web , thats all :)
 

Rey

The Shrewd
Loyal Member
Joined
Oct 29, 2011
Messages
1,336
Reaction score
196
Pushed out a small update, fixes background centering. Also added an option for a "sticky" background

Noobie Question comming thru :
Define : STICKY :)
 
Status
Not open for further replies.
Back
Top