[CDB] Slideshow Management

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
huynhbuutam
Registered User
Posts: 30
Joined: Wed Dec 01, 2021 4:15 pm
Location: Viet Nam
Name: Huynh Buu Tam
Contact:

[CDB] Slideshow Management

Post by huynhbuutam »

Extension Name: Slideshow Management
Authors: Huynh Buu Tam

Extension Description: An extension for phpBB that allows administrators to manage slideshow on their forums.
Extension Version: 1.0.0

Requirements: phpBB 3.2/phpBB 3.3

Features:
  1. Show custom slides
  2. Upload image
  3. Show newest topic (with permision check)
  4. Hide BBCode content
  5. Choose which pages to show
  6. Responsible view (with swipe gestures)
Screenshots:
Result.PNG
Result Mobile.PNG
ACP Settings.PNG
ACP Manage slides.PNG
ACP add slide.PNG
Extension Download: https://github.com/huynhbuutam/phpbb-ex ... t/releases
Last edited by huynhbuutam on Tue Jan 18, 2022 2:33 pm, edited 2 times in total.
User avatar
Miri4ever
Registered User
Posts: 608
Joined: Sat Mar 07, 2015 11:18 am
Contact:

Re: [3.2][3.3][RC] Slideshow Management

Post by Miri4ever »

On my first test I got a duplicate key error but this seems gone now after a day inside the settings, but I have wanted not to try topics and there I got this error message right now:

Code: Select all

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR t.forum_id = 10 OR t.forum_id = 19 OR t.forum_id = 24 OR t.forum_id = 28 OR t' at line 1 [1064]
Homepage: Terra Oceanica

Extension Developments:
PHPBB Games Solitaire, MChat Poker, MChat Black Jack, MChat Cards, MChat Trivia
PHPBB Special Effects, Mousepointers, X-Mas Themes and Designs for PBWoW Style.
Supported work: (**New Updated** UCP Sidebar), Tables, Hide, PBWow3 Style
User avatar
huynhbuutam
Registered User
Posts: 30
Joined: Wed Dec 01, 2021 4:15 pm
Location: Viet Nam
Name: Huynh Buu Tam
Contact:

Re: [3.2][3.3][RC] Slideshow Management

Post by huynhbuutam »

Miri4ever wrote: Mon Dec 06, 2021 10:20 am On my first test I got a duplicate key error but this seems gone now after a day inside the settings, but I have wanted not to try topics and there I got this error message right now:

Code: Select all

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR t.forum_id = 10 OR t.forum_id = 19 OR t.forum_id = 24 OR t.forum_id = 28 OR t' at line 1 [1064]
Which version of phpBB have you tried with this extension?
Note: This extension works fine on phpBB 3.2.11/3.3.5
User avatar
GTI
Registered User
Posts: 300
Joined: Mon Aug 24, 2020 4:59 pm
Location: West Sussex
Name: Laura

Re: [3.2][3.3][RC] Slideshow Management

Post by GTI »

This is a nice idea, will try it.
Most of us will enjoy Christmas in the comfort of our own homes this year, however, sadly, that can't be said for people in the Ukraine who are suffering day after day, due to the Russian invasion.

If you would like to make a small donation to help Ukrainians in their time of need, you can donate to help all Ukrainians via BritishRedCross or you can donate to help the Ukrainian children via Unicef. 🇺🇦 Thank You 🇺🇦
User avatar
huynhbuutam
Registered User
Posts: 30
Joined: Wed Dec 01, 2021 4:15 pm
Location: Viet Nam
Name: Huynh Buu Tam
Contact:

Re: [3.2][3.3][RC] Slideshow Management

Post by huynhbuutam »

GTI wrote: Tue Dec 07, 2021 8:06 pm This is a nice idea, will try it.
Thanks @GTI, hope you like it
panhead
Registered User
Posts: 950
Joined: Sat Dec 20, 2003 8:17 pm

Re: [3.2][3.3][RC] Slideshow Management

Post by panhead »

Hi, I like this. Just a couple of questions:
* how do I ensure that the format of the pictures shown is correct? I now see this:
voorbeeld.jpg

