P looks fine, though I think it should be a little smaller to fit next to the trial-icon.
[QUOTE=pdkm931;33786924]
[thumb]http://dl.dropbox.com/u/15894462/progress/1.png[/thumb][/QUOTE]
You were probably going to do this eventually, but something that would make it instantly better is to remove the link underline and change the link color. Also, web pages tend to not have that amount of text, so you might end up with a lot of unwanted whitespace. Maybe think of how the text could be broken up by images or something.
[QUOTE=pdkm931;33786924]It's been a long time since I posted something on here. But right now I'm in the middle of a project that is going rather well. Only a few things done till I can leave in this project I've been working on for a few months now.
But it's nothing I'm going to show of now. Maybe later when it's done.
But instead I would like some critique on this little work of mine. Not the best colours that could have been used, but I'm mostly wondering what you think about the design over all. But I can't change anything until tomorrow since I'm going to bed now before it gets way to late and I'll just be sleepy tomorrow in school.
So here is the little piece of work. Menu is WIP rest is as is.
[thumb]http://dl.dropbox.com/u/15894462/progress/1.png[/thumb][/QUOTE]
you need more padding
A friend wanted me to make a system that returns a random song from a table, so here's what I did
[php]
<?php
/**
* Database class for the JustinBrandon community.
*
* @author Nathan
*/
class Database {
public $connected = false;
public $dbh = null;
public $songArray = array();
function __construct($host=null, $user=null, $pass=null, $db=null) {
if ($host && $user && $pass && $db) {
try {
$this->dbh = new PDO("mysql:host=$host;dbname=$db", $user, $pass);
$this->connected = true;
} catch (PDOException $e) {
echo "Could not connect to the database. Please contact an administrator.";
$this->connected = false;
exit();
}
} else {
echo "No or not all variables are passed to the constructer. Contact an administrator.";
$this->connected = false;
exit();
}
}
public function fetchAllSongs() {
$query = $this->dbh->query("SELECT * FROM song_directories");
foreach ($query as $q) {
//$this->songArray[$q['id']] = $q['song_url'];
$this->songArray[] = $q['song_url'];
}
return $this->songArray;
}
public function getMaxCount() {
$query = $this->dbh->query("SELECT * FROM song_directories");
return $query->rowCount();
}
public function returnURL($randomNum) {
//$query = $this->dbh->query("SELECT * FROM song_directories WHERE id = '$randomNum'");
/* foreach ($query as $q) {
$this->songArray['singleSongURL'] = $q['song_url'];
} */
$this->fetchAllSongs();
return $this->songArray[$randomNum];
}
/* user methods */
public function login($email, $pass) {
$query = $this->dbh->prepare("SELECT * FROM admin_accounts WHERE email = :email AND password = :pass");
$query->bindParam(':email', $email);
$query->bindParam(':pass', $pass);
$query->execute();
$count = $query->rowCount();
if ($count == 1) {
$_SESSION['active'] = 1;
header("Location: admin.php");
return true;
} else {
return false;
}
}
public function addSong($songURL) {
$check = $this->dbh->prepare("SELECT * FROM song_directories WHERE song_url = :songurl");
$check->bindParam(':songurl', $songURL);
$check->execute();
if ($check->rowCount() == 1) {
// url already in db
echo 'That URL is already inside the database! URL: ' . $songURL . '<br />';
} else {
// url not in db - proceed
$insert = $this->dbh->prepare("INSERT INTO song_directories VALUES(:songurl)");
$insert->bindParam(':songurl', $songURL);
$insert->execute();
}
}
public function removeSong($songURL) {
$check = $this->dbh->prepare("SELECT * FROM song_directories WHERE song_url = :songurl");
$check->bindParam(':songurl', $songURL);
$check->execute();
if ($check->rowCount() == 1) {
// url exists so remove
$delete = $this->dbh->prepare("DELETE FROM song_directories WHERE song_url = :songurl");
$delete->bindParam(':songurl', $songURL);
$delete->execute();
} else {
echo 'That URL is not inside the database! URL: ' . $songURL . '<br />';
}
}
}
[/php]
[php]
<?php
require 'config.php';
require 'security_class.php';
require 'database_class.php';
/**
* Functions for the JustinBrandon community.
*
* @author Nathan
*/
$dbh = new Database($hostname, $username, $password, $database);
$sec = new Security();
function randomizeURL() {
global $dbh;
$numRows = $dbh->getMaxCount();
$randomNum = rand(1, $numRows);
$randomURL = $dbh->returnURL($randomNum);
return $randomURL;
}
function checkLoggedIn() {
if ($_SESSION['active'] == 0 || !isset($_SESSION['active'])) {
return false;
} else {
return true;
}
}
[/php]
Obviously I'm not the best and this could have been simpler/more organized but not bad for a quick $30.
[QUOTE=juke;33788225]Call it Plus and use a + sign for the icon.[/QUOTE]
Winnergenius
Who is:
-Rui Okada
-Richard 'Bambo' Bamford
[QUOTE=kragmars102;33792837]Who is:
-Rui Okada
-Richard 'Bambo' Bamford[/QUOTE]Yeah. You're not going to be accepted until you identify yourself.
[QUOTE=Floatation;33791601]A friend wanted me to make a system that returns a random song from a table, so here's what I did
[php]
<?php
/**
* Database class for the JustinBrandon community.
*
* @author Nathan
*/
class Database {
public $connected = false;
public $dbh = null;
public $songArray = array();
function __construct($host=null, $user=null, $pass=null, $db=null) {
if ($host && $user && $pass && $db) {
try {
$this->dbh = new PDO("mysql:host=$host;dbname=$db", $user, $pass);
$this->connected = true;
} catch (PDOException $e) {
echo "Could not connect to the database. Please contact an administrator.";
$this->connected = false;
exit();
}
} else {
echo "No or not all variables are passed to the constructer. Contact an administrator.";
$this->connected = false;
exit();
}
}
public function fetchAllSongs() {
$query = $this->dbh->query("SELECT * FROM song_directories");
foreach ($query as $q) {
//$this->songArray[$q['id']] = $q['song_url'];
$this->songArray[] = $q['song_url'];
}
return $this->songArray;
}
public function getMaxCount() {
$query = $this->dbh->query("SELECT * FROM song_directories");
return $query->rowCount();
}
public function returnURL($randomNum) {
//$query = $this->dbh->query("SELECT * FROM song_directories WHERE id = '$randomNum'");
/* foreach ($query as $q) {
$this->songArray['singleSongURL'] = $q['song_url'];
} */
$this->fetchAllSongs();
return $this->songArray[$randomNum];
}
/* user methods */
public function login($email, $pass) {
$query = $this->dbh->prepare("SELECT * FROM admin_accounts WHERE email = :email AND password = :pass");
$query->bindParam(':email', $email);
$query->bindParam(':pass', $pass);
$query->execute();
$count = $query->rowCount();
if ($count == 1) {
$_SESSION['active'] = 1;
header("Location: admin.php");
return true;
} else {
return false;
}
}
public function addSong($songURL) {
$check = $this->dbh->prepare("SELECT * FROM song_directories WHERE song_url = :songurl");
$check->bindParam(':songurl', $songURL);
$check->execute();
if ($check->rowCount() == 1) {
// url already in db
echo 'That URL is already inside the database! URL: ' . $songURL . '<br />';
} else {
// url not in db - proceed
$insert = $this->dbh->prepare("INSERT INTO song_directories VALUES(:songurl)");
$insert->bindParam(':songurl', $songURL);
$insert->execute();
}
}
public function removeSong($songURL) {
$check = $this->dbh->prepare("SELECT * FROM song_directories WHERE song_url = :songurl");
$check->bindParam(':songurl', $songURL);
$check->execute();
if ($check->rowCount() == 1) {
// url exists so remove
$delete = $this->dbh->prepare("DELETE FROM song_directories WHERE song_url = :songurl");
$delete->bindParam(':songurl', $songURL);
$delete->execute();
} else {
echo 'That URL is not inside the database! URL: ' . $songURL . '<br />';
}
}
}
[/php]
[php]
<?php
require 'config.php';
require 'security_class.php';
require 'database_class.php';
/**
* Functions for the JustinBrandon community.
*
* @author Nathan
*/
$dbh = new Database($hostname, $username, $password, $database);
$sec = new Security();
function randomizeURL() {
global $dbh;
$numRows = $dbh->getMaxCount();
$randomNum = rand(1, $numRows);
$randomURL = $dbh->returnURL($randomNum);
return $randomURL;
}
function checkLoggedIn() {
if ($_SESSION['active'] == 0 || !isset($_SESSION['active'])) {
return false;
} else {
return true;
}
}
[/php]
Obviously I'm not the best and this could have been simpler/more organized but not bad for a quick $30.[/QUOTE]
why the fuck are you reading all the songs into an array before picking a random song
Im currently doing a search engine, its more open then Google and you can more easily submit urls
I was planing on releasing the source code but sins the website does not get almost no hits i decided it wasn't worth the trouble
but no one is using it
[QUOTE=kusaga;33795687]its more open then Google and you can more easily submit urls[/QUOTE]
lol
[QUOTE=kusaga;33795687]its more open then Google and you can more easily submit urls[/QUOTE]
lol
I asked for the FB Group, am Marcel on it.
[QUOTE=swift and shift;33793726]why the fuck are you reading all the songs into an array before picking a random song[/QUOTE]
Was the only way that came in my head. How would you do it?
Bringing FP to mobile - the cool way
[img]http://db.tt/6ei6AjU5[/img]
[editline]19th December 2011[/editline]
(I'm a long way from being done, by the way)
[QUOTE=TerabyteS_;33798575]Bringing FP to mobile - the cool way
[img]http://db.tt/6ei6AjU5[/img]
[editline]19th December 2011[/editline]
(I'm a long way from being done, by the way)[/QUOTE]
It looks like a thinner version of Facepunch.
[QUOTE=The freeman;33799068]It looks like a thinner version of Facepunch.[/QUOTE]
Which makes sense, if you think of phones as thinner versions of a computer screen.
[img_thumb]http://dl.dropbox.com/u/3695360/SD/site5.PNG[/img_thumb]
What do you guys think of the registration page?
[QUOTE=AzzyMaster;33802223][img_thumb]http://dl.dropbox.com/u/3695360/SD/site5.PNG[/img_thumb]
What do you guys think of the registration page?[/QUOTE]
Nice, but in my opinion too many patterns.
[img_thumb]http://i.imgur.com/Ic1xQ.jpg[/img_thumb]
[editline]a[/editline]
Fuck off imgur, why did you turn my png into some horribly compressed jpg.
Fix'd
[url]http://i.imgur.com/Ic1xQ.png[/url]
[QUOTE=Vietnow;33810890]Fix'd
[url]http://i.imgur.com/Ic1xQ.png[/url][/QUOTE]
That doesn't make a difference. It's the exact same image. Still a jpeg as well.
[img]http://i.imgur.com/Lii8r.png[/img]
I'm currently working on a new project which is far from done. The beta is still WIP, so the main page is not much to look at right now, but I have a beta page for showing current progress:
[url]http://beta.graphical.me/[/url]
I'm only just starting to add the graphics, I'm currently working on the HTML/CSS part. What do you think?
Guess what kind of selector I have to use to set the border of the first of FP's forum headers.
You guessed right:
[code].above_body + table td.FrontPageForums:first-child table.forums:first-child tr.forumhead[/code]
[editline]20th December 2011[/editline]
What about a selector to be able to apply a bottom border to the last of the forum rows?
Sure!
[code].above_body + table td.FrontPageForums:last-child table.forums:last-child tr:not(.forumhead):last-child[/code]
[editline]20th December 2011[/editline]
What a nightmare.
[editline]20th December 2011[/editline]
But yeah,
[t]http://dl.dropbox.com/u/2951174/iPhone/Photo%2020-12-11%2019%2003%2039.png[/t]
[QUOTE=Jelly;33808900][img_thumb]http://i.imgur.com/Ic1xQ.jpg[/img_thumb]
[editline]a[/editline]
Fuck off imgur, why did you turn my png into some horribly compressed jpg.[/QUOTE]
because bandwidth
Don't know if you guys remember this project. But here's an update:
[img]http://imgur.com/UAayt.jpg[/img]
[QUOTE=adamjon858;33816543]Don't know if you guys remember this project. But here's an update:
[img]http://imgur.com/UAayt.jpg[/img][/QUOTE]
I remember the logo in the graphic design thread, what exactly does the site do?
[QUOTE=adamjon858;33816543]Don't know if you guys remember this project. But here's an update:
[img]http://imgur.com/UAayt.jpg[/img][/QUOTE]
I like it, add a 1px solid white border below the navbar so it divides the shadow a bit, looks blurry.
Looks good, but Christ sake work on the spacing!
[QUOTE=adamjon858;33816543]Don't know if you guys remember this project. But here's an update:
[img]http://imgur.com/UAayt.jpg[/img][/QUOTE]
Looking nice, spacing is a little weird and i cant help but feel that the views toasts and comments should be center aligned to their containers
Sorry, you need to Log In to post a reply to this thread.