I personally used list tags to organize the input elements, but you can use <br> or CSS or even just the return key or whatever to format it how you want. Also, more officially speaking, you're supposed to use the <fieldset> tag to indicate that certain input elements are related. So say we have:
<form>
<fieldset>
I am inside a form's fieldset!
<ul>
<li>Input1 <input type="text" /></li>
<li>Input2 <input type="text" /></li>
</ul>
<input type="submit" />
</fieldset>
</form>
Our new output is:
Hopefully I'm not going too fast. You can play around with the value attribute if you wish to change what's written in the input things by default. Use the placeholder attribute to make it have that ghosty effect (I don't know how to describe it). If you want that funny little thing written into the border you use the <legend> tag:
<form>
<fieldset>
<legend> I AM LEGEND! </legend>
I am inside a form's fieldset!
<ul>
<li>Input1 <input type="text" value="Sample text" /></li>
<li>Input2 <input type="text" placeholder="I am a ghost!" /></li>
</ul>
<input type="submit" value="Submit Me!"/>
</fieldset>
</form>
This took quite a while to write, so that's all I feel like doing for now. If you want the form to actually submit stuff, I can write about that later, I guess. But it's more complicated and requires more effort.
I follow you. Thanks for taking the time to pull that apart for me. I've got a lot of thinking and reading up to do now to see what I can do with this.
I ask mostly because I've been trying to find ways to integrate more javascript into the site because I've got enough HTML and CSS down that I'm proficient with those for design stuff--but not the more technical/functional things like forms since I never realized that those were even possible to use on this site. I guess I just assumed they would just show up as text like script tags do.
But, now I'm thinking that there would be a lot of ways to use forms to let users interact with pages, eg selecting a section you want to read from a drop down menu or something. Lots of possibilities!
Oh, I see. I understand. It's so annoying that the script tags are disabled; I don't like defining and using every JavaScript command through event attributes.
Yeah, I love the things you can do with forms. :3 After I learn more PHP I plan to start using forms and whatnot more correctly.
I don't like defining and using every JavaScript command through event attributes.
Me either but haven't been able to get it to work any other way. I can't get onload to work as an event either, which is further limiting. So far most of us are just at the point where we're using JS to change property values in style attributes for clicking / hovering and stuff.
Then I'm doing something wrong...
back to my test blog to check on that
Edit: Hope you don't mind me looking into your page source here to see what you're doing. You made a new body tag (I hadn't tried that) in the first post with no inner HTML and it looks like you're using that to affect the comments but my JS is not advanced enough to take apart what it's doing.
BUT now that I know I can use onload, this opens up a lot of possibilities, thank you! You are super helpful and you have no idea how much I appreciate this.
Testing out the comments, so this may not come out correctly.
Um, one way to do it is to do (if I'm not making any mistakes):
<body onload="document.getElementsByTagName('h2')[4].innerHTML = 'Access denied'; document.getElementsByClassName('node')[0].parentNode.innerHTML = 'You are not authorized to access this page.';"></body>
With this method, you just find the corresponding elements using JavaScript and replace their content. I forgot what I was doing specifically at the time you commented, though. None of my scripts are ready to be released yet, so there is little support for them right now.
I was wondering about the access denied as well and how you were doing it. I thought maybe you'd found some way to make it think I was logged out or something (and I totally fell for it and thought there was something wrong with the site) but the manual change of the title and node content is still good. It's a great practical joke.
Thanks…? I'll take that as a compliment. I have a script that is more complete (and less of a practical joke), but it's kind of sloppy and I don't like sloppy code. Plus, I'm not quite sure that the timing is quite right for me to be releasing stuff right now.
Oh haha. I read your comment again and it made more sense that way the second time. But yes, a sort of "private" type of blog was what I was going for in my script.
I hope you don't mind me asking this but are you able to hide and edit all the comments? I believe it would be really useful if you wouldn't mind sharing that secret.
I hope you don't mind me asking this but are you able to hide and edit all the comments? I believe it would be really useful if you wouldn't mind sharing that secret.
I don't mind at all, but under what capacity/contexts, exactly, are you asking? Unplugged and Alison released the whole Comment Visibility Toggle thing a while back. That blog post has code for links that act as buttons which allow the user to switch on/off the visibility of comments. If you just want the comments hidden by default (and no toggling), you can just use CSS: <style>#comments { display: none; }</style>.
I can't edit another person's comment, no. The comments are stored wherever on a server, and I don't have access to them. The only way, I think, would be to alter how the comment appears, but in my opinion that would not be a true solution and could possibly be considered immoral depending on what's done and how it's done.
If I'm not anywhere in the ballpark of answering your question, feel free to leave more details of what you would like to do.
Thank you.
Yeah, I know, I haven't been looking into it but they most likely are stored and appear as they are stored in the source code or if one were to use an outdated browser. I do not intend to use this to do any bad stuff, but being able to hide few certain comments would be awesome. I have had some people comment on a blog I hadn't wanted to be commented on and I think it will be pretty alright with them if I'll hide their comments. I'm not sure but I saw that some comments here have been hidden by you? Just wondering if you know how to do that.
Well, I believe most of the content is kept separate from each other. When someone comes to a page, the server dynamically generates the client's source code using PHP. That's why each time you reload the page, there is a new list of online users and such (and possibly why it takes so long for certain things [e.g., the search function] to complete). How it could appear in the server's source code could be something like:
<div id="comments">
<a id="comment-1094873"></a>
<div class="comment comment-published odd">
<div class="clear-block">
<span class="submitted">July 24, 2014 - 3:58am — <a href="/community/gmsuerte">GMSuerte</a></span>
<div class="picture">
<a href="/community/gmsuerte" title="View user profile."><img src="http://endlessforest.org/community/files/pictures2/picture-30519.gif" alt="GMSuerte's picture" title="GMSuerte's picture" /></a></div>
<h3><a href="/community/node/94825#comment-1094873" class="active">If I am a poodle, then you</a></h3>
<div class="content">
If I am a poodle, then you are a noodle. <div class="clear-block">
<div>—</div>
<img data-lol><div style="text-align:center">Dummy text.<span style="font-weight:bold">Purposely misaligned tag.</div></span> </div>
</div>
</div>
<div class="links"><ul class="links"><li class="comment_edit first"><a href="/community/comment/edit/1094873">edit</a></li>
<li class="comment_reply last"><a href="/community/comment/reply/94825/1094873">reply</a></li>
</ul></div>
</div>
⋮
etc. for each comment.
⋮
</div>
This is most apparent when you use BBCode, such as:[center]Text.[/center]. When you submit, it will produce: <div style="text-align:center">Text.</div> in your page source, and you won't see exactly what you wrote until you go to edit it. That's why I can't change someone else's comment in a useful way (only on a superficial level), because where it's stored is not where I can access.
Onto your actual question, for some reason I thought you meant something more serious (such as the intense editing of peoples' comments). xD Yeah, I've been playing around with CSS like I always do, but I guess I never took it out? No biggie. If you want to hide a single comment, you find the id/number of the comment by either looking into the page source (such as from above, the "<a id="comment-1094873"></a>" part) or by looking at the reply link and grabbing the number at the end. For example, oh gosh I'm still hiding the replies, aren't I? For example, the reply link to the first comment is "/community/comment/reply/94825/1094873". The last number, "1094873", identifies the comment. If I wanted to hide it, I would do <style>#comment-1094873 + .comment {display: none;}</style> and repeat until I have hidden all the comments I wish to hide.
Ah no I don't really think I'd ever want to edit someone's comments...
But that hide thing is wickedly cool now that I got it to work! Thank you very much for it, you really got skillz. I was wondering if you could do biography coding on request or in exchange for something?
:3 You're welcome. I guess I could consider doing coding for a biography, as long as I'm given the design/layout or if you can describe it really well for me. Although, perhaps, I dunno if you'd really like the way I code.
Or maybe would you be able to lend me a couple of codes, too, please? I saw a biography you coded once, it was pretty neat and it had functions I may never have seen before here.
Oh thanks. I'm still testing a lot of my stuff and some things don't work 100% of the time, so I don't feel comfortable giving them out. You're welcome to use anything I release publicly in the future, however.
If I am a poodle, then you
The current time is 1:43PM on 10/4/2014. The time shown is 1:24PM on 10/4/2014. The current offset is thus approximately 19 minutes.
Hello, I am a comment.
(No subject)
I am a doodle if you are a
Reply, reply, reply.
8------ )
Holy crap. How did you get
How did you get forms and a button into the thread?
My mind is blown here, could you walk me through it?
Oh my gosh, new visitors! How
Oh my gosh, new visitors! How exciting!
All you have to do is use the corresponding HTML elements:
Of course, you'll probably want to put it all into one line (cuz of the way these blogs mess with the formatting) and do something like this:
<form> Sample input <input type="text" /> <input type="submit" /> </form>
This will generate:
I personally used list tags to organize the input elements, but you can use
<br>
or CSS or even just the return key or whatever to format it how you want. Also, more officially speaking, you're supposed to use the<fieldset>
tag to indicate that certain input elements are related. So say we have:Our new output is:
Hopefully I'm not going too fast. You can play around with the
value
attribute if you wish to change what's written in the input things by default. Use theplaceholder
attribute to make it have that ghosty effect (I don't know how to describe it). If you want that funny little thing written into the border you use the<legend>
tag:This took quite a while to write, so that's all I feel like doing for now. If you want the form to actually submit stuff, I can write about that later, I guess. But it's more complicated and requires more effort.
I follow you. Thanks for
I ask mostly because I've been trying to find ways to integrate more javascript into the site because I've got enough HTML and CSS down that I'm proficient with those for design stuff--but not the more technical/functional things like forms since I never realized that those were even possible to use on this site. I guess I just assumed they would just show up as text like script tags do.
But, now I'm thinking that there would be a lot of ways to use forms to let users interact with pages, eg selecting a section you want to read from a drop down menu or something. Lots of possibilities!
You is welcome. :3 Oh, I
You is welcome. :3
Oh, I see. I understand. It's so annoying that the script tags are disabled; I don't like defining and using every JavaScript command through event attributes.
Yeah, I love the things you can do with forms. :3 After I learn more PHP I plan to start using forms and whatnot more correctly.
Quote:I don't like defining
Whaaa? I can get onload to
Whaaa? I can get
onload
to work just fine. In fact, that attribute is my primary method of implementing JavaScript on this site.Then I'm doing something
back to my test blog to check on that
Edit: Hope you don't mind me looking into your page source here to see what you're doing. You made a new body tag (I hadn't tried that) in the first post with no inner HTML and it looks like you're using that to affect the comments but my JS is not advanced enough to take apart what it's doing.
BUT now that I know I can use onload, this opens up a lot of possibilities, thank you! You are super helpful and you have no idea how much I appreciate this.
You're welcome! Sorry I
You're welcome! Sorry I didn't outright say what I do. I forgot to. >.> Anyway, good luck with your coding!
Oh hot reservoir, This is my
This is my jelly.
i'm just going to track this
Thanks!
Thanks!
Don't mind me, this is
If I had a noodle, I would
I wonder how do you do that.
[[I hope it's all right that I step in here now that the access is denided? XD]]
Testing out the comments, so
Testing out the comments, so this may not come out correctly.
Um, one way to do it is to do (if I'm not making any mistakes):
<body onload="document.getElementsByTagName('h2')[4].innerHTML = 'Access denied'; document.getElementsByClassName('node')[0].parentNode.innerHTML = 'You are not authorized to access this page.';"></body>
With this method, you just find the corresponding elements using JavaScript and replace their content. I forgot what I was doing specifically at the time you commented, though. None of my scripts are ready to be released yet, so there is little support for them right now.
I was wondering about the
Thanks…? I'll take
Thanks…? I'll take that as a compliment. I have a script that is more complete (and less of a
), but it's kind of sloppy and I don't like sloppy code. Plus, I'm not quite sure that the timing is quite right for me to be releasing stuff right now.It was meant as a compliment.
Outside of a joke I imagine it's very useful to have up when editing secretive stuff.
Oh haha. I read your comment
Oh haha. I read your comment again and it made more sense that way the second time. But yes, a sort of "private" type of blog was what I was going for in my script.
How many times do I have to
Yeah, I don't think so.
Is this happening at the
Monday, January 19, 2015 - 4:14pm
Woot pls.
Another test.
I am testing this thing.
Now we're cooking with fire.
Hi there. I am the
Chocolate with some docolate
Too many poppies.
Edit!!!
I am like a chocolate
Are anything missing?
Testing, testing, one, two,
Woot pls2.
Are you real, or a robot ...
♥ ♥
♥
I hope you don't mind me
Vala wrote:Are you real, or a
Hello there. :3 I'm real, I think.
Jennie wrote:I don't mind at all, but under what capacity/contexts, exactly, are you asking? Unplugged and Alison released the whole Comment Visibility Toggle thing a while back. That blog post has code for links that act as buttons which allow the user to switch on/off the visibility of comments. If you just want the comments hidden by default (and no toggling), you can just use CSS:
<style>#comments { display: none; }</style>
.I can't edit another person's comment, no. The comments are stored wherever on a server, and I don't have access to them. The only way, I think, would be to alter how the comment appears, but in my opinion that would not be a true solution and could possibly be considered immoral depending on what's done and how it's done.
If I'm not anywhere in the ballpark of answering your question, feel free to leave more details of what you would like to do.
Thank you. Yeah, I know, I
Yeah, I know, I haven't been looking into it but they most likely are stored and appear as they are stored in the source code or if one were to use an outdated browser. I do not intend to use this to do any bad stuff, but being able to hide few certain comments would be awesome. I have had some people comment on a blog I hadn't wanted to be commented on and I think it will be pretty alright with them if I'll hide their comments. I'm not sure but I saw that some comments here have been hidden by you? Just wondering if you know how to do that.
#comment-1094873 + .comment
Well, I believe most of the content is kept separate from each other. When someone comes to a page, the server dynamically generates the client's source code using PHP. That's why each time you reload the page, there is a new list of online users and such (and possibly why it takes so long for certain things [e.g., the search function] to complete). How it could appear in the server's source code could be something like:
But what you see in the page source is instead:This is most apparent when you use BBCode, such as:
[center]Text.[/center]
. When you submit, it will produce:<div style="text-align:center">Text.</div>
in your page source, and you won't see exactly what you wrote until you go to edit it. That's why I can't change someone else's comment in a useful way (only on a superficial level), because where it's stored is not where I can access.Onto your actual question, for some reason I thought you meant something more serious (such as the intense editing of peoples' comments). xD Yeah, I've been playing around with CSS like I always do, but I guess I never took it out? No biggie. If you want to hide a single comment, you find the id/number of the comment by either looking into the page source (such as from above, the "
<a id="comment-1094873"></a>
" part) or by looking at the reply link and grabbing the number at the end. For example, oh gosh I'm still hiding the replies, aren't I? For example, the reply link to the first comment is "/community/comment/reply/94825/1094873". The last number, "1094873", identifies the comment. If I wanted to hide it, I would do<style>#comment-1094873 + .comment {display: none;}</style>
and repeat until I have hidden all the comments I wish to hide.Ah no I don't really think
But that hide thing is wickedly cool now that I got it to work! Thank you very much for it, you really got skillz. I was wondering if you could do biography coding on request or in exchange for something?
:3 You're welcome. I guess I
Or maybe would you be able to
Oh thanks. I'm still testing
I am text. I am an i tag. I
I am not text. I am not an i tag.
I am also not text. I am also not an i tag.
Editing again. Editing more. Editing even more. Pleasp work this time. Whoop doop.