lightbox

If you've found a bug in the template or extensions let us know in here so we can fix it as soon as possible.
6 posts Page 1 of 1
Contributors
Post
lightbox
romaamor
#168
I have already asked you.
How do I increase the size of thumbnails?
Image
It does not help.
Thumbnails expand in to a lightbox when you click them but if you want them full size in posts you can open the "attachments.html" file in the template folder and remove the two instances of:
style="max-width:200px"
Currently hard coded in to the template.
Maybe I missed something?
Post
Re: lightbox
splicker
#169
Changing the above code in the template file I mentioned works for me. Did you save the changes and clear your forum cache? - maybe that will help.
Post
Re: lightbox
romaamor
#170
Saved the changes. Kesh was cleaning. Here is my file code.
{% EVENT attachment_file_before %}

{% for _file in loops._file %}
	{% if _file.S_DENIED %}
	<p>[{{ _file.DENIED_MESSAGE }}]</p>
	{% else %}
		{% EVENT attachment_file_prepend %}

		{% if _file.S_THUMBNAIL %}
			<a data-fancybox="image" href="{{ _file.U_DOWNLOAD_LINK }}"><img data-src="{{ _file.THUMB_IMAGE }}" class="lazyload postimage" alt="{% if _file.COMMENT %}{{ _file.COMMENT|e('html') }}{% else %}{{ _file.DOWNLOAD_NAME }}{% endif %}" title="{{ _file.DOWNLOAD_NAME }} ({{ _file.FILESIZE }} {{ _file.SIZE_LANG }}) {{ _file.L_DOWNLOAD_COUNT }}" /><noscript><img src="{{ _file.THUMB_IMAGE }}" class="postimage" alt="{% if _file.COMMENT %}{{ _file.COMMENT|e('html') }}{% else %}{{ _file.DOWNLOAD_NAME }}{% endif %}" title="{{ _file.DOWNLOAD_NAME }} ({{ _file.FILESIZE }} {{ _file.SIZE_LANG }}) {{ _file.L_DOWNLOAD_COUNT }}" /></noscript></a>
			{% if _file.COMMENT %}<div class="small">{{ _file.COMMENT }}</div>{% endif %}

		{% endif %}

		{% if _file.S_IMAGE %}
        	<a data-fancybox="image" href="{{ _file.U_INLINE_LINK }}">
			<img class="img-responsive lazyload postimage" data-src="{{ _file.U_INLINE_LINK }}" alt="{% if _file.COMMENT %}{{ _file.COMMENT|e('html') }}{% else %}{{ _file.DOWNLOAD_NAME }}{% endif %}"  />
            <noscript><img class="img-responsive" src="{{ _file.U_INLINE_LINK }}" alt="{% if _file.COMMENT %}{{ _file.COMMENT|e('html') }}{% else %}{{ _file.DOWNLOAD_NAME }}{% endif %}"  /></noscript>
            </a>
			<div class="small">
				{% if _file.COMMENT %}{{ _file.COMMENT }}<br />{% endif %}
				<!--{{ _file.DOWNLOAD_NAME }} ({{ _file.FILESIZE }} {{ _file.SIZE_LANG }}) {{ _file.L_DOWNLOAD_COUNT }}-->
			</div>
		{% endif %}

		{% if _file.S_FILE %}
			{% if _file.UPLOAD_ICON %}<i class="fa fa-download tip"></i> {% endif %}<a class="postlink" href="{{ _file.U_DOWNLOAD_LINK }}">{{ _file.DOWNLOAD_NAME }}</a>
			<div class="small">
				{% if _file.COMMENT %}{{ _file.COMMENT }}<br />{% endif %}
				({{ _file.FILESIZE }} {{ _file.SIZE_LANG }}) {{ _file.L_DOWNLOAD_COUNT }}
			</div>
		{% endif %}

		{% EVENT attachment_file_append %}
	{% endif %}
{% endfor %}
{% EVENT attachment_file_after %}
Post
Re: lightbox
splicker
#171
I just had a look at your website, specifically this link: https://satellitetvforum.ru/viewtopic.p ... 37#p221637

And on inspecting the HTML code for the image in that post it is still showing as having the "max-width:200px" code on it. Are you certain you've changed the code, uploaded the file to the correct template folder and then refreshed the forum cache?
Post
Re: lightbox
romaamor
#172
Yes, the attachments.html file. Splicker style.
Post
Re: lightbox
romaamor
#173
Are you sure it's just the attachments.html file? Can it be done in some script? I have been with the PHPBB3 since 2012. And I know what it means to change the file and clear the cache. But now I don't understand what's going on.
6 posts Page 1 of 1