Jump to content
xisto Community

sonesay

Members
  • Content Count

    958
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by sonesay


  1. Ok just some general questions that I think may help in finding your problem. What type of connection are you using? what browser are you using that is not working? Have you tried another browser? If all browsers are having trouble then its most likely to do with your internet connection somehow. Also if you have another forum you go to try logging in there too and see if it has the same effect.


  2. Hey everyone, I just want to point out a problem I have found with our current hosting setup with cpanel and phpmyadmin. The problem occurs when you try to run some sql in particular a query that imports csv files into a table you have already created. The query will try and execute using your default user name which is 'sonesayi@localhost' for me. I cannot add this user name 'sonesayi@localhost' to that database so what is another way to solve this problem? Additional users i create are always prefixed with 'sonesayi_' so there is no way I can assign the owner of that database to 'sonesayi' so that I can execute my query.

    post-45102-1228804529_thumb.png

    post-45102-1228804563_thumb.png


  3. I have previous experience in 3d studio max but that was like a few years back and I am still rusty on it. I think back in version 4 I was working on it. To make simple models may not take much time but it probably wont be too good. Isn't there options out there for you to find free ones you can use online? I would not worry too much personally about getting good models if your just focusing on your programming at this stage and go ahead and find free models already created for use.


  4. Automatic doors would of prevented this from happening as there would be no one to run over. I think what happen was the guys at the front was just too excited and figured running over him to get in first would be ok. Now the further back would have been thinking the same thing. I just want to get in screw this guy, I want my deals. Sadly this is most likely what happen and before anyone comes to their senses hes already dead?


  5. Thanks for the link jlhaslip. The script that I am currently using does keep aspect ratios the same. The problem is caused by different image sizes (The sizes vary and ratios vary for each image so the generated thumbs are just a smaller version of that). I seem to have fixed this by adding a div to contain the image and then setting a minimum height. I appears to be fine in ff3, safari 3.2, and opera 9.62. If anyone can check in IE that would be great.


  6. floating DIVs kill your layout. It is all overlapped viewed in Opera and Firefox. What you need is a fluid CSS layout where everything from header to content expand and shrink accordingly without the messed up layout.

     

    This link should give you a headstart : http://forums.xisto.com/no_longer_exists/

     

    Also, do not rely on one browser in making sites. Make full use of the If..EndIf at the html headers to make workaround for other browsers.

     

    Example : <!--[if lt IE 8]><link rel="stylesheet" type="text/css" href="/css/ie.css" media="screen"><![endif]-->

     

    Explaination : if lower than IE 8, link the herf css for IE 8 browser viewing. End if.

    Ok maybe its my fault that I wasn't clear enough. I tried my best but I cant seem to understand how you came to the conclusion that I had a problem with my layout by referring me to that link. The link you gave me just explained a way to create elastic layouts but I have a fixed width for my navigation and elastic content already. I stated on my 3rd paragraph that I was happy with the way it expanded. My only problem was the inconsistent heights of the DIV for each portfolio items entry. I actually like the wrapping of the portfolio items as widths contracted. My problem was with the inconsistent heights.

     

    You say they overlap in firefox and Opera? What do you mean my portfolio items are overlapping? Can you take a screen shot and show me because I don't see that happening. Also what resolution are you viewing it at? I checked in ff3 and opera and it seems fine besides the height problem of item DIV's. There is a minimum width set so on both ff3 and opera and safari I get at least 2 portfolio items shown on each row.

     

    If all this problem is on IE7 I can understand as I have not got access to the browser and cannot check it for myself.


  7. http://forums.xisto.com/no_longer_exists/

    Hey guys, In the past few days I was making changes to how I uploaded my images and portfolio entries. I now have a working form that takes new portfolio item entries and images then generates thumbnails as well when its uploaded. This makes my life easier when adding in new items :).

    My problem is that now since the thumb nails are generated automatically and vary in size due to the different heights and widths of each image I get inconsistent thumbnail sizes being generated and put on my portfolio entries. This results in my DIV for each portfolio entries height and width being inconsistent. This is not a huge problem but I want to know what others think. is it really a big deal to you? If so are they any ideas on how to improve the layout?

    The reason I have chosen go with floating DIV's instead of a table layout is I get the auto spreading and grouping of items as the page gets expanded. I think this is a nice feature because you utilize the entire page as opposed to fix width layouts.

    Comments on other sections are also welcomed and much appreciated. I'm pretty much brain dead from all this thinking so I may have miss something I could improve on that is so obvious.

    Cheers
    Sone

    note: also I am able to check in IE7 since my PC's power supply is dead so if anyone can check and let me know of any problems that would be nice.

  8. Nice job on the website. I like the whole layout and theme there. It looks like it took a lot of work to make. Rvalkass did make some good points about accessibility issues in particular about the css backgrounds for headings/titles and flash for navigation. In the past I would probably more likely side with him but I think in today's age depending on your target audience focusing on too much accessibility would limit your creativity. This is just my opinion and I would say if someone does not have access to an up to date browser and have flash plugin then they would certainly not be my target audience and there fore it would not matter that they cannot see my site as I had intended.I think the only reason the logo is too low is because of your ads at the start/top. I scrolled down a little and it shows up fine but yeah it all depends on the clients resolution. My screen is 900 pixels high so I can see it fine when I scroll down to hide the ads.As for the validation it would be a good idea to start making pages valid if you plan to work specifically in the web development area. This is just a standard thing but you'd be amazed at how many professional sites don't even validate so in a sense its still much more of ones taking pride in their code than something being critical and a must do.Again nice job and welcome back by the way :)


  9. **I removed harsh comments its uncalled for***. I think you did well for one of your first sites. You have a long way to go man but that doesn't mean you aren't capable. Your still young so if you work hard you'll be pretty good by the time you hit 20. I'm not being stink here I'm just saying what I think is the honest truth no sugar coated nothing. A lot of the obvious comments have been made already on how to improve it so I wont add anything. There is plenty to improve on and since its such a simple site I think you can do it.I'm not even sure why I wanted to even comment here since its such an old thread. I think its because I don't agree with some of the comments but I accept we are all entitled to our own opinions.


  10. Well not necessarily break up songs but heres some good ones by 2Pac. I listen to them when ever I'm down.- There you go- Bury me a G :)- Still I rise- Better dayz- All about u- They dont give a F*ck about us- Staring through my rear viewThey may at least get your mind off feeling / missing your ex :) or end up making you hate her lol. His lyrics are explicit so be warned.


  11. You don't need to set mkdir.php to 0777 for it to create folders. Setting the folder that mkdir.php is in to 0777 should have allowed the script to create the folder in the current working directory. I'm not sure what would be the problem.

    Yeah I was thinking that as well but somehow it just didn't work.

    I have got it to work now but yeah the whole process was a head ache.

    as it is now:
    si folder is 775
    mkdir.php is 775 but it wont execute anymore since I removed executable from it. (it doesn't matter since I already have the folder created)
    testfolder is 750 (my image upload folder) was created by mkdir.php (I cant delete this now with cpanel because its not owned by me. rmdir() wont work either because it has files in there (my uploaded images)).

    It works but I have to tidy it up. I'm not sure why but under file manager in cpanel my view of testfolder is always empty but I can browse and view its contents at http://forums.xisto.com/no_longer_exists/. I'm thinking now the only way to remove it is to write a php script. I saw one just earlier when I was looking up information on removing directories where it checked for files inside the directory and removed them all before removing the parent folder. /sigh

  12. I have a permissions problem when I try and run my mkdir.php file on the Xisto server.

    I have set my folders of 'si' and file 'mkdir.php' to 777 and I still get permission denied error. Is there something else I can do?

    <?phpmkdir("testfolder", 0700);?>

    Luckily for me I'm only building this for my own personal use so validating is just something I was hoping to sort out if I ever want to build something where other users can upload files. The mimetype is one way to help but it has been noted on the php.net site as being client side validation by the browser so it can be tricked.

    I think the other method I came across was reading the file size and also reading the first few bytes to determine if it was indeed an image file but so far I still haven't been able to locate that information again.

    post-45102-1227556932_thumb.png


  13. Ok I think I know whats causing the problem. When you retrieve the DIV content from the other page with your ads there it has JavaScript. The JavaScript is the actual code that renders the ads so why its not working is the code is just being pulled in and not executed like it would if you were to open the page on its own. I checked in firebug too and the response from the Ajax :) call is just the plain source and no executed JavaScript. The only way for it to work is if you can figure out a way to execute it before pulling it into your main page but at this stage I have no clue.Good luck with finding a solution.

    post-45102-1227553466_thumb.png


  14. I've just tried to test my upload script on the Xisto hosting server and unsure whats the proper way to keep the upload directory secure.How I have it setup locally:my 'uploads' folder is chown to 'nobody' and set 775. The reason I set it to 'nobody' is when it was set to 777 the files uploaded where by 'nobody' so I'm assuming thats what xampp is doing. This seems to work but if there is a proper way do tell.How I have it on Xisto:'uploads' folder is set back to 774 (when it was on 777 uploads work but I'm sure it not safe this way?). so now I get permissions error. I'm guessing if I get php file to create the folder it would have its permission but there must be a better way to do this?Another thing: I dont have any checks so any file can be uploaded. I looked on the php.net page where I got the code and people have suggested ways on securing it but most just seem like weak validation. Does anyone one know how to properly handle files being uploaded and restrict it only to real images?

    post-45102-1227524214_thumb.png


  15. Yeah I had a error code of 6. I looked at the php.net documentation and found out it was because I was missing a temp location setting in php.ini so I set that and it works. Changed the code a bit but its working now. I just need to find ways to secure and check files being uploaded.


  16. I'm also just trying out file uploads myself. Having some issues though. using the example from php website: http://nz2.php.net/features.file-upload

    but I'm getting this error with some missing values:

    Possible file upload attack!Here is some more debugging info:Array(	[userfile] => Array		(			[name] => 01aa.jpg			[type] => 			[tmp_name] => 			[error] => 6			[size] => 0		))

    any help appreciated ^^


    <html>	<head>		<title></title>	</head>	<body>			<!-- The data encoding type, enctype, MUST be specified as below -->	<form enctype="multipart/form-data" action="uploader.php" method="POST">		<!-- MAX_FILE_SIZE must precede the file input field -->		<input type="hidden" name="MAX_FILE_SIZE" value="30000" />		<!-- Name of input element determines name in $_FILES array -->		Send this file: <input name="userfile" type="file" />		<input type="submit" value="Send File" />	</form>		</body>  </html>


    <?php// In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead// of $_FILES.$uploaddir = $_SERVER['DOCUMENT_ROOT'] . '/uploads/';;$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);echo '<pre>';if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {	echo "File is valid, and was successfully uploaded.\n";} else {	echo "Possible file upload attack!\n";}echo 'Here is some more debugging info:';print_r($_FILES);print "</pre>";?>


  17. I find it perfectly fine the way it is. Maybe your just not seeing it right like the rest of us. You say you cant post in certain areas. If you actually read the forum descriptions it actually tells you if you can or cannot post there. There is reason for that its to reduce spam so post either need to be approved before being displayed.Your comparing Xisto's free hosting to what other hosting? If you know a better one please share a link.

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.