Everything posted by JamesW
-
Help needed with XML (PHP)
Hmm it decided not to post my last response for some reason. Anyway, it worked perfectly and thanks for explaining the reasoning behind it also
-
Help needed with XML (PHP)
Didn't work unfortunately, I can't see what's going wrong here
-
Help needed with XML (PHP)
Hi, I'm trying to get the product title's from this xml file that is being returned by the Amazon Product Advertising API. You can see the XML here by clicking on the link at the top http://jamesrwhite.co.uk/testing/xml/ This is a small snippet of the code I'm trying to use at the moment: <?php // request $response = file_get_contents($request); // parse XML $pxml = simplexml_load_string($response); foreach($pxml->BrowseNodeLookupResponse->BrowseNodes->BrowseNode->TopItemSet->TopItem->Title as $title) { echo $title; } ?> I'm not great with XML so I'd really appreciate if anyone could point me in the right direction!
-
MAC or PC
Have a look at MAMP (http://www.mamp.info/en/index.html) it is the equivalent of Wamp/Xampp for Mac. Having switched from Windows 7 myself (which I thought was great) I can definitely recommend switching to Mac. It's just down to personal preference though.
-
Career in Web Design.....? - 'The passion is there'!
With the exception of CS5 that looks quite promising previous versions of Dreamweaver output very messy code which is less likely to be cross browser compatible in my experience. I use to have the same opinion then I learn't to hand code, if you are serious about a career in Web Design you definitely need to know HTML and CSS very well and be able to write them in your sleep Just my opinion though.
-
Horizontal Lines Photoshop
I think that is just the style of the effect not a fault with your installation, either way there are other methods you could use to achieve a similar effect: A radial gradient A small circular brush with an outer glow added to it
-
Career in Web Design.....? - 'The passion is there'!
Yh keep working on your html and css skills using websites like http://w3schools.com. Practice building templates and if possible websites for friends/family/charity even if it's for free, its all good experience. It's a lot to learn but you'll get there if you put the work in
-
CSS drop down menus
You can quote and reply to someone elses post in the same post by the way, you don't need to use up several posts Good Luck.
-
CSS drop down menus
I made this the other day, not sure if it's a great example but from my testing it works in Firefox, Opera and Chrome flawlessly and with a few differences in IE7 and IE8. In IE6 it doesn't work at all.. http://jamesrwhite.co.uk/testing/css/dropdown Any tips on how I could improve on it would probably help both of us
-
Script that shows number of YouTube subscribers?
Awesome thanks, are those types of things called delimiters ? I need to read up on them. They look like they are really useful
-
Script that shows number of YouTube subscribers?
Just out of curiosity what does the "/K/d+%" do ?
-
Drupal or Joomular
There are plenty of e-commerce plugins for both Drupal and Joomla out there which I'm sure allow for quite easy editing of the shops items, prices etc without having to manually change code.
-
Any feedback on my Web Site please
^ Yh I would second either changing or removing your background image. Apart from that I think it's really nice and clean
-
Light CMS
I stumbled across Light CMS the other day and after being sceptical at first I looked closer at it and recognized how it actually offered the potential to make a half decent profit if you used it for several clients. To make things clear I am in no way comparing it to Wordpress/Drupal which are great don't get me wrong but if it's just a simple 5-10 page 'static' site that you are making for a client it is a bit of a pain to integrate it into a complex CMS for such a small website. So you could either just code it as a normal html/css website or use some of the many free lightweight CMS out there such as Cushy and SimpleCMS which offer editing usually based on adding a class or comment tag around the content you want to edit. LightCMS still works off these principles by using it's own unique tag to define editable regions but how it's different is it's interface. Once you have set up your template the client can edit text just by clicking on a paragraph, drag and drop boxes around the page adding in complex forms is made easy and much more. And what I think possibly the best part about it is the site is hosted by LightCMS themselves so bandwidth is never an issue and they let you decide the prices to charge per month to your clients. How this works is basically LightCMS charge a fee of say for example $19 a month for their second lowest plan but what you can do is charge your client say $30 a month. LightCMS will bill the client, take their $19 and pay your the remanding sum which in this case is $11 every month. I'm sure as you can imagine if you had say 10 clients on the system it could prove to be quite profitable and you can still charge them for the original design of the site as well. I've never used it personally but I am considering using it on the next 'small' site I make for a client to see how it goes. What do you think ?
-
Making Contact Forms
With a contact form you will mainly be styling the 'label', 'input' and 'submit' buttons You can style label and input just like any other html element: <style> label {color:#333; font-weight:bold;} input {padding:3px; border:1px solid #ccc;} </style> You can also target individual input tags individually although it doesn't work in IE6, not sure about the newer versions of IE ? <style> input[type='text']{padding:3px; border:1px solid #ccc;} input[type='submit']{padding:2px; border:1px solid #999; background:#ccc;} </style> Hope that helps a bit
-
Google wave
Yh I think over time when more people sign up to it, it certain situations it has the potential to replace email. Also I have like 20 invites if anyone still needs one.
-
From Tables to CSS - my new index page
It's definitely a huge improvement on your original design. However I think your Navigation could do with a slight re-design, try a really subtle gradient or the 1px lines effect ( see here ). Other than that nice work
-
Dissertation Title Suggestions
Some random ideas I've got: Effects of social media on journalism/business (Business might be more appropriate for you) How using Open Source software such as MySQL and PHP can help businesses keep their costs down The effect the web has had on business, some ceasing to be on high street and moving online e.g Dixons ? Hope that helps a bit
-
Help with Caching file to save on bandwidth
Ok thanks for the advice, I'll give your method a try tomorrow. I'll try and adapt it for my YouTube requests as well as they are the ones which seem to take the longest to load. Will post back results tomorrow.
-
Help with Caching file to save on bandwidth
Only just seen your post and have recently worked out an alternate solution using cookies. It worked fine on my local testing server but when I uploaded it to my server I got this message: I read up on the issue and somewhere someone mentioned that: I tried to change my file to adhere to these rules but I still get the same error message.. Here is all my source code: http://pastie.org/pr...khdtngvrjtodctq My cookies are being set on lines: 257, 258, 309 Edit: Thanks for writing that up, but my pages are unique to each user based on their location they get different results so I think using cookies is more appropriate. Correct me if I'm wrong of course.
-
Help with Caching file to save on bandwidth
Hi, This is the page in question that I hope to apply caching too: http://fifasoundtrac...track/?s=fifa10 Let me explain what is happening, based on the users location I pull the song and artist names from my MySQL Database and then using these names I query the iTunes and YouTube API's to fetch download links and a video URL from YouTube which I use to provide a streaming link from inside my site. You can see all this happening when you go to the page I've mentioned above and usually it takes around 20seconds to 'load' around 40 songs. I've been working on this for ages as a personal project on my localhost server but I've just recently uploaded it online. I've got about 5 people to test the page and noticed the it used around 2.9mb of bandwidth just for these 5 people. I don't really know if that is a lot of bandwidth to be honest but I'd like to cache the pages anyway to imrpove on the loading times. I have been looking at this tutorial on php caching here: http://www.jonasjohn...php/caching.htm and I'm not sure it's exactly what I'm looking for. The part of the process that takes the most time is querying YouTube and iTunes, from what I understand the method above would just create a static copy of the page elsewhere on the server which it would fetch based on the expire limit that has been set. What I was thinking might be better would be to store the values of the iTunes download links and YouTube Video URL's as cookies on the users computer after they have run the page the first time and when they visit again just retrieve these values. Obviously the whole point of making this page dynamic is that thing like YouTube Videos available and iTunes songs can change over time so I would want to set a limit on how long the cookie lasted. So anyway if you've bothered to read all of that thank you and I hope I explained it well, just looking for people thoughts on whether this is possible/best method and maybe a few pointers in the right direction. Thanks again, James Edit: Here is a section of my messy source code: http://pastie.org/pr...as0pze80ugvce7a
-
Which social media website is most likely to still be around in 2015?
I very much doubt Facebook will start charging for use of the site, even they know better than that. Also they have just started to turn a profit from ad-based revenue.
-
New Site
Yh I agree with the above, having the right hand side fade makes the content boxes seem like they are not aligned properly. I think the rest of it is perfect though
-
customising a submit button without class or id
input[type="submit"] { background:#ccc; border:1px solid #666; } Not sure if that's what you mean ?
-
MAC or PC
It's a simple setting you change in the control panel to configure either a Mouse or Laptop Scroll Pad to be able to right click. Also while on the topic of 'mice' (?), the new Magic Mouse is probably the best mouse ever made