Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: thebuffalo on June 27, 2017, 05:54:47 PM

Title: Centralized post content
Post by: thebuffalo on June 27, 2017, 05:54:47 PM
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?
Title: Re: Centralized post content
Post by: Shambles on June 27, 2017, 05:57:33 PM
Link to your SMF forum?
Title: Re: Centralized post content
Post by: 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?
Title: Re: Centralized post content
Post by: thebuffalo on June 27, 2017, 07:24:53 PM
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:

(https://4-t.imgbox.com/ovc5uPHr.jpg) (http://imgbox.com/ovc5uPHr) (https://7-t.imgbox.com/4v1JF8iI.jpg) (http://imgbox.com/4v1JF8iI)

(https://2-t.imgbox.com/HIbAZPu6.jpg) (http://imgbox.com/HIbAZPu6)
Title: Re: Centralized post content
Post by: 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.
Title: Re: Centralized post content
Post by: Illori on June 28, 2017, 05:06:58 AM
or they could close the center tag or just remove it completely.
Title: Re: Centralized post content
Post by: Shambles on June 28, 2017, 07:39:52 AM
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.
Title: Re: Centralized post content
Post by: Illori on June 28, 2017, 07:40:49 AM
or a user that does not know how to use html correctly.
Title: Re: Centralized post content
Post by: thebuffalo on June 28, 2017, 01:30:17 PM
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 ...
Title: Re: Centralized post content
Post by: Shambles on June 28, 2017, 01:50:18 PM
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)
Title: Re: Centralized post content
Post by: Shambles on June 28, 2017, 02:53:47 PM
Ok, let's have a closer look.

Are you using the zStudios AdSense mod (https://custom.simplemachines.org/mods/index.php?mod=4120)?

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.

(https://i.imgur.com/kQLPGO4.jpg)

Title: Re: Centralized post content
Post by: thebuffalo on June 29, 2017, 10:03:13 AM
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 (https://custom.simplemachines.org/mods/index.php?mod=4120)?

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.

(https://i.imgur.com/kQLPGO4.jpg)



Great staff. Sorted out. Thank you so much.