Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
User avatar
AmigoJack
Registered User
Posts: 5625
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Custom BBCodes

Post by AmigoJack » Tue Apr 26, 2011 6:39 am

This complements both [url] and [url=] in function and syntax. Also works with JavaScript switched off. Tested. First the BBCode definition, second is the HTML replacement.

Code: Select all

[popup]{URL}[/popup]

Code: Select all

<a href="{URL}" target="_blank" onclick="window.open( '{URL}', '', 'width=300,height=400,left=100,top=200' ); return false">{URL}</a>

Code: Select all

[popup={URL}]{TEXT}[/popup]

Code: Select all

<a href="{URL}" target="_blank" onclick="window.open( '{URL}', '', 'width=300,height=400,left=100,top=200' ); return false">{TEXT}</a>
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
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.

User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: Custom BBCodes

Post by keith10456 » Tue Apr 26, 2011 2:17 pm

AmigoJack wrote:This complements both [url] and [url=] in function and syntax. Also works with JavaScript switched off. Tested. First the BBCode definition, second is the HTML replacement.

Code: Select all

[popup]{URL}[/popup]

Code: Select all

<a href="{URL}" target="_blank" onclick="window.open( '{URL}', '', 'width=300,height=400,left=100,top=200' ); return false">{URL}</a>

Code: Select all

[popup={URL}]{TEXT}[/popup]

Code: Select all

<a href="{URL}" target="_blank" onclick="window.open( '{URL}', '', 'width=300,height=400,left=100,top=200' ); return false">{TEXT}</a>

Thanks for sharing.

Is every pop-up going to be the dimensions listed in the HTML replacement?

User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: Custom BBCodes

Post by keith10456 » Tue Apr 26, 2011 2:26 pm

Just tested... To answer my question, yes it does. However, the pop-up window posses the scrolling bars, which is perfect.

Great BBCode ;)

Richazey
Registered User
Posts: 823
Joined: Mon Oct 27, 2008 9:03 pm

Re: Custom BBCodes

Post by Richazey » Tue Apr 26, 2011 9:47 pm

Richazey wrote:While on the subject of video type bbcodes, i'm trying to get a BBCode for footytube, this is the embed code you can get per video

Code: Select all

<object width="480" height="295"><param name="movie" value="http://www.footytube.com/v/ODAxMDQ="></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.footytube.com/v/ODAxMDQ=" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>
So far not had much luck in making it work as a BBCode anoyne got any tips please.

Site is here if you want to look direct: http://www.footytube.com/video/manchest ... ov_vidgrid
Solved it

fanstalkingsports
Registered User
Posts: 8
Joined: Thu Mar 17, 2011 7:35 pm
Contact:

Re: Custom BBCodes

Post by fanstalkingsports » Thu Apr 28, 2011 9:09 pm

Is there a BBCode out there that I could use for NSFW pics? Any help would be appreciated. A PM would be appreciated or an email fanstalkingsports@gmail.com Thanks in advance.

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 » Fri Apr 29, 2011 2:29 am

fanstalkingsports wrote:Is there a BBCode out there that I could use for NSFW pics?
Not Safe For Work stuff might be able to use the spoiler tags. If those don't work for images, you could try something like my Card tag.

Steve
Last edited by Pony99CA on Fri Apr 29, 2011 9:25 pm, edited 1 time in total.
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.

User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3476
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Re: Custom BBCodes

Post by bonelifer » Fri Apr 29, 2011 2:40 am

fanstalkingsports wrote:Is there a BBCode out there that I could use for NSFW pics? Any help would be appreciated. A PM would be appreciated or an email fanstalkingsports@gmail.com Thanks in advance.

You could use a POST ICON and place it in:
yourboard.tld/FORUM/images/icons/misc/

Here's one I've used on one forum I administrate that allows these sorts of things.
Image
Knowledge Base | phpBB Board Rules | Search Customisation Database
Image
Please don't contact me via PM or email for phpBB support .

notuo
Registered User
Posts: 47
Joined: Wed Apr 20, 2011 4:02 pm

Re: Custom BBCodes

Post by notuo » Fri Apr 29, 2011 3:35 pm

Hi. I cannot nested some custom BBCodes: Example:

I made these, upon some info in this thread:

Code: Select all

[s]{SIMPLETEXT}[/s] as
<span style="text-decoration: line-through">{SIMPLETEXT}</span>

