The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Show Full CMS Article in Comments Thread Details »» | |||||||||||||||||||||||||||||||
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 - PHP Code:
CMS Comment Thread: If you ONLY want to show the full article to users, not guests, then change this condition (thanks to mattysheff): PHP Code:
PHP Code:
Download Now
Screenshots
Show Your Support
|
3 благодарности(ей) от: | ||
Paul M, tbworld, Toorak Times |
Comments |
#82
|
|||
|
|||
This is great - been using it for a while. One issue is that inline image attachments do not show in the thread - you just get a URL link instead.
[Edit - ah, I see this has been mentioned plenty of times!] |
#83
|
||||
|
||||
I love this but am having a major issue.
I want to have certain article previews appear in other forums instead of the main forum but when I more the threads they automatically go back to default. Is there any way to get the previews to show in other forums as well? After looking at the code I see I may be able add an array and list the forums but will this add a query for each forum I add for every page load or just when someone opens that forum? Will this change the forums the articles are posted in? |
#84
|
||||
|
||||
Quote:
Thanks guys This has worked but I want to do a couple more things. if anyone has already done this please share. #1 - I want to only show a preview and not the entire article.. #2 - I want to make the preview content not crawlable. I do not want it indexed from both the article page and the forum.(I don't think this is an issue because the content is being generated from the cms and not actually posted as a regular thread so disregard number 2-- #3 - Being able to add the images would also be cool.. Thanks--Love this! |
#85
|
||||
|
||||
Glad I found this. Applied it tonight, Lynne's and the latest version, cheers!
It works very well with text on my 4.2.1 site, first few I looked at the pics didn't come through, and I don't expect the vBTubes to come thru but when I looked deeper pics were being feed into the thread. It has fixed up hundreds of posts that NOW I can call an archive, wonderful, I'll definitely keep an eye on this thread hoping for further shared enhancements. I was starting to build an archive in the CMS as the links didn't allow me to delete some of the dated. I presume I can delete the dated content from the CMS now as we have copy in this plugin. Thanks again. |
#86
|
||||
|
||||
No, you cannot delete the CMS article. If you do that, then there will be no text in the post. This modification does not actually copy it from the CMS part of the database into the post, it just shows the CMS content in place of the existing post.
|
#87
|
||||
|
||||
Thanks Lynne, I learnt today when I tried to edit one of them to replace the pictures the content also disappears.
|
#88
|
|||
|
|||
So I've done something silly, and I think it may have messed up something.
I had changed the phrase which says "You can view the page at X" a while back to something else. Yesterday, I went to change it again, and deleted the translation and saved it. Now I can't find the phrase! I usually find phrases by just searching for them, but I can't search for " ". How do I find that phrase again? Does it have a Phrase Variable Name I can search for instead of the text? -- Additionally, at the exact same time (it might be coincidence, but it might be linked to the above) the CMS has stopped putting the comment thread in the CMS comments forum altogether, and despite comments being set to YES in the article edit page, comments appear to be remaining switched off. I don't know if that's somehow connected to me accidentally removing a phrase (it seems unlikely, but the timing was pretty much exact). |
#89
|
||||
|
||||
Quote:
Quote:
|
#90
|
|||
|
|||
Got it - thanks!
Quote:
I just tested it and removed and then re-added the phrase again. Removing it immediately switches off CMS comments threads (and therefore comments); adding it back restores the functionality. |
#91
|
||||
|
||||
Quote:
Any clue how to get the image to display? |
Благодарность от: | ||
Toorak Times |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|