* is it possible not to upload pictures, but use a directory where pictures are stored?
User avatar
huynhbuutam
Registered User
Posts: 30
Joined: Wed Dec 01, 2021 4:15 pm
Location: Viet Nam
Name: Huynh Buu Tam
Contact:

Re: [3.2][3.3][RC] Slideshow Management

Post by huynhbuutam »

panhead wrote: Wed Dec 15, 2021 12:52 pm Hi, I like this. Just a couple of questions:
* how do I ensure that the format of the pictures shown is correct? I now see this:

voorbeeld.jpg


* is it possible not to upload pictures, but use a directory where pictures are stored?
Hi panhead, the image is always displayed in stretch mode (which was defined in the CSS file). You can set the URL of the image where the image is stored in, for example http://your-forum/directory/image.jpg
panhead
Registered User
Posts: 950
Joined: Sat Dec 20, 2003 8:17 pm

Re: [3.2][3.3][RC] Slideshow Management

Post by panhead »

Thank you. W.r.t my second question, I have thousands of pictures used in a gallery and it would be helpful if I don't gave to upload them (and doubling the storage space).
User avatar
huynhbuutam
Registered User
Posts: 30
Joined: Wed Dec 01, 2021 4:15 pm
Location: Viet Nam
Name: Huynh Buu Tam
Contact:

Re: [3.2][3.3][RC] Slideshow Management

Post by huynhbuutam »

@panhead,
Just set the image field to your existing image, then you don't need to upload it again
panhead
Registered User
Posts: 950
Joined: Sat Dec 20, 2003 8:17 pm

Re: [3.2][3.3][RC] Slideshow Management

Post by panhead »

I'll give it a try.
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

Re: [3.2][3.3][RC] Slideshow Management

Post by Thunde »

It would be great to be able to put enough time to display an image
What if I can lift it higher? to be above the home button
User avatar
huynhbuutam
Registered User
Posts: 30
Joined: Wed Dec 01, 2021 4:15 pm
Location: Viet Nam
Name: Huynh Buu Tam
Contact:

Re: [3.2][3.3][RC] Slideshow Management

Post by huynhbuutam »

Thunde wrote: Sun Dec 19, 2021 5:58 pm It would be great to be able to put enough time to display an image
Hi Thunde, 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, then purge the cache

Edit:
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
and set the slideshow target to "Index"
Note: this will cause the slideshow to be displayed in all pages (Index, Viewforum, Viewtopic, Faq,...)
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

Re: [3.2][3.3][RC] Slideshow Management

Post by Thunde »

Thunde wrote: Mon Dec 20, 2021 8:36 am
huynhbuutam wrote: Mon Dec 20, 2021 2:55 am
Hi Thunde, 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

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, then purge the cache

Edit:
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
and set the slideshow target to "Index"
Note: this will cause the slideshow to be displayed in all pages (Index, Viewforum, Viewtopic, Faq,...)
Super nice thanks looks super good
could you help me put it in the center?
https://i.postimg.cc/R0bDb6j8/image.png
I tried tamitslideshow.css but failed
Whenever I refresh the page before the image, my arrows appear, can I take them out?
User avatar
huynhbuutam
Registered User
Posts: 30
Joined: Wed Dec 01, 2021 4:15 pm
Location: Viet Nam
Name: Huynh Buu Tam
Contact:

Re: [3.2][3.3][RC] Slideshow Management

Post by huynhbuutam »

Hi, Thunde
Please re-upload the extension, purge the cache then check if it fixed
https://github.com/huynhbuutam/phpbb-ex ... t/releases (I had trouble with GitHub, so I recreated the release)
User avatar
huynhbuutam
Registered User
Posts: 30
Joined: Wed Dec 01, 2021 4:15 pm
Location: Viet Nam
Name: Huynh Buu Tam
Contact:

Re: [3.2][3.3][RC] Slideshow Management

Post by huynhbuutam »

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:

Code: Select all

            - '@user'
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:

Code: Select all

		$this->template = $template;
Before-add:

Code: Select all

		$this->user = $user;
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
Locked

Return to “Extensions in Development”