Mahngiel
-
Posts
1,068 -
Joined
-
Last visited
Posts posted by Mahngiel
-
-
You can specify input types in CSS but a. I forget the exact syntax right now, b. I'm not sure what versions it's in.
@ a)
input[type=XXX] {}
@ b)
http://caniuse.com/#feat=input-placeholder
This has the most comprehensive list methinks
-
I mark posts as favorites and after refreshing the page it's all gone.
Sounds like you're not saving anything.
So I want to create my own solution, but don't really know how. I have never edited the WP database, but I have plenty of PHP mySQL experience.It shouldn't take anybody long to figure out the schema behind a database if you have any experience with mysql
What I would do is make a table called 'fav_posts' to connect user ID's with post ID, so it would have 2 rows. I suppose I could figure out adding posts. There would be a link with the current user ID and post ID somewhere in it. The link would trigger an ajax event which would create the new DB record or delete it if 'unfavorite' was clicked. Now the harder part would be getting the posts, somehow combining the new table with the WP query. I could create an empty page, and in page.php and add a condition to check if the current page is the favs page. But how do I output only the fav posts ?
Sounds like you're implementing a user bookmarking system. You need to prepare your articles with some sort of identification. I'd suggest adding the post's id to the element that contains the post body. This will give your javascript something to find. Your backend script will catch that ID, ensure the user is logged in, and input an entry with the user's ID and the aforementioned post ID. Then, when the user requests his 'bookmarks', you query the table for matches on the user ID and retrieve all posts associated with post IDs.
-
Background image isnt resizable, and in my case trick works based on browser size
background images ARE resizeable in CSS. What the OP seems to need is background-size: cover;
-
I'm pretty certain the set_value only works if there's a validation rule for the field.
On a side-note: why do you wrap your form inputs in a div with a non-contained string? You should use a label instead.
-
We're all pulling teeth and grasping at straws here. Either OP explains what is really going on or we're just spinning our wheels.
-
Yea, I trust ya...
We're pirates who cares ^^
-
I guess making a logs table will be a good idea, I can always just prune old ones after xx amount of time
if the data is THAT insignificant, you could always create a flatfile
-
So you have an open-source game on YOUR webserver. Where you have access to THE DATABASE. You want to create a bot that does some stuff so that you can gain... resources?!
Run this in phpmyadmin:
UPDATE players SET gold = gold + 99999999, iron = iron + 99999999, .. WHERE id = your-id
Refresh the page (or logout/login) and voila 99M gold, iron, ..
I am Mahn for president, and I approve this message!
-
if this game is your own, you should have a working knowledge of the language you're using to write the game. if you don't know what you're doing in order to write this application, I suggest you start with an easier task.
-
is there a bit help for that?
(I haven't used cURL yet)
give it a try and let us know how it works out. we'll be here if you have issues.
-
put it outside the web path.
-
that's not a question. that's a statement. we don't write code for you, we help you with problems you have. so far, the only problem you have is using outdated code - to wit Pikachu tried to help you solve.
-
rofl. you're cute
you never defined a question, just posted some code you lifted off an antiquated source. what do you want from us?
-
what are you trying to post? if it's another image, you can use $_FILES['name'] instead.
-
are you applying the height with CSS or table properties? Are you certain there aren't any overriding properties?
-
Not sure if spam or necro...
-
I approve... but dislike ...
Pun @ ambiguity.
Mahn for president \\o//
Today is voting day here... i'm in the spirit.
-
Oh come on, don't use the T-word man.
Mahn for president \\o//
-
I disagree with your disagreement! So there!!!
I approve of your disagreements, but dislike your trolling.
-
You can't (to my knowledge) fetch a Flash file with PHP in a way that makes it not possible to download.
Else uTube would have done this 5 years ago
-
Is there any correlation between the events in other rooms with each other? What is the entire scope of the project? You haven't given us more to work with than a vague abstract.
The first stage should be to plan everything out. Think about what you want to accomplish in it's entirety, and then plan how to get there.
-
The navigation's focus properties are terribly distracting.
-
you should be using round. it will make your like a shit ton easier.
$differential = round( ($totalScore - $courseRating) * 113 / $courseSlope, 1)
-
Something along the lines of X people agree with this post.
A question we should be having is what to call such accolades? Likes? Kudos? Approvals (think "I am Mahn for president, and I approve this post!" )? Thanks?
Some contextual examples:
"8 people like this post."
"3 people approve this."
"This post has had 31 kudos."
"14 users said Thanks".
"2 users accept this solution / answer."
Philip's Status after Vacation
in Miscellaneous
Posted
Where's the option for "voluntarily eaten by a bear to avoid headache of converting boards to IPB"