View Full Version : Display thread as a Blog
tgmorris
03-22-2005, 10:00 PM
I banged this out fairly quicky but it does seem to work OK on my forum. Additional testers would be welcome though.
What it does.
Displays a single thread in reverse chronological order as a "blog".
New files: 1
New templates: 2
File edits: 0
Installation.
Copy blog.php in your forum directory.
Create 2 new templates (BLOG, blogbits) using the attached files.
Usage:
http://www.yourforum.com/forums/blog.php?t=12345
Displays thread 12345 in reverse chronological order. If there are more entries than a single page worth then page selection controls will be displayed.
New blog entries may be made by clicking on the Reply icon.
tnguy3n
03-22-2005, 11:56 PM
nice idea, but it'd be better if it's sorted by user, for example, blog.php?u=userid&blogid=blogid
tgmorris
03-23-2005, 12:06 AM
Screen shot?Knew I forgot something ;). It's there now.
tgmorris
03-23-2005, 12:08 AM
nice idea, but it'd be better if it's sorted by user, for example, blog.php?u=userid&blogid=blogidFeel free to have at it. This version simply turns a given thread into a blog so there's no need to do the sort, etc.
yinyang
03-23-2005, 12:15 AM
this works awesome! since i'm putting the blog.php in a frame in a non-vb page, i've deleted the header, navbar and footer (and some other stuff). tom, i've uninstalled the previous version as this one seems to solve certain issues the other one had, i.e. permissions, etc.
this is definitely worthy of hack-of-the-month. it is so simple and useful!
Cool... :) thanks for sharing
tgmorris
03-23-2005, 12:25 AM
this one seems to solve certain issues the other one had, i.e. permissions, etc.The permissions on the CMPS version can be handled directly by CMPS. That is, don't display the module if the user doesn't have permission to see it. More comprehensive checking can easily be added if necessary though.
That said, both the CMPS version and the vb version are probably useful in their own way.
Lionel
03-23-2005, 12:32 AM
Hummm... this is displaying the quote tags as plain text [QUOTE=xxxxxx]Reading you ....
tgmorris
03-23-2005, 12:39 AM
Hummm... this is displaying the quote tags as plain text [QUOTE=xxxxxx]Reading you ....You can either redownload the blog.php file (I flipped the last parameter in parse_bbcode2() from true to false) or simply edit your version of the file.
Lionel
03-23-2005, 12:49 AM
great, works now. I am going to put this in thread tools.
Besides showing the posts in reverse chronological order, what kind of 'blog features' are there ?
Lionel
03-23-2005, 01:51 AM
Besides showing the posts in reverse chronological order, what kind of 'blog features' are there ?
it gives the option to get rid of all the bells and whistles : avatar etc... and keep it simple.
Deviant++
03-25-2005, 02:02 PM
can it filter out other people from posting ?
tgmorris
03-25-2005, 02:48 PM
can it filter out other people from posting ?Changing the template to not include the "reply" buttons would be the easiest. After that you can have the thread in a forum the users can read but not post/reply in and the permissions will prevent them from posting.
Creed
03-25-2005, 03:17 PM
You can just specify a forum that no one can reply to, and link all posts from that forum to blog.php and have your very own blog forum...at least thats my theory.
yinyang
03-27-2005, 08:00 AM
ok, i have a formatting question.
i have a regular html page split into two columns. the left column is a frame that has the blog. now my html page has a background ... it's the same background as the blog ... but because it is a frame, the background sits on top of each other and it looks disjointed.
is there a way to make the background of the Blog transparent? if so how?
tgmorris
03-27-2005, 02:52 PM
ok, i have a formatting question.
is there a way to make the background of the Blog transparent? if so how?
You should be able to edit the blogbits template.
Change<td class="alt1">to<td> and see if that solves your problem.
Allan
05-23-2005, 06:48 PM
I have just installed it to test, but nothing is posted, I have to forget something :(
tgmorris
05-23-2005, 06:52 PM
I have just installed it to test, but nothing is posted, I have to forget something :(Did you specify a thread to use as the blog? It's pretty easy to overlook when doing it the first time.
Allan
05-23-2005, 07:39 PM
has not, I do not have anything to indicate, you to speak about it nowhere in the subject, could you indicate to me or that must be to modify ?
tgmorris
05-23-2005, 08:18 PM
has not, I do not have anything to indicate, you to speak about it nowhere in the subject, could you indicate to me or that must be to modify ?From the instructions...
Usage:
http://www.yourforum.com/forums/blog.php?t=12345
Displays thread 12345 in reverse chronological order. If there are more entries than a single page worth then page selection controls will be displayed.
Did you specify a thread (the t=12345 part)?
Allan
05-23-2005, 08:59 PM
yes, but i a white page under IE and firefox
greenhybrid
05-29-2005, 03:01 AM
This looks like it has a lot of potential, but is very beta. I put up a slightly modified version at http://www.greenhybrid.com/discuss/blog.php?t=2406 but it's virtually unusable in its current state. Are you planning on developing this into a full-blown hack and what would the ETA be on that?
yoyoyoyo
07-31-2005, 10:11 AM
Changing the template to not include the "reply" buttons would be the easiest. After that you can have the thread in a forum the users can read but not post/reply in and the permissions will prevent them from posting.I like people to be able to respond to my Blog, but I would like to see a more blog-like reply system with the number of replies mentioned in the lower right corner, and a link to a separate page with the replies listed.
Warlord
07-31-2005, 05:22 PM
I'd like to use this to offer my members a forum to write up their own blogs. I have a military website and blogs are becoming quite frequent in the military so I think this could have potential for my site but how would I go about setting up a forum that only displays the threads created there as blogs instead of the normal display?
I see how to make a thread display in the blog format but how would one do it by default in only one specific forum?
Warlord
08-03-2005, 03:34 PM
bump
Warlord
08-03-2005, 03:53 PM
Ok, I've got the option in the Thread tools to view it as a blog, but I'm still at a loss as to how I can make it the default way to view the thread in specific forums.
Warlord
08-16-2005, 01:23 AM
Can't you just iframe it?
bada_bing
10-20-2005, 01:29 AM
Can some one post a step by step instructions on how to install this ?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.