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 01:22

  #61  
Old 19 Mar 2012, 20:26
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Originally Posted by Mark.B View Post
You could always amend the code:


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

I imagine if you took the last bit out of that it might work....

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Man, I did this but when I move it somewhere else it removes the article and only the link shows up. Am I missing something here?

Note: I did use your file Mark.B to have the article in its own box, does affect it at all?
Reply With Quote
  #62  
Old 20 Mar 2012, 01:53
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Originally Posted by Mark.B View Post
To be honest, I wouldn't know....I have not moved to 4.1.11 at this stage, I am still on 4.1.10.

I will probably wait now until 4.1.12, after that I will need to revisit my amendments to this add on and will share what transpires.

Sorry.
I am still on 4.1.10 so I don't know why this wouldn't work, I finally gave up and disabled it. Sucks cuz its a pretty cool addon.
Reply With Quote
  #63  
Old 12 Jul 2012, 16:10
BoardWizard BoardWizard is offline
 
Join Date: Jun 2012
is there a way to get "You can view the page at 'url'", so that all it does is just show the article in the preview?
Reply With Quote
  #64  
Old 12 Jul 2012, 16:33
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Huh? I don't understand the question. If you want to remove the line about the url, then just change the plugin to replace the full $pagetext instead of adding to 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
  #65  
Old 12 Jul 2012, 16:45
BoardWizard BoardWizard is offline
 
Join Date: Jun 2012
i probably should have proofread my post. i meant get rid of. so where in the code do i replace instead of add to it?
Reply With Quote
  #66  
Old 12 Jul 2012, 16:57
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Just change this line:

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

to something like this:

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

__________________
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
  #67  
Old 12 Jul 2012, 17:53
BoardWizard BoardWizard is offline
 
Join Date: Jun 2012
thanks but all that did was get rid of the line ******
now it says You can view the page at (Url) then the beginning of the article right next to it.
Reply With Quote
  #68  
Old 13 Jul 2012, 00:01
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Did you may sure to change the .= to a = ?
__________________
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
  #69  
Old 13 Jul 2012, 07:57
astdirect astdirect is offline
 
Join Date: Dec 2009
Lynne, great addition and i am using it with no problems. Howeve i just want to ask a related question on whether it is possible to do the same for when you promote a blog ?
Reply With Quote
  #70  
Old 13 Jul 2012, 13:39
BoardWizard BoardWizard is offline
 
Join Date: Jun 2012
Originally Posted by Lynne View Post
Did you may sure to change the .= to a = ?
ah, no i did not. just did and it works now. thanks!
Reply With Quote
  #71  
Old 13 Jul 2012, 17:03
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by astdirect View Post
Lynne, great addition and i am using it with no problems. Howeve i just want to ask a related question on whether it is possible to do the same for when you promote a blog ?
I'm not sure I understand what you want. If you promote a blog and then have a comments thread for it, then you can do this same sort of thing for that thread. You do need to modify my original code here if you allow comment threads in several forums though. When I originally wrote it, all comments threads were in one forum.
__________________
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
  #72  
Old 14 Jul 2012, 09:05
astdirect astdirect is offline
 
Join Date: Dec 2009
I am on 4.1.9

When i promote a thread to a blog the thread continues to take comments but the actual blog page only shows the first post. I would like the blog to also be interacting with the thread and contain the comments...... but it doesn't.
Reply With Quote
  #73  
Old 14 Jul 2012, 17:06
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by astdirect View Post
I am on 4.1.9

When i promote a thread to a blog the thread continues to take comments but the actual blog page only shows the first post. I would like the blog to also be interacting with the thread and contain the comments...... but it doesn't.
This mod will not help with that at all. You will have to code something to do what you want.
__________________
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
  #74  
Old 09 Aug 2012, 08:53
jesfro jesfro is offline
 
Join Date: Jan 2012
Real name: Jesper Frommherz
Originally Posted by brad_irc View Post
Also to be noted, Tapatalk users cannot view articles on main page, now they will be able to view the content using the forum
Hey Brad,
first of all: fantastic work (based on Lynnes)!
It works great in the web browser.
But:
Regarding your Tapatalk statement... this does not work (for us... www.apfeltalk.de). There is no full CMS article in forum via Tapatalk. Anyone else noticed the problem?
Is there something i could set up in the plugin ( hook, order etc.)? Is this a vbulletin or a vbcms?

Thanks a lot in advance ;-)
Reply With Quote
  #75  
Old 03 Sep 2012, 22:31
TiKu's Avatar
TiKu TiKu is offline
 
Join Date: Sep 2006
I've modified this add-on to display the preview text only. First you need a template called full_cms_in_comments_thread:

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

And this is the new hook code:

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

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 06:15.

Layout Options | Width: Wide Color: