![]() |
Quote:
Quote:
|
Well it took me a while, But I have integrated the suggestions made above.
We now have word limits (better than character limits) for the number of words displayed and we also have the blog entry titles etc as requested. I have also re-written the code to be one file rather than the 2 previously. The variables are also clearer and easier to change. Install time is now less than 5 mins for a noobie :) |
You have a typo here:
$limit = 5; //replace 5 with the umber of comments Should say: number I will have to update again and give this new version a try. Thanks for the much needed great work! |
We are just getting our blog going and comments are not frequent. Can you code a version that displays Recent Blog Entries vs. Recent Comments. and if there is a recent comment display the comment
|
I have a mod that picks up new blog entries and puts them into your "new posts". See my signature. Otherwise I need to take a look and put something fresh together, I have some ideas in mind.
|
Great Improvements, Congratulations. :up:
Thank You For Sharing Them. :up: My Best Regards. :) |
Quote:
in the variables add the line $category = x; //where x is the category id number found in your AdminCP in line 35, find: Code:
$query = "SELECT {$prefix}blog.blogid, Code:
{$prefix}blog.categories, Code:
AND {$prefix}blog_text.state = 'visible' Code:
AND {$prefix}blog_text.state = 'visible' AND {$prefix}blog.categories = '{$category}' |
Quote:
But if I try with the changes for a specific category: Fatal error: Cannot redeclare shorten_string() in /home/xxx/public_html/forum/modules/blog_comments.php on line 18 |
Quote:
|
Sorry doesn't work for me. I have tried for 1? hour now:
Now I get this error: 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 I am 100% sure the password is correct - as I use it with success with e.g. your default version. This is the code I use with your changes: PHP Code:
|
All times are GMT. The time now is 03:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|