Thank you very much for your superb support!
First of all the code you sent me works!
One interesting note is that the initial error message I received after implementing your original specific category code (before the code from you pm) was:
Fatal error: Cannot redeclare shorten_string() in /home/xxx/public_html/forum/modules/blog_comments.php on line 17
Then I think I messed with things too much (as you said it works 100%) Then I suddenly got the new error message I wrote about
:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in [path]/modules/blog_comments_cars.php on line 31
I cannot connect to the database
Probably due to the messing around.
Okay, then I used the code you sent me by pm and then I receive the same error as initially:
Fatal error: Cannot redeclare shorten_string() in /home/xxx/public_html/forum/modules/blog_comments.php on line 17
Then I found out I had two instances of your mod on the same cmps page - one with blog_comments.php and one new file for the specific category blog_comments_cars.php
Then I removed the "get all blog comments" file: blog_comments.php
And then it worked!
Thank you again! I am sure other people will find this mod interesting.
PS: yes it is forum :-)