Jump to content

Riparian

Members
  • Posts

    168
  • Joined

  • Last visited

Everything posted by Riparian

  1. Hi . I have a very old and large site (mostly written with the help of phpfreaks !). I am now told by google that the site will display an "insecure get me out of here" type message if I do not secure the personal info (more than fair) I do not want to secure the whole site as I will lose 10 years of seo because, as I believe, google sees the secure site as a completely different site to the http site... not to mention the duplicate content issues have used this code that seem to work fine BUT when I leave the secure page the https stays for the whole site. # rewrite individual pages to https RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^login\.php$ https://www.test.com.au/login.php [L,R=301] RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^checkout\.php$ https://www.test.com.au/checkout.php [L,R=301] Any help is greatly appreciated Cheers and thanks
  2. Thank you mac_gyver php used to be the program for dummies.... not any more .. the days of a hack knocking up a site with more than just a few pics on it are quickly disappearing ! Time for a full re-write by a professional me thinks. Cheers
  3. Hello again and thank you for the code fix... I also get this error Notice: Undefined index: logout in ....... How would this one be addressed ? Cheers
  4. Hello requinix Thank you for the reply... hmmm better go buy some more coffee ! Cheers
  5. 10 years ago I wrote a large site without declaring the variables which was no problem at the time. For the last few years it has been the head-in-the-sand approach but now I have to make it right. There are thousands of these that kick out errors with register globals depreciated and this will eventually stop the site from working all together. Does anyone know of a simple or expedient way approach this problem ? Any help is greatly appreciated Cheers
  6. Scenario : I would like to open the main program window and at the same time, if a condition is met, open a second - popup window to alert the user of previous information stored in the database. This is an easy exercise if I use a hyperlink to open th second (popup) window but this is not the process required . Can someone point me in the right direction ? Cheers and thanks
  7. can someone tell me how to implement rel=next / prev in html form with POST and GET e.g is this correct ?? <input name="xxx" rel="next" value="next"> cheers and thanks
  8. Scenario I leave a page with e.g. <a href"somepage.php?counter=10">go</a> I return to the original page with header("location: somepage.php#10") I use the #value to jump to a position on the page. Problem: The #10 then attaches itself to every (not even related) hyperlink on the page. Clicking any one of hyperlinks makes it jump to the old position on the page. does not work in chrome,ff,safari... ie not a probem Any help is greatly appreciated
  9. Thank you for the reply. Unfortunately this did not do the trick. The result was that it showed the 2nd (rolled over) image only with no message being displayed. Have I missed something. This is the actual code : <a href="expand.php?model=<?=$row[model_number]?>&page=<?=$page?>&prime=<?=$row[prime]?>" target="popup" onclick="msgopen('expand.php?model=<?=$row[model_number]?>&page=<?=$page?>&prime=<?=$row[prime]?>', 'popup', 900, 600); return false;" /> <img src="<?=$pic_name?>" name="<?=$row[model_number]?>" height="<?=$height?>" width="<?=$width?>" onMouseOver=" this.src='<?=$pic2name?>'; return escape('Image is of Parent Stock Only');" onMouseOut="this.src='<?=$pic_name?>';"><br /> </a> Any clues ?
  10. try this... worth a try (the commas always mess me up.) $query = "SELECT * FROM a_playerRank WHERE CONCAT(nameFirst,' ',nameLast) = '$slug' ";
  11. Hope this helps <?php switch($_POST[tintensity]) { case 'weak': $stormIntensity = "#9C3"; break; case 'moderate': $stormIntensity = "#09F"; break; case 'strong': $stormIntensity = "#F60"; break; case 'severe': $stormIntensity = "#F00"; break; default : $stormIntensity = ''; break; } ?> <table> <tr> <td style='background-color: <?=$stormIntensity?>; color: #FFF; border: 1px #666 solid; text-align: center; font-size: .9em;'>Storm intensity color Background</td> </tr> </table> <br /> enter weak, moderate, strong, severe<br /> <br /> <form name="colorshow" method="post"> <input type="text" name="tintensity"/> <input type="submit" name="go" value="Submit"/> </form>
  12. Sorry if this is the wrong place as it is 50/50 javascript and php I am trying to mouseover an image and swap the image but if the 2nd image is not the primary model then display the image and a message to that extent. This is what I have tried (with many variations) but cant get it to work . $pic_name = original image $pic2name = swapped image <a href=" my file..." target="popup" onclick="msgopen('my file ...'); return false;" /> <img src="<?=$pic_name?>" name="<?=$counter?>" onMouseOver=" document.<?=$counter?>.src='<?=$pic2name ?>'"; return escape('Image is of Parent Stock Only') ; onMouseOut="document.<?=$counter?>.src='<?=$pic_name?>';"> </a> There are many images on the screen hence the name="<?=$counter?>" Any help is greatly appreciated
  13. I have a huge google problem with duplicate content for a page that re-loads and paginates with multiple variables that they see as duplicate content but without a total re-write I do not know how to get around this so am seeking some advise
  14. Hi I need help with the canonical tag and am wondering if it is appropriate and if so where to post a question. Cheers and thanks
  15. Thank you ... the advice is appreciated. There is just one more problem I have to sort out... the renaming kills my popup info windows... I have tried multiple scripts but they all open a new _blank window rather than a popup. Any ideas ?
  16. Does anyone know if a call to another program e.g. require_once('session.php'); should be changed to require_once('session');as well or just the form actions and and hrefs ? Cheers
  17. Just a suggestion and may be way off the mark but what if you were to load all the questions into a session array once per game while(.....){ $_SESSION[QUESTIONS][$id]=$question; } randomly select one question from the array $Quiz=$_SESSION[QUESTIONS][rand(0,sizeof($_SESSION[QUESTIONS])-1)]; remove it from the array unset($_SESSION[QUESTIONS][array_search($questionIDNumber , $_SESSION[QUESTIONS])]); The syntax might be wrong... just a thought... cheers
  18. Thank you Kicken for the reply Am I correct in saying that effectively the $_SERVER[php_SELF] is obsolete if I am to hide the php extension ? Cheers
  19. Hello Scenario I wish to hide the php extension and there is plenty of code on the net to handle this. I think this one would do the job and it work fine except for the instance below. Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / ## hide .php extension # To externally redirect /dir/foo.php to /dir/foo RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC] RewriteRule ^ %1 [R,L,NC] ## To internally redirect /dir/foo to /dir/foo.php RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^ %{REQUEST_URI}.php [L] The problem When I submit the form and re-load a page I use a named anchor to jump to the required point on the page. With the above code in place nothing happens at all , no form submission, no jumping to the correct page position... nothing except the page reloads. This is the form action example <form name="formName" method="post" action="<?=htmlentities($_SERVER['PHP_SELF'])?>#AnchorName" style="display: inline; margin: 0;"> I have very little knowledge in this area .... Any help is greatly appreciated.
  20. Thank you Zane and Pravins..... much appreciated.
  21. Hi. Can someone give me a definitive answer to this question is this valid code in all browsers (or the majors anyway) to submit a form <input name="Process1" type="image" src="img/progress.png" /> A few years ago I had troubles with this method so I am wondering if it is acceptable now. Cheers and thanks
  22. For anyone interested I have found a fantastically simple and effective banner rotater. It uses a whole 3Kb and took all of two minutes to get running. http://simplythebest.net/scripts/DHTML_scripts/javascripts/javascript_131.html Cheers
  23. Thanks for the reply Kevin Recent ones are responsiveslides and nivo slider and although they are good they still need up to 91 kb and 30kb of js scripts to run them. Not huge but I think the front page speed is escential. I dont know whether the sides themselves add to this but I would guess so, so 3x60kb 180kb +120kb and it is getting up there. My images are reduced to the max but unfortunatly they are necessary for the site (ausspecs com au) If you know a better way I would be most greatful. Cheers
  24. Hi. I am after some advice please. A number of times I have tried different slideshow javascripts from the web to change the main image on my site. They all require considerable load times. I was considering a simple reload of the page after 3 seconds and each time a new image (one of say... 3 images at 65kb each) would show Does anyone see a downside in this method ? Cheers
×
×
  • 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.