Jump to content

pb1uk

Member
  • Posts

    71
  • Joined

  • Last visited

Everything posted by pb1uk

  1. In css3 there is built in capabilities for rounding borders. It supports most modern browsers atm except for IE (no surprise there) although IE 9 beta does support it. It should be standard pretty soon, hopefully anyway! For the sake of it not displaying in most IE, i've started using it now. IE isn't the most populare browser anymore anyway. My mate has made a site for generating code which i've been using. Also has useful stuff for text and box shadow as well CSS3 Border Radius - css3gen.com
  2. IE is right pain, i hate the thing! What i would advise is using a very helpful tool i've found called ie tester (see link below). Basically you can view your site in different versions of ie at the same time. Personally i ignore ie 5 and try and make it look passable in ie 6 and then try and get as close to normality as possible in 7,8 and 9 IE Tester
  3. Thanks i'll read up on that. I want to have seperate classes for the different db tables e.g. user class, post class etc, so ideally i want to have my sql for each table grouped together but kept seperate from other tables, if that makes sense.
  4. I'm still learning my way but thought of this: You could go down the javascript route. Use onchange on the drop down menu and pass the value on to function to display the button. In your head section: <script type="text/javascript"> function set_button($value){ if($value=="--"){ document.getElementById("button_box").style.display = 'none'; }else{ document.getElementById("button_box").style.display = 'block'; document.getElementById("button").value = $value; } } </script> In body the dropdown and button <form name="form" id="form"> <select name="menu" id="menu" onchange="set_button(this.value);"> <option value="--">--</option> <option value="añadir al carrito">Spanish</option> <option value="Add to Cart">English</option> <option value="ajouter au panier">French</option> </select> <div id="button_box" style="display:none;"> <br /><input id="button" type="button" value=""/> </div> </form> The code is very basic, but hopefully a good starting point for you. I just added the -- option and if statement in the javascript so that if no language is selected no button will be shown. Adapt it to fit your own needs. Hope this was what you're looking for
  5. Hello all, I would say by now i'm fairly familiar with PHP and have made a few database driven sites using PHP and MySQL. However as i'm sure some will know it becomes increasingly frustrating have sql and php code dotted all over the place. With my last site it became a bit of a pain. I'm about to start a new project so thought it was about time i learnt to do object oriented php. I've done a couple of starter tutorials (inc stefans on here - very good starting point by the way) and want to take it a bit further. I basically want to create classes for the tables of my databases and have all the queries i am going to use in there so they're all in one place. Does anyone know of any resources or good tutorials for this kind of thing? I've found a couple, but i'm i'm looking for something specifically related to oo php and mysql. Thanks in advance pb1uk
  6. pb1uk

    Upload and crop image

    Thanks for your responses and apologies i haven't acknowledged them sooner. I'll have a bit of read up, sounds like it might be more hassle than it's worth, might come back to it when the rest of the site is finished!
  7. Hi all, I'm in the process of making a site that allows users to sign up to join a community. I've been looking high and low for a script that will allow a user when signing up to choose a profile picture and enable them to be able to crop it was in fits in a profile picture border/template. I've found a couple of links that touch on what i need but not one that i could use. For example, you know you facebook when you can edit your profile picture thumbnail you can drag in around until it fits. I'm looking for something similar but with the ability to be able to zoom in/out as well. The thing is though i don't want the pic to be uploaded to the server until it has been resized or cropped. The ones i've found save it first then mod it off the server bit i don't really want loads of massive photos uploaded tbh. Any ideas? A point in the right direction, any advice, or better way to do what i'm trying to do would be great! Thanks, pb1uk
  8. Create three divs and use float for the first three columns, then have a clear all div and repeat the process again, all inside a wrapper div. Either that or use absolute positioning for all columns, the first way is probably the best method though. If you are using firefox there's a handy extension called firebug were you can modify the source code in the browser. I've found it brilliant for tweaking and getting css right.
  9. I used this to do mine: Is easy to follow and is instant, so no page reloads.
  10. Hello all, I'm currently working on a new website for my brother-in-law. He has a site live at the moment and i'm creating a totally new one for him. I want to upload it to the server to test it properly but will this affect his search ranking? Should I set the pages to no robots? Is this the correct way to go about it or should I be doing it another way? It will be contained in a totally seperate folder on his server with no links between the old and new site. Thanks, pb1uk
  11. Brilliant, thanks falken. I'll have a crack at that over the weekend.
  12. Hi all, I'm looking at how best to store user login details in a database. Currently i'm just working locally on my laptop using xampp (phpmyadmin). At the moment the password column is just a varchar field, when this goes online I assume this won't be safe. Is there a different method of storage, maybe a blob? Thanks, pb1uk
  13. Hello again everyone, I'm sorry to ask about things for free again, but having just graduated with a large amount of debt I have to try and get what I can for free! I'm looking to get some free hosting from somewhere. As i'm new to this i'm not sure what really to look for. I'm not looking for anything in specific just some webspace I can mess around with, try out new ideas and test content really. Ideally i'm looking for something with mysql/phpmyadmin database but not essential. I have googled it and have spent a while looking around, but there are so many out there I was wondering if anyone has any good/bad experiences with free hosting or indeed hosting in general and could give any recommendations/avoids. Thanks, pb1uk
  14. Thanks, I should have it up in a week or two. I've read up a bit on the message i was getting and apparently it was because I was opening the page from my hard drive. If i open it from xampp (http://localhost/etc) the message doesn't come up, which is encouraging! I'm going to give the above menu suggestion a try so fingers crossed there won't be a conflict
  15. Thanks, i'll give it a try. In a kind of sub question. In IE when my page loads i get a little message at the top of the browser that says: 'To help protect your security, Internet Explorer has restricted this page from running script or ActiveX controls that could access your computer. Click here for options...' Is there anything to stop this happening so the javascript runs without this coming up?
  16. Hello all, I haven't really used much javascript/jquery so am just really getting started. I'm developing a site at the moment and I think i'm getting some sort of conflict. I'm using the menu: http://www.leigeber.com/2008/11/drop-down-menu/ slideshow: http://www.serie3.info/s3slider/ and cufon replace: http://www.chris-wallace.com/2009/03/23/introducing-cufon-a-font-replacement-solution/ all on the same page. In firefox and chrome this works totally fine, but in IE the drop downs on the menu is so slow to drop down it makes it look terrible! Does anyone know of a fix for this or are there some issues with IE or am i simply using far too much javascript! I use the cufon replace on all text on the page. When I take this off paragraphs the menus get a little faster, but not a lot. Otherwise is there a some kind of dropdown menu that is cross browser compatible? When i was looking at menus all the css based ones i came across were not supported in IE. Thanks for any help or advice in advance, I've been struggling on this for hours!
  17. Not to worry! It is a fairly specific area. Have found a couple on the site suggested, thank you all for your help
  18. Hi, thanks for the response. I have found one or two but the content on them hasn't been great, do you have any links you could share? Some say they are free but when you get to download an image they aren't and others just try and push towards buying content. Currently i'm doing a project for an engineering company, pretty boring I know! But need related 'stock' style images of things like power stations, oil rigs, industrial stuff, that kind of thing really. When i get on to doing my own site i'll be looking for more graphically stylish stuff though
  19. Hi All, I've been browsing the web looking for some kind of source of free images. I don't need many, just a handful that I can modify, tweak, change and subsequently use on a couple of sites for personal and business use. So far I can't seem to find any decent sites or image collections available for free, does anyone know of any or any decent sources? Thanks, pb1uk
  20. pb1uk

    webshapes?!?!?

    Thanks for the replies! Do you think admins could post when webshapes has been opened elsewhere please Thanks, Peter
  21. pb1uk

    webshapes?!?!?

    Hello all, Does anyone know why the webshapes site is down? Have tried it a couple of times of the last few days but i get the error: Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mysql driver is not currently installed' in /home/webshape/public_html/library/Zend/Db/Adapter/Pdo/Abstract.php:80 Stack trace: #0 /home/webshape/public_html/library/Zend/Db/Adapter/Abstract.php(146): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /home/webshape/public_html/library/Zend/Db/Adapter/Abstract.php(309): Zend_Db_Adapter_Abstract->query('DESCRIBE Member...', NULL) #2 /home/webshape/public_html/library/Zend/Db/Adapter/Pdo/Mysql.php(86): Zend_Db_Adapter_Abstract->fetchAll('DESCRIBE Member...') #3 /home/webshape/public_html/library/Zend/Db/Table.php(181): Zend_Db_Adapter_Pdo_Mysql->describeTable('Members') #4 /home/webshape/public_html/library/Zend/Db/Table.php(123): Zend_Db_Table->_setup() #5 /home/webshape/application/models/User.php(35): Zend_Db_Table->__construct() #6 /home/webshape/application/models/Widgets.php(46): User->__construct() #7 /home/webshape/application/controllers/IndexController.php(44): Widgets->login() #8 /home/webshap in /home/webshape/public_html/library/Zend/Db/Adapter/Pdo/Abstract.php on line 80
  22. Hello all, I was just wondering if anyone knows of any good tutorials or examples for styling drop down menus. I've found a lot for horizontal and vertical menus, but can't find anything on drop down lists. The ones that have code: <select name="test"> <option>item1</option> <option>item2</option> <option>item3</option> </select> Thanks in advance, pb1uk
  23. Thanks for all your help Andrea. Solved the problem by reversing the colours so the background was black and borders and backgrounds of divs were white to get the edges correct.
  24. Hi Andrea, Sorry to keep going, I have put that in and it doesn't seem to want to work :-( My code for the sidebar (categories) and footer (copyright) is: #categories { float: left; width: 195px; margin-left: 3px; margin-bottom: 3px; height:100%; background-color:#000; position:absolute; } #copyright { clear:both; text-align: center; font-size: 9px; padding: 3px; background:#000; border-top:1px; border-bottom:#FFF 3px; border-right:#FFF 3px; border-left:#FFF 3px; border-style: solid; }
×
×
  • Create New...