Jump to content

ShootingBlanks

Members
  • Posts

    215
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

ShootingBlanks's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. I don't believe I'm following your post. I tried copying/pasting your exact text as-is (just to see what would happen), and nothing echoed. Where/how do those $1 come into play? Thanks!
  2. Hello - I have a long string that may or may not contain a full web URL in it. I need to post/echo that string, and if there is a web URL in it, then I need to add: <a href="$url_string" target="_blank"> ...before it, and then after it I have to add: </a> So far, I was using the following code to see if there was a URL in it: $has_url = strpos($my_string, 'http'); if ($has_url) { ...and here is where I'm lost. I get that the logic would be that I need to: 1) Go through the string and pull out all the characters from the "http" until either the string ends (if the URL were the last thing in the string) or until there is a space (since no URLs have spaces, and every URL would be followed by a space, unless it is at the end of the string). 2) Put the text from step 1 above into a variable ($url_string). 3) Find where the "http" starts, and append the following text before it: <a href="$url_string" target="_blank"> 4) Find the end of the URL, and append the following text after it: </a> Unfortunately, I'm far too novice at PHP to figure this out. I've tried some stuff, but none of it seems to work. Hoping someone here can help. Thanks!!! (P.S. - I understand that not all URLs start with "http", but for my purposes the assumption that they do should be fine)
  3. Hello - Suppose I had a MySQL result set that was something like this: ITEM: COLOR: ball red ball blue book red book green book black If I were to use the code: do { echo $row_myQuery['item'] . " - " . echo $row_myQuery['color'] . "<br />"; } while ($row_myQuery= mysql_fetch_assoc($myQuery)); Then I end up with this: ball - red ball - blue book - red book - green book - black MY QUESTION: What I'd like to know is, how could I re-write that php code so that I could get an output like this?: ball - red, blue book - red, green, black Thanks!
  4. My friend...you are a life-saver. Thank you SO much!!!!
  5. Yeah - I have virtually no experience with JS or JQuery. But I was fudging with some CSS workarounds, and I am SO close, but can't figure out this last part... ...I have the main three divs in my three-column layout spanning towards the bottom now. But where I'm stuck is that the middle div/column has ANOTHER div inside it that ALSO needs to span to the bottom (and is not). If you could offer a final solution based on my code, that would be so amazing! Here is the updated link again: http://www.stacykaiser.com/NEWSITE/index.php Here's my updated HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Stacy Kaiser</title> <link href="includes/styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="container_main"> <div id="background_right"> <div id="background_middle"> <div id="background_left"> <div id="content_left"> <div class="hr"><img src="images/hr.jpg" style="margin-top: 30px; margin-botton: 0px;" /></div> <h1>Biography</h1> <img src="images/bio_headshot.jpg" class="fleft" /> <p>Stacy Kaiser is a successful Southern California based licensed psychotherapist, relationship expert and media personality. With over 50 television appearances in the last year on major networks including CNN, NBC, CBS, MSNBC and FOX, Stacy has built a reputation for bringing a unique mix of thoughtful and provocative insight to a wide range of topics. Stacy tackles the demands of a thriving private practice while meeting the daily challenges as a mother of two school-age children. She is a much sought after public speaker on a wide variety of topics, ranging from office and personal relationship issues to anger management and family politics. In addition to her numerous television appearances, her expertise and unique perspective have been solicited by a diverse group of clients including major corporations, public institutions, government agencies and philanthropic organizations.</p> <p>Stacy possesses a unique ability to identify the essence of issues and problems quickly. Her style is honest and forthright, while also bearing the compassion and sensitivity that are fundamental to her profession.</p> <p>As a psychotherapist on both Celebrity Fit Club and Lifetime's DietTribe, Stacy Kaiser has gained a reputation for helping people face the truth that is holding them back from leading a life filled with a generous balance of responsibility, fun and freedom. After providing counseling to thousands of individuals both in her private practice and the media, Stacy has identified ten critical areas needed to develop the skills necessary to become a successful, happy and fulfilled adult.</p> <img src="images/bio_book.jpg" class="fright" /> <p>In her new book "How to be a Grown UpThe Ten Secret Skills Everyone Needs to Know" published by HarperCollins, Spring 2010, Stacy opens with a provocative quiz that helps the reader gain insight into his or her current level of life mastery. In the following chapters, she breaks down the readers strengths and weaknesses to guide them towards improving in the ten areas so that they can maximize their success and ultimately their life. A passion for improving the lives of the under served within her community led to Stacy's work with Southern California's premier family resource center, Friends of the Family, where she has worked with battered women, teen parents, abused children and families in crisis for the past 15 years. She has also been engaged by organizations including the FBI, Los Angeles Fire Department, Los Angeles Unified School District, Kaiser Permanente and Hughes Aircraft to implement workshops and handle third party mediations.</p> <p>Stacy Kaiser received her B.A. in Psychology from California State University, Northridge and her M.A. in Clinical Psychology from Pepperdine University. She is a licensed Marriage and Family Therapist and has received advanced training in the areas of human and child development, as well as emotional, physical and sexual abuse.</p> </div> <div id="content_middle"> <div id="middle"> <img src="images/header.jpg" style="margin-top:30px;" /> <img src="images/headshot.jpg" style="margin-top:30px;" /> <?php include('includes/nav.php'); ?> <p style="font-size:.6em; color:#606A66;">Copyright 2007 © <a href="http://www.stacykaiser.com/">www.stacykaiser.com</a>. All rights reserved.</p> </div> </div> <div id="content_right"></div> </div> </div> </div> </div> </body> </html> And here's my updated CSS: @charset "utf-8"; /* CSS Document */ html, body { background: #615041; font-family: Arial, Helvetica, sans-serif; color: #CCC; font-size: .9em; padding: 0px; margin: 0px; } h1 { color: #43C1E3; font-size: 2.42em; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; letter-spacing: 6px; margin-bottom: 20px; padding: 0px; line-height: 20px; } a:link, a:visited, a:active { color: #43C1E3; text-decoration: none; } a:hover { text-decoration: underline; } #background_left { float:left; width:100%; position:relative; right:315px; background: #665446 url(../images/bkgnd_gradient_left.jpg) repeat-x; } #content_left { float:left; width:369px; position:relative; left:380px; overflow:hidden; } #background_middle { clear:left; float:left; width:100%; position:relative; right:50px; background: #352E2A url(../images/bkgnd_gradient_shadow.jpg) repeat-x; } #content_middle { float:left; width:313px; position:relative; left:395px; overflow:hidden; } #middle { width: 285px; height: 100%; margin: auto; text-align: center; background: #463931; border-left: #45403C 5px solid; border-right: #45403C 5px solid; position: relative; overflow: hidden; } /*#content_middle { float:left; width:313px; position:relative; left:395px; overflow:hidden; background: #463931; border-left: #45403C 5px solid; border-right: #45403C 5px solid; }*/ #background_right { clear:left; float:left; width:765px; overflow:hidden; background: #977A68 url(../images/bkgnd_gradient_right.jpg) repeat-x; } #content_right { float:left; width:50px; position:relative; left:76.67%; overflow:hidden; } #container_main { width: 766px; margin:auto; } .hr { text-align: center; margin: 15px 0px; padding: 0px; } .fleft { float: left; margin: 5px 10px 5px 0px; } .fright { float: right; margin: 5px 0px 5px 10px; } /* NAVIGATION ROLLOVERS */ a#bio:link, a#bio:visited, a#bio:active { display: inline-block; width: 117px; height: 30px; text-decoration: none; background: url(../images/nav/bio.png); } a#bio:hover { background-position: -117px 0px; } a#mediaexperience:link, a#mediaexperience:visited, a#mediaexperience:active { display: inline-block; width: 165px; height: 30px; text-decoration: none; background: url(../images/nav/mediaexperience.png); } a#mediaexperience:hover { background-position: -165px 0px; } a#video:link, a#video:visited, a#video:active { display: inline-block; width: 90px; height: 30px; text-decoration: none; background: url(../images/nav/video.png); } a#video:hover { background-position: -90px 0px; } a#press:link, a#press:visited, a#press:active { display: inline-block; width: 145px; height: 30px; text-decoration: none; background: url(../images/nav/press.png); } a#press:hover { background-position: -145px 0px; } a#appearances:link, a#appearances:visited, a#appearances:active { display: inline-block; width: 200px; height: 30px; text-decoration: none; background: url(../images/nav/appearances.png); } a#appearances:hover { background-position: -200px 0px; } a#privatepractice:link, a#privatepractice:visited, a#privatepractice:active { display: inline-block; width: 145px; height: 30px; text-decoration: none; background: url(../images/nav/privatepractice.png); } a#privatepractice:hover { background-position: -145px 0px; } a#corporateconsulting:link, a#corporateconsulting:visited, a#corporateconsulting:active { display: inline-block; width: 184px; height: 30px; text-decoration: none; background: url(../images/nav/corporateconsulting.png); } a#corporateconsulting:hover { background-position: -184px 0px; } a#contact:link, a#contact:visited, a#contact:active { display: inline-block; width: 105px; height: 30px; text-decoration: none; background: url(../images/nav/contact.png); } a#contact:hover { background-position: -105px 0px; }
  6. Hello. I have a main container div with three sub-container divs (left, middle, right) that I would all like to extend to the bottom of the page, regardless of how much content is in them. They all extend INDIVIDUALLY, but they will not expand TOGETHER (so if there's a lot of content in the left side, that side will expand down but the middle and right will remain "short"). You can see the example here: http://www.stacykaiser.com/NEWSITE/index.php Here is my HTML code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Stacy Kaiser</title> <link href="includes/styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="container"> <div id="leftside"> <div class="hr"><img src="images/hr.jpg" style="margin-top: 30px; margin-botton: 0px;" /></div> <h1>Biography</h1> <img src="images/bio_headshot.jpg" class="fleft" /> <p>Stacy Kaiser is a successful Southern California based licensed psychotherapist, relationship expert and media personality. With over 50 television appearances in the last year on major networks including CNN, NBC, CBS, MSNBC and FOX, Stacy has built a reputation for bringing a unique mix of thoughtful and provocative insight to a wide range of topics. Stacy tackles the demands of a thriving private practice while meeting the daily challenges as a mother of two school-age children. She is a much sought after public speaker on a wide variety of topics, ranging from office and personal relationship issues to anger management and family politics. In addition to her numerous television appearances, her expertise and unique perspective have been solicited by a diverse group of clients including major corporations, public institutions, government agencies and philanthropic organizations.</p> <p>Stacy possesses a unique ability to identify the essence of issues and problems quickly. Her style is honest and forthright, while also bearing the compassion and sensitivity that are fundamental to her profession.</p> <p>As a psychotherapist on both Celebrity Fit Club and Lifetime's DietTribe, Stacy Kaiser has gained a reputation for helping people face the truth that is holding them back from leading a life filled with a generous balance of responsibility, fun and freedom. After providing counseling to thousands of individuals both in her private practice and the media, Stacy has identified ten critical areas needed to develop the skills necessary to become a successful, happy and fulfilled adult.</p> <img src="images/bio_book.jpg" class="fright" /> <p>In her new book "How to be a Grown UpThe Ten Secret Skills Everyone Needs to Know" published by HarperCollins, Spring 2010, Stacy opens with a provocative quiz that helps the reader gain insight into his or her current level of life mastery. In the following chapters, she breaks down the readers strengths and weaknesses to guide them towards improving in the ten areas so that they can maximize their success and ultimately their life. A passion for improving the lives of the under served within her community led to Stacy's work with Southern California's premier family resource center, Friends of the Family, where she has worked with battered women, teen parents, abused children and families in crisis for the past 15 years. She has also been engaged by organizations including the FBI, Los Angeles Fire Department, Los Angeles Unified School District, Kaiser Permanente and Hughes Aircraft to implement workshops and handle third party mediations.</p> <p>Stacy Kaiser received her B.A. in Psychology from California State University, Northridge and her M.A. in Clinical Psychology from Pepperdine University. She is a licensed Marriage and Family Therapist and has received advanced training in the areas of human and child development, as well as emotional, physical and sexual abuse.</p> </div> <div id="middle_container"> <div id="middle"> <img src="images/header.jpg" style="margin-top:30px;" /> <img src="images/headshot.jpg" style="margin-top:30px;" /> <?php include('includes/nav.php'); ?> <p style="font-size:.6em; color:#606A66;">Copyright 2007 © <a href="http://www.stacykaiser.com/">www.stacykaiser.com</a>. All rights reserved.</p> </div> </div> <div id="rightside"> </div> </div> </body> </html> And here is my CSS code: @charset "utf-8"; /* CSS Document */ html, body { background: #615041; font-family: Arial, Helvetica, sans-serif; color: #CCC; font-size: .9em; padding: 0px; margin: 0px; } h1 { color: #43C1E3; font-size: 2.42em; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; letter-spacing: 6px; margin-bottom: 20px; padding: 0px; line-height: 20px; } a:link, a:visited, a:active { color: #43C1E3; text-decoration: none; } a:hover { text-decoration: underline; } #container { width: 766px; margin:auto; } #leftside { width: 373px; float: left; background: #665446 url(../images/bkgnd_gradient_left.jpg) repeat-x; min-height: 748px; padding: 0px 15px; } #middle_container { width: 313px; float: left; background: #352E2A url(../images/bkgnd_gradient_shadow.jpg) repeat-x; min-height: 748px; } #middle { width: 285px; height: 100%; min-height: 748px; margin: auto; text-align: center; background: #463931; border-left: #45403C 5px solid; border-right: #45403C 5px solid; } #rightside { width: 50px; float: left; background: #977A68 url(../images/bkgnd_gradient_right.jpg) repeat-x; min-height: 748px; } .hr { text-align: center; margin: 15px 0px; padding: 0px; } .fleft { float: left; margin: 5px 10px 5px 0px; } .fright { float: right; margin: 5px 0px 5px 10px; } /* NAVIGATION ROLLOVERS */ a#bio:link, a#bio:visited, a#bio:active { display: inline-block; width: 117px; height: 30px; text-decoration: none; background: url(../images/nav/bio.png); } a#bio:hover { background-position: -117px 0px; } a#video:link, a#video:visited, a#video:active { display: inline-block; width: 90px; height: 30px; text-decoration: none; background: url(../images/nav/video.png); } a#video:hover { background-position: -90px 0px; } a#press:link, a#press:visited, a#press:active { display: inline-block; width: 145px; height: 30px; text-decoration: none; background: url(../images/nav/press.png); } a#press:hover { background-position: -145px 0px; } a#appearances:link, a#appearances:visited, a#appearances:active { display: inline-block; width: 200px; height: 30px; text-decoration: none; background: url(../images/nav/appearances.png); } a#appearances:hover { background-position: -200px 0px; } a#privatepractice:link, a#privatepractice:visited, a#privatepractice:active { display: inline-block; width: 145px; height: 30px; text-decoration: none; background: url(../images/nav/privatepractice.png); } a#privatepractice:hover { background-position: -145px 0px; } a#corporateconsulting:link, a#corporateconsulting:visited, a#corporateconsulting:active { display: inline-block; width: 184px; height: 30px; text-decoration: none; background: url(../images/nav/corporateconsulting.png); } a#corporateconsulting:hover { background-position: -184px 0px; } a#contact:link, a#contact:visited, a#contact:active { display: inline-block; width: 105px; height: 30px; text-decoration: none; background: url(../images/nav/contact.png); } a#contact:hover { background-position: -105px 0px; } Any help would be GREATLY appreciated! Thanks!!!
  7. Hello - I'm still very much new to AJAX and jQuery. I'm pretty proficient in PHP. Anyway, what I'm trying to do (wildly unsuccessfully) is this... A user clicks a link, and a little popup window appears (using jQuery's thickbox - http://jquery.com/demo/thickbox/). In that popup window is just one text input box (in a form named "form") and a submit button. That all works fine. But now I need to get that text input submitted to a mysql database. I've done countless applications using only PHP to submit forms to mysql databases, so I'm quite sure that my mysql code is correct (because it's so simple). But I'm not sure if my methods need to change (since I am kind of using jQuery/AJAX now), because the data is not submitting. I'm not getting errors, per se, but it's just not submitting. Also, after the form is submitted successfully I'd ideally like the user to either: A) Stay in the popup window with a message saying "thank you!" and a button to close the popup OR B) Be taken back to the screen where they originally clicked the link to open the popup, which would now have a "thank you for submitting!" type message. I can't get that to happen either. Basically when I click "submit", the page changes to the popup window (but in a full screen now - like, it just goes to that page in a full browser window), and nothing gets submitted. Here's what my <form> tag is (this is probably wrong): <form action="pop_add.php?height=250&width=350&modal=true" class="thickbox" method="POST" name="form"> In the above, "pop_add.php" is the page that contains all the popup code (the HTML form, PHP/MySQL submittal code, etc). Also, in the <head> of that same page I put the following alert (for testing), and I'm getting the results that I expect with that: <script type="text/javascript"> $("form.thickbox").submit(function() { alert("beep: " + this.action); var t = this.title || this.name || null; var g = this.rel || false; TB_show(t,this.action,g); this.blur(); return true; }); </script> (alerts "beep: pop_add.php?height=250&width=350&modal=true") Sorry for the long post, but I wanted to be detailed. I'll shut up now, but if anyone can help that would be greatly appreciated!!!
  8. Got it! I found something called "thickbox" that seemed to work. Thanks for the help! Now to figure out how to get this thing submitted properly!
  9. Much of this may just be my limited novice knowledge of jQuery. Basically, from what I can tell they use this as an example: $(document).ready(function() { var $dialog = $('<div></div>') .html('This dialog will show every time!') .dialog({ autoOpen: false, title: 'Basic Dialog' }); $('#opener').click(function() { $dialog.dialog('open'); }); }); That gives a popup that has a div that says "This dialog will show everytime!". I don't want a div, though. I want a whole other page to show up (the page with the form). Or, is that stupid? Should I just have the form on the same page in a div? Anyway, using the code above I can get the dialog box to pop up, but I can't integrate that "modal" code to have the fading in the background. Thanks!
  10. Thanks! I think that's what I'm looking for. Well, particularly this: http://jqueryui.com/demos/dialog/#modal-form. But the documentation for doing that is pretty bad. It shows that example, but doesn't really explain it or even show how to associate it with a link/button. I copied/pasted the example code onto a page, and all the HTML of the popup form just showed on the page (flat - not popped up or anything).
  11. Hello. I'm wondering how to make it so that when a user clicks a link, that link will open a kind of "on-screen popup window" (I say "on-screen" because I want it to sort of overlay the current window contents - and even ideally sort of "fade out" the original page's contents in the background like you may have seen on some sites, but that's not a necessity). The window would have an input box with a "SUBMIT" button that would feed the input text to a database. There would also be a "CANCEL" button to close the popup window. Because the input text would feed to a database, and the database table that it feeds to would be dependent on the link that was clicked to open the popup window, I would need the on-screen link that initiates the popup window to pass a variable to it. I'm thinking jQuery can accomplish this somehow, but I'm way too novice to get this going on my own, so I'm looking for some startup help. I wouldn't need any help with the database insert code. Just with getting the popup window open and pulling in a variable from a clicked link. Thanks so much for any help that can be offered to get me going on this!!!
  12. Oh - I had no idea about any of this! How can I rectify what I've done, then? Should I just unzip the whole 5.3 package into the "php5" folder and start over, just not doing anything with any of the .dll files? Yeah - I did that.
×
×
  • 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.