Jump to content

kjetterman

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by kjetterman

  1. I checked your site in the latest versions of Chrome, IE and Firefox. The banner looks great to me! CSS Browser Selector is a great hack that has helped me combat CSS positioning issues, etc. in older versions of IE. Perhaps this will help? http://rafael.adm.br/css_browser_selector/
  2. Does it work in Chrome? If so... do you have a URL I can take a look at so that I can see how it is supposed to work?
  3. Hi everyone! So.. I am in the process of writing a script that will put a phone number on the site depending on the subdomain location. Here is the code: <? $testPhone = "800.555.1212"; $michiganPhone = "800.783.1623"; $ohioPhone = "800.282.5106"; $pennPhone = "800.233.8200"; $floridaPhone = "800.292.9111"; $texasPhone = "800.633.1122"; $host = $_SERVER['HTTP_HOST']; if ($host == 'diocesan.com./testsite/publishing.php') { echo '$testPhone'; } elseif ($host == 'diocesan.com/michigan/') { echo $michiganPhone; } elseif ($host == 'diocesan.com/ohio/') { echo $ohioPhone; } elseif ($host == 'diocesan.com/pennsylvania/') { echo $pennPhone; } elseif ($host == 'diocesan.com/florida/') { echo $floridaPhone; } elseif ($host == 'trinitypublications.com/texas/') { echo $texasPhone; } ?> The syntax is correct but the logic is not because the number isn't showing up. How can I go about this the right way? What am I not considering here? Thank you so very much for any help / advice you may be able to give! I really appreicate it!
  4. That is what I ended up doing. It was much easier that way and less hassle! I think ... I was making things harder than they needed to be. Completed code: $statusMessage = "<fieldset><img src=\"dImages/success.gif\"> <font color=\"#CC0000\" size=\"3\"><b>Success!</b></font><br>Your file, <b>". $_FILES['bulletinFile']['name'] ."</b>, was successfully uploaded. Please use the form below if you need to upload another file.<br /><a href=\"http://diocesan.com/testsite/holidaycalendar.php\"><img src=\"/images_common/web_cal_christmas_2012.png\"></a><a href=\"http://diocesan.com/files_common/MI_cal_2012.pdf\"><img src=\"/images_common/print_button2.gif\"></a><br /></fieldset>"; Thank you to everyone who helped in this thread! My goal is to get better at this and learn everything I can. So again, thank you all for being awesome!!
  5. Thanks for all of the help everyone! I really appreciate it! Here's a puzzle (well for me... maybe not for you guys...lol ) $statusMessage is a variable used for many strings. Here is what I am talking about: $statusMessage = "<fieldset><img src=\"dImages/success.gif\"> <font color=\"#CC0000\" size=\"3\"><b>Success!</b></font><br>Your file, <b>". $_FILES['bulletinFile']['name'] ."</b>, was successfully uploaded. Please use the form below if you need to upload another file.</fieldset><br />". include('includes/usermain/successpage.php') ." "; } } else $statusMessage = "<fieldset><img src=\"dImages/fail.gif\"> <font color=\"#CC0000\" size=\"3\"><b>Error!</b></font><br>There was an internal error while trying to upload the file, please try again.</b></fieldset>"; } else $statusMessage = "<fieldset><img src=\"dImages/fail.gif\"> <font color=\"#CC0000\" size=\"3\"><b>Error!</b></font><br>There was an internal error while trying to upload the file, please try again.</b></fieldset>"; } else $statusMessage = "<fieldset><img src=\"dImages/fail.gif\"> <font color=\"#CC0000\" size=\"3\"><b>The selected file is too small.</b><br>Use the Browse... button to select the file you would like to send.</font></fieldset>"; } echo $statusMessage; Now, if I structure the code like this: $statusMessage = "<fieldset><img src=\"dImages/success.gif\"> <font color=\"#CC0000\" size=\"3\"><b>Success!</b></font><br>Your file, <b>". $_FILES['bulletinFile']['name'] ."</b>, was successfully uploaded. Please use the form below if you need to upload another file.</fieldset><br />"; include('includes/usermain/successmessage.php'); } It works but is positioned below the $statusMessage string. So, the problem is in the positioning. I want the image (which is basically what is contained in successmessage.php), to be at the end of the first $statusMessage string but in between the quotes so that it will position below the string visually on the site. So the status message string needs to come first and then the image. Does that make sense? I don't believe I can upload an image yet, otherwise I would give you a visual of what I am talking about.
  6. index.php does not include photogmain.php. index.php shows one thing... photogmain.php shows another (in the body of the site). I didn't replace the actual path with xxx at least, not in the code.... just in the post...
  7. Thank you for your response, Jessica! Yes, I put the file in the includes/usermain folder on the server. Here is the path: http://diocesan.com/...successpage.php $statusMessage = "<fieldset><img src=\"dImages/success.gif\"> <font color=\"#CC0000\" size=\"3\"><b>Success!</b></font><br>Your file, <b>". $_FILES['bulletinFile']['name'] ."</b>, was successfully uploaded. Please use the form below if you need to upload another file.</fieldset><br />". include('home/xxxx/public_html/testsite/includes/usermain/successpage.php') ." "; I get this error message: Warning: include(home/xxxx/public_html/testsite/includes/usermain/successpage.php ) [function.include]: failed to open stream: No such file or directory in /home/xxxx/public_html/testsite/photog_main.php on line 1976 Warning: include() [function.include]: Failed opening 'home/xxxx/public_html/testsite/includes/usermain/successpage.php ' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/testsite/photog_main.php on line 1976 I tried changing the url in the code to this also -- /home/xxxx/public_html/testsite/includes/usermain/successpage.php Got the same errors above but just with the '/' in front of "home" (if that makes sense).
  8. requinix, thank you for your response!! I changed the code slightly. I took off /testsite/includes on the url and now have includes/usermain... $statusMessage = "<fieldset><img src=\"dImages/success.gif\"> <font color=\"#CC0000\" size=\"3\"><b>Success!</b></font><br>Your file, <b>". $_FILES['bulletinFile']['name'] ."</b>, was successfully uploaded. Please use the form below if you need to upload another file.</fieldset><br />". include('includes/usermain/successpage.php') ." "; I get this error... Warning: include(includes/usermain/successpage.php ) [function.include]: failed to open stream: No such file or directory in /home/xxxx/public_html/testsite/photog_main.php on line 1976 Warning: include() [function.include]: Failed opening 'includes/usermain/successpage.php ' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/testsite/photog_main.php on line 1976
  9. Here is the code that I wrote: $statusMessage = "<fieldset><img src=\"dImages/success.gif\"> <font color=\"#CC0000\" size=\"3\"><b>Success!</b></font><br>Your file, <b>". $_FILES['bulletinFile']['name'] ."</b>, was successfully uploaded. Please use the form below if you need to upload another file.</fieldset><br />". include('testsite/includes/usermain/successpage.php') ." "; The problem is, it is throwing an error because of this line: include('testsite/includes/usermain/successpage.php') Here are the errors: Warning: include(testsite/includes/usermain/successpage.php ) [function.include]: failed to open stream: No such file or directory in /home/xxxx/public_html/testsite/photog_main.php on line 1976 Warning: include() [function.include]: Failed opening 'testsite/includes/usermain/successpage.php ' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/testsite/photog_main.php on line 1976 From what I have read, this is a php.ini issue. So, I will need to change the server settings to Allow_url_include = yes and allow_url_fopen = yes. I can do this but I understand that to make these changes means a security risk. Is there anyway around this? TIA for any help or guidance you can offer!
  10. Hi! (I am hoping I have placed this post in the right forum) I am having some issues with the Nivo slider. I have multiple sliders on the website (one that you can see just visiting the site and then a couple of others that are viewed when clients login). Anyway, the issue that I am having is trying to get the second slider (the one featured on the main site) to see the custom CSS that I wrote for it -- specifically in regards to the nivo-controlNav selector. Here is what i've tried: (the second slider ID is #mainSlider) #mainSlider .nivo-controlNav { position:relative; left:122px; top:12px; } I've also tried adding a z-index to this of 9999. I've also added custom css to the javascript: <script> $(document).ready(function() { $('nivo-controlNav).css('position','relative'); $('nivo-controlNav).css('left','122px'); $('nivo-controlNav).css('top','12px'); $('#mainSlider').nivoSlider({ effect: 'fade', // Specify sets like: 'fold,fade,sliceDown' slices: 15, // For slice animations boxCols: 8, // For box animations boxRows: 4, // For box animations animSpeed: 500, // Slide transition speed pauseTime: 7000, // How long each slide will show directionNav: true, // Next & Prev navigation directionNavHide:true, //Only show on hover controlNav: true, // 1,2,3... navigation controlNavThumbs: false, // Use thumbnails for Control Nav }); }); </script> and so on. That didn't work either. Then, I went into the javascript file and tried to add a new class -- .nivo-controlNav2. However, I don't think I went about it the right way as it messed up the controlNav css for the other slider. I tried loading a custom theme in the <head> and then added this to the slider wrapper: <div class="slider-wrapper2 theme-mytheme"> After that, I made sure that my css had .mytheme listed first and then .nivo-controlNav listed after it. At this point, i'm frustrated. I've done everything that *I* know how to do and have scoured the internet for answers. Here is the site: http://diocesan.com/testsite Help! and thank you in advance for any help, suggestions or advice you can give.
  11. The gold lettering is a bit much. Especially when a text shadow is added. It makes the lettering look blurry and un-readable. If you are going for the minimalist look -- then less is definitely more. This is what I would do if I were you: Change the headings text color from gold to #0C066A. It matches the blue in the flag. Remove all box shadows Remove the background image. Choose a solid color instead -- maybe stick with white or gray (to go with the minimalist feel). If you want try a medium gray for the background #eaeaea. Remove the shadow from the flag logo Change the header font from Lucida Console to Times New Roman. If you are interested in learning design, you will want to take a look at some good design and train your eye. There are a plethura of books and websites out there that you can use for inspiration and training purposes. Good luck and I hope this helped! One of the most common mistakes new designers make is trying to cram too much into the design and not having a rhyme or reasoning as to why certain colors are chosen. Your goal is to make it streamlined.
  12. Can you use the z-index attribute with absolute positioning? I thought you could only use z-index with relative positioning. That might be the issue.
  13. It worked for me too. Did you figure it out?
  14. Thank you! Thank you! You guys don't know how much I appreciate this! I am very eager to learn! Here is what I came up with last night and it actually WORKS!!! <?php session_start(); if ('logout' == $action) { session_destroy(); } echo '<div class="two-thirds">'; echo '<h2 class="hfooter">'; echo 'Quick Links'; echo '</h2>'; echo '<br />'; //Standard links for all users echo '<li><a href="#">Link 1</a></li>'; echo '<li><a href="#">Link 2</a></li>'; echo '<li><a href="#">Link 3</a></li>'; //Links for logged in users $loggedIn = isSet($_SESSION['/photog_main.php?pmode=usermain']); if($_SESSION['photog_id']){ echo '<li><a href="#">Link 4</a></li>'; echo '<li><a href="#">Link 5</a></li>'; echo '<li><a href="#">Link 6</a></li>'; } echo '</div>'; ?>
  15. Thank you for your help! I'm sure the solution to this is probably more simple than I am making it out to be. I'm learning my way and I really appreciate your help. Okay so here is the menu markup: <div class="two-thirds"> <h2 class="hfooter">Quick Links</h2><br /> <li><a href="about_us.php">About Us</a></li> <li><a href="dioCon.php?conID=38">Services</a></li> <li><a href="adorder.php">Request Advertising Information</a></li> <li><a href="contact.php">Contact Us</a></li> </div> I want to have the following items "show up" as additional links when a user logs in: <li><a href="photog_main.php?pmode=sendfile">Send File</a></li> <li><a href="download_graphics.php">Download Center</a></li> <li><a href="download_covers.php">Download Special Covers</a></li> <li><a href="photog_main.php?pmode=profile">Your Profile</a></li> My (obviously wrong) answer to that initially was to create two separate divs -- one with the short menu (two-thirds) and one with the full menu (two-thirds2). So then, I took what I had and re-wrote it to match your logic: <?php $loggedIn = '/photog_main.php?pmode=usermain'; echo '<div class="two-thirds">'; //Standard links for all users echo '<li><a href="#">Link 1</a></li>'; echo '<li><a href="#">Link 2</a></li>'; echo '<li><a href="#">Link 3</a></li>'; //Links for logged in users if($loggedIn) { echo '<li><a href="#">Link 4</a></li>'; echo '<li><a href="#">Link 5</a></li>'; echo '<li><a href="#">Link 6</a></li>'; } echo '</div>'; ?> It isn't working -- but I think that's because something is missing on my end of things. *scratches head*
  16. So, I am currently working on a site where my goal is to show a standard set of links to those who are not logged in. For those who are members and are logged in, I want to show additional links that are pertinent to any member logged in. Here is my code: <?php $loggedout = "/index.php"; $loggedin = "/photog_main.php?pmode=usermain"; $currentpage = $_SERVER['REQUEST_URI']; if ($currentpage == $loggedin) echo '<div class="two-thirds2">'; else { echo '<div class="two-thirds">'; } ?> As you can probably guess, it isn't working. One of the issues I am having is that both div classes show at the same time regardless. So, one option (if I am thinking this through), would be to add additional lines -- so instead of echo '<div class="two-thirds2">'; I could probably do something like: echo '<li><a href="#">My link</a></li>'; .... ?? Thank you for any input / advice you may have on how to solve the issue. B)
  17. kjetterman

    Hi!

    Hello! My name is Kellie. I am not new to "tweaking" php but I am new to php development. I am really excited to be here and am looking forward to gaining knowledge and hopefully also contributing as well!
×
×
  • 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.