Jump to content

Welcome to The Bolter and Chainsword
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Photo

Possible improvements to the [code][/code] tag?


  • Please log in to reply
7 replies to this topic

#1
Spinsanity

Spinsanity

    +FRATER DOMUS+

  • + FRATER DOMUS +
  • 174 posts
  • Gender:Male
  • Location:Canadia
Hi,


I just noticed that any "autocorrect" applied by the forum's editor is also applied to anything we put between (code) tags. Could this be prevented somehow?

For example, if I write (using parentheses here to prevent the board from editing it):
(code)(img)...(/img)(/code)
The board automatically edits it to:
(code)(img=...)(/code)
While I understand the reasoning, is there any way that anything posted between (code) brackets be left as-is, since that would frequently be the whole point of (code) brackets to begin with...

#2
WarriorFish

WarriorFish

    ++ PRÆFECT SOCIORUM ++

  • +++ADMINISTRATUM+++
  • 18,222 posts
  • Gender:Male
  • Location:Blighty
  • Chapter Name: Hunter Legion

Sorry Spin, I'm not quite sure what you're referring to? If you mean that images are not rendered within a "code" tag that is correct, as it's intended to present the code of something and not what is is processed as for example:

 [code=auto:0][img=http://www.bolterandchainsword.com/public/style_images/8_logo.png][/code]

Images are self closing tags, so don't need or expect to be a wrapper which may be your issue? If could show me what you're trying to do I should be able to help further thumbsup.gif


gallery_30308_9518_886.jpggallery_30308_9518_17558.pnggallery_30308_3239_193.pnggallery_30308_3239_17729.png
Painting Oaths Completed:
gallery_30308_3239_28.gifgallery_30308_3239_28.gifgallery_30308_3239_102.gifgallery_30308_3239_84.gifgallery_30308_3239_42.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gifgallery_30308_3239_42.gifgallery_30308_3239_28.gifgallery_30308_3239_102.gifgallery_30308_3239_42.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gif
gallery_30308_3239_42.gifgallery_30308_3239_102.gifgallery_30308_3239_42.gif
In the grim predictability of online 40k, there can be only Sun Tzu quotes

SM Cataphractii | IG Commissar | CSM Daemon Prince | =][= Inquisitor | AM Knight | DE Sslyth

#3
Spinsanity

Spinsanity

    +FRATER DOMUS+

  • + FRATER DOMUS +
  • 174 posts
  • Gender:Male
  • Location:Canadia

Sorry, what I mean is that using a (img)url(/url] set of tag (using brackets instead of parenthesis) results in the board automatically replacing it with a single proper (img=url) tag. I figured it would be nice if any "bbc code auto-correct" features were turned off when inside a set of (code)(/code) brackets, but then I assume this might interfere with other functions like the language filters and the likes?



#4
WarriorFish

WarriorFish

    ++ PRÆFECT SOCIORUM ++

  • +++ADMINISTRATUM+++
  • 18,222 posts
  • Gender:Male
  • Location:Blighty
  • Chapter Name: Hunter Legion

Apologies I'm still not sure what you're trying to do. Do you mean the open and close img tag, rather than the self closing one? If you could put the code in directly as you're trying to use it except with spaces between the brackets and tag to avoid the filter that should let me see exactly what's going on. For example:
 
[ code ][ img ]http://image.boltera...10077_20391.jpg[ /img ][ /code ]

 

Which would render this, without the spaces:

[img]http://image.bolterandchainsword.com/uploads/gallery/album_10077/gallery_30308_10077_20391.jpg[/img]

gallery_30308_9518_886.jpggallery_30308_9518_17558.pnggallery_30308_3239_193.pnggallery_30308_3239_17729.png
Painting Oaths Completed:
gallery_30308_3239_28.gifgallery_30308_3239_28.gifgallery_30308_3239_102.gifgallery_30308_3239_84.gifgallery_30308_3239_42.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gifgallery_30308_3239_42.gifgallery_30308_3239_28.gifgallery_30308_3239_102.gifgallery_30308_3239_42.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gif
gallery_30308_3239_42.gifgallery_30308_3239_102.gifgallery_30308_3239_42.gif
In the grim predictability of online 40k, there can be only Sun Tzu quotes

SM Cataphractii | IG Commissar | CSM Daemon Prince | =][= Inquisitor | AM Knight | DE Sslyth

#5
Spinsanity

Spinsanity

    +FRATER DOMUS+

  • + FRATER DOMUS +
  • 174 posts
  • Gender:Male
  • Location:Canadia
Alright, hope this works smile.png
 
Step by step :
[ code ] [ img ]URL[ /img ] [ /code ]
 
Expected result :
 
[ img ]URL[ /img ]
 
Actual result :
 
[ img=URL ]

Edited by Spinsanity, 12 January 2018 - 07:18 PM.


#6
WarriorFish

WarriorFish

    ++ PRÆFECT SOCIORUM ++

  • +++ADMINISTRATUM+++
  • 18,222 posts
  • Gender:Male
  • Location:Blighty
  • Chapter Name: Hunter Legion

Ah I see, thanks for clarifying thumbsup.gif Could you explain why you don't want the shortened version please? As I mentioned earlier images are self closing tags and don't need to be in the long format, so as they're the same in displaying the specified URL as an image the difference doesn't seem to matter as far as I can see.


gallery_30308_9518_886.jpggallery_30308_9518_17558.pnggallery_30308_3239_193.pnggallery_30308_3239_17729.png
Painting Oaths Completed:
gallery_30308_3239_28.gifgallery_30308_3239_28.gifgallery_30308_3239_102.gifgallery_30308_3239_84.gifgallery_30308_3239_42.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gifgallery_30308_3239_42.gifgallery_30308_3239_28.gifgallery_30308_3239_102.gifgallery_30308_3239_42.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gif
gallery_30308_3239_42.gifgallery_30308_3239_102.gifgallery_30308_3239_42.gif
In the grim predictability of online 40k, there can be only Sun Tzu quotes

SM Cataphractii | IG Commissar | CSM Daemon Prince | =][= Inquisitor | AM Knight | DE Sslyth

#7
Spinsanity

Spinsanity

    +FRATER DOMUS+

  • + FRATER DOMUS +
  • 174 posts
  • Gender:Male
  • Location:Canadia
Was simply a result of the following post:
Spoiler


While I understand that the [ img ] tag is self-closing and can see the value in auto-correcting the deprecated syntax (that's what I assume this is, anyway?), I would have assumed that anything within [ code ] tags would remain as-is.

Now that I'm aware of it, it's not really an issue I guess, moybe a IPBoard longbeard's grumpyness, I guess :\

#8
WarriorFish

WarriorFish

    ++ PRÆFECT SOCIORUM ++

  • +++ADMINISTRATUM+++
  • 18,222 posts
  • Gender:Male
  • Location:Blighty
  • Chapter Name: Hunter Legion

That's an epic terrain piece, but yes as the long form version will always be converted to the shorter version and the code tag is intended to present code without parsing the end result only so in that respect it's doing what it should be. Either way glad we got to the bottom of this thumbsup.gif


gallery_30308_9518_886.jpggallery_30308_9518_17558.pnggallery_30308_3239_193.pnggallery_30308_3239_17729.png
Painting Oaths Completed:
gallery_30308_3239_28.gifgallery_30308_3239_28.gifgallery_30308_3239_102.gifgallery_30308_3239_84.gifgallery_30308_3239_42.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gifgallery_30308_3239_42.gifgallery_30308_3239_28.gifgallery_30308_3239_102.gifgallery_30308_3239_42.gifgallery_30308_3239_102.gifgallery_30308_3239_102.gif
gallery_30308_3239_42.gifgallery_30308_3239_102.gifgallery_30308_3239_42.gif
In the grim predictability of online 40k, there can be only Sun Tzu quotes

SM Cataphractii | IG Commissar | CSM Daemon Prince | =][= Inquisitor | AM Knight | DE Sslyth




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users