File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Prefill subject and body

 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

Is there a way through which the subject and body of a post can be prefilled by submitting a special URL to code ranch ? For example the following URL takes you to the SCJP forum's new post page

http://www.coderanch.com/forums/jforum?module=posts&action=insert&forum_id=24

This page has the input fields 'subject' and 'message' which are used to denote the topic and its body. I tried this modified URL by appending a subject and message parameter, thinking it would be populated into the respective fields

http://www.coderanch.com/forums/jforum?module=posts&action=insert&forum_id=24&subject=Test&message=body

it did not work. I am trying this out to allow users from other sites discuss topics in javaranch easily. Is there a way I can do this ?

Let me know if modifying the posting URL can help me achieve the results I want. If it cannot be done by modifying the URL, I will take a programmatic approach to solving the problem. Thanks

[EDIT]

I wanted to ask this in ranch office and I guess I posted here by mistake. Please move this post
 
Ankit Garg
Sheriff
Posts: 9495
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Ranch Office :-)
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33684
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepak Bala wrote:it did not work. I am trying this out to allow users from other sites discuss topics in javaranch easily. Is there a way I can do this ?

You realize they would still have to be logged into JavaRanch, right?

Deepak Bala wrote:Let me know if modifying the posting URL can help me achieve the results I want. If it cannot be done by modifying the URL, I will take a programmatic approach to solving the problem. Thanks

We would have to make a change at our end for the posting URL to work. I'm having trouble figuring out why it is easier for users to type their post in your site rather than giving them a link to the thread here at JavaRanch.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This whole thread is hilarious. You're asking us if there's a URL that can be used to trivially post spam on the Ranch. The answer is, and always will be, of course, "no".
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You realize they would still have to be logged into JavaRanch, right?


Yep.

We would have to make a change at our end for the posting URL to work. I'm having trouble figuring out why it is easier for users to type their post in your site rather than giving them a link to the thread here at JavaRanch.


I was not requesting a change. Just wanted to know if something like this already existed. When people ask questions in the SCJP / SCWCD etc forums they often forget to quote source and put code in CODE tags. The idea was, if there is a URL that allows a site to auto post to JR and prefill some data like the question and subject, it might make it easier to discuss questions. The question itself will be inside CODE tags and the subject could quote the source. The user can then edit the body and ask their question


Ernest Friedman-Hill wrote:This whole thread is hilarious. You're asking us if there's a URL that can be used to trivially post spam on the Ranch. The answer is, and always will be, of course, "no".


ahh now I never looked at it that way. I dont see why this is hilarious. API keys can be used to ward off SPAM and there are other techniques that can be used to prevent junk from surfacing on the site.

Thanks for putting forward your thoughts. It looks like implementing this on your side might take too much work and is not worth the effort. I ll try to find a work around and if it is not feasible, I ll just provide a link to post in the forum.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic