Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Show Full CMS Article in Comments Thread Details »
Show Full CMS Article in Comments Thread
Mod Version: 1.00, by Lynne (Coder/Designer) Lynne is offline
Developer Last Online: Aug 2019 I like it Show Printable Version Email this Page

vB Version: 4.0.8 Rating: (9 votes - 4.89 average) Installs: 58
Released: 27 Nov 2010 Last Update: Never Downloads: 129
Not Supported Uses Plugins Re-usable Code  

This is more of an example than a modification. I wrote this quick plugin for someone and thought I would share it. It's something someone can take and build on. All it does is if you look at the CMS Article thread in your CMS Comments forum, the content of the CMS Article is shown under the blurb "You can view the page at.....". This is ONLY for Articles - not Static Pages or PHP Direct Evaluation content types. Someone can build on this and do those if they want. The person I wrote this for had forms in their articles and needed the submit button to be disabled, so this plugin does that also.

Like I said - this is more of an example. I don't plan to do anything more with it and I'm not helping with modifying it for your own use. Use it however you want.

This adds one query to the threads in the CMS Comments forum.

To install....

Create a Plugin
Hook Location - postbit_display_complete
Title - Show Full CMS Article
Plugin PHP Code -


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

CMS Page:

CMS Comment Thread:


If you ONLY want to show the full article to users, not guests, then change this condition (thanks to mattysheff):

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

to this:

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

Download Now

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

Screenshots

Click image for larger version

Name:	article - cms.png
Views:	3110
Size:	39.2 KB
ID:	123944   Click image for larger version

Name:	article - thread.png
Views:	3185
Size:	63.3 KB
ID:	123945  

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
Miscellaneous Hacks [CMS] Use original thread for comments Carnage vBulletin 4.x Add-ons 387 26 Nov 2012 02:22

  #16  
Old 23 Jan 2011, 01:06
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by tokenyank View Post
This looks like a great mod - however, wouldn't this count against your SEO by having duplicate content?

Tagged for further investigation when it isn't 00:40!
According to mattysheff, yes, which is why he asked the question and I told him to put the condition around it.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #17  
Old 23 Jan 2011, 09:04
mattysheff mattysheff is offline
 
Join Date: Mar 2008
I've added this to the first bit:

if (THIS_SCRIPT == 'showthread' AND $show['member'] AND $this->thread['forumid'] == $this->registry->options['vbcmsforumid'] AND $this->post['postcount'] == 1)

It works perfect and only shows the content to members. I'm not currently using it though because I've got comment threads hidden because of the bug in vbulletin where if you future publish a article the comment thread is created immediately.
Reply With Quote
  #18  
Old 13 Mar 2011, 17:37
deverill2010 deverill2010 is offline
 
Join Date: Jan 2011
Hi Lynne and thanks for the mod but what exactly do you mean by -

The person I wrote this for had forms in their articles and needed the submit button to be disabled, so this plugin does that also.
The ability to reply is removed??
Reply With Quote
  #19  
Old 13 Mar 2011, 18:28
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by deverill2010 View Post
Hi Lynne and thanks for the mod but what exactly do you mean by -

The ability to reply is removed??
No. This mod only effect the post text, nothing else.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #20  
Old 14 Mar 2011, 04:37
traen traen is offline
 
Join Date: Oct 2009
Installed, works great thank you Lynne! This should be default in vbulletin.
Reply With Quote
  #21  
Old 19 Mar 2011, 18:32
whitedd's Avatar
whitedd whitedd is offline
 
Join Date: Jan 2010
Thnx Lynn ...but i wonder...is it posible that shows a attacment too...
...couse...article is showing,but in every article i have one image...
...thats images is not showing...only text and link to attachments...

can check here : http://www.braniteljski-forum.info/f...d.php?p=208345
Reply With Quote
  #22  
Old 19 Mar 2011, 18:37
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by whitedd View Post
Thnx Lynn ...but i wonder...is it posible that shows a attacment too...
...couse...article is showing,but in every article i have one image...
...thats images is not showing...only text and link to attachments...

can check here : http://www.braniteljski-forum.info/f...d.php?p=208345
You are welcome to modify the plugin however you want. As I said at the beginning, it's more of an example of how to do this and you may modify it to suite your own needs.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #23  
Old 20 Mar 2011, 20:51
deverill2010 deverill2010 is offline
 
Join Date: Jan 2011
Whitedd if you do edit it to allow attachments, can you please share as I also need to show attachments.

Thanks!
Reply With Quote
  #24  
Old 21 Mar 2011, 14:25
whitedd's Avatar
whitedd whitedd is offline
 
Join Date: Jan 2010
...i try..but...hmmm...iam not a Coder...
...if anybody know how to do that,share with us...
...i realy need this...
Reply With Quote
  #25  
Old 21 Mar 2011, 14:29
YkudzA YkudzA is offline
 
Join Date: Feb 2011
Real name: Sergey
Originally Posted by deverill2010 View Post
Whitedd if you do edit it to allow attachments, can you please share as I also need to show attachments.

Thanks!
Yes, it will be very useful !
Reply With Quote
  #26  
Old 22 Mar 2011, 14:55
deverill2010 deverill2010 is offline
 
Join Date: Jan 2011
Lynne pretty please? If I could code I'd do it and share but I'm not a coder and have no hope of learning how to code.

Please
Reply With Quote
  #27  
Old 22 Mar 2011, 17:23
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Sorry, I never even needed this mod in the first place but wrote it for someone who did. I posted at the beginning that it's more of an example of what can be done and how to do it.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #28  
Old 18 May 2011, 16:42
apaydin2148 apaydin2148 is offline
 
Join Date: May 2007
Is it working with 4.1.3?
Reply With Quote
  #29  
Old 18 May 2011, 17:16
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by apaydin2148 View Post
Is it working with 4.1.3?
Works fine on my 4.1.3 test site.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #30  
Old 18 May 2011, 18:28
deverill2010 deverill2010 is offline
 
Join Date: Jan 2011
Same here works perfectly fine on my live site
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 08:54.

Layout Options | Width: Wide Color: