Jump to content

neogemima

Members
  • Posts

    72
  • Joined

  • Last visited

    Never

Posts posted by neogemima

  1. I like the idea of the site.  It may be a little soon to include all the Google Ads.  The site's structure is broken as soon as I visit the page.  I am using Safari for Mac.

     

    The ad structure covers your random recipe at the top, the Google ads on the right are alright.  The search covers the recipe when you view it.

     

    One comment on the site's structure:  When you click the random recipe, it takes you to a recipe where there is a button that says Next or Previous at the top.  Why add this?  How does one decide which recipe is "next".  It just made me think of how one would try and order recipes that while I was looking at a current recipe I could somehow predict what might come next.  Perhaps a category button?  Or a button to the letter section of the recipe?

     

    Just some food for thought, site is coming along great!

  2. Yes, I have tried the field type BLOB before and they are a hug headache.  Instead, just have an uploads folder on your database similar to your "images" folder where the pdf files are actually sent.  Then, store the name of that file in  your table so you can recall only that part when the user wants to download it.

     

    You'll need to take special considerations to make sure no file names are ever duplicated, so renaming them upon upload is a must, perhaps use a timestamp or something added to the end of them to make them unique.  Good luck!

  3. Hi Guys,

     

    So I've built a little website for a friend and wanted to hear what you think.  The design is really simple (and not very original in concept).  Just upload stories, vote and comment on them.  There is some administrative approval stuff, but that's it.

     

    The only issue I am having is in IE, whenever someone clicks "comments" it will toggle down to show the comment, then when "comment" is hit again to close it, the next story butts right up against the story above it in the space where the comments used to be ignoring the spacing I've used to separate each grey box.  But if you repeat the process again on the same story, the problem does not occur again until the page is reloaded.

     

    Does that make sense?  It may just be a CSS issue, I'm using a simple script at the top of the page to toggle div display to none when hiding the comments.

     

     

    The site: http://www.iwasintoxicated.com

     

    Thanks guys!!!

  4. So I am building a site that I would like to allow users to upload a video.  The theory is similar to YouTube's system.

     

    Does anyone have any suggestions as to a service or software I may use on my site that will allow users to upload a video, have it converted, and then play on their profile page?

     

    I've never tried this before and appreciate any help.  I've looked into data storage like with Amazon S3 and the like, but I don't see anything about video conversion or remote site uploads.

     

    Thanks ahead.

  5. So I am building a php and MySQL driven site that allows users to upload profiles, etc.  There is also a section where people can upload videos.  The problem is space and video file conversion.

     

    Does anyone know any php driven applications or services I can use that would allow me to have users upload their videos from my site, the service converts it to flash, and I can display the video afterward?

     

    I'm having trouble finding one.

  6. You need to read tutorials.  No one here is going to do the work for you.  Get started and ask us specific questions.  We are here to help one another, not to just do free work for anyone who asks.

  7. Are you trying to have #middleleft float left of #expansion or #middle?  There is no div for it to float left of, it's contained inside of #middle and has two other divs inside of it.  It will essentially not float next to anything in that case and just give you a buggy visual.  Try getting rid of the float property and see what it looks like or be more specific in how this is supposed to look.

  8. Wow, that's a REALLY broad question.  I would start by reading all information available on whatever code you would like to use to do that.  If it were me, and I've never even considered how to build one until two seconds ago, I would create a database that uses php to log all content in one's source file and do some checks that way.

     

    You'd have to use scripts that check the header of the file and then check their file based on what type of header they are using.  Basically check their content against that header's library of acceptable scripts and see if they match.

  9. For starters, this is not a php question, this is a basic html question.  Start by reading any basic tutorial on html.  Those are div tags and can contain ANYTHING!!!!!!  Go to the html forum and be waaaaaaay more specific with what you want to add.

  10. your form uses the "POST" method, why aren't you calling any form values in your php script?  something like:

    $rowid = $_POST['checkbox']; //assigns values to an array

     

    To call these variables you would want to start with:

    $checkbox[0]; //holds first value checked
    $checkbox[1]; //holds second value checked and so on

     

    I don't see how you are checking to see what the user actually selected for deletion.  Right now it looks like your php code goes through your list and deletes everything in there no matter what with id equal to $checkbox[$i].  However, it is evident that $checkbox[$i] is not holding a relevant value.  To troubleshoot this I would first echo that variable and see if there is anything even stored in it...I would assume nothing.  Your echoed confirmation will display no matter what because it does not rely on a conditional statement that confirms whether rows were deleted.

     

     

     

  11. If I am interpreting your English correctly, you are giving the variables these values and the user submission isn't going through.  I did not see the you gather the "posted" variables.  Try the $variable = $_POST['name'] method and see if it passes the user input.

  12. You are missing a semicolon in your script, use this:

     

    $come_from = $_SERVER['HTTP_REFERER'];
    
    if ($come_from == "site.com/login.php"){
    
    $redirect_url = "http://site.com";
    
    }else{
    
    $redirect_url = javascript:history.go(-2);
    
    redirect($redirect_url);
    
    }

  13. I'm sorry, but I couldn't quite understand your last post, are you saying the variable $_POST['rte1'] IS blank on your php page?  If it is, I would look at your Rich Text Editor's code that it's pulling from, or look at a tutorial from the website where you downloaded it.

     

    Another possible solution:  Are you using addslashes or htmlentities in your php form to prepare the contents for the database?  Check out this thread:http://www.dynamicdrive.com/forums/showthread.php?t=14368

     

    A lot of times, there are requirements when transferring the data to php, you may be missing a step.

  14. So I have a form that allows users to upload 3 files.  In my php page I have a conditional statement to test the files.  It's pretty large.  I want to make it so that it tests if the image is of a certain file type, certain size, or if it's not there (if the user has no file to upload).

     

    The thing it doesn't do is allow the user to leave a file upload field blank if they do not have an image.  What should I add to this conditional statement to allow that?

     

    	
    <?php
    if ((($_FILES['img1']['type'] == "image/gif") || ($_FILES['img1']['type'] == "image/jpeg") || ($_FILES['img1']['type'] == "image/pjpeg"))
    && (($_FILES['img2']['type'] == "image/gif") || ($_FILES['img2']['type'] == "image/jpeg") || ($_FILES['img2']['type'] == "image/pjpeg"))
    && (($_FILES['img3']['type'] == "image/gif") || ($_FILES['img3']['type'] == "image/jpeg") || ($_FILES['img3']['type'] == "image/pjpeg"))
    && ($_FILES['img1']['size'] <= 150000) && ($_FILES['img2']['size'] <= 150000)
    && ($_FILES['img3']['size'] <= 150000))
    {
    //code continues
    ?>
    

     

    That and any way to trim this statement down a bit would be great.  Thanks ahead.

  15. Hello,

     

    I have a php file that displays rows of a database by different criteria.  One of the criteria displayed is the date in YYYY-MM-DD format, no big deal.  Current output:

     

    2008-06-15  Line of text

    2008-06-15  Line of text

    2008-06-14  Line of text

     

    Not very elegant with a long list.  How can I, through php, display a header for a date, say 2008-06-15 on it's own line and then display just the rows beneath it's content text.  I know how to display lines without the date in front, I just need to know a way of testing for a change in the date (which is just a field in the table) and then create a header line for that date. 

     

    What I'm going for:

     

    2008-06-15 //perhaps some i will add a background color and change font size

    Line of text

    Line of text

    2008-06-14

     

    Any suggestions appreciated.  Thanks.  :)

  16. I'm not that great with bbcode as I have not implemented it before.  I like the strip tags option though.  Thanks to both of you.  I will be looking into bbcode for subsequent updates where I can use buttons similar to this site for formatting.

×
×
  • 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.