Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 11 Nov 2014, 13:31
squishi squishi is offline
 
Join Date: May 2006
Question 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.
Reply With Quote
  #2  
Old 11 Nov 2014, 14:00
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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()).

Last edited by kh99; 11 Nov 2014 at 17:01. Reason: function is _img, not _url
Reply With Quote
  #3  
Old 11 Nov 2014, 16:40
squishi squishi is offline
 
Join Date: May 2006
Thumbs up

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.
Reply With Quote
  #4  
Old 11 Nov 2014, 17:02
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:33.

Layout Options | Width: Wide Color: