vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Show Full CMS Article in Comments Thread (https://vborg.vbsupport.ru/showthread.php?t=254333)

CAG CheechDogg 03-19-2012 08:26 PM

Quote:

Originally Posted by Mark.B (Post 2303812)
You could always amend the code:

Code:

if (THIS_SCRIPT == 'showthread' AND $this->post['postcount'] == 1 AND $this->thread['forumid'] == $this->registry->options['vbcmsforumid']) {
I imagine if you took the last bit out of that it might work....
Code:

if (THIS_SCRIPT == 'showthread' AND $this->post['postcount'] == 1) {

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?

CAG CheechDogg 03-20-2012 01:53 AM

Quote:

Originally Posted by Mark.B (Post 2311155)
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.

BoardWizard 07-12-2012 03:10 PM

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?

Lynne 07-12-2012 03:33 PM

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.

BoardWizard 07-12-2012 03:45 PM

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?

Lynne 07-12-2012 03:57 PM

Just change this line:
PHP Code:

$this->post['message'] .= '<br />*********<br />'$result['previewtext']; 

to something like this:
PHP Code:

$this->post['message'] = $result['previewtext']; 


BoardWizard 07-12-2012 04:53 PM

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.

Lynne 07-12-2012 11:01 PM

Did you may sure to change the .= to a = ?

astdirect 07-13-2012 06:57 AM

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 ?

BoardWizard 07-13-2012 12:39 PM

Quote:

Originally Posted by Lynne (Post 2347436)
Did you may sure to change the .= to a = ?

ah, no i did not. just did and it works now. thanks!


All times are GMT. The time now is 02:59 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
  • Page Generation 0.01120 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete