Jump to content

cmgmyr

Members
  • Posts

    1,278
  • Joined

  • Last visited

    Never

Posts posted by cmgmyr

  1. I guess I'll tell a little bit of my story. Right now my life is pretty hectic. I'm 21 years old, I work full time as a Systems Manager handling all the IT work, taking 3 classes at night, playing in 2 bands, and running my own web business on the side (which lately I have been swamped!). Sleep!?!? What's that?

    I've always been into technology and music, they have always been my true loves. I play drums in the 2 bands but I also play guitar, bass, piano, and other misc stuff along the way. I am a total gear head! I have about $30,000 worth of musical stuff that I have accumulated over the years ;D But I would sell my kidneys before I gave any of that up.

    I got into programming in high school like 5-6 years ago and haven't stopped some of my favorites are PHP/MySQL (obviously), VB .NET, and C++/Java (pretty much the same)

    Just trying to live it up as much as possible right now...you never know when it's going to end so live today like it was your last.

    Let me know if you wanna chat music or gear sometime.

    Later,
    -Chris

    PS, Single, no kids...Maybe someday  ;)
  2. Hey All,
    I'm sure this is really easy, but I must be missing something. I'm trying to make an ad page where it has a frame on the top with the main site logo, and the bottom frame is the actual website that the user is viewing. I want to pass a value through forward.php through to forward_bottom.php

    Here is what I have so far:

    the link would be forward.php?ad=1

    forward.php: [code]<?php global $ad; ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Richmond Critic</title>
    </head>

    <frameset rows="150,*" frameborder="no" border="0" framespacing="0">
      <frame src="forward_top.php" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
      <frame src="forward_bottom.php?ad=$ad" name="mainFrame" id="mainFrame" title="mainFrame" />
    </frameset>
    <noframes><body>
    </body>
    </noframes></html>[/code]

    forward_bottom.php:[code]<?php

    global $ad;

    //this will be where it gets the url from the database

    echo $ad;

    ?>[/code]

    Please let me know if you need any more info.

    Thanks,
    -Chris
  3. I am totally up for this idea! I'd be willing to help out any way that I could (hosting, ideas, etc.) I might even be able to post some of my work (which would be a paid prize to the winner) if the mods allowed it.

    I think that this is a great idea and we should roll with it!

    Later,
    -Chris
  4. Thanks for the help. What you had messed up a few other things, but what I did was took out the clear in the middle section, and used what you had for the bottom in the css and it worked great. Thanks for the help!

    -Chris
  5. Hey all,
    I have a little spacing problem in FF with this menu system. It works fine when it is all by itself but when I put it in the main file it gets all messed up.

    Here is the css
    [code]/*** Main CSS ***/
    body {
    background-color:#FFFFFF;
    margin-top:0px;
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #000000;
    background-image:url(../images/bg1.gif);
    background-repeat:repeat;
    }
    a:link {
    color: #00CCFF;
    text-decoration: none;
    background-color:inherit;
    }
    a:visited {
    text-decoration: none;
    color: #00CCFF;
    background-color:inherit;
    }
    a:hover {
    text-decoration: none;
    color: #000000;
    background-color:inherit;
    }
    a:active {
    text-decoration: none;
    color: #00CCFF;
    background-color:inherit;
    }

    /*** Layout ***/
    #body_wrapper {
    text-align: left;
    width:760px;
    background-color:#FFFFFF;
    color:#000000;
    margin-left:auto;
    margin-right:auto;
    }
    #top{
    height:24px;
    width:760px;
    }
    #top_lower{
    height:47px;
    width:760px;
    background-image:url(../images/3.gif);
    }
    #top_links{
    text-align:right;
    padding-top:20px;
    padding-right:50px;
    }
    #main_top{
    width:760px;
    height:148px;
    }
    #links{
    width:760px;
    height:32px;
    }
    #links_bod_sep{
    width:760px;
    height:44px;
    }
    /*** Main ***/
    #maincontent{
    width:760px;
    background-image:url(../images/main_middle.gif);
    }
    #main{
    padding-left:40px;
    padding-right:40px;
    }
    #main .title{
    color:#000000;
    background-color:#FFFFFF;
    font-weight:bold;
    text-align:center;
    }
    #main p{
    margin:0px;
    padding:5px;
    }
    .title{
    color:#000000;
    background-color:#FFFFFF;
    font-weight:bold;
    }
    #footer_sep{
    width:760px;
    height:21px;
    }
    #footer{
    width:760px;
    height:34px;
    background-image:url(../images/footer.gif);
    text-align:center;
    }
    #bottom{
    width:760px;
    height:19px;
    }
    /*** Other Stuff ***/
    img{
    border:0px;
    }
    .wrong{
    color:#FF0000;
    background-color:inherit;
    }
    .correct{
    color:#33CC00;
    background-color:inherit;
    }
    .answer{
    font-weight:bold;
    }
    input
    {
    color: #000;
    background-color: #eaf0da;
    border: 1px solid #96bd38;
    }
    .error{
    color:#FF0000;
    background-color:#FFFFFF;
    font-weight:bold;
    }
    .plate{
    width:203px;
    margin:8.5px;
    }
    .plate .top .text{
    background-image:url(../images/plate_01.gif);
    width:137px;
    height:24px;
    float:left;
    font-weight:bold;
    }
    .plate .middle{
    background-image:url(../images/plate_04.gif);
    clear:both;
    }
    .plate .bottom{
    height:8px;
    }[/code]

    the live version is http://www.e-resolutions.org/users.php

    Thanks,
    -Chris

    [attachment deleted by admin]
  6. The top nave still needs to come down some. With the left nav the top and bottom rollovers to not match up to the original image, the first on is rounded and the rollover is square. The text on the links should be a little lighter and maybe turn to white or a light grey on the hover. Other then that it looks like its getting there.

    -Chris
  7. I like it a lot, it looks good to me.

    The only thing that I noticed is with your top tab buttons. You need to move then down about 5-10px because on the bottom left of all of them you can see the shadow curve which at first glance looks like buttons but the bottoms are cut off.

    Little icons would work well on both nav areas.

    -Chris
  8. Thanks obsidian I got it. Here is what I came up with:

    [code]$users = mysql_query("SELECT DATE_ADD(reg_date, INTERVAL 1 YEAR) AS ex_date, reg_date FROM users WHERE userid = $userid") or die('Query failed: ' . mysql_error());
    $reg_date  = mysql_result($users, 0, 'reg_date');
    $ex_date  = mysql_result($users, 0, 'ex_date');

    $reg_date = date("M-d-Y", strtotime($reg_date));
    $ex_date = date("M-d-Y", strtotime($ex_date));
    $cdate = date("M-d-Y");
    if ($cdate <= $ex_date){
    $activity = "<span class=\"correct\">Active</span>";
    }else{
    $activity = "<span class=\"wrong\">Inactive</span><br /><br /><br />Please renew your membership.";
    }[/code]

    Thanks again,
    -Chris
  9. Hey sorry for this question but I couldn't find anything on it...

    I have reg_date in my database which is a datetime type. What I want to find out is the same date a year from now and if their account is active.

    I have it formatted right now as: $reg_date = date("M-d-Y", strtotime($reg_date));

    Thanks I'm sure this is easy and right under my nose, but I'm missing it right now.

    Thanks,
    -Chris
  10. Please check out www.e-resolutions.org in FF.

    As you can see there are some spacing problems with the div main and maincontent. I tried setting the top/bottom margins/padding to 0 but it did nothing. Once I put a border around either div, the problem goes away. How do I fix this?

    Thanks,
    -Chris
  11. Hey I got some pics together, this is my home office...the one at work I didn't pay for, so it's pretty weak, so I just included my home stuff.

    This is my main work space. Main computer is an intel duel core, and the monitor is a dell 20.1" widescreen (awesome picture by the way). Next to it is a Win 2000 server, mostly for files.
    [img]http://chrisgmyr.com/images/pics/1.jpg[/img]

    This is right next to the first picture, this is the linux workstation with the first section of books. And all those bins are filled with parts and misc computer crap
    [img]http://chrisgmyr.com/images/pics/2.jpg[/img]

    These are the other books, mostly outdated, but sometimes a help. And YES there are dummy books in there, but sometimes they are nice to have...just in case.
    [img]http://chrisgmyr.com/images/pics/3.jpg[/img]

    This is in the other room, has really nothing to do with programming, but I do like the mini recording setup.
    [img]http://chrisgmyr.com/images/pics/4.jpg[/img]


    If you are looking for good speakers the Klipcsh 2.1 THX speakers are awesome (shown on the main computer and the laptop 8)), and you can pick them up at best buy for $129! They will be the best speakers you will ever buy. Feel free to ask about anything else that is in the pics.

    -Chris
  12. It sounds like a cool project, I think I would do it. You would have to make a bunch of "website templates" and the "user templates" and kinda mesh them together to what they choose and pay for. As far as legal stuff, that is not your issue to worry about. Your only issue is if the site will work right or not. What he does with it after you hand it over to him is up to him. It would be his responsibility to check to see if it legal or not.

    What I MIGHT do is when the project is completed YOU go and see if it is legal. If it is...you are fine, if not, think about the changes that you would have to make to make the site legal (if any) just so when he comes back and say that you need to change this to make it legal...you already know what needs to be done.

    So...What is the going price anyways? $1600, $1000, $900, or $650? I think a grand is pretty reasonably for that.

    This seems like a good "planning" project...make sure you plan everything out first before you jump right in. (but I'm sure you know that)

    -Chris
  13. I've made a Myspace URL type script where users can have their own URL on the site (site.com/name) and it will then be forwarded to the profile page.

    .htaccess
    [code]RewriteEngine  on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^/\.]+)/?$ profile.php?moduser=$1 [L][/code]

    In my database I have a moduser field where the script searches, then picks up the userid, then uses the id for the rest of the page.

    Script in profile.php
    [code]include "connect.php";
      global $userid, $moduser;
     
      if(isset($moduser)){
    $query = "SELECT * FROM users WHERE moduser = \"$moduser\"";
    $result = mysql_query($query) or die('Query mod failed: ' . mysql_error());
    $countmod = mysql_numrows($result);
    $userid = mysql_result($result, 0, 'userid');
    }
    if($countmod > 0){
      $query2 = "SELECT * FROM users WHERE userid = $userid";
      $result2 = mysql_query($query2) or die('Query id failed: ' . mysql_error());
      $name = mysql_result($result2, 0, 'name');
      $name = stripslashes($name);
      $name = $name." on ";
      }else{
      $query2 = "SELECT * FROM users WHERE userid = $userid";
      $result2 = mysql_query($query2) or die('Query id failed: ' . mysql_error());
      $name = mysql_result($result2, 0, 'name');
      $name = stripslashes($name);
      $name = $name." on ";
      }[/code]

    **Don't really pay attention to $name, i just use that as a prefix for the title of the page later on.

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