aspose file tools*
The moose likes Ranch Office and the fly likes Prefill subject and body Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "Prefill subject and body" Watch "Prefill subject and body" New topic
Author

Prefill subject and body

Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

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


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9302
    
  17

Moving to Ranch Office :-)


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30516
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

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".


[Jess in Action][AskingGoodQuestions]
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Prefill subject and body