Please let me know what you think:

http://www.stokblogs.com

I just wanted to take this opportunity to thank the Drupal community for such fantastic software. I would also like to thank Boris Mann for introducing me to Drupal. My site was created about a year ago, but only recently did I start customizing it. And let me say, developing in Drupal has been a pleasure. Everything is designed so well and super-easy to extend. Furthermore, the documentation is most helpful - every time I have a problem, or question, I have found the answer immediately. Thanks again everyone!

StokBlogs is a unique service on the Internet. The difference between StokBlogs and every other stock-related site is that our users don’t just talk about stocks, they also publish a model portfolio for all to see. Basically, our members write about stocks and the reasons why they purchased it; next they add the stocks to their model portfolio. That way, readers can follow the stock over time to see whether the author was right or wrong in his analysis. I find learning like this - by example - most helpful.

-theo

Comments

boris mann’s picture

I knew all right-minded people would eventually converge on sweet, sweet Drupal development :P

Your kind words to the rest of the community I'm sure are appreciated as well.

Theo’s picture

Drupal development is sweet. At first I was going to go with a Java solution - seeing how I was previously a Java purest - but after doing a tutorial and building a test module, I realized how powerful Drupal was. It already gives you so much, and then the flexibility to extend, to do anything you want fast and efficiently, made the decision a no-brainer. I seriously encourage all Java developers to take a look under the hood. You’ll be pleasantly surprised at how simple, yet powerful the code is. You might also learn a few things about good architecture.

robertdouglass’s picture

Me too! I learned PHP for Drupal and I doubt I would have learned it for any other reason.

- Robert Douglass

-----
My Drupal book: Building Online Communities with Drupal, phpBB and WordPress

rosshj’s picture

Nice and clean, but I would style the default blue on the <a> tags to something that matches your site.

just stick something like this like this in your css file

a {
	color: #0099CC;
}
a:hover {
	color: #333333;
}

or whatever

radiofranky’s picture

which module did u use to count the # of articles in each of the categories? tks

Theo’s picture

It's not a module, I wrote a block of code that only traverses two taxonomies:


  $taxes = array(15, 13);

  foreach ($taxes as $tax)
  {
	  $tree = taxonomy_get_tree($tax);
	  foreach ($tree as $term)
	  {
		$link = l(t($term->name), "taxonomy/term/$term->tid");
		$out .= _taxonomy_depth($term->depth, "&nbsp;")."$link";
		$count = taxonomy_term_count_nodes($term->tid);
		if ($count)
		{
		  $out .= " ($count)";
		}
		$out .= "<br />";
	  }
  }
  
  print($out);

radiofranky’s picture

i tried it and it didn't display anything other'n the title..

can u give me hint? :) tks

Theo’s picture

Did you change this line:

$taxes = array(15, 13);

The 15 and 13 correspond to vid's in my "vocabulary" table. You will need to set your own or write additional code to iterate through all of them.

Not sure if this makes a difference, but I am using Drupal 4.6.3.

radiofranky’s picture

what's a VID? where/how can i check my VID number? thanks

robertdouglass’s picture

go to your taxonomy administration page (administer->categories). There you have a list of vocabularies. Click "edit vocabulary" for one and the URL will look something like this: admin/taxonomy/edit/vocabulary/1

The vid is 1 in the example above.

- Robert Douglass

-----
My Drupal book: Building Online Communities with Drupal, phpBB and WordPress

radiofranky’s picture

i got this error message when i chaned VID, this is what i got

Fatal error: Unsupported operand types in /home/radiofra/public_html/includes/common.inc(1857) : eval()'d code on line 9

can someone show me how to fix it? thanks

Theo’s picture

Can you post the code that you changed?

radiofranky’s picture

what all i did is i changed array value and the whole site became unaccessible with error message

Theo’s picture

It's hard for me to help you if I can't see any code. Also, did you make sure you have vid 1 and 2?

radiofranky’s picture

Hi, how do u put avatar next to blog's title?tks

Theo’s picture

I coded my own custom theme.

SteveK’s picture

Hey Theo,

great site you have there. I was wondering if you could provide a module list for your site and if there was any custom modules that were developed for your site. I'm specifically interested in the feature of users being able to add quotes and have them being tracked. (gains/price points/etc) Thanks!

---
I work here: Raincity Studios.com
I hang out here: Steve Krueger.com