vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Template caching and template search issue (https://vborg.vbsupport.ru/showthread.php?t=315364)

squishi 11-11-2014 12:31 PM

Template caching and template search issue
 
I have made a change to the "postbit_attachmentthumbnail" template.
In there, I added a parameter to the URL of the attachment.
This is working for attachments that are not embedded.
For embedded attachments, the url parameter does not show.

So I reprocessed the post cache. Still, the parameter does not show.

Is there another template cache that I am not aware of?

I can see that I modified the correct template. It is the only one that contains the phrase "image_larger_version_x_y_z".

There is however another obscurity on my board.
When I search for the string "image_larger_version_x_y_z", the first few styles will not show that template in teh results.
When I search for the template name, the first few styles will show the template.

That's strange, and I think there could be a connection to the above issue?

I have already re-built the styles a few times. That did not help either.

kh99 11-11-2014 01:00 PM

I don't know why the phrase would be missing from some of your styles. But I think maybe the problem is that embedded attachments don't use the template. I think the replacement for an embedded image is hard-coded in the bbcode processing code (specifically includes/class_bbcode.php, function handle_bbcode_img()).

squishi 11-11-2014 03:40 PM

Thank you, kh99.
I did not expect it to be hardcoded. Modifying the php file solved the problem.

It's still curious that the template will not come up when I search the templates.

kh99 11-11-2014 04:02 PM

Glad you found it. Re-reading the above, I noticed that for some reason I said it was in handle_bbcode_url() when it's really in handle_bbcode_img(), but I guess you figured that out.


All times are GMT. The time now is 07:02 AM.

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.00949 seconds
  • Memory Usage 1,708KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete