Custom Submit buttons in the sidebar
Q: How do you create custom submit buttons in the sidebar that link to pre-filled out forms on the submit page?
In the bottom of the sidebar add a link like so
[Submit something](/r/your_sub_here/submit)As you can see you can make the link whatever you want. In the CSS target that object and relocate it, like so:
.side .md [href="/r/your_sub_here/submit"] {
position: absolute;
top: 90px;
right: 7px;
width: 270px;
text-align: center;
font-size: 14px;
background-color: #EEE;
color: #77C;
padding: 5px 0 5px 10px;
border: 1px solid #CCC;
}Then you'll need to push the sidebar down some to make room for the new button (this will likely need tweaked if you're using a custom theme):
.side { padding-top: 70px; }And remove the old submit buttons if you want to:
.sidebox.submit { display: none; }To pre-fill the content of submit page you just replace any spaces or special characters with their ascii version. For example a space would be converted to %20
You can figure out the rest of the special characters from this chart.
This is the default link to the submit page (defaults to link not text)
Putting "Hello world." in the title, and linking to google:
Putting "Hello world." in the title without a link
http://www.reddit.com/r/your_sub_here/submit?title=Hello%20world%2E
Putting "Hello world." in the title, and setting the text to "How are you?"
http://www.reddit.com/r/your_sub_here/submit?title=Hello%20world%2E&text=How%20are%20you%3F
Putting "Hello world." in the title and defaulting to a blank text box.
http://www.reddit.com/r/your_sub_here/submit?title=Hello%20world%2E&selftext=true
Examples of subreddits that have custom submit buttons: