Everything posted by a_ginger_webdev
-
.htaccess redirect with query strings
Hi all Been Googling for hours but not able to figure out how to do this. Basically, every time someone accesses this page with query string: .../business-directory/?action=viewlistings I want them to be redirected to: .../business-directory/?action=viewlistings&wpbdp_sort=-rating_count I can't find how to add a query string when a particular one is found - I'm sure it has something to do with Modrewrite but I'm in no way an .htaccess expert!
-
PHP - formatting number to 6 places
Evening all! My question is quite a simple one but I'm not sure how to go about it. I know how to get PHP to format a number to X number of decimal places but I want to format it to 6 whole number places. I.e. I want to parse a string from '123' to '000123', or '1234' to '001234'. I need it to add the right number of leading zeros so perhaps a strlen is a better approach? I've done the following but is there a quicker way? if (strlen($tempprice) == 1) { $fileprice = "00000" . $tempprice; }; if (strlen($tempprice) == 2) { $fileprice = "0000" . $tempprice; }; if (strlen($tempprice) == 3) { $fileprice = "000" . $tempprice; }; if (strlen($tempprice) == 4) { $fileprice = "00" . $tempprice; }; if (strlen($tempprice) == 5) { $fileprice = "0" . $tempprice; }; if (strlen($tempprice) == 6) { $fileprice = $tempprice; };
-
Infinite (JQuery?) carousel
Hi all I'm looking to build an infinite carousel that is manually scrolled with arrow buttons left or right. I presume this'll use the JQuery SlideTo function. Here's an example of what I'm after: http://www.balloondog.co.uk/ It needs to overflow the viewport. How would you guys go about achieving this?
-
Graphic design advice needed
Could a mod please remove the site links for me? I thought I'd be able to edit them out but I can't
-
Graphic design advice needed
Yes, good point - thanks! The client is of the opinion mine is fussier and more amateur than the first design yet wants to soften it up, reduce links and increase compatibility (i.e. get rid of Flash and dated Javascript) which is what I think I've achieved! Essentially, the client would like a text-less site with images only that's highly ranked in search engines I personally feel the design of the current site is a little 'dated' but it's easy to lose perspective which is why I came on here for a little objective advice!
-
hyperlink style in dreamweaver
Yes, sorry, that's right. My example was to apply to a div container, etc.
-
hyperlink style in dreamweaver
In answer to your question: a:link { color: #whatever; } Then do the same for a:visited, a:hover and a:active. If you only want to style a certain set of links only, and not site-wide, class them like this: .onlytheselinks a:link { ... And apply the 'onlytheselinks' class to those links.
-
Screen resolutions
This is why I purposefully design all my sites on a standard 15" MacBook Pro, then test on a 10" netbook, an iPad, a couple of smartphones and 22" and 27" screens running different OSes and browsers. Even when you're sure you've coded something that'll look great at other resolutions, you never really know until you try it for yourself. That said, the simpler method is simply to change the resolution of your monitor as you're designing. It won't look particularly pretty but it will demonstrate how it's rendered at different resolutions.
-
Graphic design advice needed
Hi all! I've been a passive member of this forum for ages but have only just got round to signing up! I'm currently working on a project to bring a site that's heavily Flash and Javascript-reliant up to date and more SEO-friendly. At the moment the focus is on the aesthetics. Currently I'm only talking about the homepage as the other pages need a lot of work. The client's current website is here: <link removed at OP's request> They asked for subtler tones and a more 'professional'-looking design, so I came up with this: <link removed at OP's request> Now please be completely honest and tell me which one you prefer. I won't take offence!