*SOLVED* BBcode and image ?

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Get Involved
Locked
clight77
Registered User
Posts: 907
Joined: Sun May 11, 2003 11:09 pm

*SOLVED* BBcode and image ?

Post by clight77 » Tue Jan 19, 2010 3:56 am

BBcode and image ?

Hi , i do not really know where to ask this.

I would like to know how to add an image to a bbcode.
IE: such as with IMDB so when the bbcode is used it shows an image file in the post and not surrounded by [imdb= ] [/imdb= ]
I would like the [imdb ] to be an image file.

Thanks. :)
Last edited by clight77 on Wed Jan 20, 2010 1:37 am, edited 1 time in total.
I Follow Up On My Posts.
So Should Everybody...

User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Re: BBcode and image ?

Post by -ds- » Tue Jan 19, 2010 8:01 pm

How about something like this:

BBCode:

Code: Select all

[imdb]{URL}[/imdb]
HTML Replacement:

Code: Select all

<a href="{URL}">
  <img src="www.mysite.com/my_imdb_bbcode_image.jpg" border="0" alt="IMDB Link">
</a>

Maybe read this for more info on bbcodes: http://www.phpbb.com/community/viewtopi ... 6&t=579376 and here: http://www.phpbb.com/kb/article/adding- ... in-phpbb3/

clight77
Registered User
Posts: 907
Joined: Sun May 11, 2003 11:09 pm

Re: BBcode and image ?

Post by clight77 » Wed Jan 20, 2010 1:20 am

-ds- wrote:How about something like this:

BBCode:

Code: Select all

[imdb]{URL}[/imdb]
HTML Replacement:

Code: Select all

<a href="{URL}">
  <img src="www.mysite.com/my_imdb_bbcode_image.jpg" border="0" alt="IMDB Link">
</a>

Maybe read this for more info on bbcodes: http://www.phpbb.com/community/viewtopi ... 6&t=579376 and here: http://www.phpbb.com/kb/article/adding- ... in-phpbb3/
Thanks for the help :)

This did what i wanted :)

HTML Replacement:

<a href="{URL}">
<img src="http://www.mysite.com/forum/imdb.jpg" border="0" alt="IMDB Link">
</a>
Last edited by clight77 on Wed Jan 20, 2010 1:37 am, edited 1 time in total.
I Follow Up On My Posts.
So Should Everybody...

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: BBcode and image ?

Post by 4_seven » Wed Jan 20, 2010 1:24 am

BBCode:

Code: Select all

[imdb]{URL}[/imdb]
HTML Replacement:

Code: Select all

<a href="{URL}"><img src="{URL}" border="0" alt="" /></a>
Current Mods | Mod Base | php(BB) programming | No help via PM

Locked

Return to “[3.0.x] MOD Requests”

Who is online

Users browsing this forum: Google [Bot] and 12 guests