Jump to content

Allenph9

Members
  • Posts

    46
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Allenph9's Achievements

Member

Member (2/5)

0

Reputation

  1. All right, it's a little terrible that I need to ask for help on my PORTFOLIO. I have always been moderately good at coding, but design is not my strong suit. My websites ALWAYS come out looking terrible and amateur. I'm confident I'm plenty good enough to get some work done for ma' and pa' businesses done, but I still want to improve. No matter what I try, I cannot be satisfied aesthetically with my website. (HundleyDeveloping.com) I think I know what is bugging me, but not how to fix it. First of all, I think I may need to change the headers? Perhaps they are too styled? Second, I cannot get the layout of the text right. It just does not look right two columned like that, but on the other hand I don't think it would look good single columned either, because my content area is too wide. I could solve that problem by adding a sidebar, but I simply have nothing to put there. Lastly, the lack of graphics seems to bug me too. But, where the heck am I going to get graphics? Again the site is HundleyDeveloping.com Thanks in advanced guys, I really appreciate any help given.
  2. Hey, I appreciate the help. I'll keep that in mind from now on. I also took the template idea to heart and knocked out a couple rudimentary ones tonight. Temporary URLs: hundleytemplateone.bugs3.com http://hundleytemplateone.bugs3.com/two/
  3. I guess you're right, but because they are both grey it seems to me like there would be less distance in between the colors? I just thought it would make it a bit easier to read, and fill up a bit more of my page. Congrats on the iPad type up. What do you mean when transitioning from tables to div and CSS? I never used tables to do layouts. The template thing was a good idea. Filler for the site, and will take a lot less time than coding a bunch of simple non-dynamic websites like mine. Why can't I float things? Makes layout so much easier. On your second point, you're very right. Like I said i'm much more worried about the overall design right now than the text. Star probably is redundant, but there's so little content on that page, it just gives it a little extra. Thanks for all the advice, I appreciate it.
  4. I had to make it big and bold since the text color does not stand out so well against the background, so now it can fit the color scheme and be readable. Thanks for the opinion, I'm assuming then it doesn't look half bad? Fixed the button. I swear to god I spend 10% of my time writing the page, and the other 90% making it work for the 12.6% that uses I.E.
  5. Thank you very much Psycho. However, I thought my design was bad. The content on that page right now is not much more than filler. More to help me see what it would look like, than anything. Does that mean the actual design of the page was acceptable?
  6. Hey guys. This is the portfolio I've been working on. While I'm a decent coder, I'm not that great at design. I can pick colors, etc, but when it comes to making an actual layout, it always comes out nice, but amateur looking. I think it could use a lot more content, but I just don't have anything else to say. On a side note, it's a portfolio, but I'm just starting out. My plan was to frame expandable pictures in the navigation bar, but I simply do not have any. Suggestions? Maybe make a few sites for free? Temporary URL: http://hundleyportfolio.bugs3.com/ Thanks in advanced!
  7. I feel like a MORON. but how do you use the insert image function? I cant paste a picture inbetween the tags. do i need an email or filepath?
  8. Well I HIGHLY doubt that I will have multiple users doing anything at once for a good long while since this will be my first site. Ill slowly work in the database...I already have mysql installed but at the time it seemed like a good idea...sites done...thanks
  9. Got it. What i did was <?php if ($_SESSION['logged_in'] == '1') { if ((isset($_POST['reply_to_thread'])) && ($_SESSION['reply_has_been_clicked'] != '1')) { echo '<textarea name="reply_body" cols="75" rows="10" style="resize:none; onKeyUp="limitText(this.form.reply_body,this.form.countdown,5000); onKeyDown="limitText(this.form.reply_body,this.form.countdown,5000);">Enter your reply here...</textarea><br><br><font size="1">(Maximum characters: 5000)<br> You have <input readonly type="text" name="countdown" size="3" value="5000"> characters left.</font><br>'; $_SESSION['reply_has_been_clicked'] = '1'; } } ?> <input type='submit' name='reply_to_thread' value="Reply"> <?php if (isset($_POST['reply_to_thread'])) { if ($_SESSION['logged_in'] != '1') { echo 'You need to be logged in!'; } } ?> <input type='hidden' name='how_many_posts' value="<?php echo $number_of_posts;?>"> <?php echo $reply_echo; ?> then at the top if (isset($_POST['reply_to_thread'])) { if (($_SESSION['logged_in'] == '1') && ($_SESSION['reply_has_been_clicked'] == '1')){ $_SESSION['came_from_a_page'] = '1'; echo '<meta http-equiv="REFRESH" content="0;url=thread_redirect.php">'; } } ?> works perfectly funny what comes to you at 4 am in the morning...site is done
  10. Ya I knew i technically should be but...will it work? I dont want its bad form and all that jazz but will it work?
  11. I don't think what your trying to do is possible in php. but I might be wrong...you could to errors though like this... <?php $invalid_character_test1 = substr_count($_POST['text_box'], '1'); $invalid_character_test2 = substr_count($_POST['text_box'], '2'); $invalid_character_test3 = substr_count($_POST['text_box'], '3'); $invalid_character_test4 = substr_count($_POST['text_box'], '4'); $invalid_character_test5 = substr_count($_POST['text_box'], '5'); $invalid_character_test6 = substr_count($_POST['text_box'], '6'); $invalid_character_test7 = substr_count($_POST['text_box'], '7'); $invalid_character_test8 = substr_count($_POST['text_box'], '8'); $invalid_character_test9 = substr_count($_POST['text_box'], '9'); $invalid_character_test10 = substr_count($_POST['text_box'], '0'); if (($invalid_character_test1 == "0") && ($invalid_character_test2 == "0") && ($invalid_character_test3 == "0") && ($invalid_character_test4 == "0") && ($invalid_character_test5 == "0") && ($invalid_character_test6 == "0") && ($invalid_character_test7 == "0") && ($invalid_character_test8 == "0") && ($invalid_character_test9 == "0") && ($invalid_character_test10 == "0") ){ $error = 'All valid characters!'; } else { $error = 'Contains invalid characters!'; } ?> <form action="test_box_example.php" method="post" name='text_box_example"> <input type="text" name="text_box" value="Enter value here!"> <input type="submit" name="submit_text_box" value="Submit"><?php if (isset($_POST['submit_text_box'])) { echo $error; } ?> </form> Now I probably should have used an array but that will get the job done...What that does is gets what you entered into the field sends it to this page(assuming the page is named text_box_example.php) then each test counts how many times the number it is testing was in that test box. Then that if else statement says if all of those tests come back 0 (there were no numbers in the box) the error variable equals All valid characters! but if all those are not equal to zero then there must be a number in your text box so the echo equals Contains invalid characters! then if you press the button it prints out the error right next to the submit button.
  12. I am basically done with my entire site. I just realized...what happens if 10 users are trying to fwrite to one file at once? that is how i store my usernames passwords signatures and all that jazz. If users cant all fwrite at once my site is not going to work AT ALL. and I might just have to give up haha. good news or bad news?
  13. So I posted something like this a while ago but i didn't get any particularly good answers so I redid it. this is what I have now. It takes clicking the reply three times before it changes changes the form but then after that initial session of reply button clicks it only takes two which is what I want. This is the last thing on my forum (at least till I find some other bug ) and I need it fixed but I can't figure it out. IT\t wouldn't be a huge issue but the thing is that the first reply you make someone would fill it all in and then press reply then they would lose all their stuff and have to start over before it was submitted, Help please! thanks! <form action="<?php if ($_SESSION['logged_in'] == '1') { if ((isset($_POST['reply_to_thread'])) && ($_SESSION['reply_has_been_clicked'] != '1')) { echo $this_thread_path; } elseif ((isset($_POST['reply_to_thread'])) && ($_SESSION['reply_has_been_clicked'] == '1')) { $_SESSION['reply_has_been_clicked'] = '0'; $_SESSION['came_from_a_page'] = '1'; echo 'thread_redirect.php'; }}?>" method='post'> <?php if ($_SESSION['logged_in'] == '1') { if ((isset($_POST['reply_to_thread'])) && ($_SESSION['reply_has_been_clicked'] != '1')) { echo '<textarea name="reply_body" cols="75" rows="10" style="resize:none; onKeyUp="limitText(this.form.reply_body,this.form.countdown,5000); onKeyDown="limitText(this.form.reply_body,this.form.countdown,5000);">Enter your reply here...</textarea><br><br><font size="1">(Maximum characters: 5000)<br> You have <input readonly type="text" name="countdown" size="3" value="5000"> characters left.</font><br>'; $_SESSION['reply_has_been_clicked'] = '1'; } } ?> <input type='submit' name='reply_to_thread' value="Reply"> <?php if (isset($_POST['reply_to_thread'])) { if ($_SESSION['logged_in'] != '1') { echo 'You need to be logged in!'; } } ?> </form>
  14. Not really the greatest solution but... $body1 = strstr ($_POST["reply_body"], '[Quote]'); $body12 = strstr ($_POST["reply_body"], '[/Quote]'); $body13 = str_replace($body12, '', $body1); $body14 = str_replace('[Quote]', '', $body13); $body15 = str_replace('[Quote]' . $body14 . '[/Quote]', '<font size="2" color="#66CC00">' . $body14 . '</font>', $_POST["reply_body"]); $body11 = htmlentities($body15); $body16 = htmlspecialchars($body11 ,ENT_QUOTES); $body17 = htmlentities('<font size="2" color="#66CC00">'); $body18 = htmlspecialchars($body17 ,ENT_QUOTES); $body19 = htmlentities('</font>'); $body20 = htmlspecialchars($body19 ,ENT_QUOTES); $body21 = str_replace ($body18, '<font size="2" color="#66CC00">', $body15); $body = str_replace ($body20, '</font>', $body21); that works...the only issue is it allows </font> will no longer show up in the reply...and that anyone can type in the exact <font size="2" color="#66CC00"> whatever they want here </font> but that isnt really an issue since you are giving them freedom to do that anyways with the quote block.
  15. This is on my redirect page...this later writes the value for $reply_body_(post number) in the thread page. $body1 = strstr ($_POST["reply_body"], '[Quote]'); $body12 = strstr ($_POST["reply_body"], '[/Quote]'); $body13 = str_replace($body12, '', $body1); $body14 = str_replace('[Quote]', '', $body13); $body15 = str_replace('[Quote]' . $body14 . '[/Quote]', '<font size="2" color="#66CC00">' . $body14 . '</font>', $_POST["reply_body"]); $body11 = htmlentities($body15); the thread page has this variable set to this value after putting foobar in quote blocks $thread_reply_7 = '&lt;font size=&quot;2&quot; color=&quot;#66CC00&quot;&gt;foobar&lt;/font&gt;'; I then echo the variable inside its respective cell with <?php echo html_entity_decode($thread_reply_7); ?> \ the output on the actual page is... <font size="2" color="#66CC00">foobar</font> in the source code it shows... <font size="2" color="#66CC00">foobar</font> so what gives?
×
×
  • 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.