News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Centralized post content

Started by thebuffalo, June 27, 2017, 05:54:47 PM

Previous topic - Next topic

thebuffalo

From time to time every post (post simple) that I send in the forum is published so that its content is centralized. How to solve this?

Shambles


Illori


thebuffalo

Quote from: Illori on June 27, 2017, 06:03:48 PM
Quote from: Shambles on June 27, 2017, 05:57:33 PM
Link to your SMF forum?

link to a post that has the issue?



Text code is not set up or centered, as you can see in capturing the code


Link: http://forum.verdadesa.com.br/index.php?topic=28.0

Print:




Shambles

Looking at the "view page source" output, you appear to have a rogue <center> markup near that advertisement.

</h5>
<div class="smalltext">« <strong> Online:</strong> Junho 25, 2017, 09:06:15 pm »</div>
<div id="msg_38_quick_mod"></div>
</div>
</div>Advertisement</br><center><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

<div class="post">



What "advert" mod(s) do you have? Google AdSense?

Try turning adverts off.

Illori

or they could close the center tag or just remove it completely.

Shambles

I meant, disable the ad (or ad mod) to see if the problem goes away.

We've seen this behaviour before, due to a rogue advert, I believe.

Illori

or a user that does not know how to use html correctly.

thebuffalo

Quote from: Shambles on June 28, 2017, 03:31:31 AM
Looking at the "view page source" output, you appear to have a rogue <center> markup near that advertisement.

</h5>
<div class="smalltext">« <strong> Online:</strong> Junho 25, 2017, 09:06:15 pm »</div>
<div id="msg_38_quick_mod"></div>
</div>
</div>Advertisement</br><center><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

<div class="post">



What "advert" mod(s) do you have? Google AdSense?

Try turning adverts off.

Yes, I built the Google Adsense code with a tag: '' <center> code </ center>, but another site had the same code and did not have the problem. I took the tag: <center> </ center>, but continue with the problem ...

Shambles

The rogue <center> tag is still in that page, right after the "Advertisement".

You have not removed it (if that's what you meant to say that you've done)

Shambles

Ok, let's have a closer look.

Are you using the zStudios AdSense mod?

Assuming you are, have a look at the content of the 3rd configuration box, as per the mod's screenshot; remove the <center> tag from within that box (I'm making a guess that's where the rogue tag is). Alternatively, add a closure tag at the end of the content.




thebuffalo

Quote from: Shambles on June 28, 2017, 02:53:47 PM
Ok, let's have a closer look.

Are you using the zStudios AdSense mod?

Assuming you are, have a look at the content of the 3rd configuration box, as per the mod's screenshot; remove the <center> tag from within that box (I'm making a guess that's where the rogue tag is). Alternatively, add a closure tag at the end of the content.





Great staff. Sorted out. Thank you so much.

Advertisement: