Any BBCode experts?

User avatar
Wain
The Insane
The Insane
Posts: 13867
Joined: Tue Jul 27, 2010 1:54 am
Gender: Male

Any BBCode experts?

Unread post by Wain »

I was hoping for some advice from someone who has advanced BBCode experience.

To my untameables lists I'm trying to add thumbnail pics and url links to a full-sized pic. Both full and thumbnail pics are stored on this site. To do this I've been doing something like:

Code: Select all

[url=http://forums.wow-petopia.com/hugeUrlStringForFullPicFileblahblahblah][img]http://forums.wow-petopia.com/hugeUrlStringForThumbnailPicFileblahblahblah[/img]Text for the skin name[/url]
But this adds up VERY fast. I very soon reach my post character limit and I simply can't fit many skins per post. It would take pages to get it all in, even though the finished product doesn't appear to have much text at all.

I was wondering if any experts know any shortcuts to this to get my actual text per post down and fit more appearances into one post. Is there any way I can refer to the site url with some sort of shorthand? Or any way I could define a few text strings for the file paths so I could use them over and over, kind of like a #define in C? :) Or anything else you can think of?

Thanks for your help :)
Shaman avatar by Spiritbinder.
User avatar
Acherontia
 Community Resource
 Community Resource
Posts: 3072
Joined: Mon Jan 25, 2010 12:27 pm
Realm: Argent Dawn EU
Gender: Female

Re: Any BBCode experts?

Unread post by Acherontia »

I don't personally, but one piece of advice just to cut down on the path size is, have you tried TinyURLing it, or just uploading them straight to Tinypic? It won't be a HUGE help (hopefully someone here does know code) but it should cut all of the path lengths at least in half.
TygerDarkstorm
 Community Resource
 Community Resource
Posts: 14480
Joined: Wed Sep 15, 2010 10:15 pm
Realm: Staghelm (Alliance), Wyrmrest Accord (Horde)
Gender: Female playing both genders
Location: WoW

Re: Any BBCode experts?

Unread post by TygerDarkstorm »

Saturo's pretty good with BBCode, but she can't post here.

Follow me on Tumblr! @projectashley
Like Crochet? You can see what I make @ facebook.com/AshedCreations

Lord Godfrey wrote:Some people only want to watch the world burn. Others want to be the ones responsible for burning it...
[/center]
User avatar
Wain
The Insane
The Insane
Posts: 13867
Joined: Tue Jul 27, 2010 1:54 am
Gender: Male

Re: Any BBCode experts?

Unread post by Wain »

Acherontia wrote:I don't personally, but one piece of advice just to cut down on the path size is, have you tried TinyURLing it, or just uploading them straight to Tinypic? It won't be a HUGE help (hopefully someone here does know code) but it should cut all of the path lengths at least in half.
I would have to tunyURL hundreds of pics. I hope not ;)
Shaman avatar by Spiritbinder.
User avatar
Acherontia
 Community Resource
 Community Resource
Posts: 3072
Joined: Mon Jan 25, 2010 12:27 pm
Realm: Argent Dawn EU
Gender: Female

Re: Any BBCode experts?

Unread post by Acherontia »

Wain wrote: I would have to tunyURL hundreds of pics. I hope not ;)
On the offchance it does come down to that, try this. It's still be time-consuming, but--it's a Firefox addon that allows you to shorten URLs by right-clicking a link and picking Shorten URL. Then you just paste it elsewhere.

I'm sure there's a far easier way to shorten the links though, lol : /
User avatar
Aeladrine
Grand Master Hunter
Grand Master Hunter
Posts: 2803
Joined: Thu Jul 01, 2010 10:06 pm
Realm: Frostwolf, Blackwater Raiders
Gender: Female
Location: Tumblr, probably.
Contact:

Re: Any BBCode experts?

Unread post by Aeladrine »

If you're just linking to the pictures, you shouldn't need the [img] tags. However, if you're doing pictures that link somewhere, you do. So far as I know, there's no shorter way to do that. I've been screwing around in BBCode for years, but I am by no means an expert. I can make posts pretty, that's about it.
• Aela's Pet Journal

Image
Totally fantastic avatars and signatures by Sookie, Nili, Serenith, and Kurenio.
Tumblr || Deviantart || WoW RP Blog

User avatar
Xella
Artisan Hunter
Artisan Hunter
Posts: 681
Joined: Mon Mar 14, 2011 11:53 pm
Realm: Skywall-US
Gender: Female
Contact:

Re: Any BBCode experts?

Unread post by Xella »

Do you have access to the Admin Control Panel, Wain? If so, you can set up your own BBcode tag to work (in ACP -> Posting -> BBCodes -> Add New). I think the easiest thing would be something like:
[petopia={SIMPLETEXT1}]{SIMPLETEXT2}[/petopia]
with the HTML replacement box something like:

Code: Select all

<a href="http://www.wow-petopia.com/look/{SIMPLETEXT1}.html"><img src="http://www.wow-petopia.com/images/skin_thumbs/{SIMPLETEXT2}t.jpg" /></a>
I tried that on the DS forums just to make sure I wasn't barking up the wrong tree, and it seems to work: "[petopia=bluesporebat]sporebatblue[/petopia]" results in [imghttp://www.wow-petopia.com/images/skin_thumbs/sporebatbluet.jpg[/img] as expected. SIMPLETEXT1 is the unique part of the URL of the pet's page, and SIMPLETEXT2 is the unique part of the thumbnail. All pets' thumbnails and detail pages seem to have the same basic url, but not all pets' images & detail pages are named identically ("owlblack" works for both the thumbnail and the link, but "bluesporebat" only works for the link, not the thumbnail). If you were willing to go through the pets and fix the naming discrepancies, you could get away with something like "[pet=sporebatblue]" which would save you additional space... but it'd be more intense short-term work for an unknown amount of future payoff.

Edit: Obviously I am blind, you're using a different URL for a different purpose than I originally thought I read, but I think the same method should still work... just put in the appropriate URLs in the HTML replacement box, heh.
Last edited by Xella on Thu Jul 21, 2011 5:59 pm, edited 1 time in total.
Current main: Xella-Skywall | Art Stuffs | Brains.
User avatar
Wain
The Insane
The Insane
Posts: 13867
Joined: Tue Jul 27, 2010 1:54 am
Gender: Male

Re: Any BBCode experts?

Unread post by Wain »

Thanks for your advice guys! :) To be honest I'd stopped checking this thread and hadn't noticed there were more messages till now. Sorry!

Mania's been busy and I haven't gotten any feedback from her yet but the Moderator was nice enough to increase my post size limit to the point where I could fit all the pics on the thread very comfortably (here and here).

So while it'd be nice to cut down on text it's no longer strictly necessary for me. If I hear back I'll still try to see what I can do though. And unfortunately I don't have access to the admin control panel, but thanks Xella :)
Shaman avatar by Spiritbinder.
User avatar
Xella
Artisan Hunter
Artisan Hunter
Posts: 681
Joined: Mon Mar 14, 2011 11:53 pm
Realm: Skywall-US
Gender: Female
Contact:

Re: Any BBCode experts?

Unread post by Xella »

Well, as long as you've gotten some sort of solution! :D
Current main: Xella-Skywall | Art Stuffs | Brains.
Post Reply