vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   vBulletin Blog - New Blogs/Comments in Forum Search Results (https://vborg.vbsupport.ru/showthread.php?t=182609)

dartho 12-23-2008 09:47 AM

To make this show on Forumhome rather than in search results:
1. Install product
2. Edit the Add Blogs to Search Page plugin and change it's Hook Location from search_start to forumhome_start
3. Edit your FORUMHOME template and insert the text $blogsinsrch where you want the blogs search results to show. (probably just before <!-- what's going on box -->or after <!-- end what's going on box -->)

that's it. If you wish it to show in search results AND FORUMHOME, you will need to create a new plugin on forumhome_start with teh same contents as the Add Blogs to Search Page plugin

Hope this helps

Alfa1 01-01-2009 04:27 PM

Please consider to make this into a vbadvanced module, so that we are able to display latest blogs/comments on vbadvanced pages.

dartho 01-02-2009 02:39 AM

Quote:

Originally Posted by Alfa1 (Post 1698624)
Please consider to make this into a vbadvanced module, so that we are able to display latest blogs/comments on vbadvanced pages.

Try the attached module (it needs this addon installed also to get the number and time cut offs)

Let me know how it goes...

Alfa1 01-02-2009 02:27 PM

It works like a charm. Many thanks! This really adds to the integration of the blog with the rest of my site.
I wish we had the same for group comments. Would you consider looking into this?

edytwinky 01-02-2009 03:14 PM

Received the same database error with vb 3.7.4

Alfa1 01-04-2009 12:54 AM

/images/buttons/lastpost.gif should be the full url, otherwise it will not display on pages located outside the /forum/ directory.

I edited the plugin myself, but thought this might be useful for others.

edytwinky 01-04-2009 06:07 PM

Any information on why I received a database error when I went to hit new posts?

I'm currently using vb 3.7.4

PHP Code:

Database error in vBulletin 3.7.4:

Invalid SQL:

SELECT blog_text.dateline AS datelineblog_text.blogidblog_text.stateblog_text.blogtextidblog_text.usernameblog_text.useriddateFROM_UNIXTIMEblog_text.dateline ) ) AS datetimeFROM_UNIXTIMEblog_text.dateline ) ) AS timeblogtitle.userid AS authoridblogtitle.username AS authorblogtitle.views AS viewspagetextblogtitle.title AS titleblog_text.title AS text_title
FROM xxxblog_text 
AS blog_text
INNER JOIN 
(
SELECT maxblogtextid ) AS blogtextid
FROM xxxblog_text 
AS blog_text
GROUP BY blogid
)blogtextids ON blog_text.blogtextid blogtextids.blogtextid
INNER JOIN xxxblog 
AS blogtitle ON blogtitle.blogid blog_text.blogid
WHERE blog_text
.dateline >=1230494900
AND blogtitle.state 'visible'
ORDER BY blog_text.dateline DESC
LIMIT 5
;

MySQL Error   You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '( FROM_UNIXTIME( blog_text.dateline ) ) AS date, time( FROM_UNI
Error Number  : 1064
Request Date  : Sunday, January 4th 2009 @ 03:08:20 PM
Error Date    : Sunday, January 4th 2009 @ 03:08:21 PM
Script        : http://forums.xxx.com/search.php?do=getnew
Referrer      : http://forums.xxx.com/index.php
IP Address    : 68.102.23.100
Username      : xxx
Classname     : vb_database
MySQL Version : 4.0.20-standard 


edytwinky 01-07-2009 05:15 PM

Any assistance?

dartho 01-08-2009 08:42 AM

could be a MYSQL version issue - 4.0.20 is a bit out of date ....

edytwinky 01-08-2009 02:31 PM

Quote:

Originally Posted by dartho (Post 1704927)
could be a MYSQL version issue - 4.0.20 is a bit out of date ....

Thanks I didn't realize mine was old. Contact my host server and upgraded. Everything works out perfectly now.

Thanks again


All times are GMT. The time now is 06:12 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
  • Page Generation 0.01105 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete