![]() |
THIS IS THE BEST MOD EVER... thank you very much
This is how it should be integrated in CMS/VBulletin... seriously! Thank you again! |
Thanks for this Lynne;
I have done some tweaks (as usual!) and come up with this, which sort of sets the article into a post within its own box, so to speak. http://www.bowlandcentral.com/forum/...ad.php?t=98178 |
Very nice, Mark. I always enjoy seeing your tweeks. I am like you with modifications - I never use one straight out of the box. :)
|
Quote:
|
Quote:
|
Quote:
Change the plugin code to the below (the attachments part is commented out here, uncomment if you want attachments to embed) Code:
if (THIS_SCRIPT == 'showthread' AND $this->post['postcount'] == 1 AND $this->thread['forumid'] == $this->registry->options['vbcmsforumid']) { Code:
.article_post |
Cheers my friend. I shall have a play this weekend.
|
Great edit Mark!
|
Is it possible when someone clicks the url of the article or Read More it takes them straight to the forum post?
|
Got it sorted :)
|
This seems to of stopped working for me.
If I move the article out of my dedicated vbcms forum it reverts back to the link and the article disappears out of the post? |
Quote:
|
Quote:
It's fine I'll just delete it, post it as thread then promote it. Sigh, bleeding CMS. |
You could always amend the code:
Code:
if (THIS_SCRIPT == 'showthread' AND $this->post['postcount'] == 1 AND $this->thread['forumid'] == $this->registry->options['vbcmsforumid']) { Code:
if (THIS_SCRIPT == 'showthread' AND $this->post['postcount'] == 1) { |
Thank you mark works perfectly :)
Now If only I'd known that ages ago lol. |
anyone know how to get this to work with 4.1.11 now that the comments are made to forums other than the cms comments forum?
|
You can remove this from the if statement:
AND $this->thread['forumid'] == $this->registry->options['vbcmsforumid'] Unfortunately, there isn't any flag in the thread table to say the thread is an articles comment thread. I suppose you may be able to look at the thread title and see if it has the word"Article:" at the beginning and use that in the if statement so the query isn't run for every thread. |
You know what's funny? Promoting from a thread to article only worked once for me. It worked and kept the original thread and prefixed it with Article:. After that 1 time, whenever I try to promote another thread, it would refuse to keep the original thread. I'm stumped.
|
Quote:
If you have more problems, you really should post over on vbulletin.com. |
...;)...now is perfect ;) ;) ;) ....thnx ;)
|
Quote:
Note: I did use your file Mark.B to have the article in its own box, does affect it at all? |
Quote:
|
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?
|
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.
|
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?
|
Just change this line:
PHP Code:
PHP Code:
|
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. |
Did you may sure to change the .= to a = ?
|
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 ?
|
Quote:
|
Quote:
|
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. |
Quote:
|
Quote:
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 ;-) |
I've modified this add-on to display the preview text only. First you need a template called full_cms_in_comments_thread:
Code:
{vb:raw previewtext}<br /> Code:
if (THIS_SCRIPT == 'showthread' AND $this->thread['forumid'] == $this->registry->options['vbcmsforumid'] AND $this->post['postcount'] == 1) { |
Thanks for sharing!
|
I'm actually trying to get the article/comments forum to post a preview of the thread on vBAdvancec cmps news feed. currently I have been unsuccessful. the comment forums look great with this mod but when I go to cmps it is still displaying "You can view the page at..." instead of the preview
|
Quote:
One thing I still don't like, is that if you quote the first post of the comments thread, it quotes only the link to the article. This happens because the mod doesn't actually replace the post text in the database - which I like, because this way you don't have to edit the thread if you edit the article. Does anyone have an idea how we could make quotations work while keeping the current approach of not replacing the post text in the database? |
Here's another improvement:
Add a plugin called "Quote Full CMS Article", hook newreply_quote. Code:
if (THIS_SCRIPT == 'ajax' AND $quote_post['forumid'] == $vbulletin->options['vbcmsforumid']) { |
Thanks Lynne awesome mod!
|
All times are GMT. The time now is 01:32 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|