The search at JavaRanch has very rich features. This is how our search screen looks like
The first text box on the search page is to enter the text that you want to search. The radio buttons below that lets you choose the search behavior. You can search only for posts that match all the search terms, or you can search for posts that contain at least one of the words that you are searching for. The third option lets you to search for the exact phrase that you are searching. For example if you choose this option and search for 'tomcat help', then the search will only find posts which contain 'tomcat help' and not posts which contains 'tomcat has a help'
The second option lets you choose whether you want to search in entire topics or just the subject lines of the topics.
The third option lets you choose which forums to search in. You can search in all the forums or a specific forum. You can group the search results too by forums i.e. the search result would have results from each forum together.
You can also sort your search result by date of the post or its relevance based on your search term.
You can also limit the search results by time. You can search for all posts or posts within last 30 days or 3 months etc.
The next option lets you search for posts by a particular person if you have their member id. If you want to search for your own posts, you can press the "my own posts" link next to the text box.
If you don't know a user's member id, you can search for their posts using their display name. Enter their first and last name in two text boxes provided.
The last options let you decide the behavior of user based searches. You can search for any topic in which a user has posted, filter it further to only topics that you started or you can search in topics that this person started.
There are some more options on the search page which lets you search directly on google (not shown in the screenshot).
My Posts Guide
This page gives you a list of all your posts. This page also has several options which are described here.
On the page you can see a [+] link before every post. You can press that link to expand that post to see the contents of the post.
Clicking on (Go to) will take you to that topic and that particular post in that topic.
The "Posted On" column displays the time when you made that post.
The "Last Post by" column provides you information about the person who made the last post in that topic.
This page lets you filter your posts by a particular forum. You can select a forum from the drop down box available and press "Go" button to show only posts made by you in a particular forum.
The Last post in this thread posted in by <User Name> option is also very useful. When you press that link, then you are shown the list of topics that you posted in sorted by the time of the last post in that topic. That lets you easily look for topics in which you posted and there was a reply after your post.
Forum Usage Guide
Now lets see the general use of the forums. JavaRanch is just like any other forum so basic usage of the forum should not be a problem. We'll explore some special features of JavaRanch forums which you might not be familiar with.
Resolving a topic
When you start a topic, you can mark it as resolved when your query is solved. To do that, when you view a topic that you created, you get a resolved button . When you press this button, its indicative that your problem is solved. Your topic would then appear on the list of topics with this icon instead of this icon . If you press this button by mistake, then when any staff members notices it, they'll make the topic unresolved.
Appreciating a post
At JavaRanch, if you find any post that is very helpful (to your own question or anyone else's question) or you agree with a comment or you like a funny reply etc, you can like that post. To do that, you have to press the button on the top right corner of the post. To take back your vote, you can press the button. The number of people that like a post is indicated with that post. Like if two people found a post helpful and voted for it, then that post will have this near it.
Bookmarks and Watches
If you want to be notified by email when there is a reply to a topic, then you can watch that topic using the button. To stop getting notifications of new replies to a topic, press the button.
Some topics might have discussion that you think would be useful in the future. Instead of bookmarking it in your browser, you can bookmark the topic in your JavaRanch profile. Press the button and the topic would be bookmarked.
Here at The Ranch we always encourage folks to UseCodeTags when posting code to make it nice and readable. The simplest example is this one and defaults to Java syntax highlighting:
There are a number of configuration options you can apply to your code tags as desired. Most usefully you can specify what language your code is to get the correct syntax highlighting. For example to get C# highlighting:
Here are some of the available language options.
cpp, c, c++
c#, c-sharp, csharp
rb, ruby, rails, ror
xml, html, xhtml, xslt
We occasionally change the options or add new languages, so look at the dropdown list for the current menu. The code tags also support bytecode and “plain” text.
There are some other configuration options you can use also
Will display no gutter.
Will display no controls at the top.
Will collapse the block by default.
Will begin line count at value. Default value is 1.
Will show row columns in the first line
These language and configuration options can be combined together using a colon as the delimiter. For example to show a snip of Ruby code starting on line 24:
The firstline[x] option is useful for making the line numbers match up when showing a code snip along with a Stack Trace.