<span class="qte-attr qte_31_32-qte">3.1.x & 3.2.x</span>
dmzx Online
Founder
Posts: 6584 Joined: 13 Jan 2014, 21:45
Post
by dmzx » 22 Sep 2015, 23:21
Extension Name: Switches
Author: dmzx
Special thanks to: martin
Extension Description:
This extension will add some switches.
[travis]dmzx/Switches[/travis]
Screenshot:
None
3.3 version can be found here
viewtopic.php?p=28803#p28803
Extension Download:
…
Installation:
Download the latest release.
Unzip the downloaded release, and change the name of the folder to `switches `.
In the `ext ` directory of your phpBB board, create a new directory named `dmzx ` (if it does not already exist).
Copy the `switches ` folder to `/ext/dmzx/ ` if done correctly, you'll have the main extension class at (your forum root)/ext/dmzx/switches/composer.json
Navigate in the ACP to `Customise -> Manage extensions`
Look for `Switches ` under the Disabled Extensions list, and click its `Enable ` link.
martin
Admin
Posts: 5138 Joined: 06 Apr 2014, 16:12
Post
by martin » 22 Sep 2015, 23:23
Screenshot
22.png
Example of html code should look like
Code: Select all
<!-- IF SWITCHES_ENABLE_FIRST -->
<div style="position: absolute; margin: -12px 0 0 -48px ">
<img src="{ROOT_PATH}images/cornerhatbig.png" alt="Santa hat" />
</div>
<!-- ENDIF -->
note the
<!-- IF SWITCHES_ENABLE_FIRST --> in the code and image ?
You do not have the required permissions to view the files attached to this post.
nelflucifer
Users
Posts: 70 Joined: 03 Jan 2016, 12:24
Post
by nelflucifer » 19 Jan 2016, 18:27
You do not have the required permissions to view the files attached to this post.
Last edited by
nelflucifer on 25 Jan 2016, 10:32, edited 1 time in total.
Helios
Users
Posts: 14 Joined: 28 Sep 2015, 00:27
Post
by Helios » 21 Jan 2016, 14:14
You do not have the required permissions to view the files attached to this post.
martin
Admin
Posts: 5138 Joined: 06 Apr 2014, 16:12
Post
by martin » 27 Dec 2020, 17:46
Updated to work on 3.3
Screenshot from 2020-12-27 16-45-52.png
dmzx_switches_1_0_0.zip
Code: Select all
{% if SWITCHES_ENABLE_FIRST %}
<div style="position: absolute; margin: -12px 0 0 -48px ">
<img src="{ROOT_PATH}images/cornerhatbig.png" alt="Santa hat" />
</div>
{% endif %}
or you can do it this way
Code: Select all
{% if SWITCHES_ENABLE_FIRST %}
<div id="hat1"></div>
{% endif %}
and put css in a css file
Code: Select all
position: absolute;
margin: -12px 0 0 -48px;
background-image: url(images/cornerhatbig.png alt="Santa hat");
You do not have the required permissions to view the files attached to this post.