[CODE] Function

Ad: This forum contains affiliate links to products on Amazon and eBay. More information in Terms and rules

wheelsup_cavu

1st Sergeant
Is the code function disabled for a reason in the posting section ?

th_100_0635.jpg

Code:
[ATTACH=full]402034[/ATTACH]

Shouldn't just the code be shown when you put it between the code tags ?
Just asking because it makes it easier for you to have someone copy and paste a code if it works in that manner.


Wheels
 

Attachments

  • th_100_0635.jpg
    th_100_0635.jpg
    4.2 KB · Views: 19
Usually on other forums I'm on, when you put something in the
Code:
 tags, like the image Wheelsup posted, instead of actually showing the image, it would show the code surrounding the image. 

IE:

[ img]http://i479.photobucket.com/albums/rr153/wheelsup_cavu/Museums/March/May%2002%202009/th_100_0635.jpg[/ img]

I had to put spaces in the [IMG] tags so it wouldn't show the image which aren't suppose to be there, but that's what I mean.

But it does this here:

[code][ATTACH=full]402037[/ATTACH]
 

Attachments

  • th_100_0635.jpg
    th_100_0635.jpg
    4.2 KB · Views: 25
Here are some examples on another forum for you.
You will see when I put my text in the code box it stays text.

Mission4Today ForumsPro IL-2 Sturmovik General Discussion P-40, REtrieval and restoration

Mission4Today ForumsPro IL-2 Sturmovik Storm Of War I think there is an idea!

With this post I was teaching someone how to embed a youtube video on the forum.
Mission4Today ForumsPro R R Forums Film, movie and video clips. How to splash a Zero


It doesn't just disable IMG tags.
It disables everything and leaves you with the text/code only.
Nothing works until you put it in the forum without the code tags.
I find that it's an easy way to teach someone how to use the features on the forum.


Wheels

Thanks Catch22 I missed your post. :)
 
Last edited:
I either missed this or you just added this function.
Instead of using the wrap
Code:
 tags around the selected text you are doing it with the wrap [PHP] tags around the selected text.

[PHP][ATTACH=full]402042[/ATTACH][/PHP]

Movie "They were Expendable" at IMDB.
[PHP]http://www.imdb.com/title/tt0038160/[/PHP]


Wheels
 

Attachments

  • th_100_0635.jpg
    th_100_0635.jpg
    4.2 KB · Views: 19

Users who are viewing this thread

Back