The following warnings occurred:
Warning [2] Undefined variable $search_thread - Line: 60 - File: showthread.php(1617) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1617) : eval()'d code 60 errorHandler->error_callback
/showthread.php 1617 eval
Warning [2] Undefined variable $forumjump - Line: 89 - File: showthread.php(1617) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1617) : eval()'d code 89 errorHandler->error_callback
/showthread.php 1617 eval




Custom BBCode: [right] and [left]
#1
This is a pretty minor request, but also one hopefully very easy to fulfill. I've been wanting to incorporate a couple of images into posts, but have them aligned floated either left or right with the text going around them (as in, not inline with the text). From what I can tell, typical custom BBCode commands such as [align=right] or [imgright] have not been added yet.

It's been a pretty long time since I last managed a forum running on phpBB (I've been using either SMF or vBulletin in recent years), so I didn't remember offhand how to make custom BBCode. Fortunately, Google has provided the answers! Yay, Google!

According to Custom BBCodes on the phpBB website, I'm looking for something similar to:

Code:
[align=right]{TEXT}[/align]
Code:
<div align="right]{TEXT}</div>
or
Code:
<div style="float:right;]{TEXT}</div>

and

Code:
[left]{TEXT}[/left]
Code:
<div align="left]{TEXT}</div>
or
Code:
<div style="float:left;]{TEXT}</div>

The code is created under the Admin Control Panel. You can create a new tag on the BBCode page under the Posting page.

If some variation of these codes are already in place, apologies for making a superfluous request. Just toss along the appropriate code for a girl so I can get out of your hair! If they're not, thanks for taking the request into consideration. It should be really simple to implement (of course, this is not having run phpBB myself for a number of years, so I might be lying!) and I would be full of much happiness. A happy Piroska is a good Piroska!

Thank you for your time and consideration.
Reply
#2
[left]All[/left]
done.
Squee! ^_^
Reply
#3
My love for you is like a lovely river of loving, love.

Lorem Ipsum test!
[Image: bp_vhart_013.png]
Sed elementum auctor odio, in luctus ante volutpat sed. Ut pulvinar fringilla diam, vel mollis est volutpat non. Cras gravida augue at purus malesuada vitae imperdiet libero sagittis. Duis vel tempor est. Donec sed turpis mauris, a viverra metus. Integer neque mi, ultricies ac convallis ultricies, vulputate fermentum velit. Curabitur tristique euismod varius. Aliquam libero velit, sodales vel semper quis, rhoncus nec ligula. Aenean nec tincidunt neque. Maecenas luctus aliquam mollis. Morbi non risus quis lacus malesuada tristique. Quisque vitae metus nec leo gravida iaculis vitae sit amet est. Ut vestibulum consequat nisi sed varius. Cras molestie, tellus id accumsan lacinia, enim nisl sodales eros, quis elementum nibh orci in nulla. Fusce tincidunt aliquet enim, a aliquet metus dignissim eget. Quisque quis ante quis tellus congue luctus. Donec sagittis justo quis felis semper sollicitudin. Suspendisse dictum mollis laoreet.

Vivamus ac pharetra diam. Nunc porta accumsan massa non hendrerit. Aenean ultrices vehicula lacinia. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Ut in velit sed nulla sagittis lacinia ut facilisis elit. Maecenas feugiat cursus commodo. Quisque iaculis urna eu quam placerat accumsan. Sed rutrum, dolor ut elementum consectetur, mi massa congue arcu, ornare pharetra nunc neque quis purus. Donec nec scelerisque neque. Nulla lobortis ligula sodales justo laoreet venenatis. Phasellus sit amet lacinia tellus. Ut at lacus at sem posuere iaculis. Aenean vitae lorem vitae orci mollis hendrerit vitae ac purus. In mollis faucibus magna, eget pretium enim posuere venenatis. Morbi luctus elementum aliquam. Suspendisse a auctor arcu.




Bah! My only concern is that the image is aligned to the right, but it's inline with the text. I was kinda hoping for something where the text would continue around the image. The float tags that I wrote (the second HTML code for each BBCode) might fix it. Sorry for the confusion; I should have just used only the second set of code rather than providing a choice. That's what I get for relying on Google rather than using common sense!

Code:
<div style="float:right;]{TEXT}</div>
Code:
<div style="float:left;]{TEXT}</div>

These will allow the text to flow around the floated object (in my case, the lovely loving heart of love) rather than have it inline.

It's not a big deal; I'm just a picky person, haha. Otherwise, this is full of awesome and win. Thanks, Kretol!


Edit: Hey! Three thousand posts! Very spiffy, sir.
Reply
#4
How DARE you provide choices! How. Dare. You.
Reply
#5
How dare me! I will punish myself by spending another dozen hours this week working on the wiki and beautifying it. Shame on me. Shame! Maybe I'll start working on deleting those 400+ articles without content. ... and linking the 1,500+ deadend articles. That's punishment enough, right?

... right?

Oh, and look! Loooook! The text moves beautifully around the heart that I found while scouring the internet. Just for you! For yooooou! Isn't it amazing? It's perfect! That, Kretol, is exactly the result I wanted. Thank you again!


Edit:

Lorem Ipsum test! (take 2)

[left][Image: Theregiment-emblem.png][/left]Nam lacinia purus eu urna sagittis eu feugiat sem tempor. Nulla odio urna, posuere eu aliquam vitae, blandit sit amet arcu. Vivamus sit amet dui sem, at placerat elit. Duis sollicitudin, turpis et volutpat bibendum, diam dolor tincidunt nisl, non auctor tortor eros eu diam. Nam porta dignissim odio, vel gravida nisi pharetra hendrerit. Donec a nulla metus. Ut leo leo, ultricies ultricies ultrices id, porttitor quis nunc. Mauris eget varius magna. Phasellus aliquam vulputate lacinia. Proin non lorem eu nulla gravida iaculis. Fusce odio est, euismod sit amet iaculis congue, lacinia varius arcu. Curabitur neque quam, blandit vel venenatis in, blandit nec dolor. Aenean rutrum malesuada neque non molestie.

Vivamus facilisis malesuada nisi, vel tristique elit posuere eu. Aenean metus mauris, sollicitudin vel imperdiet a, vehicula quis justo. Praesent porta ipsum nec quam consectetur vestibulum. Sed orci tortor, mattis ac tincidunt in, pellentesque sit amet augue. Praesent rutrum leo dolor. Curabitur aliquam faucibus metus, eu sagittis quam sagittis at. Proin sit amet sem a mi pulvinar rutrum. Donec vitae ultrices lacus. Ut erat ante, consectetur quis laoreet quis, euismod nec tellus. Donec egestas magna a ante pulvinar eu elementum sapien interdum. Aliquam mattis rutrum venenatis. Cras vel lorem at nibh varius placerat.
Reply
#6
... Stop being so good Piroska or I will have to eliminate you

PERMANENTLY.
Azheron's back in business. For reals.
Reply
#7
I don't like this one bit. Not. One. Bit! Piroska is too good/perfect to be true =.= WHATS YOUR ANGLE?! COTH WORLD DOMINATION!?!

I knew it.. KNEW IT I SAY!
[Image: crashbandicootdrak.png]
[Image: IconSmall_Undead_Male.gif]Chad - 'Crazy' Forsaken
[Image: IconSmall_Bolvar.gif]Drakus Ashfollow - Human Tinker

Spoiler:
[Image: tumblr_m4r3lmVYKd1qbxrpzo1_r1_250.gif] [Image: tumblr_m4r3lmVYKd1qbxrpzo2_r1_250.gif]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom Places: Animal Sanctuary Alliicce 16 4,010 07-11-2014, 06:52 PM
Last Post: Alliicce
  Adding custom items to vendors? FlyingSquirrel 9 2,476 01-03-2014, 11:45 AM
Last Post: FlyingSquirrel
  Custom Location Suggestion Andy7565 2 1,124 08-25-2013, 11:30 AM
Last Post: Kimaira
  Huge List of Custom Items Delta 7 4,030 06-05-2013, 02:34 PM
Last Post: Delta
  Custom Item Request - Gilnean Clothing sunday12321 19 4,466 04-23-2013, 11:21 AM
Last Post: sunday12321



Users browsing this thread: 1 Guest(s)