[3.3][CDB] April Fools (bugs in the machine)

My little contributions to the phpBB 3.2.x and 3.3.x world. Please read the note on Version Numbering to ensure you download the correct Extension version.
Administrator
Site Admin
Posts: 781
Joined: Tue Nov 18, 2014 11:30 am

[3.3][CDB] April Fools (bugs in the machine)

Post by Administrator »

Extension Name: April Fools Image
Author: HiFiKabin

Extension Description: Adds flies and/or spiders crawling over the index page of your forum.

Drive your users mad :smt023

Sceeenshot:
April_Fools.jpg
Based On: Bug by Graham McNicoll

Live Demo: Extension Version: 3.2.1

Supported Styles:
  • prosilver
Installation:
  • Download the latest release and unzip it.
  • Upload the folder hifikabin to root/ext/ and enable it in the ACP
To activate on a specific date ONLY see HERE

Download:

aprilfools_3_2_1.zip

Support:

The Contact Us link at the bottom of this Board or CDB Topic

Previous Versions
You do not have the required permissions to view the files attached to this post.
Administrator
Site Admin
Posts: 781
Joined: Tue Nov 18, 2014 11:30 am

Re: [3.3][CDB] April Fools (bugs in the machine)

Post by Administrator »

Spiders Only:

OPEN

ext/hifikabim/aprilfools/styles/prosilver/template/event/overall_footer_body_after.html

DELETE

Code: Select all

	// default fruit fly bug:
	new BugController({
	});
SAVE UPLOAD PURGE CACHE

Flies Only:

OPEN

ext/hifikabim/aprilfools/styles/prosilver/template/event/overall_footer_body_after.html

DELETE

Code: Select all

	// default spiders:
	new SpiderController({
	});
SAVE UPLOAD PURGE CACHE



Show Everywhere:

OPEN

ext/hifikabim/aprilfools/styles/prosilver/template/event/overall_footer_body_after.html

AND

ext/hifikabim/aprilfools/styles/prosilver/template/event/overall_header_head_append.html

DELETE

Code: Select all

{% if S_INDEX %}
AND

Code: Select all

{% endif %}

SAVE UPLOAD PURGE CACHE

Show on one or more forums ONLY:

OPEN

hifikabin/aprilfools/styles/prosilver/template/event/overall_header_body_before.html

hifikabin/aprilfools/styles/prosilver/template/event/overall_header_head_append.html

FIND

Code: Select all

{% if S_INDEX %}
REPLACE WITH

Code: Select all

{% if FORUM_ID in [x, y] %}
where x and y are your forum id numbers. You can have as many as you like, just separate them with a , followed by a space. Note that the forum id's are in square brackets not the curly ones that contain the whole code.

SAVE, UPLOAD, PURGE CACHE




Activate on specific date only:

By using the following code you can have the extension activate itself on a specific date.

OPEN

ext/hifikabim/aprilfools/styles/prosilver/template/event/overall_footer_body_after.html

AND

ext/hifikabim/aprilfools/styles/prosilver/template/event/overall_header_head_append.html

FIND

Code: Select all

{% if S_INDEX %}
REPLACE WITH

Code: Select all

{% set today = 'now'|date('m/d') %}
{% set aprilfools = '04/01' %}
{% if today == aprilfools and S_INDEX %}
SAVE, UPLOAD, PURGE BOARD CACHE

Now you can activate the extension in the ACP but it will not become active until the specified date (April 1st if the default setting, to choose a different date edit

Code: Select all

{% set aprilfools = '04/01' %}
to the MM/DD you require





Also See HERE
Administrator
Site Admin
Posts: 781
Joined: Tue Nov 18, 2014 11:30 am

Re: [3.3][CDB] April Fools (bugs in the machine)

Post by Administrator »

1.0.0-RC2 now available.

Code tidied, Spiders and flies will not work if the user has JS disabled and are disabled.

Update from previous version:
  • Download the latest release and unzip it.
  • Disable April Fools in the ACP
  • Delete aprilfools folder from the server
  • Upload the folder hifikabin to root/ext/
  • Enable it in the ACP
Administrator
Site Admin
Posts: 781
Joined: Tue Nov 18, 2014 11:30 am

Re: [3.3][CDB] April Fools (bugs in the machine)

Post by Administrator »

1.0.0-RC2. Confirmed phpBB 3.3.x compatible Image Image
Administrator
Site Admin
Posts: 781
Joined: Tue Nov 18, 2014 11:30 am

Re: [3.3][CDB] April Fools (bugs in the machine)

Post by Administrator »

3.2.1 Released to the CDB

Update from previous version:
  • Download the latest release and unzip it.
  • Disable April Fools in the ACP
  • Delete aprilfools folder from the server
  • Upload the folder hifikabin to root/ext/
  • Enable it in the ACP
Administrator
Site Admin
Posts: 781
Joined: Tue Nov 18, 2014 11:30 am

Re: [3.3][CDB] April Fools (bugs in the machine)

Post by Administrator »

To activate on a specific date ONLY please see HERE