-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zane
-
create a content div, with a width that you can divide equally into three parts (mathematically) using the widths of your data divs. Then for those data divs.. in CSS, give them the float left attribute
-
Help with regular expressions that include new lines
Zane replied to insomnomaniac's topic in Regex Help
use the multiline modifier in your regex pattern $pattern = "/XXX/m" the m is the modifier, it goes after the delimiters (the slashes) -
you shouldn't have to make an entirely new list of attributes for the spacebar like you're doing. The only difference between the spacebar and the rest of the anchor links is its width. I assume you want the spacebar to be 100% of the keyboard... with the padding and such too? something like this should work just fine #keyboard a { float:left; display:block; height:50px; width:51px; z-index:2; margin-left:4px; margin-top:4px; text-align:center; line-height:50px; border:solid black 1px; font-weight: bolder; color: #FFF; text-decoration: none; font-family: Arial, Helvetica, sans-serif; font-size: large; background-color:#999; /* for IE */ filter:alpha(opacity=90); /* CSS3 standard */ opacity:0.9; } #keyboard a#spacebar { width: 100%; } and if 100% width doesn't work, do the math and figure out the exact pixels.
-
put the spacebar CSS at the end
-
Why make the space bar a div? Why not just continue with your A markup? In other words, make the space bar the same as any other key ? Up Space
-
Can you post a screenshot (showing the problems) so we don't have to render this code ourselves
-
use this.href instead of self.href
-
Try this $yObj = "\n \n \n \n \n \n"; $yLink = preg_replace("#http://www.youtube.com/watch?v=([a-zA-Z0-9]+)&#", $yObj);
-
../business/sales
-
Cookies, because they stay on the client's computer; while Sessions stay on the server. They're both pretty much the same thing. Also, It's pretty common to store a Session key into a cookie, which is probably what you're wanting to accomplish.... well, at least I think it's common; it might not be. But, it seems pretty logical.
-
Actually, you might want to use cookies if you're worried about the internet connection going away. Because usually, if the internet connection is gone for a user, you might as well assume they closed their browser too.
-
That's why you pick a good title to start with..
-
The suggestion you're suggesting assumes that someone is going to re-write the SMF code. This forum is made by Simple Machines Why not take it up with them... make a mod request or something. Otherwise, say someone does make this modification; once SMF comes out with its next release, the mod will no longer work. At which point this place and its staff would have to keep up with another mod. Honestly though, I don't like the idea of a topic for every post. It seems like it would be confusing and it really doesn't make any sense when you can just have one topic for all of them.
-
I don't know what PMs you're talking about, but when a thread is moved it is for your best interest; not because of some nonexistent vendetta the person has against you. Like premiso insinuated, Grow up! There has been nothing done to you that hasn't been done to probably 80-90% of the forums active members
-
I have been a loyal member and I think...
Zane replied to phpSensei's topic in PHPFreaks.com Website Feedback
lmao -
this is what's known as a regex situation.. whereas you'd use the regex equivalent to str_replace; which is preg_replace $abstract = preg_replace('b|i>', 'strong>',$abstract); //
-
what's wrong with str_replace
-
Perhaps you have error_reporting set to the lowest.. or display errors is off is why My best guess.. a shot in the dark is that you're missing a semicolon on the statement above this one that you're showing us.
-
try commenting out that first parentheses
-
what's it not doing, I don't see any errors
-
Agreeing with everyone else's comments on the "funnies" posted about your site, I'm still very impressed with your site. My only nitpick/hatred about it is your About Me page. Automatically playing music upon pageload is so 1990's and soooo annoying. I literally closed the tab immediately, turned down my volume and went back to find the stop button. You're lucky I even went back to the page at all...
-
google "ajaxupload"
-
win ...and with their eyes closed.
-
All of the thumbnails need to be exactly the same height in order for them to line up the way you want. If that's not an option for you than you need to make the div the same height.
-
You need a crossover cable... I don't know what all this talk of a straight cable is. A crossover cable is a regular ethernet cable in which one of the end has the wires reversed. Well, not exactly reversed, but put into the "other" order. There are two orders. T586A T586B