Random Node or Front page in Drupal like Stumbleupon
What I really wanted was that every day my website should be updated with some random previous content, that way the visitors see new content if they visit everyday.
There are couple of methods to do this. First you can create a block and display it in homepage with 1 node in it. You can name it as spotlight or something, or you can create your entire front page with random content. In this method the content will be randomized upon refresh it wont be updated daily. Lets look at the first method.
Embed Flash Video (swf files ) in Drupal
If you want to embed Flash video either in your node or you theme check the following node
Its as simple as putting following code in your page.tpl.php or your node ( FULL HTML Format)
How to adjust Teaser Length and make it zero length?
In Drupal 4.7 you have to go to : administrator > settings > posts>> . The default teaser is 600. You can adjust it to 200 - 2000.
To make the teasers to zero length you will have to update your node.tpl.php file & add a "if" block ( if page == 0 ). Here is the example snippet of one of the node.tpl.php. Make sure you modify your theme's node.tpl.php
">
<?php print $picture ?>
<?php if ($page == 0): ?>
"><?php print $title ?>
<?php endif; ?>
How do I allow voting on teasers?
a )
The only contributed module that allows voting on teasers is "Vote up and down". The limitation of using this module is there is no rating based on 1 -5 or 1- 100. Users can only vote up or down. And the number of votes determines the popularity of the post.
The good thing is using this module you can make your site like digg.com.
b) Another contributed module Tweakbox by user acp is considering to implement this functionality in future version of tweakbox so you can rate on teasers.
-
- 1 comment
- 537 reads



