-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
so why not use the same code and use an image instead of text? Anyways... in order to mimic that with a form without changing anything in add_cart.php, the code would look something like this: echo <<<FORMENT <form name="someform" action="add_cart.php" method="get"> <input type="hidden" name="pid" value="{$row1['item_id']}" /> <input type="submit" value="Add to Cart" /> </form> FORMENT;
-
sooo... why can't your "settings" file be a regular php file to be included, and the variable can be set like a normal variable? config.php $someVar = "blah"; file.php include('config.php'); echo $someVar;
-
sounds like you need to make the clearInterval() call whenever the ajax call is made, or else in your ajax callback function. But it's kind of hard to give more specific advice without seeing any code or a link to it in action or something...
-
The better to eat you with my dear
-
Help in Jquery form serialize result into php variable!! please
.josh replied to emeralddragon's topic in Javascript Help
you need to actually submit the form so that it makes a request to your php script and go from there, grabbing the form vars from the $_GET or $_POST array (depending on which method your form is). Alternatively, if you are not wanting to actually submit the form (doing a full page (re)load), you will need to do an AJAX call, which you can use with jquery's $.get() or $.post() method. This will also make a request to your php script and you will also grab the vars from the same get or post array, but it won't (re)load your page. -
Bit of advice I've given countless times: find a community (like this one) and start trying to answer the questions other people post. Pick a post, read it, research it, come up with a solution. Read other solutions presented. Ask how/why they work, etc... wash, rinse and repeat. There is no better teacher than experience.
-
Everything pretty much revolves around the motherboard first and the power box next. It's like a jigsaw puzzle, you read the tech specs about xyz item and see what kind of connection it uses, how much power it requires, and make sure the mobo has that connection and your power supply can handle it. Beyond that...fortunately these days most things are plug n'play or close enough that it's hard to go wrong in finding something that just doesn't work at all. If all is said and done and it doesn't fit in the case...not a big deal, cases are relatively cheap, assuming you're not going for some kind of custom casing (think alienware), and depending on what/where you buy, you can always return for a bigger one.
-
Absolute least possible power consuming solution
.josh replied to king.oslo's topic in Miscellaneous
lol...have to ask...why? -
Homepage by itself as a first impression looks good. I like the font and the main picture and IMO the minimalistic styling helps accent the picture and font and that works. But then I'm wondering.... "An Invitation" : I can almost see this as being the equivalent of an About Us type page, but it also looks like a statement of services. IMO it is short enough (and can be shortened a little more) to be combined with the Homepage, with the main picture being a bg pic. IMO I would slice up the pic to have the table etc.. be alpha'd down to around 33% and have the "An Invitation" text on that left side, whith the flowers on the right with more alpha/more clear. Kinda how the pic already is now (I can see there is less focus on the table in the pic to begin with), but lower the alpha and add the "An Invitation" text to make the overall "Homepage" be a fancier "Invitation". "Tea Party" and "Workshops" pages...I'm having trouble figuring out why these deserve their own sections....they are both very short and 100% text. Are you planning on expanding them in the future? IMO this should be combined into a single "Events" category. Also...your actual styling is somewhat minimalistic, which works great for accenting "fancy" text and pictures but for pages like this...makes them look somewhat bland. Might consider throwing in some kind of pic somehow as a bg or maybe if you DO combine them, the "fancy" font headers with the section (which would be "Tea Party" and "Workshops" might help. Gallery page...the ever-present "receive a telegram" bar at the bottom works for the shorter pages where there is some space between it and the main content container. For longer pages that end up going under it...make me think that the "receive a telegram" is an annoying slide-out ad-bar. I would suggest keeping a space between the main content and that "receive a telegram" bar and add "scrolling" to the main content container for longer pages. But not a standard scrollbar. IMO the design feels better without scrolling, so it would be better if for example on the gallery page, make the pictures shown individually with right and left buttons to slide a new picture in the front, like a rotator script, something like this (in principle, restyle to fit your theme, of course). "Say Hello" (contact us) page...form fields bleeding over the right side of your container...is that on purpose? Because the way it looks now (IMO) looks more like broken code than a "style". I would suggest removing the picture and put the whole form back in the main container....which I know I just bitched about lack of pictures but contact us pages are usually exceptions to design and should be as clear and simple as possible. The ever-present "receive a telegram" bar at the bottom... I don't like how the email address input field is taller than the submit button or how both of them are bigger, clunkier and less "elegant" than the actual "receive a telegram" font. None of that seems to mesh well together, like it's all clunky and mis-aligned. I would at least make the input field and submit button the same height and align them horizontally with the "receive a telegram" text. I would also right-align the whole thing instead of having it be in the weird slightly off-center position you have it at... either make the right edge of the submit line up with the right edge of the content container or else make it all the way to the right of the browser window (after all, it IS in it's own "slideup" div, kind of separate from the rest of the content). If you are feeling extra froggy, make the form field default value (that "email address" text) disappear on field focus, and change the style of the text field and submit button to fit the colors / theme of the rest of your site more. [attachment deleted by admin]
-
I don't understand why you keep trying to compare the phpfreaks community with the "facebook" community. I don't understand why you seem to have this mentality that the future of the web is facebook and phpfreaks is going to wither away into nothingness if it doesn't follow suit. Facebook, or more accurately, the concept of a social networking site in general, is popular, yes. There is no argument against that. But that doesn't mean it's the only thing out there, the only way to go. It's like I'm watching some band nerd look over at the cool-kids' table in envy and thinking how fail he is because he's not over there with them, and instead of being true to himself and forging his own path, doing what HE does best, he tries to change his clothes and put on a fake smile and join their party. Thing is, he's going to inevitably bust out his horn and start tooting because that is who he is, and people are going to point and laugh or shun or if you're lucky just ignore you and you've just spent a lot of time and effort only to be back at square one, or worse. I most certainly agree that things have been collecting dust. And I am most certainly open for changing things up, trying new things, sailing new waters. But you need to understand and more importantly accept that phpfreaks is a support community, not a social community. Trying to turn this place into another facebook is going to make things worse than just leaving it stagnant. I'm not saying that we shouldn't have any social aspects. In fact, I encourage that we do. I enjoy shooting the shit on irc with the other regulars or taking part in the more "social" threads. But the core is that we are all here to give and receive technical support, not update our statuses. As others have mentioned already, look at other support communities for guidance and inspiration, not social communities. For example, I think Stack Overload has some shortcomings (nobody is perfect) but they do an amazing job at encouraging user interaction. They have ads that gradually decrease the more you interact. Or look at their format and system in general, how questions and answers are voted up or down to increase/decrease visibility. Look at things like that for inspiration, make places like SO the "cool kid" to pine after, not facebook, because that is what phpfreaks is.
-
In my original post, I gave you an immediate answer and a reason why. I then gave you a complete working example solution, explaining how it works, even heavily commenting in the code. This is more than most people would get out of a free service. I walked you to the toilet and unzipped your fly for you, what more do you want me to do, hold your dick while you pee? If you can't figure it out from there, my best suggestion at this point would be for you to hire someone to do it for you.
-
allowing arbitrary data to be sent and executed as php? Yes, terrible idea. Sending data that is validated/filtered and then processed? No different than receiving/processing any other user input... IOW, always treat AJAX data as user input and validate/filter accordingly.
-
because some servers don't like you being aggressive with them? Kinda like the difference between a request and a demand...
-
Hover-over ads for dog food? Really?
.josh replied to ManiacDan's topic in PHPFreaks.com Website Feedback
p.s. - Reason I say to give the finger about what the ads are...I mean come on people, don't lie, how often do you actually click on "relevant" ads anyway? If anything, "non-relevant" ads make it easier to distinguish ads from site content, translation, easier for you to auto-tune-out. -
In that script there are some preg_replace_callback(...) calls, change all the ([\s>]) to (["\'\s>])
-
Hover-over ads for dog food? Really?
.josh replied to ManiacDan's topic in PHPFreaks.com Website Feedback
Overall I totally agree with Tom's last paragraph. I see an awful lot of bitching and not a whole lot of "try this..." going on. TBH I don't even really care what the ads are for. Maybe I happen to be a dog owner and I get a free coupon out of going to some site. Who knows? My main issue is just UX. Gimme ads to mail order Russian brides for all I care, as long as I can still read the content. But...when I am reading a post and see a link to the word "file" or something, I expect to see a manual entry about a php function, not something about filing my taxes... to get something like that IMO actually hurts people trying to help/get help. IMO you should experiment with the placement, try to find something that doesn't hurt UX, and give people the finger as far as what the ads actually are. -
look at sticky in this forum
-
If you insist on keeping with the regex route, pattern would be: $pricecheckpattern ="#^[0-9]+$#"; (you also forgot to specify end of line anchor)
-
Hover-over ads for dog food? Really?
.josh replied to ManiacDan's topic in PHPFreaks.com Website Feedback
Again, sorry ManiacDan, I misread your post. Okay after clearing my cookies, cache etc.. and logging out, I do see them now. -
Hover-over ads for dog food? Really?
.josh replied to ManiacDan's topic in PHPFreaks.com Website Feedback
hmm.. I misread his post. I thought he was saying he was here to GET advice. Yes I do agree that if you are here contributing then you do have a right to bitch about stuff like that..to an extent. This IS still a free site.... ...and I dunno why I don't see any of them. I don't see them even when logged out. -
Hover-over ads for dog food? Really?
.josh replied to ManiacDan's topic in PHPFreaks.com Website Feedback
I don't see the text links like you described, even when logged out (even refreshing until I see the same message). My guess is someone was experimenting with it and then ditched it, maybe even for the same reason(s) you listed. But anyways... As a web developer, you should know how the ad scripts work, at least, in principle. They are 3rd party scripts, and places that implement them have little or no control over what ads are displayed. And you can make donations. Please refer to the have you been helped here sticky in this forum. You can even donate specifically through the forum, doing a paid subscription, and it will remove the ads altogether. Go to your profile and click on the Actions > "paid subscriptions" link in the left menu. But as far as ads in general... even if it was littered with "irrelevant" ads...so what? You come to a free site looking for a free service, so you will get what you "pay" for. You are only "allowed" to expect things and make "demands/threats/etc..." if you are actually giving something in return. Bitching about something like this on a site like this is...like a bum who goes to the homeless shelters asking for handouts and then getting all pissy if he doesn't like the food he is served, or the coat he was given for free has a few wear and tears or doesn't match the other free clothes he was given. As a professional web developer, you should understand all this. If you want quality service in a certain format...you have to pay for it. You claim you are a professional web developer, but all I see is someone who decided to give it a go and slapped a title on himself, but has little or no actual experience in that world. Here is some advice to you: Instead of bitching and making "threats" to leave... just say thank you when/if you actually get some help. If that is not good enough for you, then buck up and stop hitting up food banks and go to a real grocery store. p.s. - I too hate text ads like that. On a technical site I'd rather have all text links be pointing to manual entries etc... but again, free site, get what you pay for, blahblah. -
changing javascript global variable inside function..
.josh replied to kirkh34's topic in Javascript Help
are you sure it's the variable? There's no reason the variable shouldn't be incremented. I think the more likely problem is that the condition fails or the function fails to be called. put an alert(price) into your function, outside of the condition. If it fails to alert, your function is failing to be called. If it does alert, put the alert inside your condition. If it fails to be called, your condition is failing. -
You cannot access/manipulate elements/DOM in the iframe page with javascript unless it is hosted and served on the same domain as the parent page.
-
As far as the huge discrepancy in numbers...not gonna outright point fingers because I don't know nor have access to verify anything buuuut...wouldn't be the first time I've seen/heard of people flubbing numbers to puff up their image. However, I do know that at one point in time it did use have a fair amount of members but due to some mishaps, the site pretty much went dead and got redirected to a forum here for a couple years, and was recently rezzed. Those numbers could possibly be old stats.
-
Yes. I can't speak one way or the other whether it is "awesome" but the owner of this site also owns that company.