• 0

My News system


Question

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

Link to comment
https://www.neowin.net/forum/topic/1139934-my-news-system/
Share on other sites

Recommended Posts

  • 0

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.

  • 0

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.

  • 0

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 :)

  • 0

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.

  • 0

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

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

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 :)

  • 0

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

this should work now

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

escaping...assuming you're using mysqli_real_escape_string then?

Not necessarily secure from what I've read.

Thoughts on:


$id = preg_match("/^[0-9]+$/", $_GET['id']);
[/CODE]

Doing anything on the page= btw?

  • 0

These days it's a bit of a myth about the address affecting SEO. Always a good idea to include the title though simply because people search for words.

/news/index.php?page=comments&id=54 isn't brilliant.

/news/index.php?page=comments&title=facebook-hosting-windows-8-hackathon is better (and Google can understand query strings)

My own personal blog that I'm creating uses entry.php?entry=title-of-post&category=category-of-post

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Prime Early Deal: Amazon Echo Dot Max drops to its lowest price ever by Fiza Ali While Prime Day 2026 is officially kicking off next week, Amazon has started offering Prime Early Deals already. Particularly, the newest model of Amazon Echo Dot Max, unveiled in September 2025, is now selling at its lowest price yet with a 35% discount on its original MSRP. The device features a two-way mono speaker system comprising a 0.8-inch tweeter and a 2.5-inch woofer that should deliver sound across a claimed frequency range of 53Hz to 16kHz. It offers Wi-Fi 6E support (802.11 a/b/g/n/ac/ax) alongside Bluetooth 5.3 with Low Energy, including A2DP for audio playback and AVRCP for device control. The device also operates as a smart home hub, with built-in support for Zigbee, Matter, and Thread Border Router functionality. Furthermore, Amazon Sidewalk is included to help extend connectivity beyond standard Wi-Fi range by leveraging shared network infrastructure. Under the hood, it is powered by the AZ3 processor with an integrated AI accelerator. It also features Omnisense technology, enabling ambient intelligence capabilities such as presence detection, temperature monitoring, and tap gesture control. There are also additional built-in sensors that include ambient light, temperature, and an accelerometer. When paired with a compatible eero router, it can also help extend Wi-Fi coverage by up to 1,000 square feet, supporting speeds of up to 100Mbps and up to 10 devices on the 5GHz band. Setup is handled via the Alexa app, available on Android, iOS, Fire OS, and web browsers. In terms of privacy, it includes a microphone mute button, wake word activation, and options to review and delete voice recordings. Accessibility features cover adaptive listening, adjustable speech rate, audible request tones, and read-aloud support. Lastly, the device is backed by a one-year limited warranty, with optional extended protection available as well. Amazon Echo Dot Max (newest model): $64.99 (Amazon US) - 35% off Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases.
    • That's not what I meant:) I like the tabs being above the URL bar, but previously the tab selection started from the top of the screen (y=0). So I could just quickly push my mouse up and done. Now I have to actually aim it just slightly below the top, because the tab is now a few pixels below the top. In other words, previously I only had to aim with my mouse horizontally, now I have to both vertically and horizontally. Super annoying.
  • Recent Achievements

    • One Month Later
      Vincian earned a badge
      One Month Later
    • First Post
      Jocimo earned a badge
      First Post
    • Week One Done
      suprememobiles48 earned a badge
      Week One Done
    • One Month Later
      Windows Guy earned a badge
      One Month Later
    • One Month Later
      Prasann earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      501
    2. 2
      +Edouard
      160
    3. 3
      PsYcHoKiLLa
      86
    4. 4
      Steven P.
      67
    5. 5
      ATLien_0
      64
  • Tell a friend

    Love Neowin? Tell a friend!