vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   vBulletin Blog - How to get blogs in new posts search (https://vborg.vbsupport.ru/showthread.php?t=173582)

optrex 03-19-2008 10:00 PM

How to get blogs in new posts search
 
Many people are concerned over the lack of integration of the blog system with the main forum software. I see many posts asking "how do I get my blogs to show up in new posts?"

Basically you need to utilise the blog RSS feed and get it to post a blog as a post.

This is how to do it.

From your admincp - RSS Feed Manager
Add a new RSS Feed
Feed enabled: Yes
URL of feed: http://www.yoursite.com/blogs/feed.rss
Check every: 30 mins
Feeds to fetch: 0
Username: choose or make a new one - blog bot or something
Forum: chose an existing one or make a new forum and select options as you see fit, or see below.
Allow Smilies: yes
Display Signature: no
convert html to bb code: yes


Title template: {rss:title}
Body template:

PHP Code:

{rss:content:encoded}
[
url={rss:link}]Click here to be taken to the Blog...[/url]
[
url="http://www.yourwebsite.com"]Name of your forum [/url

In the next sections, pick what you want but also make sure you do the following
Thread action delay 1
Close thread after delay: yes

Making a new forum
When making a new forum for your blog posts, chose the setting your want for other users, but make sure of the following:

Act as forum: yes
Index New Posts in Search Engine: yes
Forum is open: yes

You can chose whether the forum is hidden or visible, but make sure the username you specified above is in a group that can post to this forum.

Permissions

I didn't want others to post so they have no post permissions. To get to the blog, they click on the link in the post and get taken there directly. To be able to see the posts they must have.

Can View Forum: yes
Can View Thread Content: yes
Can View Others' Threads: yes
Can Search Forums: yes


A working version is at www.midlandsweather.org.uk
My blog forum (so that you can see an example of the posts made is at www.midlandsweather.org.uk/mwf-blog


Please click ***install*** if you use this.

optrex 03-20-2008 09:09 AM

reserved for future use

KURTZ 03-20-2008 10:19 AM

great mod! when the 3.7.0 goes gold i'll install this for sure ... ;)

optrex 03-20-2008 10:24 AM

just to let you know its not exclusive to 3.7 it also works on 3.6.8

cajunboy2208 03-20-2008 01:59 PM

Awesome! I have been looking for something to alert members of a new blog.
Thank you.

Milad 03-20-2008 02:32 PM

This is a mere workaround, it won't solve the problem

molieman 03-20-2008 08:06 PM

This is an excellent add on, if I can get it to work. Number one complaint at my site, others not know of a blog post :)

May be I'm taking your instruction too literally :)

This is what I have in my "Body Template"

PHP Code:

{rss:content:encoded
[
url={rss:link}]Click here to be taken to the Blog...[/url
[
url="http://www.mycockpit.org/forumtest"]MyCockpit[/url

and this for the "Title Template" {rss:title}

I'm still learning.... so pardon me for my ignorance :)

I get the following when I do a preview: XML Error: Empty document at Line 2

I hope you can help :)

optrex 03-20-2008 10:56 PM

Your blog RSS url or "URL of FEED", in your case, should be http://yourwebsite.com/forums/blog_external.php

molieman 03-20-2008 11:22 PM

BINGO!!!! Thank you, works!!! :)

TaBaTaN 03-21-2008 03:04 AM

installed, working perfect.

SBlueman 03-21-2008 05:26 AM

Doesn't this defeat the purpose of the blog? Why not just have a forum as a "blog" then? What would be the need to install the blog?

optrex 03-21-2008 07:06 PM

Not at all. Blogs work differently to the forums, but there is no way to tell users that an addition has been made to the blog (or comments) without them checking the blog page every time. This brings it to their attention by integrating it into the new posts search, its just like telling them there is a new blog!

SwollenCranium 03-22-2008 03:07 AM

When I set the time to close thread it does not work.

In other words , when I follow your 0.25 delay it resets itself to 0 every time.

The settings ONLY allow for whole numbers of one hour or more, not fractions of an hour.

pcoskat 03-22-2008 11:05 AM

Is there anyway to add the username of the original blogger? (currently, all fo the posts in the blog forum are posted by News Bot (and i understand why). Once you open the post, however, it would be nice to know who wrote the original text. Thanks.

optrex 03-22-2008 09:12 PM

Quote:

Originally Posted by pcoskat (Post 1471493)
Is there anyway to add the username of the original blogger? (currently, all fo the posts in the blog forum are posted by News Bot (and i understand why). Once you open the post, however, it would be nice to know who wrote the original text. Thanks.

No problem. You need to add {rss:dc:creator} to the body template (wherever you want it put)

as an example

PHP Code:

[url={rss:link}]Click here to be taken to {rss:dc:creator}'s Blog...[/url] 


molieman 03-22-2008 11:50 PM

Thank you, added that to my site. Working fantastic!!!! :) :) :)

vwdforum 04-03-2008 02:38 PM

added this to my site but just wondering is it now duplicating as I'm posting the blog content on my forum?

Mally

Alfa1 04-07-2008 10:21 PM

Quote:

Originally Posted by Milad (Post 1469679)
This is a mere workaround, it won't solve the problem

Absolutely. We do need real integration. But at least this is a way to alert members of new blogs.

mdvaldosta 04-19-2008 02:50 PM

Yes we do. Simply showing new blog posts in the "new posts" search would be perfectly fine.

SBlueman 04-19-2008 03:47 PM

I understand now and like this feature now that I thought about it more.

Now, is there a way to make it so the post shows only a preview of the blog and then a link that says click here to read more?

Alfa1 04-19-2008 04:00 PM

I hope that Scythe succeeds with this:
Quote:

Originally Posted by Scythe42 (Post 1489413)
But before that I need to code some stuff so that new entries vom vbBlog show up under New Posts. That's currently more important for my site.


SBlueman 04-19-2008 10:42 PM

Doesn't seem to be working for me unless I manually run the scheduled job.....

optrex 04-22-2008 04:47 PM

Quote:

Originally Posted by SBlueman (Post 1494797)
Doesn't seem to be working for me unless I manually run the scheduled job.....

In your cheduled task mamanger is your RSS robot running?

*
*
*
0, 10, 20, 30, 40, 50
active: yes

SBlueman 04-24-2008 12:06 AM

Yes, those are the settings in place. I find I have to go into the RSS Feed Manager, reset the last time checked and then manually run the scheduled task.

optrex 04-24-2008 09:16 AM

thats sounds like an issue with the RSS vb side of things. Might be best to get that checked out with vb

icest0rm 05-24-2008 06:29 PM

This is a good workaround, but we definitely need some sort of plugin that integrates the blog into the new posts without the use of an RSS feed. These posts from the rss feeds will unnecessarily accumulate. Anybody working on a real plugin?

dartho 06-16-2008 02:52 AM

@icest0rm - Sorry to hijack the thread, but I've made a basic product to show recent blogs/comments in search screens over here. The results are not as integrated as this modification but may be enough for some. I've also linked back to this thread in that add-ons description.

KURTZ 06-16-2008 01:29 PM

i just tried this nice feature ... :D it seems to runs correctly but when i do a preview of my feeds i've got this ...

Code:

This feed supports content:encoded. Your imported feeds may appear nicer if you use {feed:content:encoded} in your bodytemplate instead of {feed:description} and enable the Convert HTML to BB Code option.
also i've a question: when it create the thread with the feed it puts ALL the text of my 'new entry' so my question is: can i decrease the number of the words of my entries, so the feed only create a preview?

kylek 10-30-2008 12:58 AM

If someone already has a blog made and adds to it should this show? I am trying this out and everything looks okay but am getting no preview of feed when testing it.

kylek 10-30-2008 01:31 AM

Figured it out, forgot to set blogs to be viewable by unregistered members.

Problemsolver 12-03-2008 04:56 PM

Great stuff! Works perfectly (3.7.4)

Problemsolver 12-03-2008 05:00 PM

Wait a second, it shows the full post without letting you know who made the post or actually taking you to the blogpost itself :S?

Isnt there possible to get the robot to post a redirect (if you allow it to use html)?

wrang 12-04-2008 01:32 PM

What is it problem when this came up?
Nytt blogg inlägg XML-fel: not well-formed (invalid token) på rad 483

breakice 12-15-2008 03:27 PM

nice

breakice 12-15-2008 03:41 PM

but how it will work on vbadvanced
what module i have to add so it can show it on my vbadvanced

optrex 01-20-2009 07:35 AM

It comes into vbadvanced automatically on the recent threads module. No further work is needed.

hotwheels 01-27-2009 05:12 PM

Has anyone been able to get this to work on vbulletin 3.8? I really liked this set up, since it would make a new post, and then members could go to the blog. I am not good with rss and this just quit working out of the blue........any help would be greatly appreciated.

optrex 01-28-2009 08:34 AM

Works fine with 3.8.0. Instructions are exactly the same. As its picking up RSS it should be fairly future proof to be honest.

hotwheels 01-28-2009 02:02 PM

shoot, it just isn't working on my site........wierd.

hotwheels 02-02-2009 01:18 PM

Okay, i have it working somewhat. Right now, i have the setting set how they are described in the instructions, but it is only updating posts that i post in my blog. It ISN'T placing other blogs into the forums.

What am i missing?

Title: Insane Blogs

URL of Feed: http://www.mysite.com/forums/blog_external.php

User Name: DugDug (this is my site bot)

Title Template: {rss:title}

Body Template: {rss:content:encoded}
Click here to be taken to {rss:dc:creator}s Blog...
Insanemustangs

Thread Action Delay: 1

Close Thread After Delay: Yes

These are my settings, and i don't have an actual blog forum set up, i have them going to a very busy forum. Do i need to make a blog forum for this to work corretly? If so, i still don't understand how come the bot isn't posting other users blogs....?


All times are GMT. The time now is 05:52 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.01409 seconds
  • Memory Usage 1,818KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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