Advertisement:

Author Topic: Better Blink BBC  (Read 2612 times)

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,735
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk (drugs and users)
Better Blink BBC
« on: April 28, 2021, 11:57:47 PM »
Link to Mod

Better Blink BBC
by aegersz


Introduction

This version uses hooks, inline css and allows you to control the blink rate (per second(s)); it should work on all browsers.

It has been tested and works for on 2.0.18 and 2.1 RC3.

The SMF 2.1 version is v1.32

It fades and blinks at a 2 second rate by default.

Usage


[blink]Text to blink[/blink] or [blink=5]Text to blink every 5 seconds[/blink]

Installation

Remember to uninstall any other blink BBC mods or disable any added via the Custom BBCodes Manager mod if you use it.

Credits

Note: the "blink.gif" button image is borrowed from the defunct blinkbbc_1-0 mod
and is renamed to "blink.png" for SMF 2.1 compatibility (it won't blink). However, the gif image is still valid for SMF 2.0.* and will blink.

Changelog

v1.32 (2014-04-28)
Change blink rate to "n" via "Blink=n" option

v1.31 (2021-05-03)
Use span instead of div to allow mixed usage on a single line and restructure the install/uninstall

v1.30 (2021-04-27)
For SMF 2.1 only (use the alternate zip file)



v1.24 (2014-04-28)
Change blink rate to "n" via "Blink=n" option

v1.23 (2021-05-03)
Use span instead of div to allow mixed usage on a single line

v1.22 (2021-04-27)
Implemented more of the customization's team's advice. For SMF 2.0.* but can be installed
in SMF 2.1's 2.0.14 Emulation mode

v1.21 (2021-04-27)
Prevent errors in validation as per customization's team's advice

v1.2 (2021-04-20
Use hooks instead

v1.0 (2021-04-20)
* Initial release
The configuration of my Linux VPS (SMF 2.0 with 155+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline pocttopus

  • Full Member
  • ***
  • Posts: 521
  • Low pressure
    • @pocttopus on Twitter
    • mkreef.com
Re: Better Blink BBC
« Reply #1 on: April 29, 2021, 07:44:15 AM »
After uninstalling the mod there are some errors:

Code: [Select]
Type of error: General
Hook call: function "BBC_Blink2::bbc_button" in file /home/xxx/public_html/Sources/BBC-Blink.php could not be called.

Code: [Select]
Type of error: General
Hook call: The file at path: /home/xxx/public_html/Sources/$sourcedir/BBC-Blink.php could not be loaded.

How can I fix them?
Forum version 2.1RC3
Mod version 1.30

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 20,077
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • Aleksi Kilpinen
Re: Better Blink BBC
« Reply #2 on: April 29, 2021, 07:46:47 AM »
That looks like leftover hooks that should get removed on uninstall.
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.x installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline pocttopus

  • Full Member
  • ***
  • Posts: 521
  • Low pressure
    • @pocttopus on Twitter
    • mkreef.com
Re: Better Blink BBC
« Reply #3 on: April 29, 2021, 12:35:41 PM »
How can I remove them?  ??? :-\

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,735
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk (drugs and users)
Re: Better Blink BBC
« Reply #4 on: April 29, 2021, 09:29:02 PM »
Admin > Maintenance > Integration Hooks.

You will see them in red.

This is not a mod problem I believe because it only happened on an old version of RC3 - it didn't happen on the latest version of the nightly download.
The configuration of my Linux VPS (SMF 2.0 with 155+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline pocttopus

  • Full Member
  • ***
  • Posts: 521
  • Low pressure
    • @pocttopus on Twitter
    • mkreef.com
Re: Better Blink BBC
« Reply #5 on: April 30, 2021, 05:09:28 AM »
Thanks, it solves the issue.  :)

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,916
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Better Blink BBC
« Reply #6 on: April 30, 2021, 09:49:09 AM »
Now that it's been approved, a couple of questions ...

Can the blink rate be easily changed?

This bbcode has to be used on a line by itself. Any way to change that? e.g. 'blinking text' and 'more text' all on the same line.
Please do not PM me for support.

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,735
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk (drugs and users)
Re: Better Blink BBC
« Reply #7 on: April 30, 2021, 05:35:46 PM »
The blinking rate is hard coded.

I will look into trying to get it on the same line but it will take me some time to look into it.

Apologies, I didn't test multiple blinks on the same line.
The configuration of my Linux VPS (SMF 2.0 with 155+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,916
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Better Blink BBC
« Reply #8 on: April 30, 2021, 08:01:14 PM »
No worries. Not in any hurry. And I wasn't asking about multiple blinks on the same line, just more text allowed on the same line as any blinked text. :)
Please do not PM me for support.

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,735
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk (drugs and users)
Re: Better Blink BBC
« Reply #9 on: May 02, 2021, 09:04:59 PM »
v1.31 (2021-05-03)
Use span instead of div to allow mixed usage on a single line and restructure the install/uninstall

v1.23 (2021-05-03)
Use span instead of div to allow mixed usage on a single line



I have addressed your issues and there are now two new versions so please uninstall the old version and then reinstall the new version.
« Last Edit: May 02, 2021, 09:30:04 PM by aegersz »
The configuration of my Linux VPS (SMF 2.0 with 155+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,735
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk (drugs and users)
Re: Better Blink BBC
« Reply #10 on: May 03, 2021, 12:09:53 AM »
Steve, try this new version that allows you to specify the blink rate:

[blink=1]1 second blink rate[/blink]) ... and let me know if you're happy with it.

Now that it's been approved, a couple of questions ...

Can the blink rate be easily changed?

This bbcode has to be used on a line by itself. Any way to change that? e.g. 'blinking text' and 'more text' all on the same line.

« Last Edit: May 03, 2021, 12:25:26 AM by aegersz »
The configuration of my Linux VPS (SMF 2.0 with 155+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,735
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk (drugs and users)
Re: Better Blink BBC
« Reply #11 on: May 03, 2021, 01:18:10 AM »
After uninstalling the mod there are some errors:

Code: [Select]
Type of error: General
Hook call: function "BBC_Blink2::bbc_button" in file /home/xxx/public_html/Sources/BBC-Blink.php could not be called.

Code: [Select]
Type of error: General
Hook call: The file at path: /home/xxx/public_html/Sources/$sourcedir/BBC-Blink.php could not be loaded.

How can I fix them?
Forum version 2.1RC3
Mod version 1.30

This should be fixed after the install/uninstall was restructured. Check/remove the 2 hooks via:

Admin > Maintenance > Forum Maintenance > Integration Hooks
« Last Edit: May 03, 2021, 01:35:18 AM by aegersz »
The configuration of my Linux VPS (SMF 2.0 with 155+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,735
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk (drugs and users)
Re: Better Blink BBC
« Reply #12 on: May 03, 2021, 02:22:33 AM »
Most recent updated versions:

v1.32 (2014-04-28)
Change blink rate to "n" via "Blink=n" option

v1.24 (2014-04-28)
Change blink rate to "n" via "Blink=n" option
The configuration of my Linux VPS (SMF 2.0 with 155+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,916
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Better Blink BBC
« Reply #13 on: May 03, 2021, 06:40:53 AM »
Works beautifully!

Many thanks! :D
Please do not PM me for support.

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,735
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk (drugs and users)
Re: Better Blink BBC
« Reply #14 on: May 03, 2021, 06:43:04 AM »
You're most welcome - it makes me feel good that someone is interested in blinking BBC (!  :))
The configuration of my Linux VPS (SMF 2.0 with 155+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here