-
Web Development Software
Hi! I just noticed that this thread is from 2009. Nevertheless, the following is what I use for web development: PHP-based: * Apache, PHP, MySQL running on Linux Mint * FuelPHP Framework * Notepad++ Text Editor * Bash shell :-) .NET-based * Microsoft IIS Server, MS SQL Server, .NET 3.5/4.0 * ASP.NET - usually Web Forms, but occasionally MVC * Visual Studio 2012 The only change since a couple of years ago was the use of Linux Mint instead of Ubuntu, and FuelPHP instead of CodeIgniter. Pretty much everything else is just a version upgrade.
-
ASP.NET Hyperlink Help
I believe what you want to do is best accomplished with a Link Button instead of a Hyperlink. You can then add code to the click event handler for the Link Button to redirect the browser to the desired page.
-
I want my laptop to use 2 monitors and it's own screen
Some laptops come with multiple video outputs - VGA, HDMI, and DVI - so you can use different outputs to connect to different monitors. Make sure you check out the specs before you buy the laptop though. You might also want to check the supported resolutions so if you have a high resolution monitor, you can take advantage of its capabilities with a graphics card that can 'feed' it video at those resolutions.
-
W3C Validation
jame5payne, I don't believe I've ever seen the "rel" attribute used to specify text to describe an image. As Wickham suggests, you should be using the "alt" attribute. The "title" attribute is less commonly used than "alt" because the W3C validator tosses a warning at you if you don't have an "alt" attribute but couldn't care less about the "title" attribute. If you do have any Javascript that uses the rel attribute, for example to display a caption with a jQuery script, you would have to leave it in and just ignore the W3C validation message. I remember having to ignore the W3C validation that complained about me placing an H1 tag within an A tag. I had to nest the H1 within the A to make the H1 into a link along with its background image (I used it to display the site logo). It was a popular solution implemented by many web designers and was an alternative to using an IMG tag though, technically, it was improper.
-
Very inexperienced and handling a complex website
Hi! We've all started off inexperienced and were winging it when we were on our first gigs, so welcome to the club of the folks who did it too. To be able to pick up on something that you did 14 years ago and start putting together a website, you are a quick learner. CSS is easy to get started with, once you think of the CSS attributes as HTML attributes of a special kind. Javascript is different from HTML and CSS so it may take you a while to get the hang of it but jQuery makes using Javascript a whole lot easier so I would suggest looking up what you can on jQuery. If you have any questions, feel free to post to the forums and you're sure to get an answer.
-
-
How many SQL connections is too many?
You can never really tell how many queries is too many because you can have a web page that looks like the following: * A banner image on top from an ad manager script * The site title pulled from a CMS table * The home page content obtained from a CMS table * A sidebar newsfeed obtained from querying a table containing blog posts * A footer containing links obtained from another CMS table These are 5 queries right here so if you compare that to a static HTML page that has no database interaction at all, you are looking at two very different pages right there. You can also have a 'chat' page that makes a database query every 20 seconds so there could be over a hundred database queries being made by that page (though, ideally, one shouldn't built a chat application in this manner the world is less than perfect). If you aren't experiencing any kind of a performance problem or foresee a performance problem in future, you probably don't need to bother about the number of queries or the number of connections because the effort you put into it may not really pay off... though if you can do it right, you should, as it would be a great learning experience.
-
My php include is not working
Assuming that the page you are on is located at "includes/pages/index.php" and you want to include the page at "includes/page.php", what you need to do is type in: include '../page.php'; Typically, you would include a file that is within a child folder rather than a file that is in a parent folder, but the approach has been used to include configuration settings. WordPress supports configuration files that are located in a parent folder too (move the configuration file to a folder up in the hierarchy and check it out!).
-
-
Heyy from Lincolnshire!
Hi Liam! Good to have you join our community. Being the designers that we are, we'd love to see your work. If you would like any inputs on the website you are building for the Students' Union, feel free to ask. I'm more of a developer than a designer, though I do both, so I may be able to give you some pointers on PHP. BTW, why do you use VPS hosting? Shared hosting is more economical, unless you get a lot of traffic or require software components that most hosting services do not provide.
-
CSS Wordpress
You are getting the line mid-way because the image you used it floated left. You can set a min-height attribute and mimic it with Javascript in IE. BTW, you have a good WordPress theme. Do you have it on the WordPress Theme Directory?
-
-
Help with CSS Height issue
Hi! I've had to deal with getting a 100% height and using pure CSS just feels right but sometimes you do have to resort to using Javascript. Whenever I had issues with Microsoft Internet Explorer in the past, I would use CSS expressions simply because I loathed writing Javascript for web layout. However, CSS expressions are evil and I don't use them any more mostly because they can be used for IE-hacks but they can't be used in any other browsers. BTW, the height of the website is far too much right now. If you are setting the height with the CSS height attribute, you probably need to reduce it - I see scroll bars and when I scroll down, I see only the four bars.
-
Wordpress tutorial?
Hi kree8or, I build WordPress plugins and themes, and it's not really hard once you get the hang of it. When starting off, you might just want to copy-paste the basic parts and build upon it. If I have been away from WordPress in a long time and want to refresh my memory, I look up some of the training slides that I created as a WordPress Theme Reference. They are more like cues than an actual tutorial but you can use it to dissect an existing theme and learn from it. When I buy a book, I look for something by publishers that I have bought in the past. There's a WordPress Bible (from the "* Bible" series - I read their Red Hat Linux Bible a long time ago) and Professional WordPress from Wrox publishing that are quite popular. There's a WordPress Cookbook too, but I'm not sure if it is from O'Reilly.
-
Latest wordpress post onto php page?
There are two things you have got to do to show only a part of an article. The first is to use the_excerpt(), as has been used in the code block you posted to this thread. The second is to add the "more" tag within the posts after the 1-2 lines that you want to display. I know, it is a manual process, but the alternative would be to do a substring or use CSS to hide text that does not fit within a DIV.
-
-
How quickly do you think I can learn PHP? (In at the deep end style!)
I've been using PHP for about a year. When you use a framework or CMS to do build software, you tend to get more familiar with the functions in the framework or CMS and lose track of the built-ins provided by PHP. That's happened to me after having switched to using frameworks and CMSes. I started off with template development on Joomla and Drupal but now it's WordPress themes and plugins all the way with some CodeIgniter work. I guess current trends seem to dictate what we do rather than our desires to work on something.
-
Complete nightmare contact form!
Hi! @jame5payne First off, I would suggest you use filter_input_array instead of calling filter_var on each array element because of the overhead involved in calling the function for each array element. The overhead may be insignificant and, as the expression goes, it's not going to kill bunnies anywhere, but it is good programming practice to avoid unnecessary function calls. An optimizer may be in place for function in-lining but one shouldn't rely on it being present because not all web hosting servers would have an optimizer in place. Next, would it be possible for you to echo the contents of the variables instead of mailing them and post the output to this thread? There doesn't seem to be anything wrong with the code that you are using. @simplypixie filter_var is a PHP built-in function available from PHP 5.2 and FILTER_SANITIZE_STRING is a type of filter. It's a documented PHP function.
-
Adding latest wordpress post to website?
I would suggest getting a small PHP script to pull the latest post from the WordPress database because of the overhead. All you need is the latest post and if you pull data from the RSS feed, WordPress first queries the database after running through the plugin framework and processing any actions or filters, then it turns the post data into RSS markup, next you have either a Javascript that gets the browser to request for the RSS and turn it into a part of the page as markup or have a PHP script to do it for you. But then again, if you're not on shared hosting or if you have a good shared hosting service, an RSS feed just might do it for you too.