Jump to content

ryy705

Members
  • Posts

    120
  • Joined

  • Last visited

    Never

Everything posted by ryy705

  1. Hello, I am trying to secure a wordpress ecommerce page. I need http://mysite.com/products-page/checkout/ to be redirected to https://mysite.com/products-page/checkout/ So, I added the following line to my .htacces file and put the .htaccess file in the document root: RewriteRule ^products-page/checkout/$ https://mysite.com/products-page/checkout/ [R] It did not do anything. I can still go to that page without the https. What am I doing wrong? Please help <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteRule ^products-page/checkout/$ https://mysite.com/products-page/checkout/ [R] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
  2. Hello, Please take a look at the attached picture. There is a shadow like this at the bottom of every page of a design that I am looking at. Could someone kindly tell me how create this effect? Thanks in advance. [attachment deleted by admin]
  3. I was only interested in IE8. I managed to line up everything by adjusting the width of the pictures. It took me forever but it's done now.
  4. I tried xhtml 1.1 as well. That did not make any difference. I am screwing up the margin or image size somewhere. But I can't figure out where.
  5. Hello, Please take a look at http://www.jeanbrunone.com/ie/real.html. I cannot get the rounded corners to line up correctly in IE. Please notice the woman's hair does not line up and misalignment in the navigation. For every element that needs rounded corners I have set the background to an image with two rounded corner at the bottom and created an empty div at the very beginning of the element with a class of "rndCap" and set its background to an image with two rounded corners at the top. You'll see this in real.html and ie.css. I have been at it for days. I read many tutorials. Trial and error isn't working. What I need is an experienced coder's help. What do I need to do? Make the image bigger?Smaller? Reset the margin? I tried everything I could think of. Many thanks in advance for helping me it is very much appreciated.
  6. Hello, I am pretty new to wordpress. When I copy and paste html in the wysiwyg editor it seems add its own paragraph tags at different places. Is there a way turn this behaviour off? Many thanks in advance for your help.
  7. Hello, I am experimenting with float layouts. It is my understanding that if you float three divs to the left they will sit next to each other without bothering any other divs above or below them. As long as the divs have specified width and their container div has enough room. Unfortunately, my #insdCont div(contains 3 floated divs) is overlapping with .bar div which sits on top of it. Please copy and paste code below and view it on a browser. The problem will become very apparent. I would appreciate any advice I can get. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <link rel="stylesheet" type="text/css" href="style.css" /> <title>Conforming XHTML 1.1 Template</title> </head> <body> <div id="canvas"> <div class="bar"> </div><!--End .bar --> <div id="shdwLft"> </div><!--/#lftSdw--> <div id="insdCont"> <div id="masthead"> #masthead </div><!--/#masthead--> <div id="copy"> #copy </div><!--/#copy--> <div id="footer"> #footer </div><!--/#footer--> </div><!--/#insdCont--> <div id="shdwRght"> </div> <div class="bar"> </div><!--End .bar --> </div><!--/#canvas--> </body> </html> /** Structure ***************************/ #canvas { margin-left: auto; margin-right: auto; width:969px; } #shdwLft{ float:left; height: 834px; width: 34px; float:left; background-color:blue; } #insdCont{ float:left; width:901px; overflow:hidden; } #footer{width:100%;} #shdwRght{ height: 834px; width: 34px; float:left; background-color:blue } /** End Structure ********************/ /** Styling Pieces*******************/ .bar { background-color:#840018; height:10px; width:100%; } /** End Stylig Pieces *************/
  8. ryy705

    Menu problem

    Thank you for your reply. I just changed the code and put in px. I did not fix the problem in IE. Please advise further.
  9. ryy705

    Menu problem

    Hello, I am having a lot of trouble with the menu system on http://independencebp.webmaxsites.com It looks fine in Firefox but in IE "Career Opportunities" drops below "About Us". Why does this happen? Please help.
  10. Here is the trouble some code: <ol> <li style="display:inline;margin:0"><img alt="search" src="img/search.jpg /></li> <li style="display:inline;padding-bottom:300px;"><input type="text" name="rangeA" style=""/></li> <li style="display:inline;margin:0"><img alt="search" src="img/btnGo.jpg" /></li> </ol> As you can see no matter how much padding I add to the text field it does not move.
  11. Hello, I please take a look at http://www.jeanbrunone.com/leadtrack/leads.tpl.html I am trying to make it look like : http://www.wwwcomm.com/designs/webmax/leadTrackerUI.htm I am having trouble lining up the icons,input boxes and go buttons at the top. I cannot seem to vertically line up the elements. So far I have tried tables, dls, and lists. Could someone kindly make some suggestions?
  12. Thank you for your reply. Do you propose that I create a json object for every every javascript page? Or are you saying that I should perhaps setup some sort of ajax functionality to retrieve the data from the server?
  13. Hello, With PHP I've saved all my website settings in one file e.g 'baseUrl' => 'http://localhost/thisSite', 'resources' => '../Resources/', 'templates' => '../Resources/TPL/', This makes the site very portable. I simply make changes to this one file and I can move the site to any server. But I how can I do this with javascript and ajax? right now I am embedding all the absolute urls in the ajax calls. As the site grows it will become harder to move it around. How would you guys solve this issue? Many thanks in advance.
  14. hello, I am trying to experiment with page caching. I would like my page to be cached by the browser for 15 mins. Because the page content does not change much but it downloads thousands of the same records from the database every time the page loads. I am generating the following header: <meta http-equiv="Expires" content="Mon, 21 Sep 09 14:26:47 +0000" /> <meta http-equiv="Cache-control" content="private" /> with the following php code: gmdate(DATE_RFC822, (mktime() + 900)); I am also printing out the the current time on the page to check if the page is really being cached or not. echo date("H:i:s"); It is my understanding that the time would not update on the web page if the page is really being cached. Unfortunately it's not. Kindly help. Any advice would be appreciated.
  15. Hello, What is the proper way to escape user input before using it as a part of a query? I've always used mysql real escape with mysql. But don't see anything like that for mssql. The following is what plan on using. Is it sufficient? $input = str_replace("'", "''", $input); mssql_query (sprintf ("UPDATE Login SET user = '%s'", $input)); Any input would be helpful.
  16. Thank you. You are right. It should work fine. The function was getting called before the necessary file was included.
  17. Hello, When create a function called doA() inside of a.php and call it inside of a.php it works just fine. But if I include the file in b.php and call it inside doB() it does not work. Could some kindly explain the rules regarding the scope of a function? Thank you in advance.
  18. php_mssql.dll is not in the ext folder. And there is no reference to it in the php.ini file. I made xamp work with SQL SERVER before. Their php.ini did have a reference to it. But that is not the case with the PHP Installation I downloaded from php.net. I will look into the microsoft link you just sent me right now. Thank you for your prompt response.
  19. hello, I have PHP5.3 running on IIS6(finally). But how can I connect to SQL Server? I do not see a reference to php_mssql.dll in php.ini. I don't even see the php_mssql.dll file in the PHP installation folder!! How can I configure PHP to work with SQL server? I am willing to to downgrade to PHP5.2 if neccessary. Please Help.
  20. Hello, I am trying to install PHP on window server 2003(with IIS6) that has live ASP websites. I've downloaded VC9 x86 Thread Safe msi file from http://windows.php.net/download/ Could someone tell me the difference between the Thread Safe version and the Non Thread Safe version? Why have a version that is not thread safe? What kind of precautions should I take so I do not end up damaging the ASP installation? Many thanks in advance. I have always worked with PHP on LAMP servers never windows. So, any input will be highly appreciated.
  21. Hello, Please take a look at :http://artduffieldrealty.webmaxsites.com/ The site works fine in IE8 and FF3.5 But I am having trouble with the menu in IE7. I made the mistake of not testing the site in IE7 as I was putting it together. If you hover over a menu item, the drop down does not line up with the parent element in IE7. Has this happened to anyone before? (please use IE Tester if you do not have IE7 installed) Son of Suckerfish simply hides the drop down with left: -9999 and brings it back with left:auto; I know this method works fine in IE7. Did I screw up some padding or margin somewhere? I have spent substantial amount of time with this. But I am unable to figure it out. Please Please help. I am pasting the css file for navigation for your covenience: #nav { overflow: hidden; height: 30px; background-color: #CA0000; border-top: 3px solid #000; border-bottom: 3px solid #000; } #nav, #nav ul { /* all lists */ padding: 0; margin: 0; list-style: none; line-height: 1; } #nav a { display: block; width: 10em; text-decoration: none; font-size: 11px; } #nav li { /* all list items */ font-family: "Verdana Bold"; font-weight: bold; float: left; line-height: 30px; text-align: center; width: 80px; /* width needed or else Opera goes nuts */ } #nav li a { color: #FFF; margin:0; padding-left: 0px; padding-right: 0px; } #nav li li a,#nav li li li a{ color: #000; } #nav li li a { border-left: 1px solid #CA0000; border-right: 1px solid #CA0000; border-bottom: 1px solid #CA0000; border-top: 1px solid #CA0000; padding-left: 3px; } #nav li ul { /* second-level lists */ position: absolute; background: #EFEFEF; width: 115px; left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */ } #nav li ul :hover { background: #FFF; } #nav li ul li, #nav li ul li ul li{ /* second & third -level lists */ line-height: 15px; text-align: left; } #nav li ul ul { /* third-and-above-level lists */ margin: -1em 0 0 10em; } #nav li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul { left: -999em; } #nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul { /* lists nested under hovered list items */ left: auto; }
  22. hello, I am building a simple car enthusiast site. I would like to allow users to add as many cars to their profile as they would like. The easiest way to do this would be to create a form to takes in car info and posts back to itself, allowing the user to enter info about another car. However, this process will get completely screwed up if the user hits the back button. That will create duplicate entries. How do you guys build forms like this? Many thanks in advance.
×
×
  • 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.