
jd307
Members-
Posts
84 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
jd307's Achievements

Member (2/5)
0
Reputation
-
In your CSS, you have the background image on .middle set to MARGIN: -405px. As this is on all margins, I am wondering if IE7 is moving it up based on this. You may also want to try setting .middle to position: relative; See how this works out.
-
It looks like the browser has detected that you are changing a password. There is a possibility that the browser has stored the previous password, however it does not know which user is currently logged in to the site so as you are changing the password it is asking for which user this is for. As this is a browser based event, you cannot change this from happening really... plus the fact that the browser has this as a feature, trying to get around it means that users of your site who have this same browser feature will lose it... and your customers may like the feature. To try and change the way a web browser behaves would be a little like choosing Google Chrome and forcing all of your visitors to use Google Chrome to use your site. If you don't like the pop-up.. the best way to deal with it would be to see if the browser has a setting to turn this feature off.
-
The page that loads, put this into it's head: <script language="JavaScript" type="text/javascript"> <!-- function blankFrame() { parent.CHANGE_THIS_TO_THE_NAME_OF_THE_FRAME_TO_CHANGE.location="myBlankPage.htm"; } //--> </script> Of course, the big part that states to change it, type the name of the frame you want to blank out in there and rename the blank page to whatever your want it to be. Next, on the same page add this to the BODY: <body onload=”blankFrame()”> This isn't tested, so it may not work. But in theory when you load the specific page that needs to blank out another frame, that page should automatically change whatever is in the frame you select to the "blank" page. See how it goes.
-
Like already stated, you can write it either way. I prefer to write code the second method you have posted: function myfunc() { .... do something .... } This is because I feel that it is neater, clearer and the fact that I am notorious for writing large functions that have IF, ELSE, WHILE, FOR, FOREACH, etc. inside and find out that my code produces errors because I didn't close one of the parentheses. Written this way, I find it very easy to find out where I didn't close the parentheses and solve my problem. I have, however, seen many scripts (possibly more than not) written using the { at the end of the line of a function (e.g. function myfunc() { ....).
-
I am wondering if there is something within your "salt.php" script that does something? Try (for the sake of testing) adding this line just before $md5 = md5($salt.$pass);. $md5 = ""; I would expect if you do this that the problem should go away... of course this isn't the *solution*, but I'd be interested to know what happens.
-
Possible to strip incoming URL of sub domain and execute script?
jd307 replied to msaz87's topic in PHP Coding Help
You will probably need to use .htaccess to be able to do what you are asking for. RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.yourwebsite.com RewriteCond %{HTTP_HOST} ([^.]+)\.yourwebsite.com RewriteRule ^(.*)$ /path_to_your_site/httpdocs/work_out.php?url=%1 This *should* grab any subdomain (e.g. mysubdomain.yoruwebsite.com) and redirect to a page called work_out.php (e.g. www.yourwebsite.com/work_out.php?url= ***subdomain***). This way you can write a PHP script on the work_out.php page which redirects the user to www.yourwebsite.com/subdomain... for example. BUT... As your question poses, I suspect you are more interested in having subdomains that STAY that way... for example a user would navigate to: mysubdomain.yourwebsite.com. While at that site links would be: mysubdomain.yourwebsite.com/downloads, etc. so they consistently stay with the subdomain instead of to a folder based on the main domain... (I hope this makes sense cuz I'm confusing myself haha). In which case... RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ([a-z0-9-]+)/? http://$1.domain.com [R=301,NC,L] This I believe should do roughly what you want, but of course you need to replace "domain.com" with your domain in both occurances. Disclaimer: I have had similar interests with this kind of thing, though I have not done it yet... so when I found this post I did a bit of research into this and these are the .htaccess methods that I found that "claim" to do what you want. I have not tested them and I do not fully understand the code for .htaccess therefore I am only going by what I have read to be true and cannot really confirm what this does by reading it. -
Form is submiting get instead of post & My if sstatment is not working
jd307 replied to Jragon's topic in PHP Coding Help
And thank you for that info and link. Quite interesting... -
Form is submiting get instead of post & My if sstatment is not working
jd307 replied to Jragon's topic in PHP Coding Help
Hi Jragon! I have loaded your code onto my own server and the form is using POST for me. As for the IF statement, I am not an expert but I have never come across your use of the <<<ENDHTML before so I did a quick 'Google' for it and from my understanding it is primarily a Perl thing rather than PHP. From what I have seen though, the correct usage of <<<ENDHTML would be as so: <?php echo <<<ENDHTML; .... your HTML code .... ENDHTML; ?> But this doesn't seem to work for me when I tried it. Instead though, if you remove the ENDHTML part's and encapsulate the HTML code within single quotes (') the if statement seems to run nicely (but don't forget to escape the single quotes that you have in the text or you'll get errors). ----------- On another note: It may be an idea to place the form code within an ELSE statement at the end of your script. I only say this because at the moment, if a user is logged in they will see the upload, albums and profile links as well as seeing a login form. Sticking it into an ELSE statement would show one or the other. -
Because PHP is a server-side language, all it can do is serve a single piece of content. Once the client's browser has been sent the data, PHP no longer plays a role in what happens... basically meaning a timer in PHP (such as usleep) would only stop the server from processing scripts until the end of the counter and then resumes, which would only cause a delay on the browser receiving the HTML page. For your requirements, you would need something working on the client-side to control the rotation between the different content.
-
Right... if I understand correctly, you want something like: $text1 = 'This is my wonderful piece of text'; $text2 = 'This is my wonderful'; $output = str_replace($text2, "", $text1); echo $output; $output will therefore equal " piece of text", thus removing text 2 from text 1... so $output would be the "difference" I suppose. Is this what you are trying to do?
-
Could you give a sample of what the input of these text values may be? Is it you have something like: $text1 = "abcdefg"; $text2 = "abcd"; Therefore your output would be "efg" ?
-
AH yes I see... when I load a page with the same background it does load quicker. For what I mean about the background image.. it only really appears to be the one with the soldier that looks a bit wrong. I think it is because of the positioning of the face. I have made a JPG that shows the image in question and what I mean. GMServer Background Image As the image shows, when you scroll down, you rip the soldiers face off. But like I say, this is just my opinion.
-
The background image and the footer now position correctly and look good! Your logo still looks a little dimmer to me.. but maybe that is because of the width of the font used makes it appear that way. I understand your point about the page fonts though. Is the opacity of the text box still .85? It looks much better now and fonts are easier to read (IMO). Good job .
-
The design itself looks okay. I am liking your little men who look a bit confused . I would suggest redoing some of the images as they seem to have quite jagged edges. If you have access to Photoshop, you should be able to clean them up quite easily in Quick Mask Mode. I would suggest updating the logo too as it needs "tidying" a little. Oh, and it says iStockPhoto too on some images lol (sorry I had to ). The only other thing I would say is what is the website trying to achieve? I tried a few searches and everything that appears in the search results seems to be products rather than anything else (oh I found 1 job listing). My main concern is that it *looks* like it is a site that gives relevant links based on your search to products that come from about two websites. I guess you are an affiliate of these websites, therefore earn commission through people searching and clicking a link on your site. The main issue here is that if the same websites pop up again and again, users will see that there isn't much use for your site and will open the actual retailer website and search from there instead of coming back to you.
-
My resolution is 1440 x 900. Images do now span my entire screen. What are the file sizes of the images that you use as a background? I just did a speed test on my connection and am getting 3.49Mbit but takes on average of 4-6 seconds to load each background image. Also, as I mentioned before... having the background image on the header and the background, when you scroll (because the background is static) you get a sort of sheering effect which is most gruesome on the image of the soldier. I don't know what others think of this, but personally I don't like it. I would say though either try allowing the background image to scroll (so the sheering effect doesn't happen) or try setting the header DIV to transparent, so you see the background image through the DIV itself... experiment with a few ideas and see what works best... imo