Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. If 127 is the highest value possible, then it would be division as simple as pixel value / 127
  2. You still have to call the constructor. .. ie.. use parenthesis. $dom = new DOMDocument();
  3. Perhaps, this will work http://xpsnipping.codeplex.com/
  4. Personally, if I were using your system and wanted screenshots, I would just use PrintScreen of alt+PrintScreen as Dan suggested. I would then use mspaint and save it as a jpg or whatever I need. If only you could find a Snipping Tool equivalent for XP, you'd be set. The snipping tool in Vista/7 is awesome.
  5. If you go to the bottom of the search page http://www.phpfreaks.com/forums/index.php?action=search You will see a plus sign to search by board. Click the plus sign and at the bottom of that you will see "Check all" already checked. Uncheck it and you will be able to filter by boards. Unfortunately, you will still have to enter a search term. I recommend, putting something arbitrary like the word "as" or "the" or "am"... EDIT: Also, I forgot to mention that you will need to enter your username in the "by user" field. If you have had your display name changed, then you will have to search for both the old name and the new.
  6. Looks fine to me, only problem is that this image is showing at a lower z-index than it should be http://ryanweekly.com/wp-content/themes/Ryan-Weekly-Official/images/ribbon.png
  7. at the bottom left.. ALWAYS, even when scrolled. Which I believe is what is does now
  8. Gah, everytime I post a thread I figure the solution out immediately after. div#nav li.contact { # background-color:#DB4848; text-decoration: none; color: white; font-weight: bold; font-size: 22px; position:absolute; bottom:0px; left:0px; width:130px; } I suppose this is solved now.
  9. I'm sure the use of position or a negative bottom margin would do this, but then again, I'm not too sure. What I'm trying to do is take one specific LI, which has an id of "contact" and place it at the bottom left of the screen in a fixed position. http://reallycheapfloors.com If you look at the source, I have this for the navbar Contact Us. About Us Unfinished Prefinished Laminate JANKA Scale It's CSS contains this div#nav { height: 100%; width: 145px; background-color: black; background-color: #8C9AA3; background:url(gradient.jpg); background-size: 100% 100%; font-family:"Arial"; margin: 0px; padding: 0px; padding-top: 0px; font-weight: bold; position:fixed; color:white; border-right: 1px solid black; } div#nav ul { list-style:none; margin: 0px; padding: 0px; } div#nav li { padding:6px 3px; text-align:right; height: 30px; } div#nav li a { text-decoration: none; color:#eee; width:100%; height:100%; } div#nav li { background-color: 649DE8; } div#nav li:hover { background-color: #1364CF; color:white; cursor:pointer; } div#nav li:hover a { cursor:pointer; } div#nav li.contact { background-color:#DB4848; text-decoration: none; color: white; font-weight: bold; font-size: 22px; } div#nav li.contact:hover { background-color:#FF3C00; } What would be the easiest method to move that red Contact button to the bottom of that blue bar.?
  10. Yeah.. I agree. The site looks fine, professional, all that good stuff... but what exactly is it that your MVC does? You should provide some sort of demonstration on your site. Then again, I do feel rather ignorant on the subject of MVC.. maybe it's self explanatory if I knew it? Regardless, you need to demonstrate WHY your framework is good.
  11. $username&&$password That is the unexpected T_BOOLEAN You cannot group together variables inside the empty function You'll need to perform two of them... using that same T_BOOLEAN if( !empty($username) && !empty($password) ) {
  12. I'm sure there's a more efficient way using an array_map, but this is the best I can come up with off the top of my head. $array = array("11:23", "12:46", "13:34", "14:34", "14:85"); foreach($array as $value) { if(strpos($value, "12") !== FALSE) { echo "Yes"; } }
  13. Personally, I think rythemton's method is better... Regardless, these forums aren't meant for code to be written for you only to jump back with the error. Research these errors. This isn't a race to see who can write the perfect code either. Just my 2 cents.
  14. Welcome aboard yo. Congrats
  15. RSS Feed is at the bottom of the page, under RSS http://www.phpfreaks.com/forums/index.php?action=.xml;type=rss As for RSS feeds per board.. I don't know
  16. Think of it like a movie rental store. The actual database is.. well, the movie store itself. SQL is the cashier who helps you find a certain movie. PHP is YOU, the customer, albeit a very annoying one in this analogy. You can ask the cashier (SQL) to find you any movie that you want, but unless you actually rent the movie, the location of this movie is lost... and since this hypothetical customer has no SQL memory, he/she must ask the cashier(SQL) again and again and again where every single movie that he/she wants .. is. It isn't until the customer(PHP) actually says, "I think I'll pick that one up..and hold it in my hands while I find others" that memory is stored. Well, I guess it wouldn't be stored into memory until said movies were actually rented, but the customer could steal them. Either way, the customer selecting the movies is no different that when you assign variables for result sets in PHP.
  17. I don't see any point since you can zoom in already on pretty much every browser.
  18. Even though it isn't code related, I think that a phpfreaks logo contest would be a good idea for a start competition. We couldn't exactly guarantee that the winning logo is used, but I am very curious to see what everyone could come up with. I find myself ocasionally sketching out logos when I'm doodling, but I can never get passed that segmented circle. There has to be an awesome-r phpfreaks logo out there in someone's brain somewhere.
  19. check out onUnload and onBeforeUnload
  20. Yes
  21. So long as you have session.cookie_lifetime = 0; in your php.ini file, then yeah, the browser will destroy the session.
  22. Use the mysql_num_rows function
  23. When I take the attr() part away, then FF and IE work the same way. I get an alert of object : Object in each browser I have also tried the val() function, I get the same results.
  24. Can anyone tell me why this doesn't work in IE? Other than the fact that it is IE $("#wrapper tr").live('click', function() { var link = $(this).find("input").attr('value'); alert(link); //window.open(link); }); When I run this in FF, the alert says "NOLINK", like I have hardcoded into the input When I use IE, of course, it fails to work... and the alert says "undefined"
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.