[align={SIMPLETEXTTEXT}]{TEXT}[/align] as
<div style="text-align: {SIMPLETEXT};">{TEXT}</div>
There is problems using them combined with others: Example:

With accented chars: botón spoiler doesn't work
with text in quotes: de "Usuario aleatorio" doesn't work

Those are tested within a
  • element

    align doesn't work at all. [align=center]Estoy retomando el hilo del foro.[/align]

    Any ideas?

User avatar
AmigoJack
Registered User
Posts: 5625
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Custom BBCodes

Post by AmigoJack » Fri Apr 29, 2011 3:48 pm

notuo wrote:I made these, upon some info in this thread:

Code: Select all

[s]{SIMPLETEXT}[/s] as
<span style="text-decoration: line-through">{SIMPLETEXT}</span>

[align={SIMPLETEXTTEXT}]{TEXT}[/align] as
<div style="text-align: {SIMPLETEXT};">{TEXT}</div>
Both are wrong. Use these definitions:
  • Code: Select all

    [s]{TEXT}[/s]

    Code: Select all

    <span style="text-decoration: line-through">{TEXT}</span>
  • Code: Select all

    [align={IDENTIFIER}]{TEXT}[/align]

    Code: Select all

    <span style="text-align: {IDENTIFIER}; display: block;">{TEXT}</span>
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
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.

notuo
Registered User
Posts: 47
Joined: Wed Apr 20, 2011 4:02 pm

Re: Custom BBCodes

Post by notuo » Fri Apr 29, 2011 4:00 pm

Thank you amigojack, it worked fine.

fanstalkingsports
Registered User
Posts: 8
Joined: Thu Mar 17, 2011 7:35 pm
Contact:

Re: Custom BBCodes

Post by fanstalkingsports » Fri Apr 29, 2011 4:05 pm

bonelifer wrote:
fanstalkingsports wrote:Is there a BBCode out there that I could use for NSFW pics? Any help would be appreciated. A PM would be appreciated or an email fanstalkingsports@gmail.com Thanks in advance.

You could use a POST ICON and place it in:
yourboard.tld/FORUM/images/icons/misc/

Here's one I've used on one forum I administrate that allows these sorts of things.
Image
Does that work as a button? I mean if people cick on the NSFW button will the picture show up? I've seen the NSFW on other sites and would like to use it as well.

User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3476
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Re: Custom BBCodes

Post by bonelifer » Fri Apr 29, 2011 6:48 pm

No it is a "Post icon". would be part of the Topic Icon on Viewforum. So nothing would be hidden, they'd just be able to see it is NSFW before clicking on the topic.
Knowledge Base | phpBB Board Rules | Search Customisation Database
Image
Please don't contact me via PM or email for phpBB support .

fanstalkingsports
Registered User
Posts: 8
Joined: Thu Mar 17, 2011 7:35 pm
Contact:

Re: Custom BBCodes

Post by fanstalkingsports » Fri Apr 29, 2011 7:26 pm

bonelifer wrote:No it is a "Post icon". would be part of the Topic Icon on Viewforum. So nothing would be hidden, they'd just be able to see it is NSFW before clicking on the topic.
Yeah I'd kinda like something like this

http://www.fvsports.com/forum/showthrea ... ost2512417

(Post #16)

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 » Fri Apr 29, 2011 9:27 pm

fanstalkingsports wrote:I'd kinda like something like this

http://www.fvsports.com/forum/showthrea ... ost2512417

(Post #16)
Did you even bother reading my post?

Steve

P.S. You really should remove your E-mail address from you original post unless you love spam.
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.

fanstalkingsports
Registered User
Posts: 8
Joined: Thu Mar 17, 2011 7:35 pm
Contact:

Re: Custom BBCodes

Post by fanstalkingsports » Mon May 02, 2011 3:54 pm

Pony99CA wrote:
fanstalkingsports wrote:I'd kinda like something like this

http://www.fvsports.com/forum/showthrea ... ost2512417

(Post #16)
Did you even bother reading my post?

Steve

P.S. You really should remove your E-mail address from you original post unless you love spam.
Yes I read your post and had no flipping idea what you were talking about. Sorry if my web knowledge isn't high enough for you.

Locked

Return to “Custom BBCode Development and Requests”