This board has been optimised for Firefox, the fast and secure web browser. : Download Firefox

[3.1][3.2][LATEST VERSION] Fred The Bat (Cursor Follower)

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

[3.1][3.2][LATEST VERSION] Fred The Bat (Cursor Follower)

Post by Administrator » Mon Oct 31, 2016 1:50 pm

Extension Name: Fred The Bat Image
Author: HiFiKabin

Extension Description: Image follows the cursor around the screen of the index page, just right for Halloween. If the user has JS disabled then Fred will not work and is hidden from view.

Live Demo: HERE

Extension Version: 1.0.2-RC1

Supported Styles:
  • Prosilver
Notes:
  • The code is run every 120 microseconds and may cause problems with low CPU and low memory devices.
  • Why Fred? I had him on a phpBB 2 forum many years ago and someone called him Fred. The name has stuck
  • Options see HERE

Installation:
  • Download the latest release and unzip it.
  • Upload the folder hifikabin to root/ext/ and enable it in the ACP
fredthebat_1_0_2-RC1.zip

Support:

The contact us link at the bottom of this Forum or CDB topic

Previous Versions
You do not have the required permissions to view the files attached to this post.

Administrator
Site Admin
Posts: 379
Joined: Tue Nov 18, 2014 11:30 am

Re: [3.1][3.2][LATEST VERSION] Fred The Bat (Cursor Follower)

Post by Administrator » Thu Dec 15, 2016 11:12 am

Alternative Themes:

There are 3 other images in the .zip file below that you can use instead of Fred. To use one of them, unzip the package, then unzip the image you require. You will then have a folder called theme on your desktop. Disable the extension, and replace the hifikabin/fredthebat/styles/all/theme folder with the one you have just unzipped. Enable the extension and refresh your browser.

Image Image Image

alternative_themes.zip

To use your own image:

Save it to root/ext/hifikabin/fredthebat/styles/all/theme/images

OPEN

root/ext/hifikabin/fredthebat/styles/all/theme/fredthebat.css

FIND

Code: Select all

#fredthebat {
	position: fixed;
	background: url("./images/cursor_fred.gif") 0 0 no-repeat;
	margin-left: 20px;
	width: 75px;
	height: 30px;
	display: none;
	z-index: 100;
}
CHANGE

Code: Select all

cursor_fred.gif
To your new images name

CHANGE

Code: Select all

	width: 75px;
	height: 30px;
to those of the new image

SAVE, UPLOAD, PURGE CACHE

To show Fred on all pages:

OPEN

hifikabin/fredthebat/styles/all/template/event/overall_header_body_before.html

hifikabin/fredthebat/styles/all/template/event/overall_header_head_append.html

FIND AND DELETE

Code: Select all

{% if S_INDEX %}

Code: Select all

{% endif %}
SAVE, UPLOAD, PURGE CACHE

To show Fred on one or more forums ONLY:

OPEN

hifikabin/fredthebat/styles/all/template/event/overall_header_body_before.html

hifikabin/fredthebat/styles/all/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

To have Fred fly closer to or further from the cursor:

OPEN

hifikabin/fredthebat/styles/all/theme/fredthebat.css

FIND

Code: Select all

	margin-left: 20px;
CHANGE

20px to the distance required

SAVE, UPLOAD, PURGE CACHE
You do not have the required permissions to view the files attached to this post.

Administrator
Site Admin
Posts: 379
Joined: Tue Nov 18, 2014 11:30 am

Re: [3.1][3.2][LATEST VERSION] Fred The Bat (Cursor Follower)

Post by Administrator » Sun Jan 15, 2017 4:41 pm

1.0.0_RC4 now available.

If the user has JS disabled then Fred will not work and is hidden from view.

Update from previous version:
  • Download the latest release and unzip it.
  • Disable Fred The Bat in the ACP
  • Delete fredthebat folder from the server
  • Upload the folder hifikabin to root/ext/
  • Enable it in the ACP

Administrator
Site Admin
Posts: 379
Joined: Tue Nov 18, 2014 11:30 am

Re: [3.1][3.2][LATEST VERSION] Fred The Bat (Cursor Follower)

Post by Administrator » Fri Aug 18, 2017 12:09 pm

1.0.0_RC5 now available.

Fred now appears on the index page only, and is hidden in small devices.

Update from previous version:
  • Download the latest release and unzip it.
  • Disable Fred The Bat in the ACP
  • Delete fredthebat folder from the server
  • Upload the folder hifikabin to root/ext/
  • Enable it in the ACP

Administrator
Site Admin
Posts: 379
Joined: Tue Nov 18, 2014 11:30 am

Re: [3.1][3.2][LATEST VERSION] Fred The Bat (Cursor Follower)

Post by Administrator » Sat Aug 19, 2017 4:33 pm

1.0.0_RC6 Image now available.

W3C errors corrected

Update from previous version:
  • Download the latest release and unzip it.
  • Disable Fred The Bat in the ACP
  • Delete fredthebat folder from the server
  • Upload the folder hifikabin to root/ext/
  • Enable it in the ACP

Administrator
Site Admin
Posts: 379
Joined: Tue Nov 18, 2014 11:30 am

Re: [3.1][3.2][LATEST VERSION] Fred The Bat (Cursor Follower)

Post by Administrator » Sat Sep 09, 2017 4:43 pm

1.0.0 CDB topic

Administrator
Site Admin
Posts: 379
Joined: Tue Nov 18, 2014 11:30 am

Re: [3.1][3.2][LATEST VERSION] Fred The Bat (Cursor Follower)

Post by Administrator » Sun Oct 15, 2017 10:15 am

1.0.1 Image now available.

Errors that prevented Fred from displaying correctly in RTL boards now corrected

Update from previous version:
  • Download the latest release and unzip it.
  • Disable Fred The Bat in the ACP
  • Delete fredthebat folder from the server
  • Upload the folder hifikabin to root/ext/
  • Enable it in the ACP

Administrator
Site Admin
Posts: 379
Joined: Tue Nov 18, 2014 11:30 am

Re: [3.1][3.2][LATEST VERSION] Fred The Bat (Cursor Follower)

Post by Administrator » Fri Apr 12, 2019 9:18 am

1.0.2-RC1 Image now available.

Fred is now positioned better on the screen, Live Demo added HERE

Update from previous version:
  • Download the latest release and unzip it.
  • Disable Fred The Bat in the ACP
  • Delete fredthebat folder from the server
  • Upload the folder hifikabin to root/ext/
  • Enable it in the ACP