• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Prefill subject and body

 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

https://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

https://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
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to Ranch Office :-)
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
"To do good, you actually have to do something." -- Yvon Chouinard
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic