Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[CMS] Use original thread for comments Details »»
[CMS] Use original thread for comments
Version: 4.0-0.1 a2, by Carnage Carnage is offline
Developer Last Online: Sep 2014 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.1 Rating:
Released: 12-16-2009 Last Update: 12-17-2009 Installs: 306
Uses Plugins
Code Changes Additional Files Translations Is in Beta Stage  
No support by the author.

As of 4.1.11 this functionality is included in vbulletin. So you no longer need this mod.

What does this do?
This is a really simple hack that sets the thread for article comments to be the original thread for any thread that is promoted to an article.

What can I use it for?
This mod has two major uses:

1. If you have a wealth of information in your forums and you want to promote it into articles, this mod allows you to retain the rest of the thread as comments in the cms while adding any new comments as replies to the thread; essentially allowing it to function as both a forum thread and a CMS article.

2. If you want to use multiple fourms for CMS comments. This is a fairly none obvious use case, but probably a popular one. If you have three sections in your cms (for example) and want each section to feed into its own forum, the current cms dosn't allow you to do this. With this mod installed, you can. Instead of creating your new article directly in the cms create it in the forum you wish to use for comments. Write your article as the first post of the thread and promote it to a cms article. Fill out the extra information needed (eg publish date) and save. Comments will be saved into the original thread, in the forum you created it in.

Installation Vb 4.0.1 and later
1. Import product

Uninstallation
1. Disable the plugin "set thread id"

Full uninstallation
1. Move threads that have been promoted to articles into the vbcms comments forum.
2. COPY the threads back to their original forums
3. Remove product

Steps 1 and 2 are needed to retain cache functions on the comments threads. Without them new comments will not appear on the article.

Changelog
  • 4.0-0.1 a2
    • Fixed bug causing original thread to be delete when the article was deleted
  • 4.0-0.1 a1
    • Initial release

Notes
  • I believe this is the first mod for the CMS (not including addon widgets/content types)
  • Removing this product entirly will cause issues with the cache on any articles using the original thread. Follow the uninstall steps to remove functionallity while retaining the ability to comment on these articles this mod has altered.
  • [S] Although its compatible with vbulletin 4.0 Rc 4, a bug in RC 4 and 4.0.0 Gold prevents it from acctually working. I have provided a replacement hooks_vbcms.xml file which corrects the issue in the interim.[/S] (fixed in vb4.0.1)
  • [s]Deleting an article will remove the associated original thread This is considered a bug in this product and will hopefully be fixed with the next release. [/s] (fixed)
  • The above bug has been fixed, however pending this request: http://www.vbulletin.com/forum/proje...?issueid=34188 Thread tags for the original thread will still be removed. There is /nothing/ I can do about that until the issue listed is resolved. (this has been marked as fixed in 4.0.2; will update further when i've tested that its fixed.)
  • [S]If you hard delete the original thread without first removing the article you will be affected by this bug: http://www.vbulletin.com/forum/proje...?issueid=34187 the fix I posted to that issue needs to be applied BEFORE deleting the original thread. After more research, this only becomes an issue if you promote a thread more than once. If you've done this, you can fix the error by clearing the CMS cache.[/S] (fixed in 4.0.1)

As of 4.1.11 this functionality is included in vbulletin. So you no longer need this mod.

Download Now

