Page 3 of 267

Re: Custom BBCodes

Posted: Sun Sep 16, 2007 10:35 pm
by CrimsonThunder
I had a read of the code and its pre-aligned to the center. I just changed it to left if anyone needs to know. :)

Re: Custom BBCodes

Posted: Mon Sep 17, 2007 7:13 am
by Reflex1
Marshalrusty wrote:I answered this exact question above
Marshalrusty wrote:
Reflex1 wrote:How should a BBcode be built with tab (right reentry)?
You mean indenting?
http://www.phpbb.com/community/viewtopi ... 6#p3189776
I have tried it but it doesn't work, I don't know why.

Re: Custom BBCodes

Posted: Mon Sep 17, 2007 11:44 am
by jaunty_mellifluous
How can I add alt and title properties to img BBcode?

edit: It's ok I figured it out.

Re: Custom BBCodes

Posted: Mon Sep 17, 2007 6:23 pm
by ~Ivy
Thanks so much for this thread, it was very useful! I'm looking forward to the strikethrough BBCode :D

Re: Custom BBCodes

Posted: Mon Sep 17, 2007 7:02 pm
by bonelifer
Jaymie1989 wrote:Hi,

So would it be this?
1.JPG
I added it and when i go to the post and its like this

Code: Select all

[mp3]http://www.dj-ultra.co.uk/doc/-!Dj-ultra-{-blue-anthem-}-Dj-yates-!--.mp3[/mp3]
when i preview its the same.

So where have i gone wrong.

Go back and look in the HTML replacement code on the top. I had the same problem and then realize that

Code: Select all

[mp3]{URL}[/mp3]
was at the top. Once I removed it everything was fine.

Re: Custom BBCodes

Posted: Tue Sep 18, 2007 4:05 am
by madd74
~Ivy wrote:Thanks so much for this thread, it was very useful! I'm looking forward to the strikethrough BBCode :D
Do you really mean that? For that is simple code... I am not sure if you know this and are being funny or you are raelly hoping someone would post it :)

Re: Custom BBCodes

Posted: Tue Sep 18, 2007 2:02 pm
by jaunty_mellifluous
Is is possible to add alt and title descriptions to Img BBcode tag. Because otherwise any pictures we post on the forums just won't be picked up by search engines. Huge drawback.

Re: Custom BBCodes

Posted: Wed Sep 19, 2007 1:40 pm
by CrimsonThunder
jaunty_mellifluous wrote:Is is possible to add alt and title descriptions to Img BBcode tag. Because otherwise any pictures we post on the forums just won't be picked up by search engines. Huge drawback.
It should be possible, I guess you mean this:

Code: Select all

[img="dolphin"]www.imagesite.com/images/dolphin.jpg[/img]
?

Re: Custom BBCodes

Posted: Wed Sep 19, 2007 4:47 pm
by jaunty_mellifluous
Well, I mean, <img src="http:..." alt="text" title="text" border="0" />, something like this. Meaning a substitute in BBcode for this.

Re: Custom BBCodes

Posted: Wed Sep 19, 2007 5:47 pm
by jaunty_mellifluous
If someone is posting images and trying to align them using the current methods shown in this thread. They might have noticed that the text with which it was aligned appears below the image. Not with the image.

A better way is to use floats instead of align.

For example, for left use BBcode

[left]{text}[/left]

and html can be

<div style="float: left;"> text </div>

Same ways for right..

[right]{text}[/right]

<div style="float: right;"> text </div>

Re: Custom BBCodes

Posted: Thu Sep 20, 2007 8:01 pm
by oglach
when i add videos, in the post when viewing it shows up the tags and link aswell as the video?

Re: Custom BBCodes

Posted: Thu Sep 20, 2007 10:45 pm
by Marshalrusty
oglach wrote:when i add videos, in the post when viewing it shows up the tags and link aswell as the video?
Is that a question, or are you stating that's what happens? If properly done, that shouldn't happen.

Re: Custom BBCodes

Posted: Fri Sep 21, 2007 8:52 am
by dumdum1974
Windows Media player embeded

BBcode:

Code: Select all

[Embed]{TEXT}[/Embed]
HTML replacement:

Code: Select all

<div align="center"><embed src="{TEXT}" width="320" height="240" autostart="0" showcontrols="1" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/windowsmedia/download/"> </embed></div>
You can change some setting as you wish aotostart,showcontrols size etc etc
;)

Adding title and alt text to Images.

Posted: Fri Sep 21, 2007 11:28 am
by jaunty_mellifluous
BBcode,

Code: Select all

[image{text2}]{text1}[/image]
HTML,

Code: Select all

<img src="{text1}" alt="{text2}" title="{text2}" border="0" />
It's important that you're adding title and alt text to your images because search engines only list your images depending on those values.

Re: Custom BBCodes

Posted: Fri Sep 21, 2007 3:44 pm
by oglach
Jaymie1989 wrote:Hi,

I added it and when i go to the post and its like this

Code: Select all

[mp3]http://www.dj-ultra.co.uk/doc/-!Dj-ultra-{-blue-anthem-}-Dj-yates-!--.mp3[/mp3]
when i preview its the same.

So where have i gone wrong.

here i used this mod, i also used the alignmods etc,


the mods work except the prob is it shows up the tags and link as he said in the above post? why is this