Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[CMS] Use original thread for comments Details »
[CMS] Use original thread for comments
Mod Version: 4.0-0.1 a2, by Carnage (Coder) Carnage is offline
Developer Last Online: Sep 2014 I like it Show Printable Version Email this Page

vB Version: 4.0.1 Rating: (40 votes - 4.83 average) Installs: 305
Released: 17 Dec 2009 Last Update: 18 Dec 2009 Downloads: 1087
Not Supported Uses Plugins Code Changes Additional Files Translations Is in Beta Stage  

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.
  • 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. (fixed in vb4.0.1)
  • 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. (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.)
  • 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. (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

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Show Thread Enhancements Display Thank Score of thread near of the original poster vietdjclub vBulletin 3.7 Add-ons 38 30 Oct 2015 20:58

  #301  
Old 29 Nov 2010, 04:31
sticky sticky is offline
 
Join Date: Sep 2003
So when this becomes a part of 4.2 how will the upgrade work? Will I need to disable this mod/uninstall it before upgrading?
Reply With Quote
  #302  
Old 29 Nov 2010, 19:13
Carnage Carnage is offline
 
Join Date: Jan 2005
Yes, they do. Do you have a work-around?
I've just had a quick look at the new posts block. The main db query that generates it strips out the threads which are associated with a CMS article. The work around would be to remove that condition in the query. You may then want to limit the forum(s) selected to not select from the normal cms comments forum.

So when this becomes a part of 4.2 how will the upgrade work? Will I need to disable this mod/uninstall it before upgrading?
I really couldn't say at this point. Since I'm using this on my own forums I will need an upgrade path myself so will be planning + developing one once vb 4.2 is available to me.
__________________
www.giveupalready.com

If you want/need to contact me, best thing is to pm me on that site, username Carnage.
Reply With Quote
  #303  
Old 01 Dec 2010, 05:57
carrlos's Avatar
carrlos carrlos is offline
 
Join Date: Nov 2006
Originally Posted by Carnage- View Post
I've just had a quick look at the new posts block. The main db query that generates it strips out the threads which are associated with a CMS article. The work around would be to remove that condition in the query. You may then want to limit the forum(s) selected to not select from the normal cms comments forum.
Can you give some help on how to do this?
__________________
http://www.iphonemodding.com
Reply With Quote
  #304  
Old 05 Dec 2010, 11:46
Carnage Carnage is offline
 
Join Date: Jan 2005
ok, go into includes/block/newposts.php

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

remove this line:

. ($this->registry->products['vbcms'] ? " AND info.associatedthreadid IS NULL " : '')

but leave the ." on the end.
__________________
www.giveupalready.com

If you want/need to contact me, best thing is to pm me on that site, username Carnage.
Reply With Quote
  #305  
Old 06 Dec 2010, 00:15
carrlos's Avatar
carrlos carrlos is offline
 
Join Date: Nov 2006
Thanks. I'll give it a try. Will it be the same for threads?

Edit:
It worked for both, thanks!
__________________
http://www.iphonemodding.com

Last edited by carrlos; 06 Dec 2010 at 00:28.
Reply With Quote
  #306  
Old 07 Dec 2010, 20:29
apaydin2148 apaydin2148 is offline
 
Join Date: May 2007
When i publish article (forum thread) , forum thread have a "Article:" tag. I don't want this. For example: if the topic is "x" when i publish that topic as a article and someone write a comment this topic, thread is "article: x" how can i fix this issue?
Reply With Quote
  #307  
Old 08 Dec 2010, 09:28
apaydin2148 apaydin2148 is offline
 
Join Date: May 2007
any ideas?
Reply With Quote
  #308  
Old 08 Dec 2010, 22:14
sticky sticky is offline
 
Join Date: Sep 2003
Is this working in 4.1?
Reply With Quote
  #309  
Old 09 Dec 2010, 07:21
mitch84 mitch84 is offline
 
Join Date: Mar 2008
Originally Posted by sticky View Post
Is this working in 4.1?
yes, work fine for me on vb4.1.pl2
Reply With Quote
  #310  
Old 11 Dec 2010, 13:21
apaydin2148 apaydin2148 is offline
 
Join Date: May 2007
Originally Posted by apaydin2148 View Post
When i publish article (forum thread) , forum thread have a "Article:" tag. I don't want this. For example: if the topic is "x" when i publish that topic as a article and someone write a comment this topic, thread is "article: x" how can i fix this issue?
...?
Reply With Quote
  #311  
Old 12 Dec 2010, 12:09
Hamish Gill Hamish Gill is offline
 
Join Date: Jun 2010
Hi... i really do like this plug in, its crzy it wasnt part of the software in the first place!
anyway, i am having a little glitch since i installed it

i get this message



then i get a double post - for some reason it also happens more frequently on the iphone hence the screen grab, but it does happen on other os too, just less frequently

any ideas?
Reply With Quote
  #312  
Old 17 Dec 2010, 17:04
Hamish Gill Hamish Gill is offline
 
Join Date: Jun 2010
anyone help?
Reply With Quote
  #313  
Old 18 Dec 2010, 22:07
GeorgeB85 GeorgeB85 is offline
 
Join Date: Nov 2008
Having an issue. I just tried this mod out, and it is NOT showing the comment anywhere. Not in the thread or the CMS article???
Reply With Quote
  #314  
Old 20 Dec 2010, 14:09
GeorgeB85 GeorgeB85 is offline
 
Join Date: Nov 2008
Originally Posted by GeorgeB85 View Post
Having an issue. I just tried this mod out, and it is NOT showing the comment anywhere. Not in the thread or the CMS article???
Anyone?

EDIT: Figured out why the comment was not posting, but it only stays in the CMS ARTICLE and not the original thread.

Last edited by GeorgeB85; 20 Dec 2010 at 14:33.
Reply With Quote
  #315  
Old 23 Dec 2010, 22:06
Crimm's Avatar
Crimm Crimm is offline
 
Join Date: Feb 2007
Thank you SO much!
__________________
- Trying to get back into this vB developer thing, bear with me -
Catch me on Twitter: @crimmFTW
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 22:44.

Layout Options | Width: Wide Color: