Then follow these steps
Thunde wrote: ↑Sun Dec 19, 2021 5:58 pm
It would be great to be able to put enough time to display an image
You can set the duration by opening the file
.\ext\tamit\slideshow\styles\all\template\event\overall_footer_after.html
Find
var showLoopTime = 10000;
Change the value
10000
to your desired duration (1000 = 1 seconds)
Then
purge the cache
Thunde wrote: ↑Sun Dec 19, 2021 5:58 pm
What if I can lift it higher? to be above the home button
This can be done by
renaming the file
.\ext\tamit\slideshow\styles\all\template\event\
index_body_markforums_before.html to
.\ext\tamit\slideshow\styles\all\template\event\
overall_header_navbar_before.html
You also need to remove these 2 files,
+
.\ext\tamit\slideshow\styles\all\template\event\
viewforum_forum_title_before
+
.\ext\tamit\slideshow\styles\all\template\event\
viewtopic_topic_title_before.html
Open:
.\ext\tamit\slideshow\styles\all\template\event\
overall_header_navbar_before.html
Replace all content with:
Code: Select all
{% if S_SLIDESHOW_CURRENT_PAGE == 'index.php' && S_SLIDESHOW_PAGE_INDEX == 1 %}
{% INCLUDE 'tamit_slideshow_default.html' %}
{% endif %}
{% if S_SLIDESHOW_CURRENT_PAGE == 'viewforum.php' && S_SLIDESHOW_PAGE_VIEWFORUM == 1 %}
{% INCLUDE 'tamit_slideshow_default.html' %}
{% endif %}
{% if S_SLIDESHOW_CURRENT_PAGE == 'viewtopic.php' && S_SLIDESHOW_PAGE_VIEWTOPIC == 1 %}
{% INCLUDE 'tamit_slideshow_default.html' %}
{% endif %}
Open:
.\ext\tamit\slideshow\config\services.yml
Find:
Code: Select all
tamit.slideshow.listener:
class: tamit\slideshow\event\main_listener
arguments:
After-add:
Open:
.\ext\tamit\slideshow\event\main_listener.php
Find:
Code: Select all
/** @var \phpbb\template\template */
protected $template;
Before-add:
Code: Select all
/** @var \phpbb\template\template */
protected $user;
Find:
Code: Select all
public function __construct(\phpbb\template\template $template, \phpbb\request\request $request, \phpbb\config\config $config, \tamit\slideshow\core\manager $manager, $php_ext)
Replace-with:
Code: Select all
public function __construct(\phpbb\user $user, \phpbb\template\template $template, \phpbb\request\request $request, \phpbb\config\config $config, \tamit\slideshow\core\manager $manager, $php_ext)
Find:
Before-add:
Find:
Code: Select all
$this->template->assign_var('S_SLIDESHOW_PAGE_VIEWTOPIC', $this->config['tamit_slideshow_page_viewtopic']);
After-add:
Code: Select all
$this->template->assign_var('S_SLIDESHOW_CURRENT_PAGE', $this->user->page['page_name']);
Then
purge the cache