Welcome Guest! To access all forums & features, please register an account or sign-in. → Why register?



My News system


31 replies to this topic - - - - -

#1 Haggis

    Resident Elite

  • 1,339 posts
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 05 March 2013 - 11:12

Ok i made a news system

Mainly because i wanted to see if i could do it

Ignore the actual site layout it was just thrown together so i could work on it as if it was part of a site

Is there anything you would add?
Anything you would change?
anything you would remove?

http://www.haggistech.co.uk/news


#2 LUTZIFER

    Resident Evil

  • 2,296 posts
  • Joined: 09-January 02
  • Location: Vancouver Island, BC CANADA
  • OS: Windows 7 Ultimate
  • Phone: Google Nexus 4

Posted 05 March 2013 - 11:45

Sweet! Looks awesome so far. Good work!!

#3 OP Haggis

    Resident Elite

  • 1,339 posts
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 05 March 2013 - 14:23

Thanks

Been working on it for a wee while now just in between work etc

the main page i feel is about finished maybe some small tweaks

Totally lost on admin page though

#4 +Lingwo

    Neowinian Wise One

  • 4,748 posts
  • Joined: 22-April 03
  • Location: UK

Posted 05 March 2013 - 14:54

If you're not sure what to do for the admin page.
Look at bootstrap
http://twitter.github.com/bootstrap/
You can whip up a decent looking administration backend pretty quickly.

As for functionality, you will want to include things like comment moderation, News CRUD. A user CRUD also.

#5 Uplift

    Deejayy...

  • 5,162 posts
  • Joined: 07-May 04
  • Location: England

Posted 05 March 2013 - 15:31

Very good work, it's nice, clean and does it's job - just a couple of things:

- index.php?page=comments&id=54 - you should definitely use a slug: /facebook-hosting-windows-8-hackathon, page=comments is not a good representation
- also show news title in the page <title></title>, it still says Home even when it's not on 'home'
-

Posted by: Haggis @ November 30, 2012

.. you can't post something at @ a date.

#6 OP Haggis

    Resident Elite

  • 1,339 posts
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 05 March 2013 - 16:03

View PostUplift, on 05 March 2013 - 15:31, said:

Very good work, it's nice, clean and does it's job - just a couple of things:

- index.php?page=comments&id=54 - you should definitely use a slug: /facebook-hosting-windows-8-hackathon, page=comments is not a good representation
- also show news title in the page <title></title>, it still says Home even when it's not on 'home'
-

Posted by: Haggis @ November 30, 2012

.. you can't post something at @ a date.


Why is it not good to use ?page=comments for example?

I will fix the @ to on lol

and yeah the | home i will fix too

thanks :)

#7 WildWayz

    Neowinian

  • 62 posts
  • Joined: 28-September 11

Posted 05 March 2013 - 16:10

Isn't it SEO indexing? You'll get more hits from search engines if the title is in the link...

#8 Uplift

    Deejayy...

  • 5,162 posts
  • Joined: 07-May 04
  • Location: England

Posted 05 March 2013 - 16:12

View PostHaggis, on 05 March 2013 - 16:03, said:

Why is it not good to use ?page=comments for example?

I will fix the @ to on lol

and yeah the | home i will fix too

thanks :)

Just my personal take on it: it's not really a comments page, it's a news page with comment functionality... Using something like the page/news title as the url is much more relevant.

And as above.. SEO purposes.

#9 ACTIONpack

    Graphic Designer

  • 1,660 posts
  • Joined: 10-August 03
  • Location: Lawrenceville, GA
  • OS: Windows 8 Pro
  • Phone: HTC Windows 8X

Posted 05 March 2013 - 18:35

It works but needs a lot of css styling. It's looks like a shell only.

#10 kyosuken

    Old Geezer

  • 378 posts
  • Joined: 27-October 01

Posted 05 March 2013 - 20:01

You forgot to validate the ID

http://www.haggistec...nts&id=mouhhaha

will give a mysql error...

Good job for a first try :) !

#11 OP Haggis

    Resident Elite

  • 1,339 posts
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 05 March 2013 - 22:28

View PostACTIONpack, on 05 March 2013 - 18:35, said:

It works but needs a lot of css styling. It's looks like a shell only.

Did you read the first post?

in particular thisbit

Quote

Ignore the actual site layout it was just thrown together so i could work on it as if it was part of a site


View Postkyosuken, on 05 March 2013 - 20:01, said:

You forgot to validate the ID

http://www.haggistec...nts&id=mouhhaha

will give a mysql error...

Good job for a first try :) !


Thank you, i will fix that :)

#12 AWKM

    Neowinian Senior

  • 2,670 posts
  • Joined: 28-November 03
  • Location: Canada

Posted 06 March 2013 - 04:34

What check are you doing on the ID to ensure it's legit?

#13 OP Haggis

    Resident Elite

  • 1,339 posts
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 06 March 2013 - 11:34

Its been so long since i did that bit of code i will ahve to check lol

#14 OP Haggis

    Resident Elite

  • 1,339 posts
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 06 March 2013 - 12:10

i am escaping the string and should now not work like that

this should work now

http://www.haggistec...ents&id=muhahah

#15 Uplift

    Deejayy...

  • 5,162 posts
  • Joined: 07-May 04
  • Location: England

Posted 06 March 2013 - 12:38

yeah i tried to hijack it using the id and every attempt failed.