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: 1088
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 19:58

  #256  
Old 16 Aug 2010, 14:46
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Just tried re-enabling this for 4.06. I get the following errors (actually the same one x4) on the CMS page:

Warning: Invalid argument supplied for foreach() in [path]/includes/class_postbit.php(321) : eval()'d code on line 21

Warning: Invalid argument supplied for foreach() in [path]/includes/class_postbit.php(321) : eval()'d code on line 21

Warning: Invalid argument supplied for foreach() in [path]/includes/class_postbit.php(321) : eval()'d code on line 21

Warning: Invalid argument supplied for foreach() in [path]/includes/class_postbit.php(321) : eval()'d code on line 21
If I disable this add-on, the error disappears.
Reply With Quote
  #257  
Old 16 Aug 2010, 17:30
daveaite's Avatar
daveaite daveaite is offline
 
Join Date: Jul 2009
Real name: David
Originally Posted by Pathor View Post
It works for me on 4.0.6.

btw: thanks for the mod!
Time to reinstall and try my luck!

btw, anyone else check back to this thread daily to see if theirs improvements/updates. lol.

edit: epic fail on my side. All i know, is this once worked for everyone. :P
__________________

Introducing vBSocial 10
Reply With Quote
  #258  
Old 17 Aug 2010, 01:02
Daryn Daryn is offline
 
Join Date: Nov 2008
I had this installed for a while and just kept updating vb. Now with the 4.0.6 update the mod seems to have started to work properly again. I don't see double posts or missing comments anymore. I'm hesitant to remove and reinstall it since it's working, I kind of don't want to poke at it and break it.

What ahcnged in this version of vB?
Reply With Quote
  #259  
Old 17 Aug 2010, 16:26
Carnage Carnage is offline
 
Join Date: Jan 2005
I was still trying to figure out what changed between 03 and 05 to break this... if its now working again in 06 :s no idea what they are upto...
__________________
www.giveupalready.com

If you want/need to contact me, best thing is to pm me on that site, username Carnage.
Reply With Quote
  #260  
Old 17 Aug 2010, 21:00
caciocode caciocode is offline
 
Join Date: Apr 2010
Tagged
__________________
Mathematics forum
Reply With Quote
  #261  
Old 17 Aug 2010, 21:55
Magz's Avatar
Magz Magz is offline
 
Join Date: Nov 2006
Folks, I installed this on 4.0.6, and it appeared to be working really well.

However, someone reported they couldnt post to facebbok from a thread reply.

Digging into it, i didable mods one by one, and it was only when disabling this, the facebook post from threads worked again.

Can anyone else confirm if this is a prob for you also?

Thanks
Reply With Quote
  #262  
Old 18 Aug 2010, 08:17
Acido Acido is offline
 
Join Date: Apr 2003
Hi Carnage. Thanks for share this useful mod.

Suggestion:
It's possible add a feature to this, that hide the editor for comments when the thread is closed? I notice that the article doesn't accept new comments when the thread is closed, but without any warning to the user. The post simply doesn't appear.

Hope you can figure how add this in future versions, if come.
Reply With Quote
  #263  
Old 18 Aug 2010, 15:22
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
I too was wondering how it deals with closed threads. We have all our threads set to close automatically after x days, so there's a good chance articles will have closed threads.

I just sort of assumed if the associated thread was closed, comments would go to the default comment forum. But your idea is a better solution.
Reply With Quote
  #264  
Old 25 Aug 2010, 12:30
Rho'd Berth Rho'd Berth is offline
 
Join Date: Oct 2009
I can't import this into 4.0.6, I get: "Invalid File Specified" when I press "Import"
Reply With Quote
  #265  
Old 26 Aug 2010, 08:05
Rho'd Berth Rho'd Berth is offline
 
Join Date: Oct 2009
Is the attached hooks_vbcms.xml ok?
When I look into the source there's hardly anything in it. If I compare it to the alpha-file the difference is huge. Maybe that's the reason that I get this error when I try to import it?
Reply With Quote
  #266  
Old 26 Aug 2010, 12:24
Rho'd Berth Rho'd Berth is offline
 
Join Date: Oct 2009
Never mind, I was importing the wrong xml file.
Reply With Quote
  #267  
Old 12 Sep 2010, 10:07
Carnage Carnage is offline
 
Join Date: Jan 2005
I've updated the mod to remove support for vb 4.0.0 The extra hooks.xml file was confusing people.

This mod is now only works on vbulletin versions 4.0.1 and above.
__________________
www.giveupalready.com

If you want/need to contact me, best thing is to pm me on that site, username Carnage.
Reply With Quote
  #268  
Old 12 Sep 2010, 13:40
carrlos's Avatar
carrlos carrlos is offline
 
Join Date: Nov 2006
Originally Posted by Carnage- View Post
I've updated the mod to remove support for vb 4.0.0 The extra hooks.xml file was confusing people.

This mod is now only works on vbulletin versions 4.0.1 and above.
The Uninstallation and Full Uninstallation steps still refer to the extra hooks.xml file. Should they be updated?
__________________
http://www.iphonemodding.com
Reply With Quote
  #269  
Old 16 Sep 2010, 19:03
Carnage Carnage is offline
 
Join Date: Jan 2005
Thanks, fixed.

I can also confirm that this mod works on vb4.0.6 as my own forum has been upgraded to 4.0.6 without issues.
__________________
www.giveupalready.com

If you want/need to contact me, best thing is to pm me on that site, username Carnage.
Reply With Quote
  #270  
Old 16 Sep 2010, 20:16
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Still working on 4.07 as well. You're an update behind.
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 20:47.

Layout Options | Width: Wide Color: