TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 141
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 83
  • Total: 83

A strange one...

Started by sturmkatze, September 25, 2013, 07:56:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sturmkatze

Link to my forum: www.reenactor.net
SMF version: v/2.0.5
TP version: 1.0
Default Forum Language: English
Theme name and version: A modded curves theme.
Browser Name and Version: firefox 24

Mods installed:

  • Google Analytics Code 1.4
  • Links 2.0
  • SMF Gallery Pro 5.0.2a
  • SMF Staff Page 1.7
  • Ultimate Profile 0.9.1
Related Error messages: read away... ugh!  :tickedoff:

I am not sure what is causing this, but every time I save an article that has google adsense code in it, it adds this garbage below, and I mean it adds it all over again, so if you save an article 8 times while monkeying w/ something, it adds this crap 8 times. >:( IchBin said it might be the editor!? Any thoughts?? Here's an example of it saved twice. I have to go and cut it out at end of edit and even THEN, it still puts it in. Also having issues w/ it stripping formatting code out of tables... but I guess I should try and slay one dragon at a time.



<ins style="display:inline-table;border:none;height:15px;margin:0;padding:0;position:relative;visibility:visible;width:468px">
<ins id="aswift_0_anchor" style="display:block;border:none;height:15px;margin:0;padding:0;position:relative;visibility:visible;width:468px"><iframe marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" onload="var i="this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else" if(h.match){w.location.replace(h)}}" id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;" frameborder="0" height="15" scrolling="no" width="468"></iframe></ins></ins>
<ins style="display:inline-table;border:none;height:15px;margin:0;padding:0;position:relative;visibility:visible;width:468px">
<ins id="aswift_0_anchor" style="display:block;border:none;height:15px;margin:0;padding:0;position:relative;visibility:visible;width:468px"><iframe marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" onload="var i=" this.id,s="window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else" "="" if(h.match){w.location.replace(h)}}"="" id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;" frameborder="0" height="15" scrolling="no" width="468"></iframe></ins></ins>

IchBin

Only way you'll know for sure if it's the editor or not is to turn off the editor and then go and save your code. I don't have google adsense code to test this with, so.....

sturmkatze

Quote from: IchBin™ on September 25, 2013, 05:13:09 PM
Only way you'll know for sure if it's the editor or not is to turn off the editor and then go and save your code. I don't have google adsense code to test this with, so.....

I will try that. Now, if you WANT google code sir, all you nee do is ask and i will send you however much you want :P I have lots of it. ;D

IF it IS the editor, then what? I'm back to editing in something like GoLive or Dreamweaver. I can muddle through but many of my assistants cannot.

sturmkatze

So, tried it I did... Nyet! Now what?? Here's what the code looks like, unmessed with and what it gets turned into.

Here is what the code is supposed to be:
<center>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2066079196933121";
/* Greek Upper Body Link Unit */
google_ad_slot = "1238313157";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript" src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>


And here is what it changes it to:
<center>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2066079196933121";
/* Greek Upper Body Link Unit */
google_ad_slot = "1238313157";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript" src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<ins style="display:inline-table;border:none;height:15px;margin:0;padding:0;position:relative;visibility:visible;width:468px">
<ins id="aswift_0_anchor" style="display:block;border:none;height:15px;margin:0;padding:0;position:relative;visibility:visible;width:468px"><iframe marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" onload="var i="this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else" if(h.match){w.location.replace(h)}}" id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;" frameborder="0" height="15" scrolling="no" width="468"></iframe></ins></ins></center>

IchBin

Looks like that is part of what google is doing. Take a looksy here:
http://stackoverflow.com/questions/2608307/are-you-familiar-with-ins-tag-in-html

Google automatically inserts that ins tag into the code when it is processed. Even after those tags were inserted, the ads showed up fine for me. As to why it's adding it multiple times I have no idea. I guess google figures it needs to add those tags every time it's processed. Not sure how to stop it at the moment.

sturmkatze

oh CRAP, because it's live and not static, it's inserting them then. @$(*&^@%)@(%*)(@*&^(*^@*(@*%$*+%@(&^*%@0  :tickedoff:

Got any good ideas for me? It didn't used to do that.

I am about done w/ frigging google ads. I used to make about $140+ a month and now it has dropped down to like $25. a month. :tickedoff: And now, I have to go add all this "advisory link code" as they are reading off it. Wankers!

IchBin

I went into my profile and turned the editor off. Then went and saved your code. It did not insert any of the extra code when I did that.

This website is proudly hosted on Crocweb Cloud Website Hosting.