vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Social Group and Album Enhancements - Quote Functionality in Social Discussions (https://vborg.vbsupport.ru/showthread.php?t=204052)

Lynne 03-11-2009 02:55 PM

No it isn't!!!! Seriously, you can do it, I know you can! You know the uncached template names, right? And, you know the name of the page (whatever.php) that they aren't cached on. So, look at the top of the whatever.php page and find out what THIS_SCRIPT is and put that in where it says 'whatever'. Then add the template names in where it says 'this_template' and 'that_template'.

KURTZ 03-11-2009 03:01 PM

Quote:

Originally Posted by Lynne (Post 1765767)
No it isn't!!!! Seriously, you can do it, I know you can! You know the uncached template names, right? And, you know the name of the page (whatever.php) that they aren't cached on. So, look at the top of the whatever.php page and find out what THIS_SCRIPT is and put that in where it says 'whatever'. Then add the template names in where it says 'this_template' and 'that_template'.

:D OK!!!!!

but i don't understand 2 things ...

1) how i can find out what this_script is ...
2) what plugin i must use?

this is the page:
http://www.fniv.it/board/groups/test...e-firefox.html

Lynne 03-11-2009 03:04 PM

1. THIS_SCRIPT is defined at the top of the php page. Look for a line like this (this is from a page I am working on, not the page you need to look at):
PHP Code:

define('THIS_SCRIPT''messagelist'); 

2. There is a location called "cache_templates" that you would use.

KURTZ 03-12-2009 10:07 AM

1 Attachment(s)
1) OK, but i don't know what page i'm working on ...
2) i've tried to find out this location in the 'plug-in manager' ... correct?

edit: i've tried to put this code into the cache_templates plug-in (mass pm users for social groups, where there are many uncached templates)

PHP Code:

if(THIS_SCRIPT == 'mass_pm_social_group_members'

$globaltemplates array_merge($globaltemplates, array( 
'editor_clientscript'
'editor_css''editor_jsoptions_font''editor_jsoptions_size''editor_toolbar_on''socialgroups_masspm')); 


and the top and at the end of the plug-in but nothing changes ...

ps this is the hook (cache_templates) at 'mass pm plug-in' ...

PHP Code:

if ($vbulletin->options['mass_pm_social_group_members'])
{
    
$globaltemplates[] = 'socialgroups_group';



Lynne 03-12-2009 02:15 PM

1) The page you are 'working on' is the one in the browser url. For this modification and the uncached template "bbcode_quote" which shows up when viewing the Discussion, the url is www.yoursite.com/group.php?etc.... So, I look at the top of group.php and see this line:
PHP Code:

define('THIS_SCRIPT''group'); 

So, if I were to write a plugin to cache the "bbcode_quote" template on the group.php page, I would write:
PHP Code:

if(THIS_SCRIPT == 'group'

$globaltemplates array_merge($globaltemplates, array( 
'bbcode_quote')); 



KURTZ 03-13-2009 10:42 AM

OK, last question Lynne, i've SEO installed so i don't know what page i'm browsering ... any tip to recognize the page?

thx :)

Lynne 03-13-2009 02:04 PM

Quote:

Originally Posted by KURTZ (Post 1767097)
OK, last question Lynne, i've SEO installed so i don't know what page i'm browsering ... any tip to recognize the page?

thx :)

Ummmmmm, I don't really know. If you know the main template (if you have template names turned on, it should be at the top of the page in the page souce), then you can probably guess the name. There are only so many pages in vB. I guess you could take a guess at the page and enter THIS_SCRIPT from your guess and see if it works.

wtb 03-15-2009 10:08 PM

Installed! If also using "Social Group Discussions Like Postbit" I notice that the code you reference above for pasting doesn't exist. Is it still going to work before we activate it. :)

MrEyes 03-15-2009 11:19 PM

Quote:

Originally Posted by wtb (Post 1769115)
Installed! If also using "Social Group Discussions Like Postbit" I notice that the code you reference above for pasting doesn't exist. Is it still going to work before we activate it. :)

If you have a look at the postbit template page:

https://vborg.vbsupport.ru/showthread.php?t=204056

There is a bit in there about what you need to edit if you use this mod as well.

wtb 03-16-2009 12:13 AM

Yes, I did that change. I just wanted to make sure that I didn't also have to do the one listed above. Kind of a "what comes first" kind of thing. Thank you!


All times are GMT. The time now is 04: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.02485 seconds
  • Memory Usage 1,749KB
  • 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
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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