Making my new site

Discuss anything and everything. Keep it clean (or else).
Post Reply
spillerrec
Posts: 358
Joined: 01 Oct 2010, 06:37
Location: Denmark
Contact:

Making my new site

Post by spillerrec »

I have finally went ahead and bought paid hosting so that I'm able to move away from Wordpress.com and its limitations. So I'm starting to create my own Wordpress theme.

While I'm doing it for the technical aspects, I'm not that good at the design though. This is what I have so far:
Image
Haven't really done any styling for the links and headlines, I'm not quite sure what to do with those yet... Anyway, this is my basic idea, slightly inspired by the theme I use on Wordpress.com. My goals are to keep it lightweight both in design and code.

I'm a bit worried about the widths though. The main column is 480px wide (without padding) which I think it a quite fitting width for text (as it keeps the line-length down to an acceptable level). However most websites is made for 1024px wide monitors, so if I had to do the same I have to add about 500px sidebars which I think is way too much.
I only want one sidebar as I otherwise think the page becomes too cluttered and I chose a width of 270px. I think it looks a bit too wide, but if I make it much smaller the site will become rather thin. (Currently at 790px with padding.)
So what do you guys think about it?


Below are some of the technical issues I have had so far:

I will not say I have enjoyed programming the theme so far. I want to be able to create my site in a DOM and then create the site when everything is done. This gives me quite a bit more flexibility in which order I can do everything in, I can create the header and then afterwards fill in page specific details as the page title, RSS feeds and so on instead of having to pass these things as parameters. I can also create multiple syntaxes for example HTML4, HTML5 and XHTML and switch between them without too much work.
However Wordpress certainly isn't designed to be used this way. Way too many functions simply directly echo the contents out. So I had to write wrappers that redirects the output buffer into a variable and return that. Secondly I had to unescape escaped characters, because I of course make sure to escape everything...
It is starting to work out how I want it now, but it does make the code a bit more ugly...

I still have one major problem with images, they don't resize properly after I import them on another side. So every image is in their full resolution no matter which size have been used. With plugins it is possible to resize them and I finally got it working for the featured images, however it doesn't work for the images in the posts. It seems like the links are still pointing to a specific resolution, so it is trying to access the old images, even though I have resized versions now...
I guess I can simply go through every post and readd the images (without reuploading them), but I think I will do this properly instead. I'm pretty sure I could create my own BBcode in PHP when I messed around with Wordpress a year ago, so I will try make a IMG tag where I can add the ID and size and my theme will create the HTML code. This way I should easily be able to change the size once I have resized the images, but I will also have much more control in what it actually writes. Currently the IMG sizes are hardcoded in the HTML which makes it hard for me to resize them in CSS. (I will of course select some sizes which matches my theme, but I want the site to be able to scale the site down to mobile sizes.)
I will still need to go through every post I made so far.


So I'm moving the blog to http://spillerrec.dk and I have it up and running right now with a random theme. But as I'm having those issues with the images the front page currently contains 10MB worth of images... So I'm not doing anything there until I have a somewhat working version of my theme ready.
EDIT: I made a BBcode (shortcode in Wordpress terminology apparently), added that to the existing theme and fixed the most problematic images. I have confirmed that the shortcode conversion is done every time it displays the post, so resizing the images now automatically updates the post. So I will probably start using that site soon anyway.
My blog: http://spillerrec.dk/category/lego/
RICcreator, an alternative to nxtRICeditV2: http://riccreator.sourceforge.net/
nxtboyiii
Posts: 366
Joined: 02 Oct 2010, 07:08
Location: Everywhere

Re: Making my new site

Post by nxtboyiii »

Wordpress?? Limited? No. I disagree.
If I were you I would make your own website (your own domain name) and use wordpress for it, or Drupal.
They look much nicer and are easier to use then, what it looks like, HTML.
Thanks, and have a nice day,
nxtboy III

programnxt.com
spillerrec
Posts: 358
Joined: 01 Oct 2010, 06:37
Location: Denmark
Contact:

Re: Making my new site

Post by spillerrec »

I'm talking about Wordpress.com being limited. The only way you can customize your blog is by editing the CSS file. Bear in mind that you have to pay 30 USD a year just to be able to do that... And you are still pretty limited in the kind of files you can upload, stuff like .nxc, .ric, .zip and so on is banned.

I want to make compact galleries like this:
Image
I want to have code boxes with syntax highlighting and in general, I just want things to work the way I want. Wordpress.com just doesn't allow me.

So I am using Wordpress, but it is Wordpress.org. Look at the bottom of http://spillerrec.dk/ and you will see "Powered by Wordpress" in the footer. Just a random theme on it for now, but as said I'm working on making my own.

(And yeah, that image gallery is working and is done completely in CSS, no JavaScript required.)
My blog: http://spillerrec.dk/category/lego/
RICcreator, an alternative to nxtRICeditV2: http://riccreator.sourceforge.net/
nxtboyiii
Posts: 366
Joined: 02 Oct 2010, 07:08
Location: Everywhere

Re: Making my new site

Post by nxtboyiii »

Ohhh.... OK.
From your screenshots it looks like just plain HTML.
Thanks, and have a nice day,
nxtboy III

programnxt.com
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests