Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
Pony99CA
Registered User
Posts: 4783
Joined: Thu Sep 30, 2004 3:13 pm
Location: Hollister, CA
Name: Steve
Contact:

Re: Custom BBCodes

Post by Pony99CA »

DaMuzikBox wrote:When will a HIDE BB Code be created where you have to reply to see what the Hide Tags are surrounding?
Do you mean that you'd actually have to post a reply to see what the HIDE tags were hiding, or that you'd have to merely QUOTE the post so that you could see what the tags were hiding in the Post editor?

The former would be extremely difficult, I suspect. There aren't any inter-post or context-sensitive BBCodes that I'm aware of.

The latter is very easy. Just have the BBCodes wrap SPAN or DIV tags around the text with the following STYLE attribute:

Code: Select all

style="display: none;"
That will hide the text in the post but allow people quoting (or editing) the post to see what's in there.

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.
DaMuzikBox
Registered User
Posts: 35
Joined: Thu Sep 16, 2010 5:19 pm

Re: Custom BBCodes

Post by DaMuzikBox »

Yea,they had a hide hack for phpbb2


if I Use that code will people see the hidden message after they reply or that's a code that ONLY the author and whoever quotes it can see?
User avatar
AmigoJack
Registered User
Posts: 6108
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Custom BBCodes

Post by AmigoJack »

DaMuzikBox wrote:will people see the hidden message after they reply
No.
DaMuzikBox wrote:that's a code that ONLY the author and whoever quotes it can see?
Also no.
Pony99CA wrote:

Code: Select all

style="display: none;"
That will hide the text in the post but allow people quoting (or editing) the post to see what's in there.
Pony99CA clearly explained it. Please read again. What you want is not possible with a custom BBCode alone.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
DaMuzikBox
Registered User
Posts: 35
Joined: Thu Sep 16, 2010 5:19 pm

Re: Custom BBCodes

Post by DaMuzikBox »

Why not if one was able to be made the previous phpbb version
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Custom BBCodes

Post by ric323 »

DaMuzikBox wrote:Why not if one was able to be made the previous phpbb version
What was the code used in phpBB2?
As already mentioned, custom bbcodes just replace text with HTML. It's not possible with just HTML to detect if someone has replied to a post.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions
Admiral313
Registered User
Posts: 2
Joined: Fri Sep 24, 2010 5:28 am

Re: Custom BBCodes

Post by Admiral313 »

"post a reply to see what the HIDE tags were hiding"


so this bbcode doesnt exist for the newer version ?
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Custom BBCodes

Post by ric323 »

Admiral313 wrote:"post a reply to see what the HIDE tags were hiding"


so this bbcode doesnt exist for the newer version ?
No, as just stated, I don't see how you could do it with just a custom BBCODE.
How was it done in whatever "older version" you are referring to? It was probably a MOD, not just a BBCODE.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions
DaMuzikBox
Registered User
Posts: 35
Joined: Thu Sep 16, 2010 5:19 pm

Re: Custom BBCodes

Post by DaMuzikBox »

Yes it was a modification.
Necropsycho
Registered User
Posts: 45
Joined: Thu Aug 19, 2010 11:43 am

new image resizer code

Post by Necropsycho »

This BBcode resizes the uploaded image to 200px. When you move over with the mouse, the image will be shown in original size.
You can ofcourse change the 200px into what ever you like.

Code: Select all

[imgth]{URL}[/imgth]
Html

Code: Select all

<img style="max-width:200px;" src="{URL}" onmouseover="this.style.maxWidth='100%'" onmouseout="this.style.maxWidth='200px'">
Help Line:

Code: Select all

Reduces the image to a 200px thumbnail. On mouseover the image will be shown in a larger size.
workin like charm
Nu Kua
Registered User
Posts: 18
Joined: Thu Aug 21, 2008 12:54 am

Re: Custom BBCodes

Post by Nu Kua »

No matter what format I try, I can not get a single Google vid code to work. If lucky enough that a video will actually post, nothing happens at all when one clicks on the Play button.
Don't get it, the You tube instructions worked like a charm.

Could it be some board wide setting re flash I need to change?

In using the google vid code listed in the first post, I notice the html replacement is the exact same for each example- the URL option or the number option. Could this be the issue?


I've read through the entire topic and will do so again in case I missed something obvious, but I'm wondering has something new been added since the topic was created?

Honestly this is me
Image
I know it should be simple, what on earth could I be missing?
wadie
Registered User
Posts: 558
Joined: Sun May 02, 2010 5:05 am
Location: Your ACP
Name: Wadie

Re: new image resizer code

Post by wadie »

Niice!! ;)
Need a custom style made ? want me to install a MOD for you ? Contact me here.
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Custom BBCodes

Post by ric323 »

Nu Kua wrote:No matter what format I try, I can not get a single Google vid code to work. If lucky enough that a video will actually post, nothing happens at all when one clicks on the Play button.
Don't get it, the You tube instructions worked like a charm.
Please show us a screen capture of where you set up the bbcode, and a link to a post on your board where you tested it.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions
User avatar
Melora
Registered User
Posts: 43
Joined: Tue Oct 07, 2003 9:14 pm
Location: here

Re: Custom BBCodes

Post by Melora »

I'm trying to make a custom BBCode that will include a 5pixel white border around images. (I need the border as a spacer for an art forum's avatar display method.) but for some reason the border aspect of the code isn't working for images. All the other BBCodes I've added have worked... I'm so confused :|

This is what I want to add that itsn't working:

Code: Select all

[avatarimg]{URL}[/avatarimg]

Code: Select all

<img src="{URL}" border="5px" style="border-color:#fff" />
I need it to work with this code, which is working:

Code: Select all

[avatartable]{TEXT}[/avatartable]

Code: Select all

<table width="565" border="0" cellpadding="5">
  <tr>
    <td bgcolor="#fff"><div align="center">{TEXT}</div></td>
  </tr>
</table>
So that, if it were in an html file, it would look like this:

Code: Select all

<table width="565" border="0" cellpadding="5">
  <tr>
    <td bgcolor="#fff"><div align="center">
<img src="http://img.jpg" border="5px" style="border-color:#fff" />
<img src="http://img.jpg" border="5px" style="border-color:#fff" />
<img src="http://img.jpg" border="5px" style="border-color:#fff" />
<img src="http://img.jpg" border="5px" style="border-color:#fff" />
<img src="http://img.jpg" border="5px" style="border-color:#fff" />
</div></td>
  </tr>
</table>
I hope someone can help me, Thanks!
Nu Kua
Registered User
Posts: 18
Joined: Thu Aug 21, 2008 12:54 am

Re: Custom BBCodes

Post by Nu Kua »

ric323 wrote:
Nu Kua wrote:No matter what format I try, I can not get a single Google vid code to work. If lucky enough that a video will actually post, nothing happens at all when one clicks on the Play button.
Don't get it, the You tube instructions worked like a charm.
Please show us a screen capture of where you set up the bbcode, and a link to a post on your board where you tested it.
Thank you!

This is condensed from the screenshot:

Image

btw there is A bracket before 'googlevid' but some of it got cut off in the cut, copy and paste.

This is the link to the posts.

The examples you see with nothing but code include me copying and pasting the google code from the first post, as well as some others throughout the thread. For obvious reasons some I tried that gave me a warning message, I didn't go through with.

The code above is what I used to get the last test post I made before I gave up in the name of sanity and came over here to get help from the experts. :ugeek:
Thank you!
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Custom BBCodes

Post by ric323 »

Nu Kua wrote:]No matter what format I try, I can not get a single Google vid code to work. If lucky enough that a video will actually post, nothing happens at all when one clicks on the Play button.
The code you are trying to use is nothing at all like what is suggested for Google Videos in the first post of this topic.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions
Locked

Return to “Custom BBCode Development and Requests”