Jump to content

steelmanronald06

Staff Alumni
  • Posts

    2,006
  • Joined

  • Last visited

Posts posted by steelmanronald06

  1. Sure. Here is how I would do it:

    1) Insert folders you will be using (images, includes, headers, config, anything really that shouldn't be a user name but what you might use for directory organization) as usernames into your member table. Meaning make a member called images or whatever and give that user ZERO permissions. Then when a visitor tries to register, they can't have that username.

    2) Next you will want to use mkdir() function. Use that function so when a user registers it will make a direcotry for them:
    [code]
    $username = //  The name they want to register with.

    // Be sure to add an error check here to see if the username exist. If it does use exit();
    // That will keep the mkdir function from making the directory anyways.

    // Example is mkdir("/path/to/my/dir", 0700);
    // So you would go

    mkdir("/path/to/my/$username", 0700);
    [/code]
    So it took the username they wanted, checks it first, and if it passes will create the url when $username is set to ronald:
    [a href=\"http://www.site.com/path/to/my/ronald\" target=\"_blank\"]http://www.site.com/path/to/my/ronald[/a]

    3) Then you are done. Not once do you ever have to mess with .htaccess and the database for the users.

    Suggestion. You would have to give users ftp access to their directory ONLY! There is php functions that can make automatic ftp privs. but here is a better suggestion. PHPNuke does this, so you might want to pick it up and see how it works. But create a User Control Panel for the user, a simple code will work that is repeated in eachs users directory. Anyways, create the control panel to make it where they can add files to their directory and take them away. Not once do you EVER have to give them ftp access. The ftp access is contained within the CP code and all they are doing is using the provided access to create files for their dir. Kinda like WYSIWYG editor.

    Again, this is how I would do it. It is a lot of work, true, but you come out in the end learning ALOT of stuff. Few people know how to use php to ftp and all that jazz. If you learnt that you would know alot more than most do about php.
  2. Regular Expressions (RegEx).

    This is simple to understand. The rule works like this. A url that someone types in like so:

    [a href=\"http://www.site.com/listing/700\" target=\"_blank\"]http://www.site.com/listing/700[/a]

    will actually point to:

    [a href=\"http://www.site.com/listing.php?type=$1\" target=\"_blank\"]http://www.site.com/listing.php?type=$1[/a]

    The best part about it is it is Spider Friendly, easy to remember, and when a user points to the first url they will always see it but the webserver will see the second url.
  3. You might get some REAL help if you would post..umm...idk...perhaps, a .htaccess file or whatever your using to re-write the urls? It ishard to see what you are doing wrong if we don't know how the mod_rewrite is acting. [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /]
  4. 1) The banner seems really really out of place. there is nothing...holding it in, I guess is what I should say. It is kinda like a girl with no bra. It just kinda sags there with noting to support it. (sorry for the metaphor)

    2) It is a good background color, really it is, but you don't do it justice. Work it! That is a background that should be displayed with a good layout.

    3) The content area seems...small. It is like looking through a window.

    4) The navigaiton dosn't seem to have any relation to the content area. It is just shoved out to the side for our entertainment pleasures. Really, bring the desing together. Make it all flow!

    5) What the HELL is wrong with your footer part? You have it CENTERED ON THE MAIN PAGE! That looks like crap. If your not going to flow it together as I suggested, then center the damn thing beneath the content area and not according to how the page is.

    6) Lets not even get started on the little buttons below your nav. Those things look sooo out of place there. Kinda like the ugly ducklings who have to stay with the mother but are just kinda cast aside. Oh look! Their there, but they must not be that important since they are so outcast!

    7) Until you get a better design, your coding ethics mean crap to me. I am not saying their good, but who wants to follow your opinion of ethics with your present design?

    I'm a nice person, really I am. Fix those problems and your site will do good. ;)
  5. I am working on finding a "hack" right now for the [code=php:0] tags. As an admin I have access to the database and most of the editable files from the Admin Control Panel built into IPB. So you might see them soon, Eric might install them soon, you might not see them soon, and we might see new forums soon. Hard to say with a community that is constantly growing.

    I use hack. I don't think that a hacker should be someone who does bad things. I consider myself a hacker because I do tear software apart and edit it for my own ends.
  6. [b] Question:[/b]
    [quote]
    "I've been trying to echo my data using *insert fetching function here*, but i keep getting the error:

    function(): invalid resource ID

    what do i do? what's the problem?
    [/quote]

    [b]Answer:[/b]
    [quote]
    1) echo your query that you've no doubt assigned as a string

    2) add an or die() clause that details the error (usually using mysql_error()) to the end of your mysql_query() statement - NOTE: IF YOU'RE SITTING THERE SAYING "WHAT MYSQL_QUERY() STATEMENT?"

    3) ensure that you're using the RESOURCE returned from mysql_query() and not the query string itself

    4) If you're getting an error on mysql_close() about an invalid MySQL-Link resource, it's probably because you haven't done mysql_connect() properly. And just a note: mysql_close() is effectively run when your script ends, since the connection is broken, so it's more or less unnecessary. Unless you plan on connecting to another database or server after you close that connection.
    [/quote]
  7. If your like me, you probably can't design worth a flip. That is okay, that is what templates are for.

    I like the header, footer, left nav, right nav, content layout. That is always good for a portal site. But find a better template of it.

    The index page is...bad. Delete the welcome. No one wants to hear you welcoming them like a door person...those ppl are annoying. Instead put those steps in an FAQ page along with questions like, What is this site about?

    Then the news. Let it take the place of your welcome...meanign move it up. However, only show like the five newest news articles. Then have a news page that list ALL the news articles. Keeps it cleaner IMO.

    move the login box to the top left or to the left nav. I feel like the login box is so...distant. Like i have to move my mouse a mile to get there. Keep the right nav solely for advertising and things people won't normally go to under normal conditions. The stats and stuff should be moved to the BOTTOM of the left nav. Then throw a banner or let people put their links or something on the right nav. Right nav is typically used for advertisment purposes just because it is so...distant. we read left to right, and so right is futher away than left...it is instinct in humans unless your dislectic (spelling?).

    Take out the top links. You have those same links (home, etc) on the left. Pick. top or left, but not both. Very cheesy looking.

    Users Online should also move to the bottom. ALWAYS put site stats towards teh bottom of yoru nav. No one cares how many people are browsing our site, or how many members you got, normally. all they want is to get their question answered.

    The forum design looks really good. I like how you intergrateded it into the design. Very clean looking. No comment on the desgin of the forum. Should networking really be under the Hardware category? perhaps change the category name to Miscellaneous instead of hardware:

    Miscellaneous
    Hardware
    description
    Networking
    description

    Tutorial link leads to article.php? and btw, that page is horrible looking. it has no real design besides the template it sets in. the content itself needs some definition to it.

    Same for software threat...put some content design into it. Weblinks has NO template at all. Talk about eye killer. on a dark site, expecting to go to the weblinks page which will be dark as well, it is all of a sudden really bright white with black text, big nono.

    Take your email off the feedback page. Your providing a feedback form, you don't need to offer a email. Main reason is spam.

    Warning: fsockopen() [function.fsockopen]: unable to connect to mail.ftbendpc.com:25 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\wamp\www\includes\smtp_include.php on line 106

    i get that when I send email using the feedback form. BTW, I used kaljd;fjk@kdjkjsdf.dk for my email, that is NOT VAILD EMAIL! USE REGEX TO ENSURE IT IS A VALID EMAIL ADDY. Also, I put alot of HTML into it. DO NOT EVER ALLOW HTML OR ANY OTHER CODE TO BE INJECTED INTO YOUR FORMS. I should have got an error when I sued the html tags. IT said my message was sent, so you should see if it really did send.

    Take the rating part off of the article section. Instead use the classic star, or other image, system and put that along the top so that is one of the first things ppl see. no one wants to read a sucky article, and then get to the bottom to find out everyone else said it sucked. they wasted time on something that others said was bad and they agreed with.

    Apart from the banner along the top, that appears to be all. Number those if you wish, to refer to them, but else that is all i have to say...by far the best critique i have ever given ;)
  8. What i don't get is this. It involves people who can design. they make a crap layout, get told it looks like crap, and then within two days go back and make an even better one. why not shoot for the stars the first time? btw, the second link you posted looks better than the first, hence this post. LOL.
  9. [!--quoteo(post=375293:date=May 19 2006, 12:55 PM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ May 19 2006, 12:55 PM) [snapback]375293[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    Qui?
    [/quote]

    Yeah, sorry bout that. Didn't realize I was posting in the wrong topic. [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /]

    All great suggestions. I downloaded them all and tested them out. PHP Designer was the best. I liked the others, but PHP Designer seemed to offer me more to what I wanted. Thanks all.

    [!--quoteo(post=375432:date=May 19 2006, 09:53 PM:name=akitchin)--][div class=\'quotetop\']QUOTE(akitchin @ May 19 2006, 09:53 PM) [snapback]375432[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    i can't count on one set of hands how many times this conversation has come up..
    [/quote]

    I'm gonna pin this so no one will ask again [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /]
  10. Before I begin, I must tell you. The only pay you will get is the credit for the project and $20.00. Sorry, but I have no cash. [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /] Anyways, here is what I need. I need _SOMEONE_ who can design templates. I just need one. They should be fairly good with grahpics, know html, and know css. Here is something to the core of what I want:

    A header with a nice logo-
    A content area-
    A LEFT NAVIGATION BAR-
    and a footer area-

    Pretty simple. The only real grahpical work you will need to do is the header/logo part, and that is about it. The other grahpics I plan to use are just images for the content area that I already have saved and ready to use. If you are interested, PM me or something. Since there is really no rule to you replying to this here, I guess you could reply here, but I would rather follow the PHP Freelancing guidelines as much as possible. This should go there, but there is no php involved.
  11. took care of that iframe. it still exist, but I just sized the height up until there wasn't another scroll bar. sorry bout that. Yeah, I know I shouldn't use iframes, but I am not about to handle 20 plus credit card numbers myself. Best to let a governmental certified company do that [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] . Safer for both the buyer and seller.

    Anything else I am missing besides sizing up that logo? Also, can someone take a look at the login.php page? I just threw the form on there so my customers could log in still, but what should I do to make it better looking? I have NO ideas on what to do with it.

  12. The client login link is tempoary until I can make a button for the top. I hate graphics, but I will get it done. To the 3d thing, yeah right. LOL. I couldn't do that if my life depended on it. I will give it a shot, but I highly doubt I will succeed. LOL. I just plain _suck_ at graphics.

    also the form part. I am working on that. See I don't like to handle _ANY_ of the credit card information. Another reason is I don't have the money to pay for the software. So I have joined with a place, kinda like paypal, that handles that for you. That is the form that they told me to include in my text. :( I will work on taking out the damnable iframe though.
  13. I don't wanna change the paypal email, because that is a secure email address. I don't use that email for anything but paypal and transactions through paypal. That ensures that I know where all my reciepts, etc., are when I need them.

    I will see what I can do about all that white space and the left nav being to long. I will take out the login box and put it on a login page, and i will try and fix up the money back logo. I will have to see what I can do in fireworks.

    The paypal button itself. That is just telling you that we are PayPal Verified. Meaning I had a paypal rep come check out my site, ensure that it was secure, and we use secure paypal transactions for the saftey of your finanical information. It isn't meant to belong to a form. The five dollar domain name is clickable. Just click on it and it will take you to a domain register page on our site.

    Also the logo. I will see what I can do about making the text bigger. Clickable is a doable, but when I try and go bigger on the text it gets fuzzy at the edges. I will look for a font that won't do that if I can find one.

    I will see what I can do about dividing up the products page. I have a few ideas on what to do with it, since you mention it, but whether my skills are good enough to pull it off is a completely different story. As for the 3d Nav thing...what? I don't understand graphics or 3d effects or anything. Give me a nice bit of php code to sift through and I am set ;) . J/K. Anyways, can you explain about that part. Also I will try and extend the rollover feature on down a bit so that the entire background changes with the button and not just a small square part...Could be hard, might have to use that map thingy whatever it is I read about in DHTML, but I will see what I can do.

    The news page is just tempoary. I am just messing around with it right now, to see what all I can do with it.

    But yeah, I will take care of those problems as soon as I can (I have a meeting with my boss today, so it will be later on tonight central time), but I will post back here when I got some changes.

    Also does anyone know how to fix that stupid break in the images that happens in IE. I hate that f'ing browser SOOO much. It sucks major that we have to design for it. Get rid of the damn thing since it dosn't f'ing work right!....sorry....anyways, any ideas on destroying the line break there? I didn't insert one, but it still acts like I did. :( works fine in FireFox and Opera....guess you know now what is the better browser. lol
  14. [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /] No that isn't what it means, but thats cool. I was a noobie teaching myself once, also [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] . $_SERVER['php_self'] means it will echo the url.. I cant remember if it will echo the full path (yourdomain.com/path/script.php), or the path and script (/path/script.php), or just the script (script.php). Here is a prime example of how I use it.

    First I start off with an if statement. If submit has a value to it, then I run the script in the if statement. if not i go on down the page to a form script. the form you fill out and hit submit. the form action is:

    <?php
    echo '<form action="$_SERVER[php_self]">';
    ?>

    or something like that. Anyways, that means that when the submit button is hit it will reload the page it is currently on, or the form will reload itself carrying the values with it to be excuted within the if statement.

    Hope that clear things up. Here is a helpful link:

    [a href=\"http://us2.php.net/reserved.variables\" target=\"_blank\"]http://us2.php.net/reserved.variables[/a]
  15. Once more I am back. Yes it is another Geekz site. you might all remember my first site, NetGeekz, and my later on site Lampgeekz, but hey I am a Geek. [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /] Anyways, this is my latest addition to our network of sites, and I want comments. It is a web-hosting site, yes another one of those, but hey I need some money to help fund my sites. So let me narrow on down the comments to the things that will help me.

    1) I _SUCK_ at designing. I will admit it plain as day. HTML and CSS are not my thing. I know them, I can use them with excellent skill, but I can't put them together and make them into something pretty or professional. I try my best, but I pretty much suck at it. So if you comment on my layout, wait I know you will, please don't just tell me what needs fixing but kinda guide me into how to fix it. I CANNOT design grahpics, so if it is a grahpic problem don't suggest it unless you know where I can get free grahpics or you wanna make the grahpic. [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] LOL. Anyways, it would be a big help if you told me what needs fixing and point me in the right direction on how to fix it or else I won't be able to fix it and I will feel as if I have wasted your time.

    2) This is a template of sorts. I have taken it and made lots of edits to it, but it is still a template. I have just changed it, alot, so I feel like I can call it my own work. I used the template as a base to work from since I suck at desigining. My question to you is this, which you may want to answer before going with comment 1. Should I scrap this template and do something completely different? If so, give me some ideas. I want to know what YOU think. What would YOU like to see. I want ideas on this. If you think this is a good overall layout, but just needs a bit of tweaking, say so. If you think it is horrible, and I should try something different, tell me, but please suggest what type of layout you had in mind. If you can't give me an idea of a good replacement then please just comment on what you can of this layout.

    3) NONE of this is valid W3C that I am aware of. I code as strict as I can get it, but I don't validate until after I get comments. That way when I go fix my problems I don't find myself having to go through the validate process again. I know it is better to validate, but please just leave it at that until I get the layout fixed.

    Yeah that is alot to ask for a simple critique, but I am very picky about my sites. I want to provide the best, I do provide the best in hardware and coding, but I feel that design is a big part of what makes my site one of the best as well. Looking forward to hearing your ideas.

    LINK: [a href=\"http://webgeekz.netgeekz.net\" target=\"_blank\"]http://webgeekz.netgeekz.net[/a] (thought I forgot it didn't ya?) [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /]

    BTW, there are a few things in here that may be spelt weird or have dashes, such as web-hosting. The reason is that is the only way I could get those stupid Kontera (?spelling) links not to show up. I support them, and click them, but I don't like them showing up when I am trying to start a critque for my site. It feels like their trying to throw their own suggestion for a critique into the mix. Yeah, I am weird, but hey I love me!!! :)
  16. Well I currently use PHP Coder to do all my php coding stuff. I like it okay. If you make an if statement, it automatically indents for you, and then unindents when you put the closing curley bracket. If you use a php build in function it highlights it bold blue, if you use your own function it goes orange, and html shows up as green. There are also a few other color coding and neat features. Say I space two spaces over and hit enter. Instead of having to space to spaces over again, it automatically does it for me. Really helpful. there are to many features to name. However, it is old and some of the newer php things aren't included in it, and there hasn't been an upgrade in years.

    So my question is this. Is there a good piece of coding software, similar to what I currently use, but is updated more and is better? It also needs to be free to downlaod [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /]
  17. I have a server that I sell some hosting on and I bought a reseller account that I do hosting. Not advertising here, but this website is on one of mine [a href=\"http://webgeekz.netgeekz.net\" target=\"_blank\"]http://webgeekz.netgeekz.net[/a] . It is also the site I sell my hosting on. I figured that what better place to host your web hosting site than on your own server. That gives some people, those weird edgy people, a sense of security knowing that you trust your own servers that much.
  18. I'm gonna tell ya know that it is true you can't please everyone. HOWEVER, in this instance you might want to change from so much blue. Here is why:

    1) Some people don't like it.
    2) Fewer people like it.
    3) Only males can be color blind (me), and a majority of colorblindness relates to blue in some way. When you can see blue like it should be, it really hurts your eyes. Without contrasting colors, I can barely read the page without getting a head ache. Stats show that out of 100 people that use computers, 64 of those will be color blind in some form whether they know it or not.

    So that is 64 out of a hundred that wont like the blue, then you can add another 20 or so that dosn't like it period, giving you 84 people that don't like blue and 16 people that do....surely you want to please the majority?
×
×
  • 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.