[3.2][3.3][RC] Flip BBCode

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
Sniper_E
Registered User
Posts: 1235
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

[3.2][3.3][RC] Flip BBCode

Post by Sniper_E »

Extension Name: Flip Images BBCode
Author: Sniper_E
Extension Description: Adds flip BBCode to posting. Flips 2 images on hover.
Insert two different image urls... Use the largest width and height of the two images.

Demo: Two Examples (Plus a couple of flips in the header)
Flip images: [flip=front-image-url,width-number,height-number]back-image-url[/flip]

Image Image

Extension Download: flipimages_1.0.0.zip

Installation:
  1. Download the latest release and unzip content.
  2. Copy the contents to ext/sniper/flipimages/
  3. Enable extension in the ACP
Enjoy!
Last edited by Sniper_E on Fri Nov 10, 2023 11:05 am, edited 2 times in total.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
scheccia
Registered User
Posts: 94
Joined: Fri Feb 10, 2017 8:16 am

Re: [3.2][3.3][RC] Flip Images BBCode

Post by scheccia »

In mobile mode, you can't see anything
User avatar
Sniper_E
Registered User
Posts: 1235
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][RC] Flip BBCode

Post by Sniper_E »

It's hidden...

Code: Select all

@media (max-width: 600px) { .flip-bbcode { display: none; } }
Flip does not work in small resolution. It want show the image but it will still take up the space. So I hid it at 600px resolution.

Try sideways view on your mobile it's not hidden there.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
max-ima
Registered User
Posts: 106
Joined: Mon Mar 07, 2022 8:52 am

Re: [3.2][3.3][RC] Flip BBCode

Post by max-ima »

Extension Download: The selected attachment does not exist anymore.
User avatar
Sniper_E
Registered User
Posts: 1235
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][RC] Flip BBCode

Post by Sniper_E »

Sorry, just saw this again. First post updated.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
Bruce Banner
Registered User
Posts: 1383
Joined: Thu Sep 25, 2014 10:36 am

Re: [3.2][3.3][RC] Flip BBCode

Post by Bruce Banner »

Hi. Sorry, just noticed a problem with the helpline. When you hover over the icon, instead of

Code: Select all

Flip images: [flip=front-image-url,width-number,height-number]back-image-url[/flip]
what appears is actually just

Code: Select all

FLIPIMAGE_EXPLAIN
User avatar
Sniper_E
Registered User
Posts: 1235
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][RC] Flip BBCode

Post by Sniper_E »

Sorry that should be FLIPIMAGES_EXPLAIN in styles/template/event/vse_abbc3_posting_editor_buttons_custom_tags_before.html
Change the title in that line to title="{{ lang('FLIPIMAGES_EXPLAIN') }}" <- It is missing the S
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
Bruce Banner
Registered User
Posts: 1383
Joined: Thu Sep 25, 2014 10:36 am

Re: [3.2][3.3][RC] Flip BBCode

Post by Bruce Banner »

Sniper_E wrote: Sat Nov 18, 2023 5:47 am Sorry that should be FLIPIMAGES_EXPLAIN in styles/template/event/vse_abbc3_posting_editor_buttons_custom_tags_before.html
Change the title in that line to title="{{ lang('FLIPIMAGES_EXPLAIN') }}" <- It is missing the S
Great, that did it, thanks.
User avatar
nou nou
Registered User
Posts: 769
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.2][3.3][RC] Flip BBCode

Post by nou nou »

Will try this out! Very useful for before/after images :)
User avatar
eunaumtenhoid
Registered User
Posts: 1157
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.2][3.3][RC] Flip BBCode

Post by eunaumtenhoid »

Excellent, does this work with text too? When you hover the mouse over an image it changes and shows text
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
Sniper_E
Registered User
Posts: 1235
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][RC] Flip BBCode

Post by Sniper_E »

Sure, if you have an image with text in it.
Just kidding... but not really kidding... My logo on my site has text images.

I've actually never tried flipping to text, but yes it can be done.
Just tested at my site and it didn't work. The bbcode would have to change to make that possible.

I had to created a new bbcode to make that possible.

bbcode

Code: Select all

[flip2text={URL1},{NUMBER1},{NUMBER2}]{SIMPLETEXT}[/flip2text]
html replacement

Code: Select all

<div class="flip-bbcode" style="width: {NUMBER1}px;height: {NUMBER2}px">
	<div class="flip-box">
		<div class="flip-box-inner">
			<div class="flip-box-front">
				<img src="{URL1}" alt="" />
			</div>
			<div class="flip-box-back">
				{SIMPLETEXT}
			</div>
		</div>
	</div>
</div>
You can check out my test post using that bbcode @ Flip Image to Text
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
eunaumtenhoid
Registered User
Posts: 1157
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.2][3.3][RC] Flip BBCode

Post by eunaumtenhoid »

nice, tks!
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

Return to “Extensions in Development”