Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric

Re: Custom BBCodes

Post by ric323 »

ze_raph wrote:Is there a way to add a unique identifier in a bbcode html replacement? I was thinking about inserting thread ID or maybe even better author ID, just to make sure someone doesn't post the exact same bbcode.

It might help if I really explain what I'm trying to do, in fact I'm trying to modify this Star Rating BBCode so people can post multiple ratings in the same post/page (with the code provided in the link collisions occur when there are more than one instance of the rating system in one page). It's not such a problem to modify the code there to put an ID (a specific path) to your ratings so they don't collide, however if someone then use the same exact path in another thread, ratings apply to both instances.

Here's my html replacement

Code: Select all

<div class="js-kit-rating" title="" starColor="Golden" path="/fof/{IDENTIFIER}" permalink=""></div><script src="http://js-kit.com/for/fretsonfire.net/ratings.js"></script>
What I'd like to have is something unique, not in control of the user between the "/fof/" and the {IDENTIFIER}

Thanks.
If you can't do it with just HTML, then you will need a MOD, not just a custom 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
primetime33
Registered User
Posts: 66
Joined: Sat Nov 15, 2008 6:15 am

Re: Custom BBCodes

Post by primetime33 »

I have handyman's chat installed and want to allow users to chose a font color from a drop down menu with the colors shown. IS this possible and what bbcode would I use?

Thanks,
Prime
kham619
Registered User
Posts: 89
Joined: Wed Apr 22, 2009 10:46 pm
Location: san diego, ca, USA

Re: Custom BBCodes

Post by kham619 »

primetime33 wrote:I have handyman's chat installed and want to allow users to chose a font color from a drop down menu with the colors shown. IS this possible and what bbcode would I use?

Thanks,
Prime
I am also using that chat and have requested what you are seeking. You should refer back to the thread for the AJAX chat box.
http://www.phpbb.com/community/viewtopi ... start=2310
primetime33
Registered User
Posts: 66
Joined: Sat Nov 15, 2008 6:15 am

Re: Custom BBCodes

Post by primetime33 »

kham619 wrote:
primetime33 wrote:I have handyman's chat installed and want to allow users to chose a font color from a drop down menu with the colors shown. IS this possible and what bbcode would I use?

Thanks,
Prime
I am also using that chat and have requested what you are seeking. You should refer back to the thread for the AJAX chat box.
http://www.phpbb.com/community/viewtopi ... start=2310
I didnt quite find what I was looking for in your thread link. But I did find what I was looking for on your forum. It is great!!!
I just want to add the font color choices that you have in your chat.
I also sent you a pm.:D
kham619
Registered User
Posts: 89
Joined: Wed Apr 22, 2009 10:46 pm
Location: san diego, ca, USA

Re: Custom BBCodes

Post by kham619 »

primetime33 wrote:
kham619 wrote:
primetime33 wrote:I have handyman's chat installed and want to allow users to chose a font color from a drop down menu with the colors shown. IS this possible and what bbcode would I use?

Thanks,
Prime
I am also using that chat and have requested what you are seeking. You should refer back to the thread for the AJAX chat box.
http://www.phpbb.com/community/viewtopi ... start=2310
I didnt quite find what I was looking for in your thread link. But I did find what I was looking for on your forum. It is great!!!
I just want to add the font color choices that you have in your chat.
I also sent you a pm.:D
I'll find the link for the code and forward to you. But making adjustments would be a question at the link where I sent u.
User avatar
Vitrosk
Registered User
Posts: 3
Joined: Fri Nov 21, 2008 4:15 pm

Re: Custom BBCodes

Post by Vitrosk »

DJ Andre wrote:Here is my media player -- If you have been working on your own version, when you install this one you gotta make sure to post it again with this new [stream] code, so the post in the SQL database refreshes and adds the new code for this to work.. I get a lot of questions when they tell me why it doesn't work when they refresh their old posted messages with media players --hopefully this isn't the case here.

BBCode usage

Code: Select all

[stream]{URL}[/stream]
HTML replacement

Code: Select all

<object id="MediaPlayer1" width=300height=230
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject" align="middle">
<param name="FileName" value="{URL}">
<param name="AutoStart" value="False">
<param name="ShowStatusBar" value="True">
<param name="DefaultFrame" value="mainFrame">

<!-- BEGIN PLUG-IN HTML FOR FIREFOX-->
<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="{URL}" align="middle"
width=300
height=230
autostart" value="false"
defaultframe="rightFrame"
showstatusbar=true>
</embed>
<!-- END PLUG-IN HTML FOR FIREFOX-->

</object>
<!-- END GENERIC ALL BROWSER FRIENDLY HTML FOR WINDOWS MEDIA PLAYER -->

<br>
<a href="{URL}">Download</a>
Help line

Code: Select all

Description: Insert your music audio URL
Thanks Andre for this BBCode!

I'm using phpBB v3.0.4, and have been struggling a bit with implementing it up to the point when I replaced all {URL} by {TEXT}. Now it shows the little window in the post instead of [stream]Linktofile[/stream]. But... when pressing the play button:

1. In IE7 it works like a charm.
2. In Firefox v3.0.10 it refuses to play.

I've checked both with mp3 and wmv formats. I find it strange because usually I've problems with IE not with Firefox...

Can you help me there, please?

Edit: Shame on me! :oops: I failed to change one instance of {URL} to {TEXT}, precisely the one in the Firefox section. Sorry for trouble caused!

Thanks!
Vitrosk
Better never than late
k4nm4n
Registered User
Posts: 5
Joined: Sun Jun 29, 2008 5:40 pm

Re: Custom BBCodes

Post by k4nm4n »

Ace1121 wrote:Hi folks. I apologise if this has been answered already. I have used the search function and gone through the first 10 pages of this thread but can't find an answer.

I am trying to make a simple link BBcode but it uses a non http protocol. The link I want to achieve is tmtp://#join=servername. This link will take the user to a particular game server (if the user has the game installed).

I have tried
Usage: [join={TEXT}]{TEXT2}[/join]
HTML: <a href="tmtp://#join={TEXT}">{TEXT2}</a>

But this won't work. Can anyone tell me what I am doing wrong?

Thank you.
This code considers works well. I wanted to refresh this reply for those who will be looking to.
User avatar
casper™
Registered User
Posts: 119
Joined: Sat Nov 15, 2008 5:01 am
Location: Porto/Portugal

Re: Custom BBCodes

Post by casper™ »

hi there..

please can anyone embed this page videos for me..

video example:

http://www.videos.iol.pt/consola.php?pr ... y=&pagina=

thanks in advance..
squarevoid
Registered User
Posts: 1
Joined: Mon Oct 29, 2007 6:06 pm

Re: Custom BBCodes

Post by squarevoid »

I was wondering if someone can help me with this BBCode. Been trying to work it out myself, but it just isn't coming out right.

I want a BBCode where a user types in:
[jumpto]5[/jumpto]

and that is automatically converted to a link that will take you to the 5th page of the same topic you are posting on.

Any help would be greatly appreciated.
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric

Re: Custom BBCodes

Post by ric323 »

squarevoid wrote:I was wondering if someone can help me with this BBCode. Been trying to work it out myself, but it just isn't coming out right.

I want a BBCode where a user types in:
[jumpto]5[/jumpto]

and that is automatically converted to a link that will take you to the 5th page of the same topic you are posting on.

Any help would be greatly appreciated.
That would require a MOD.
There is no way for standard HTML to be able to include the correct topic number, or know how many posts per page the user has selected.
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
PHIL63
Registered User
Posts: 14
Joined: Fri Oct 26, 2007 2:53 pm

Re: Custom BBCodes

Post by PHIL63 »

Hi,
I quickly walked the 134 pages of this topic :shock: .... but I have not found what I was looking for. :cry:

Is it possible to achieve a kind of spoiler that would display the first lines of content and that could display the entire height of the content when we press a button.
(code with or without js).

thanks
User avatar
Trogan
Registered User
Posts: 88
Joined: Fri May 08, 2009 8:39 pm
Location: In your dreams

Re: Custom BBCodes

Post by Trogan »

would someone please make a

Code: Select all

[dohtml][/dohtml]
to allow the use of html on my forums and make it admin and registerd users only?


-p.s. i know the risks. and i have run over the 134 pages.
"Yet, As i walk through the valley of the shadows of death. I Shall fear no evil."
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric

Re: Custom BBCodes

Post by ric323 »

Trogan wrote:would someone please make a

Code: Select all

[dohtml][/dohtml]
to allow the use of html on my forums and make it admin and registerd users only?


-p.s. i know the risks. and i have run over the 134 pages.
Do you really know the risks?
Sorry, we will NOT leave any post showing how reduce the security of phpBB on this board.
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
Trogan
Registered User
Posts: 88
Joined: Fri May 08, 2009 8:39 pm
Location: In your dreams

Re: Custom BBCodes

Post by Trogan »

What about Pming me with the code?


[edit] and duh i do know the risks as i could get hacked but i am pass encodeing my forums/subforums with diff passwords and only giving passwords out to people i know and trust.
:sorry if that was mean but i have been waiting about 5 hours for a reply:

[editoncemore] what about an embead code for embeading games?
"Yet, As i walk through the valley of the shadows of death. I Shall fear no evil."
Keith W
Registered User
Posts: 1025
Joined: Mon Dec 13, 2004 6:14 pm

Re: Custom BBCodes

Post by Keith W »

PHIL63 wrote:Hi,
I quickly walked the 134 pages of this topic :shock: .... but I have not found what I was looking for. :cry:

Is it possible to achieve a kind of spoiler that would display the first lines of content and that could display the entire height of the content when we press a button.
(code with or without js).

thanks
Did you miss the first post?
Do not PM me unless I ask you to

Dance like no ones watching. Encrypt like everyone is.

Return to “Custom BBCode Development and Requests”