Jump to content

justAnoob

Members
  • Posts

    561
  • Joined

  • Last visited

    Never

Posts posted by justAnoob

  1. I want to add a text area to this so when an Administrator of the site clicks the refusal button, they will be able to type in a reason for the refusal.

     

    <?php
    echo '<a href="adminDeleteGoodie.php?delete_id=' . $delete_s_find . '" onClick="return confirm(\'Are you sure you want to delete ' . $makesure_s . ' from the Goodies Approval List? If so, please leave a reason for the upload being denied.   NEED A TEXT AREA RIGHT HERE    \');"><img src="images_new/remove.jpg" border="0" /></a>';
    ?>
    

  2. I found a little javascipt online, and I wanted to play around with it.  I'm trying to add a little php to it, I think I'm close to getting it, but when I click on the properties of the pictures that I want displayed, it has a bunch of extra garbage in it.  So is the javascript reading something extra in the php script ?  Here is the code.

    <script language="JavaScript">
      var j,d="",l="",m="",p="",q="",z="",KW_ARI= new Array()
      
      KW_ARI[KW_ARI.length]='<?php echo '<img src="trackimages/' . $row['new_pic'] . '" />'; ?>';
      KW_ARI[KW_ARI.length]='<?php echo '<img src="trackimages/' . $row['new_pic'] . '" />'; ?>';
      KW_ARI[KW_ARI.length]='<?php echo '<img src="trackimages/' . $row['new_pic'] . '" />'; ?>';
      KW_ARI[KW_ARI.length]='<?php echo '<img src="trackimages/' . $row['new_pic'] . '" />'; ?>';
      KW_ARI[KW_ARI.length]='<?php echo '<img src="trackimages/' . $row['new_pic'] . '" />'; ?>';
      j=parseInt(Math.random()*KW_ARI.length);
      j=(isNaN(j))?0:j;
        document.write("<img name='seqSlideShow' src='"+KW_ARI[j]+"'>");
    function seqSlideShow(t,l) {
      x=document.seqSlideShow; j=l; j++;  if (j==KW_ARI.length) j=0;
      x.src=KW_ARI[j]; setTimeout("seqSlideShow("+t+","+j+")",t);
    }
    seqSlideShow(10000,0)
    </script>
    

  3. I have a page on my site which displays a picture that I have stored on my server. The loaction of that picture is stored in mysql. All the images are .jpg format.  My question is, if I allow a user to upload 5 pictures instead of just 1,  is there a simple script that would show each picture for about 2-3 seconds, the go to the next? Basically like an auto slideshow.  Each picture has an ID that associates with the name of the category, so I could just call that ID and have the slideshow only show those pictures.  So I'm just wondering about the slideshow script.

  4. I have a script that prompts a user for a download, the script also counts the download so I can track how many times the file has been downloaded.. The site works fine,, but the download counter seems to only work from time to time. Also, when I click the download link of the page, it seems to lock up the website, I can't refresh the page or click on any other links on the page, it just sits there.  I can post up the code if someone has any ideas, thanks.

  5. I'm not sure if this is the right category to post this, but here I go.  I have a site where someone can register to be a member. When they register, is there anyway for it to have them register their same username and password for my phpBB forum section? And when they log into my site, I would also like it to have them log into the forums.  Thanks.

     

    Oh yeh,, as for the existing members,, I would probably have to enter them into the phpBB database manually?

     

    Thanks, if someone could point me in the right direction and give any pointers, that would be great.

  6. I found a little more info from my errors log. It is telling me "Premature end of script headers". I don't understand why all of a sudden this is happening. I searched everywhere, but no one seems to have the answer. Could someone please help.

     

    Thanks, Justin

     

    In my last post I mentioned that max exec time was set to -1,,, I misread that, sorry.

  7. Here is the error everyone,, including myself are getting.

     

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

     

    More information about this error may be available in the server error log.

     

     

     

    --------------------------------------------------------------------------------

     

    Apache/1.3.33 Server at mvamaniacs.com Port 80

  8. I have an upload script that has been working just fine for months now.. I didn't change a thing,, now people are saying they are getting a internal server error... I checked it myself and I am getting the same thing. There is no error number,, so I can't look it up.. My upload script is good for 30mb's and has been just fine up til now.. Any ideas? Could GoDaddy just be having probs?

     

     

    The error is only shown after the upload is started.. the upload starts, then about 30 seconds later, it appears.

     

  9. oh yeh, what i forgot to mention is that $row['video_loc'] is an embed code for a video.

    So what I'm looking for is this

     

    A link called 'watch'  ----->  which opens a new window which would display $row['video_loc'] which is the embed code.

     

     

  10. i think i'm close. what i'm looking to do is have a link named 'watch' , when clicked a new window will pop up to display

    $row['video_loc']

    the 'watch' link is not showing up. it just shows two of my $row['video_loc'] records from the db. any ideas?

    echo "<a href=\"{$row['video_loc']}\" onClick=\"window.open('showimage.php?loc={$row['video_loc']}', 'window_name', 'width=900'); return false\">Watch</a>";
    

  11. Now I am in desperate need of help. I uploaded a file called php5.ini to my root directory on my server which contained

     

    max_execution_time = 600

    max_input_time = 600

    post_max_size = 30M

    upload_max_filesize = 30M

     

    then i checked phpinfo. and the change was made. but now i can't conect to mysql. which did not make sense to me. so I called godaddy and they said that since I uploaded a new php5.ini file,  the file needs to be a complete php5.ini file with every possible variable inside of it. None of my sites work because they all connect to mysql. Does anyone know where to get a factory set php5.ini file or does anyone know how to fix my problem?

  12. one rep told me to get a copy of the php5.ini file and upload to my directory. of course changing the script timeout first. but he said he did not know if it would work. anyone know where to get this info at? I'll keep this thread open for a bit to see if someone chimes in with any personal experiences.

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