How to deprecate a page in Trac? - deprecated

Some Wiki have a feature to deprecate a page, for example by using templates. I searched on the Trac website and with a google search, without success.
How does one accomplish this in Trac?

I received an answer on the Trac mailing list by Ryan J Ollos:
There are currently no plugins that implement the feature as far as I know, but it would be fairly straightforward to implement. On trac-hacks.org we use a WikiExtras box macro and tag the page as deprecated. Example:
https://trac-hacks.org/wiki/AdminEnumListPlugin
I report here the relevant source code of the page he linked:
{{{#!box warn
**Notice:** This plugin is deprecated in Trac 1.2 and later.
}}}
To be able to tag, one needs the TagsPlugin.

Related

What's the best way to add schema FAQ markup to a WordPress site without using a plugin?

If it requires a lot of technical WP knowledge, I'd consider a light plugin, but prefer to not add yet another one to the list...
You can add raw html including structured data (microdata or json-ld) via the Custom HTML block.
There are several websites out there that can help you build that structured data.
Turns out all I had to do was add the JSON-LD FAQ Schema Code to the top of the page in my Wordpress editor and it works according to the Structured Data Testing Tool.
Once you understand the logic for the FAQ schema code, its easy to add the raw HTML and also to reuse for multiple applications. In my experience, that's a fair advantage over the weight/possible conflicts of a plugin.
Search Appearance Clicks Impressions
FAQ rich results 3,503 547,689

Drupal: can its functions be customized?

I've tried searching the Internet for this but I have not found an exact answer. I've seen that Drupal can use modules and its admin page can be customized, but does its functions can be customized as well?
This is what I want to happen:
after writing an article/content, it would be saved first as a draft and be sent to certain people for deliberation. The people would then have to vote if it is okay. If the article/content gets 70% or more approval, it would be posted immediately to the website.
Can I do this with Drupal? If not, do you have any suggestions on other CMS's where I can do this?
Thank you!
While you probably don't need a custom module to achieve the desired result, you certainly could write your own custom module if you wished to.
This documentation should get you started: http://drupal.org/developing/modules
And this is a great set of examples that provide a starting off point for custom module creation: http://drupal.org/project/examples
Like I said though, you're likely better off using contributed modules that have been vetted by the community. See if the workflow module does what you want - search "drupal workflow." You may also need the fivestar module to provide a thumbs up for approval - search "drupal rating."

Formatting Java code in WordPress posts, like in Eclipse

I am about to write some posts which has some Java code, and I would like to format it properly by coloring the Java keywords. Like in Eclipse.
I am looking for some recommendation for a theme / plugin to use.
It looks like it's rather standard nowadays:
[code language="css"]
Your code here
[/code]
As described here by WordPress itself.
The Chili code formatter is a good WordPress plugin to do that.
Alternative link: WP Chili
You could have some other plugins with this page or this other one.
However, it has not been updated for since 2010. Maybe you should use much recent one like the WP Code plugin.
It seems new versions of WordPress have already included the support of code posting. It is very interesting for me too, LOL.

Drupal module development examples

I'm new to Drupal, but I want to create an add-on. The add-on requires some sort of multi-page form with advanced jQuery (I already looked at the jQuery module).
The add-on requires details of the current logged in user and will also communicate with an external database.
I've been looking at tutorials concerning Module creation etc. But they mostly cover creation of simple forms, where as what I want to create is more of a plugin.
Multi page forms are a total drag. Pro Drupal Development, has a very good section on this topic, and I highly recommend that book if you are doing any Drupal development.
Online I found the following article pretty useful too (though I ultimately went with my own system).
http://www.nicklewis.org/using-chaos-tools-form-wizard-build-multistep-forms-drupal-6
There's a decent example here:
http://thedrupalblog.com/creating-multipage-form-using-forms-api
To make the most out of this, you're going to want to get pretty friendly with the Form API:
http://drupal.org/node/204270
Sadly Drupal.org seems to be missing a Drupal 6.x explanation (though plenty exist for 5.x and 4.7 oddly enough).
Multi step forms are complex by nature, but there are some methods to make it easier. I recommend that you have a look at the multistep form tools offered by the Ctools module. This blog post by Nick Lewis explains how you can use it.
I think you should think twice before going with javascript/jQuery to create your forms. Javascript is a great way to improve the user interface, but it can be easily manipulated because it's client side technology. You shouldn't rely on javascript alone for things like input validation, temporary storage of form values and controlling the flow between different steps of the form.
I feel odd saying this, but I don't think you want to use the Drupal Forms API.
The Forms API provides a lot of security features (unique token, rebuilds form after submit to compare to ensure correct form is processed, etc.) and allows other modules to modify your forms, but I think a lot of those features will get in the way of your jEditable form. Multi-page forms are not that challenging using the Forms API, but jEditable elements will be.
Your module could simply add a menu item with a page callback function that puts together your jEditable form for you. That is about as close to the world of a 'normal PHP' script as Drupal will let you get.

Is there a good question and answer plugin for wordpress?

I'd like to implement a 'stackoverflow' type answer and question for my wordpress blog. Any suggestions?
If you aim to provide a service such as this you should be able to code it yourself.
Check the following sites for information on where to start:
Writing a Plugin
WP Tutorial: Your First WP
Plugin
How to Write a WordPress Plugin – Introduction
Create a Custom WordPress Plugin From Scratch
Anatomy of a WordPress Plugin
If, by some reason you want to use a pre-written plugin I found one called UnAnswered that, according to the maker allows you to have a similar functionality to the one you are after. You should be able to customize it to your needs and likes.
I just released a plugin + theme that does the job : http://wp-answers.com/
I am using AnsPress, http://wordpress.org/plugins/anspress
Demo: http://open-wp.com/
This plugin is actively developed and have many cool features. I use this plugin on my site and its very easy.
I also love the support by its developer, he respond very fast and try to solve any issue I have.
I have this plugin if you are interested..
http://www.sabaidiscuss.com/
demo here: http://demo.sabaidiscuss.com/
You can use Sabai-Discuss plugin by onokazu. I like it.
Also there is Wpmu-dev's Q&A Plugin which is quite similar.

Resources