Table of Contents:
Part 1 - Introduction Part 2 - Caffeinated Content’s template system (You are here!)Part 3 - Building your first niche blog Part 4 - Building a (gasp!) blog farm Part 5 - Tying it all together Part 6 - Monetization options
In the last part, I talked a little about what Caffeinated Content is and what it can be used for. This time around, though, we’re going to get into the meat and potatoes of the plugin and get just a little dirty under the hood. Though it might seem strange, I really want to explore only the templating system this time, so by the time we start getting into the actual usage of the software, the terms I use will all make sense.
That said, let me state what by now should be obvious: Caffeinated Content’s posted content is entirely template driven. This is a double-edged sword. On one hand, you can make the content look any way you want. On the other, it’s possible to overdo things.
So we have templates…they are always located in the templates subdirectory under the CaffeinatedContent directory. Post templates and comment templates have naming conventions that must be followed (stupid naming conventions, I know, but they work thus far). Also located in the CaffeinatedContent directory is a text file named templates.txt. This file will be your friend during template editing excercises.
The following tags can be used in Caffeinated Content for WordPress templates:
- [title] - Post title
- [date] - Post date
- [who] - Post author
- [video] - YouTube video. Only works in YouTube mode.
- [post] - Post text
- [image] - Random image based on keyword
- [link] - Random link from the links file
- [rewrite_post] - Rewritten post text using markov chains
- [l_rewrite_post] - Subtle yet effective post rewriting using language translation techniques
- [b_rewrite_post] - A little less subtle post rewriting using language translation techniques
- [trans:ln]your text here[/trans] - Translate the text between the tags, using Google Translate, from English to a different language. Your mileage may vary due to Google’s translation limitations! Also, this WILL break HTML markup so be sure that only text is being included between the [trans] tags. Replace ln with the language of your choice: de - German, nl - Dutch, es - Spanish, fr - French, el - Greek, it - Italian, pt - Portuguese, ru - Russian, ja - Japanese, ko - Korean, cn - Chinese (Simplified), and tw - Chinese (Traditional) as well as sv - Swedish, ro - Romanian, bg - Bulgarian, pl - Polish, no - Norwegian, fi - Finnish, hi - Hindi, cs - Czech, and hr - Croatian.
Thus, to get a post containing only pulled text, we would simply create a template containing “[post]“. Currently, the default template is as follows: “<div style=”float:left; padding: 12px”>[image]</div><div><em><strong>[who]</strong> asked: </em><br/><br/>[video]<br/>[post]<br/><br/>[link]</div>“. This is a little more complicated with some basic layout HTML thrown in, but broken down piece by piece, it’s pretty simple. Strip out the HTML and we have the tags [image], [who], [video], [post], and [link]. Looking in the above bulleted list, [image] attempts to find an image relevant to the content to post alongside the content, [who] posts the original author’s name, [video] posts a YouTube video (but only if we’re in YouTube mode!), [post] is the actual post text, and [link] will grab a link from the link files. When all is said and done, the post will appear as follows (just a random image I had laying around…no it’s not applicable to the post text):
Kansieo asked:
People who think they know everything are a great annoyance to those of us who do. - Asimov
Caffeinated Content for WordPress, the BEST WordPress Content.
Taking it one step further, lets look at a translation option in the template: “<div style=”float:left; padding: 12px”>[image]</div><div><em><strong>[who]</strong> asked: </em><br/><br/>[video]<br/>[trans:es][post][/trans]<br/><br/>[link]</div>“. This will automatically translate the contents of [post] to Spanish as seen below.
Kansieo asked:
Caffeinated Content for WordPress, the BEST WordPress Content.
Even though we’ve only lightly touched the possibilities, I am confident you can see that Caffeinated Content’s templating system is an extremely powerful feature.
7 Comments
I can see how grabbing results from Italy or some other Yahoo International site, then translating to English would generate lots of unique content. I wonder how good the translations would be. Interesting. Thanks Kanseio.
Now I know a silly question when I write one, BUT, where do I get the updates from??
and
Yes - using different language translations is a facinating idea. If one is just using the site for ebay google amazon adverts the quality of translation would not matter that much. Just the increse ov visitors to see the adverts.
Philip,
The plugin will notify you in the admin panel if there is an update available. There will be a link included so you can download directly from the interface!
hello,
how about italian content.
it’s possible use the plugin into an italian blog?
Italian content is possible direct from Yahoo’s Italian Answers site. Video and articles can only be translated into Italian, at this point.
You mention certain re-write methods may get us removed from Google or Babelfish. Please expand on that and explain which ones are most apt to invite the problems.
Thanks
Like with anything, moderation is key. You won’t get removed from Google or Babelfish, you’ll just have temporary problems translating or rewriting posts.
This occurs because these web-based services limit the amount of a times a single IP address can access the service in a set amount of time…to combat over-usage they turn off access temporarily. To get around this issue, just use with moderation…
One Trackback/Pingback
[...] Using Caffeinated Content for WordPress Part 2 - Caffeinated Content’s template system [...]
Post a Comment