News: 1up Discord VOIP
Invite Code: https://discord.gg/VPv9JhP

Author Topic: Web Developer Advice Needed  (Read 2697 times)

0 Members and 2 Guests are viewing this topic.

Offline Pyrite[1up]

  • *[1up] Dev Admin
  • [1up] Dev Team
  • [1upZ] NMRiH Admin
  • Posts: 1,560
  • Karma: 147
  • Since: 08/11/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Developer Advice Needed
« Reply #15 on: October 27, 2010, 07:46:32 PM »
Why not consider a framework, like CakePHP. You'll never write a single line of SQL again :)
•·.· ́ ̄`·.·•"Most Likely to Pillage the Global Village"•·.· ́ ̄`·.·•


Offline SlimPickins

  • Posts: 139
  • Karma: 35
  • Since: 10/11/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Developer Advice Needed
« Reply #16 on: November 05, 2010, 03:24:41 PM »
So I think I've found just about everything I need. Cleaned up the CSS quite a bit on my deadcrow site. Still needs some work, but I cleared out a bunch of redundancy and made it much easier to read. I also found an image gallery called Plogger that works really well for what I want. It's the only one I've found so far that clearly states how to integrate into an existing XHTML/CSS site, whereas the others are almost full blown CMS systems in themselves that try to design your whole site for you.

Next on my list is to play with PHP include, so I can seperate the sections of my markup for easier distribution among pages (ie. have the navigation/header section seperate so only one file needs to be updated when there are changes). This is a lower on my priority list now, though, because the image gallery allowed me to trim my previous (and clunky!) gallery page from several html files down to just one.

Another thing on my agenda is to find a drop in blog system that will integrate as easily as the image gallery did. If anyone knows of a good one off hand, suggestions are quite welcome.

- Pickins


"As far as I'm concerned, you could be a rainbow-coloured pie-sexual unicorn for all I care, if you're cool to play with then it's all good 8)" - KD197

Offline KD197

  • Posts: 671
  • Karma: 28
  • Since: 20/06/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Developer Advice Needed
« Reply #17 on: November 05, 2010, 03:46:16 PM »
PHP includes are easy man. It's literally <?php include("filename.php"); ?>
So just put a section of HTML in a file for your navigation bar for example, and just use the include wherever you want it in the main HTML file. The included file doesn't need <html> or <body> tags or any of that kind of jazz, unless you're using it as the page header/footer. I have mine set up like:
- Include for all the DTD and <head> info, CSS links etc.
- Include for nav bar
- Actual page content
- Include for footer with the closing html and body tags.
You can also "nest" includes, for example my nav bar include is actually included in the file that has all the head info, which in turn is in an include. So my actual pages consist of an upper include, a div for content and then a lower include. Rolling out new styles is made a piece of cake by CSS and changing your sites' static elements is made a piece of cake with includes.

Not-so-1337-hax0rz: awsdgiaygveiujgfahiy, killer, [K1L]ShAd0W[GER], [51]Usage (impersonator), 1Lexa8, Redeye, sid, ASTROKILLA, bar, mody, [R:K]BatistaBomB, revenger, [58f]gojan, imaidiot, [DOA]Arik, sn4k3, Broajer, HACKER, DDMX, dopey

"yeah, I googled "mod reveal 67" to find out what it does and the top links were from 1up" - SlimPickins[1up]

Offline SlimPickins

  • Posts: 139
  • Karma: 35
  • Since: 10/11/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Developer Advice Needed
« Reply #18 on: November 05, 2010, 09:31:12 PM »
Oh man, this sounds like fun. I'm totally hacking this up later. The only thing I haven't found a noob tutorial for is how to integrate the navigation links with this. I'm sure basic navigation is handled with variables, but one thing I llike about my current setup is that the link for the "current" page is a different color than the rest, leaving the end user with some clue as to where they are.

I actually once stumbled upon a tutorial that I believe provided this information, but I totally spaced on bookmarking it and can't, for the life of me, remember what search words I used to find it. All I remember is that the guy (or girl) was a huge fan of require_once.

 - Pickins


"As far as I'm concerned, you could be a rainbow-coloured pie-sexual unicorn for all I care, if you're cool to play with then it's all good 8)" - KD197

Offline Pyrite[1up]

  • *[1up] Dev Admin
  • [1up] Dev Team
  • [1upZ] NMRiH Admin
  • Posts: 1,560
  • Karma: 147
  • Since: 08/11/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Developer Advice Needed
« Reply #19 on: November 05, 2010, 09:51:33 PM »
You should really learn CakePHP, it's a new concept though, or will be to you. Model View Controller (MVC) paradigm, similar to Ruby on Rails.
•·.· ́ ̄`·.·•"Most Likely to Pillage the Global Village"•·.· ́ ̄`·.·•