File Type: xml product-imhotek_useoriginalthread alpha 2.xml (2.0 KB, 1082 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
djbaxter, LoveStream, TheHack3r

Comments
  #12  
Old 12-18-2009, 11:24 PM
SillyAlien SillyAlien is offline
 
Join Date: Oct 2001
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MOTM candidate. Easily!

... and Thank You!
Reply With Quote
  #13  
Old 12-23-2009, 05:13 AM
Sean James's Avatar
Sean James Sean James is offline
 
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 895
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work with gold?
Reply With Quote
  #14  
Old 12-23-2009, 05:57 AM
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Location: New Zealand
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just what I need. Looking forward to further development of this mod. Would like to see the article displaying the original post as well. That way when a member updates their post it will be reflected in the article as well.
Reply With Quote
  #15  
Old 12-23-2009, 05:45 PM
Carnage Carnage is offline
 
Join Date: Jan 2005
Location: uk
Posts: 760
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Griffin80 View Post
Does this work with gold?
ive had no issues with gold so far; if you had this installed when you upgraded, you may need to upload the hooks_ file attached again as the vb upgrade will have over written it
Reply With Quote
  #16  
Old 12-24-2009, 03:12 PM
BozzaJos BozzaJos is offline
 
Join Date: Feb 2006
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Carnage!

It's so strange that this isn't a default option in vBulletin. My question is if step 1 and 2 are still needed with the gold release? If not, you might wanna update your first post.

Another question is if you can tell me how the development is going for this mod? Will there be some improvements soon and worth the waiting? It's always nice to be kept up-to-date.

I thank you for the time. All that's left to is that this is a great and must-have mod! Only reason why I don't just install it is because it's still in beta stage and since my vBulletin knowledge is pretty limited, I need fully tested products hehe. That's why I leave this reply. I hope you understand.

Keep up the good work!
Reply With Quote
  #17  
Old 12-24-2009, 05:40 PM
Carnage Carnage is offline
 
Join Date: Jan 2005
Location: uk
Posts: 760
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
My question is if step 1 and 2 are still needed with the gold release? If not, you might wanna update your first post.
Yes, unfortunatly, steps 1 and 2 are required with gold. The bug is listed as fixed for 4.0.1

Quote:
Another question is if you can tell me how the development is going for this mod? Will there be some improvements soon and worth the waiting? It's always nice to be kept up-to-date.
There aren't likely to be more features. Its a very simple mod, it does exactly what its meant to, nothing more. If people find bugs, i'll fix them, if vb updates break this mod, i'll get it working again. Other than that, i can't see much development thats needed.

Quote:
Only reason why I don't just install it is because it's still in beta stage and since my vBulletin knowledge is pretty limited, I need fully tested products hehe.
I think all of my mods are in beta stage; generally, my mods are used on my own sites, i release them as betas as I've no idea how they'll act in the wild... I'd say my betas are probably as good as most mods on the site; they may never leave beta if i don't get enough feedback on how well the work (as a comparison, most of googles apps are in beta, gmail was in beta for 5 years)
Reply With Quote
  #18  
Old 12-24-2009, 06:14 PM
Booth Booth is offline
 
Join Date: Jan 2005
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This really should be a default feature of vBulletin 4 - I suggested it months ago, grrrr!
Reply With Quote
  #19  
Old 12-24-2009, 08:20 PM
BozzaJos BozzaJos is offline
 
Join Date: Feb 2006
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the quick and detailed reply Carnage! Always fantastic to see such quality support...

I hope you don't mind that I ask a couple more things? I'm still a bit unclear how this mod actually works. Let me start by telling what my favorite method would be (within the possibilities of the CMS of course / hopefully). I would like to add articles on the CMS and promote threads on the Forum as an article. From what I know, the only possibility to have comments enabled in the CMS is to select 1 single section where the forum thread should be created. This is for me not very handy since I have many different sections and can't have all discussions placed in one single forum section. For that, I did have a solution. If possible, I want to select a section which isn't viewable on the Forum and isn't open for new posts (so only threads by staff members). This will keep the comments on the CMS and only one article. Perfect for the news articles.

But we have a lot of members who posts quality articles on the Forum so I need to use the "Promote to Article" button as well. Is this where your mod comes in action? And is it possible to combine this mod with the things I told above?

I hope you get my situations and I would love to hear from you if and how this mod can help me.

Thanks again for your time and sorry if I'm bothering you with all my questions.
Reply With Quote
  #20  
Old 12-25-2009, 09:00 PM
Carnage Carnage is offline
 
Join Date: Jan 2005
Location: uk
Posts: 760
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'm not 100% sure i've followed what you are trying to do but here is what this mod will do:

1. If you create an article in the cms, the comment thread will appear in the cms comments forum as defined in vb options.

2. If you promote a blog post, there will be a comments thread created in the cms comments forum.

3. If you promote a Forum post the thread that that post comes from will be used for the comments.

-----------

If you want multiple forums to contain the posts from articles; heres how you can do it with this mod.

1. Instead of creating a new cms article Create a forum post in the forum you wish to use for comments for that article.
2. Promote the post to an article.
3. The thread you created will be used for comments.
Reply With Quote
  #21  
Old 12-26-2009, 04:29 AM
daveaite's Avatar
daveaite daveaite is offline
 
Join Date: Jul 2009
Location: Florida
Posts: 1,890
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This should definately be part of vbulletin gold. TSK TSK
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05239 seconds
  • Memory Usage 2,344KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete