PDA

View Full Version : [shot] Tags



Amit
June 28th, 2011, 03:13 PM
What's the code that Modacity uses to define the HTML replacement for the [shot] tags?

I'm trying to add it to another forum's BB code set but I can't find code that will work.

Kornman00
June 28th, 2011, 03:24 PM
This is what we use at halomods:

<a href="{content}"><img src="{content}" style="width:800px" /></a>

Amit
June 28th, 2011, 03:39 PM
Hmm, my post showed up as this:

http://i66.photobucket.com/albums/h262/amit9821/2459551_78879008_3839059.png

Does the {content} token need to be available on the forum?

These are the only ones I see:

http://img813.imageshack.us/img813/1820/2459551788791063839068.png

Cortexian
June 28th, 2011, 04:01 PM
Do yourself a favor and get a forum plugin that will automatically resize images that are larger than you want. I know these exists for phpBB as well as vBulletin, it's better than relying on your users to know how bulletin board software works and check the custom BB Codes.

You would want to use this for phpBB though:

<a href="{URL}"><img src="{URL}" style="width:800px" /></a>That forces them to use a URL in the tag, not just some random text.

Amit
June 28th, 2011, 04:31 PM
That was the first thing I tried. I ended up with this: http://cncfleet.com/phpBB3/viewtopic.php?f=2&t=1510\

I'll look for a plugin, though.

Amit
July 2nd, 2011, 02:43 AM
Fixed this. Turns out i was doing the example wrong. I needed to put:


{URL}

instead of


{actual URL of a random image lol}

Cortexian
July 2nd, 2011, 03:26 AM
Rookie mistake heh.

Amit
July 2nd, 2011, 06:39 PM
Well, seeing as there are zero tutorials on how to add shot tags and the only one I found was from some weird guy that got it working on his own board, I couldn't say that it was my own mistake. Then again, I should probably have looked at tutorials for adding other BBcode tags. Then I might have realized that the tokens actually serve a purpose in the example box.