The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Codes altered after posting

3 posters

Go down

Solved Codes altered after posting

Post by DustyBones March 28th 2014, 6:20 pm

When editing a new topic that contains coding for a layout for my proposal posts, the layout changes when I save it. It removes part of the code.

You can see it Here on this post I just made recently, if you hit the quote button it does the same thing.
The top part of the code now is:
Code:
[table style="border: 1px solid rgb(0, 0, 0);" width="100%"][tr style="background: none repeat scroll 0% 0% rgb(0, 0, 0);"][td style="background-repeat: no-repeat; background-position: center center; padding: 5px; font-weight: bold; font-size: 20px;" height="169px"]
It should be:
Code:
[table style="border: 1px solid rgb(0, 0, 0);" width="100%"][tr style="background: none repeat scroll 0% 0% rgb(0, 0, 0);"][td style="background-repeat: no-repeat; background-position: center center; padding: 5px; font-weight: bold; font-size: 20px;" background="http://i1042.photobucket.com/albums/b430/RapsGraphics/train-rank-head.png" height="169px"]
As you can see the background image url is removed. After editing and saving, the image is gone so I have to re-edit it again and redo the coding, adding the image url. The image will remain in the post as long as I don't edit it again.

I posted this question before Here and got the reply:
There have been updates to the editors on our forums and in the administration panel -
These updates have caused some issues with old posts.
This is a recent post made way after the editor changes and is doing it also.

Is there a new way I need to be coding that section of the code because of the new editor update?
Or is this a bug due to the update?

This gets pretty frustrating when designing new tables/posts/templates, etc. I have to keep the code in a text file on my computer to keep copy/pasting it while designing something new.


Last edited by DustyBones on March 28th 2014, 7:21 pm; edited 1 time in total
DustyBones
DustyBones
Active Poster

Male Posts : 1234
Reputation : 528
Language : English
Location : Washington, USA

http://raps-graphics.forumotion.com/

Back to top Go down

Solved Re: Codes altered after posting

Post by Ange Tuteur March 28th 2014, 6:29 pm

hmm the editor seems to be removing it. Have you tried adding the bg image with the background-image property instead ? That should probably keep it even if you edit.
Code:
[table style="border: 1px solid rgb(0, 0, 0);" width="100%"][tr style="background: none repeat scroll 0% 0% rgb(0, 0, 0);"][td style="background-repeat: no-repeat; background-position: center center; padding: 5px; font-weight: bold; font-size: 20px;background-image:url(http://i1042.photobucket.com/albums/b430/RapsGraphics/train-rank-head.png);" height="169px"]

Code:
background-image:url(http://i1042.photobucket.com/albums/b430/RapsGraphics/train-rank-head.png);

oh, you can also set the height in the style too, but oddly enough that doesn't seem to get removed ! Shocked
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Codes altered after posting

Post by DustyBones March 28th 2014, 7:16 pm

Ange Tuteur wrote:hmm the editor seems to be removing it. Have you tried adding the bg image with the background-image property instead ? That should probably keep it even if you edit.
Code:
[table style="border: 1px solid rgb(0, 0, 0);" width="100%"][tr style="background: none repeat scroll 0% 0% rgb(0, 0, 0);"][td style="background-repeat: no-repeat; background-position: center center; padding: 5px; font-weight: bold; font-size: 20px;background-image:url(http://i1042.photobucket.com/albums/b430/RapsGraphics/train-rank-head.png);" height="169px"]

Code:
background-image:url(http://i1042.photobucket.com/albums/b430/RapsGraphics/train-rank-head.png);

oh, you can also set the height in the style too, but oddly enough that doesn't seem to get removed ! Shocked

That works thanks!
DustyBones
DustyBones
Active Poster

Male Posts : 1234
Reputation : 528
Language : English
Location : Washington, USA

http://raps-graphics.forumotion.com/

Back to top Go down

Solved Re: Codes altered after posting

Post by Sir Chivas™ March 28th 2014, 7:28 pm

Great job, Ange.

Topic Solved & Locked.
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6980
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

https://aforums.org

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum