vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Display thread as a Blog (https://vborg.vbsupport.ru/showthread.php?t=78580)

tgmorris 03-22-2005 10:00 PM

Display thread as a Blog
 
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.

hate 03-22-2005 11:20 PM

Screen shot?

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

Quote:

Originally Posted by hate
Screen shot?

Knew I forgot something ;). It's there now.

tgmorris 03-23-2005 12:08 AM

Quote:

Originally Posted by tnguy3n
nice idea, but it'd be better if it's sorted by user, for example, blog.php?u=userid&blogid=blogid

Feel 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!

Polo 03-23-2005 12:20 AM

Cool... :) thanks for sharing

tgmorris 03-23-2005 12:25 AM

Quote:

Originally Posted by yinyang
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

[QUOTE=Lionel]Hummm... this is displaying the quote tags as plain text
Quote:

Originally Posted by 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.


All times are GMT. The time now is 10:06 AM.

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.00998 seconds
  • Memory Usage 1,732KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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