-
Posts
5,717 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Adam
-
After a quick test I found you couldn't - not like that anyway! Do you know of a way? Cheers! A
-
Ahh thanks rhodsea! Because the menus would always be the same for each time I used sprintf, could I just use: {$menuHtml|sprintf:1} ?? Thanks for the reply! A
-
What are you trying to achieve?
-
'Fraid not! Try looking at: http://www.colorsontheweb.com/colorwizard.asp ... Have a play around and see what colors match one of your main ones, like #9966CC. Also note the options bottom center for changing the type of colors returned. Using that tool or similar you should be able to create a better range of - fitting - colors for your color scheme. At the moment they are all too similar, in my opinion! The black lines on the header images and banner text I don't like. Perhaps make them more subtle, and a gradient that fades them out towards the top? Think that would improve them. A
-
Just looks a little low quality.. The background of it looks wide stretched, the font colors don't fit with the rest of the site - if you'd like to use them I'd suggest trying to incorporate them else-where as well, the repeated logo doesn't look good, looks faded. Just overall isn't a nice touch to the site in my opinion. The nav images look like they've been resized and lost picture quality.. Can't really suggest anything? Either would need some better quality ones or design some. A
-
The layout is pretty good, nice and clean. The nav isn't bad except the images look a little grainy. Let down majorly by the the banner though! Also the gradients above gradients in the main content area don't fit right well! A
-
You could improve this script. See you're still popping up saying 'have you saved your changes?' when they may have not changed anything or already saved. Very simple to implement. Just create a var, say "saved"? When you load the content they are going to change, set it to true. Use an "onchange" event to change the value to "false" as they change the contents. then obviously When you run your "onbeforeunload" function just do a quick check to see if they've already saved or if they've not made changes... if they have don't need to bother with the pop up! Will improve user experience! Just an idea.. A
-
Hey. Cheers Mchl, used replace instead of regex_replace (believe it's faster?) but got it working! Thanks a lot! A
-
Fair dos! And I appreciate that you're trying to keep it simple, just I personally think it's too simple; it's not achieving the 'effective simplicity' look! Wouldn't take much though.. a couple of nice soft colors here and there to highlight key areas, get the logo up, etc. Probably look better when the content is finished as well.. Apologies if you thought I was being a lil' harsh.. A
-
Also forgot to mention the file is called: "menu_configuration.tpl" .. When the framework includes the file, it automatically calls the correct site code's version, so for the UK it's: "menu_configuration.IUK.tpl", French: "menu_configuration.IFR.tpl" .. Which rules out any conditional includes, or mixing the files.. What I want is just a kind of template variable that two small parts of it can be dynamically changed when I call the var - trying to avoid any extra includes where possible! A
-
Hah fair questions. That was a route I was hoping to avoid with the complexity of the framework I'm working with. The way I mentioned (in my case) is the most efficient and easiest, if I could implement it! The system already includes many, many files! so I'm trying to avoid extra files being included; a quick extract from the log created on a single page load: I suppose I could assign the menuHtml var to the PHP file generating the template, but I would still like to have the same functionality, so like: $this->template->assign('menuHtml', ' style="padding-bottom: 7px;" onmouseover="popUp(\'HM_Menu%s\', event);" onmouseout="popDown(\'HM_Menu%s\');"'); However, I still don't quite know how I could then call $menuHtml with dynamic values? Any help? Cheers for your response.. Adam
-
In my opinion, I'd put the spam-stopping question separate to the rest of the form. Let the user know why they need to say the sun is 'hot' .. Some potential customers could be a bit like.. "what the hell?" think you're a bit random or something! Just a design point though.. If you'd like another I'd also give them options for where they found your site. If they see an empty box where they have to manually type something in that's not required, may just pass over it.. A
-
Red was a bad choice for the highlights. Need to choose a better color scheme - plenty of color scheme generators and tools out there to help you (Google)! Sorry but you don't pull that off. Capsule images for the links certainly don't help. As Neil said, the images in the right column just look random & lost. Simple gradients everywhere give it a cheap knocked up effect - in my personal opinion color to white gradients rarely look good anyway! Needs a lot of work to pull off 'professional' I'm afraid! A
-
Bland is my first thought. Way too simple! The header image is broken by the way - do you not have a proper URL you can give us? A
-
$_SERVER['HTTP_REFERER']; A
-
Somebody out there might be able to offer you a quicker solution, perhaps using regular expressions? I don't know!
-
I actually have something very similar to this.. I've modded it a bit for you but you'll probs need to change it some more as at the moment it returns an array of the matched digits... <?php function matchDigits($input) { $input = strtoupper($input); $digits = array('ONE', 'TWO', 'THREE', 'FOUR', 'FIVE', 'SIX', 'SEVEN', 'EIGHT', 'NINE'); foreach ($digits as $digit) { $chars = str_split(strtoupper($digit)); foreach ($chars as $key => $char) { $pos = strpos($input, $char); $prev = -1; if ($pos === false || $pos < $prev) { break; } else { if ((count($chars) - 1) == $key) { $matched[] = $digit; } else { $prev = $pos; } } } } return $matched; } print '<pre>'; print_r(matchDigits('one two three')); print_r(matchDigits('announce')); print '</pre>'; ?> Adam
-
Hey up. Fairly new to Smarty.. Have a problem with a menu generation template I'm working on. Basically as there's about 12 different languages supported on this site there's a file to generate the menus for each. Each site has about 7 menus, some with additional menus coming of those. I decided to neaten the code up and to decrease the repetitive code. What I'm trying to do is create a variable that will be accessible across all the files called $menuHtml, then perform sprintf() like function on it as the variable is called. So something like: {assign var='menuHtml' value=' style="padding-bottom: 7px;" onmouseover="popUp(\'HM_Menu%s\', event);" onmouseout="popDown(\'HM_Menu%s\');"'} (notice the 2 %s') then try and call it with something like: {$menuHtml|1} {$menuHtml|2} {$menuHtml|2_2} {$menuHtml|3} (...) To produce something like: if that makes sense? I just can't find anything to help me! If anybody could help or give me a nudge in the right direction I'd be really grateful! Cheers! Adam
-
Far better design! Though still have the problem with JavaScript where you can't submit anything on the contact page or even register without it! Although approx. 95% of users do have JavaScript enabled still need to cater for it, if not just to show professionalism! The only bad thing I have to say about the design though is you appear to have two different styles merging. For example the orange/gold images on the homepage don't match up with the sharp, stylish header images! Also I'd recommend using Arial or the "Trebuchet MS" font, would look better / cleaner I think! Adam
-
You can also use 'OR' : $query = "SELECT * FROM work WHERE tech_id = '$tech_id' OR completed = 'no'; ... Except in this case "AND" would seem like the right choice!
-
I don't understand the cdQuantity drop down? How does: 5,000-9,999 = .60 ?? You're obviously going to run into problems when multiply that by the price... Perhaps it would be easier to let them enter them enter the amount they wish to purchase, validate that as a number and then multiply it by the price to give them the current total? Since you're using strange values for each of the drop down menus I'd suggest revising what they actually mean.. They're going to prove difficult to work with! Adam
-
[SOLVED] If statment with Popup, newbie needs help...
Adam replied to fubarur's topic in PHP Coding Help
You'd need to use JavaScript. Whatever the total is displayed in (ie. input / div / etc) give it an ID. In the body 'onload' event call a JavaScript function to retrieve the value of the content in that ID. Parse the data to give you the actual total and if that's below 50, display the pop up. You'll find plenty of help on each step through Google! Adam -
xboxpremiumthemes.com would like opinions
Adam replied to skatermike21988's topic in Website Critique
Also the page doesn't validate: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.xboxpremiumthemes.com%2Fsite%2F -
xboxpremiumthemes.com would like opinions
Adam replied to skatermike21988's topic in Website Critique
Certainly change the font! Times New Roman is just ugly on web pages, reminds me so much of Front Page! As Maq said the color scheme doesn't fit - fair dos they are colors from X-box but doesn't necessarily mean they go together. There are a lot of web based tools out there that can help you get a nice palate of colors to use! Just Google "color scheme generator" or something... The header looks a little cramped! Perhaps expand that a little, and make the corners smaller? In a big contrast the main content area has too much spacing! I don't own an X-box so I have no idea what it's like to try and preview a theme but if that's the only way - by searching through forums and stuff - have a good idea to generate some traffic! Adam