Jump to content

bubazoo

Members
  • Posts

    22
  • Joined

  • Last visited

About bubazoo

  • Birthday 09/21/1970

Contact Methods

  • AIM
    bubazoo
  • MSN
    bubazoo
  • Website URL
    http://www.tcoburn.com
  • ICQ
    20050752
  • Yahoo
    bubazoo

Profile Information

  • Location
    Warsaw, Indiana
  • Interests
    I didn't do it!!

bubazoo's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. bubazoo

    PHP Help

    Hey guys,ok, well, so far I have this bit of code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>Directory Contents</title></head><body>// Set the directory name and open it.$search_dir = '.';$dp = opendir ($search_dir);// List the files.while ($item = readdir ($dp) ) { if ( (is_file ($item)) AND (substr ($item, 0, 1) != '.') ) { // Print the information. print $item; } // Close the IF.} // Close the WHILE.closedir ($dp); // Close the directory.?></body></html> that I made up using the PHP Manual mostly,but instead of printing out the files to the screen, how do I convert the filenames into an array? and how do I limit the listing to only jpg, gif, and png file extensions?I realize that PHP 5 uses the "scandir()" function that automatically does this, but my host has me on PHP 4.4.4 so I am forced to figure this out the manual waythanks guys, Basically what I am trying to do, is a Photo gallery like this one except, instead of using XHTML to insert the image filenames manually, get a list of image files inside the current directory and display them to that CSS style photo gallery.. I'll probably also remove the "mouseover" thing so the gallery always stays on the current page, but thats basically what I am trying to do.then I'll name that file "index.php" and put it inside my "/photos/home_pics" directory with a bunch of images in it. thanks guys.almost forgot.I know to create arrays you do like$variable = array (1 => 'something', 'something2');etc but I don't understand how to put $item into an array thats within a while loop like thatthanks
  2. I don't care one way or the other, I don't think my wife noticed that... I'll ask her about it.It was code she copied from DynamicDrive to make text links look like buttons is all.. If you thinkit looks better without, we can take that out no problem.how does it look now? http://tcoburn.com/testing/testing.htmlI think she wanted some padding inbetween the buttons, but not sure how to do that. I tried using"padding: 10px" inside the .pic routine, but that seemed to have no effect. "shrugs"
  3. it didn't. I took out the <p> tags and tried my approach with the nested <div's, and it still didn't work.Not in IE 7 and Firefox either one.Here is what she has..... http://tcoburn.com/testing/testing3.html Its what she wanted me to make into 2 columns. Its what she wants, just split into 2 or 3 columns, so we thought since there are 10 links it would be best to split them into 2 columns.in IE it looks terrible, in firefox it looks fine, so we don't know what to do about that either) so I tried this:http://tcoburn.com/testing/testing.htmland it isn't working... See what I mean?
  4. Hey guys,my wife has some buttons she made for her site using only CSS, and She's trying to figure out how to position them on the page so that they align into 2 columnshere is the CSS she is toying with .cssbutton{background-color: #BDB5FF;border: 2px #BDB5FF outset;padding: 1px 2px;color: black;text-decoration: none;font: bold 100% "cursive", Verdana, sans-serif; display: block; margin: 0 370px;}.cssbutton:visited{color: black;}.cssbutton:hover{border-style: inset;background-color: aqua;padding: 2px 3px 0 5px; /*shift text 1px to the right and down*/}.cssbutton:active{color: black;} Normally what I do for images, is set the style all around a container field, and float them to show up into 2 columns.. for instance, for images I normally use container { margin: 0px auto; width: 415px; height: 115px; }.pic { float: left; margin: 5px; text-align: center; } but as I found out, with links you cannot do that...for the HTML I normall do lke <div class="container"> <div class="pic"> <img src="row 1 column 1"> <img src="row 1 column 2"> </div> <div class="pic"> <img src="row 2 column 1"> <img src="row 2 column 2"> </div></div> but that doesn't seem to be working in this case.. right now for her HTML she has <p><a href="http://www.dynamicdrive.com" class="cssbutton">Photo Gallery</a></p><p><a href="http://www.dynamicdrive.com" class="cssbutton">Links</a></p><p><a href="http://www.dynamicdrive.com" class="cssbutton">About Me</a></p> which I told her she would have to put around div tags, but it didn't seem to work when we tried it.does anyone have a clue what we are doing wrong here? er what we are missing?she wants the links to look like buttons, that change color when you hover over them, which is working now, but straight down the page.. What she wants is to position them 2 columns across, anyone know how to do this?I tried float and setting the margin to 0px auto but that didn't work, so I don't know what to try now, any suggestions? normally this works with images, but it isn't with text links, so I must be missing something.thanks
  5. onload alone wouldn't tell when the page is done loading though. I've seen a few pages like this around.
  6. Hey guys,I've seen on some websites, where they have a box that comes up that says something like"one moment please" while the page is loading, then disappears when the page is done loadinganyone know how this is done? thanks
  7. cool, I triedfloat: left in div.commentname, but that didn't work, so I tried display: inline; and that worked perfectly. weird I never would have thought it was that simple.thanks
  8. Hey guys,I am having trouble getting this to display correctly in Firefox.Works fine in IE 6 and 7, but i can't get it to work in Firefox?this is how its supposed to lookand this is whats happening in Firefox/Mozilla The CSS code I'm using for this is: img.gravatar { float: left; margin-top: 4px; margin-right: 8px; padding: 2px; width: 40px; height: 40px; border: 1px solid #ccc; background-color: #E0E1CE;}div.commentmeta { float: left;}div.commentname { margin-top: 10px; font-size: 14px; font-weight: bold;}div.commenttime { color: #000000;}div.commenttext { clear: left; padding-top: 1em;}#commentlist li { list-style-type: none; margin-bottom: 10px; padding: 10px; background-color: #E0E1CE; border-top: 1px dashed #999966; border-bottom: 1px dashed #999966; } and the XHTML is this <ol id="commentlist"> <li id="comment-<?php comment_ID() ?>"> <div class="commentmeta"> <div class="gravatar">the question mark image here</div> <div class="commentname">jayme</div> <div class="commenttime">Date, Time line here</div> </div> <div class="commenttext"> The rest of the text here </div> </li></ol> Anyone know what I am doing wrong here? Looks fine in IE, just firefox as you can see from the screenshots :)thanks
  9. Hey guys,I am having a problem with my blog. wordpress specifically.The content (the actual blog post) isn't following XHTML standards, I get 8 errors on one page, 16 on another, and there all problems I can't do nothing about, so I tried this..<![CDATA[ <div class="post"> the_content(); </div> ]]>but for some reason (have no idea why) the browser isn't rendering whats inside the CDATA tags,why?? and what can I do about it?thanks
  10. not a problem, thanks for the suggestion I have tried looking at bulletin board code before, since its odviously done there too, but because forum software is generally so large in coding, right now its too much and too fast to take in all at once, so I get confused too quickly, ya know what I mean? its like, too advanced for me or something at this point :blink:its kinda like, getting in the drivers seat of a Nascar car in the middle of a Nascar Race, when you haven't even passed your learners permit test yet, too much too fast. hehe
  11. thanks justsomeguy, that was extremely helpful :)aquatsr: I'm not using a forum in this particular case, I am merely trying to integrate a membership system from scratch into my current webpage design. it may sound like reinventing the wheel, but there is a reason for it. Both hotscripts and phpfreaks both have scripts that do membership systems, but they were all missing the "remember me?" part, not sure why, apparently alot of authors seem to think saving cookies is a bad thing (shrugs) there is a big difference between tracking cookies and session cookies.thanks justsomeguy
  12. bubazoo

    XHTML vs XML

    whats the difference between XML and XHTML?I know XHTML fairly well after reading w3schools, but I am confused about what XML is used for exactally?what is XML used for is what I'm asking? as a primary language, or is it used strictly for RSS feeds?
  13. thanks guys, that was very helpful.yeah, I've been trying to find a "pre-built" script.. I found a few, but they ALL left out copying the session to a cookie and the common "remember me?" checkbox, phpfreaks.com has a few different tutorials that I followed, but as I said, they all miss the "remember me" part, and I've been having trouble figuring out how to add that into the code I guess..(shrugs)I tried to look at forum code to get an idea that way of how its done (since forums or wordpress blogs seem the be the only scripts around that do that sort of thing like I want to do) but because they add OOP stuff that I don't understand yet, and don't really need for this type of project, I've been having trouble figuring it out I guess, as I'm still in the learning process of PHP here. I'mhaving enough trouble understanding this code to know whats being saved in the session even I understand "session_start()" and how to pass variables to session variables, but thats all I understand about this code right now relating to this.thanks guys
  14. anyone have a Tutorial, on creating a PHP membership System for your site?I tried the one on phpfreaks.com, but it was missing cookie support, so that the user wouldn't have to relogin every time they visited my page, and I had no idea how to add it into the code.I'm just wanting something likethe ability to register for a new account,account activation via email,ability to login/logout,and yes using PHP and mysql for storing registration details.all this I can find, but all the Tutorials on google that I find, are missing the ability to keep the user logged in using cookies, and I have no idea how to add this functionality, and all the books that I've read on the subject skip right over that detail..I understand how to use sessions, and I understand how to use cookies, but what I don't understand is how to use cookies to keep a user logged in until the cookie expires...I guess I don't understand what I'm supposed to save in the cookie, the session? the user record? what? I am confused on that part..I don't quite understand, do I save the session to a cookie? I've always been confused about that, and these books and tutorials skip right over that for some reason.thanks.
  15. Does anyone know where I can get a horizontal CSS Style drop down menu thatsupports keyboard input as well as the mouse for people with disabilities?I tried Twinhelix's Freestyle Menus 1.0 RC10 but his menu doesn't support keyboard input or use of Access Keys for persons with disabilities.He says you can use TAB and SHIFT-TAB, but that doesn't work very well in IE browsers, and is a bitcumbersome anyway. I thought about adding XHTML's accesskeys as I read about in the W3C XHTML Tutorials, but I don't know how to code something like that into a menu system like this, if thats even possible?does anyone have an alternative by chance?
×
×
  • Create New...