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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,140
  • Total Topics: 21,346
  • Online today: 1,074
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 532
  • Total: 533
  • lurkalot

WYSIWYG editor suddenly broken

Started by propaganda, August 24, 2011, 01:47:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

propaganda

I am running 2.0 Gold and had tiny portal working great on it, suddenly the WYSIWYG editor has quit working, I get no actions on the functions and it's the same for the article writer and for my blocks. It wa working fine because I had put some banners up with no issue and could use the html button to see the code. I have made no modifications the the site since and I have tried multiple browsers with no success. Any help would be appreciated.

Edit: Please disregard, I thought of the only change I made, and it was a small bit of code used to server ads by adspeed, just a note to anyone who may be considering adspeed, it breaks TinyPortal, although I am not sure how, but looks like a javascript issue. The line of code

<script type="text/javascript" src="http://g.adspeed.net/ad.php?do=js&zid=30244&wd=-1&ht=-1&target=_top"></script>

IchBin

Yep, bad javascript can reek havoc when it wants to. Glad you figured it out. And as you can see, never rule anything out no matter how small a change you think you made.

propaganda

Yes thats true ichbin. Can anyone recommend a good ad server that won't break tinyportal please? I never paid for adspeed I am just trying the free trial but I don't want to use it if it's breaking tinyportal.

ZarPrime

propaganda,

I've marked this topic as unsolved once again for now.  What kind of block have you tried to use with the code in your first post above? 

Using the code below (the same as yours but with center tags added) in an HTML & Javascript block ...

<center><script type="text/javascript" src="http://g.adspeed.net/ad.php?do=js&zid=30244&wd=-1&ht=-1&target=_top"></script></center>

... It works fine on the test site linked below  with SMF 2.0 and the latest TinyPortal.

Top Panel block on this test site --> http://host-for.com/index.php

That block will be deleted from that test site once you have confirmed with your next post that you have looked at it.  It was only put up there so that you can see that it works.

ZarPrime

Edit:  There may still be some problems with the HTML editor with this version of TinyPortal as we switched to a newer version of it.  If it doesn't work for you, report the problem to us and we can test it to make sure it works properly.  You could always turn the editor off as well.  Or, an easy way to setup a block like this is to first set the block to be a php type block, paste the code in, save it, then before turning the block on, switch it back to an HTML & Javascript type block and save it again.  It should then show up properly since you are bypassing the use of the editor.

propaganda

Thanks Zar, I had a look. Here is the full line of code:

Oh edit: Zar, I do not have the code in a block, I have it in the index.template.php file

<div id="ads"><script type="text/javascript" src="http://g.adspeed.net/ad.php?do=js&zid=30244&wd=-1&ht=-1&target=_top"></script></div>

I tried to center it, no dice. If I remove the line the editor works fine. There are ways around it, but the editor is certainly very convenient. If I need to work with blocks or articles for now I can just comment the code out, do what I need to do, then activate it again. I have no idea why it's breaking. Here are my mods. I am considering it could be a mix of conflicts with a mod thrown in, Highslide could be contributing as well.

1.    Pretty URLs    1.0RC5.2
2.    Highslide 4 SMF    0.7a
3.    Social Bookmarks    2.0
4.    NoFollow All Links    1.2.1
5.    TinyPortal    1.104
6.    Bot Buster    1.1
7.    Google Analytics Code    1.4
8.    Simple Audio Video Embedder

My site is albertasportsman.com

Thanks for the attention to my problem guys I really appreciate it.

IchBin

The problem is likely with the code that they are sending back to your page. It could be conflicting with TP/SMF's code by having the same variable/function names or something. If you open up the firebug console when you have this probelm you may see a javascript error. It may show one in IE too.

propaganda

OK I moved that code to a block, and that fixed the issue. Thanks guys, solved.

ZarPrime

Well, I didn't use the div tags.  If you use the code I used in a block rather than in the index.template.php, it will work in all themes that you might use and can easily be turned off and on.  Plus, you can easily add the center tags to center the actual ads inside the block ...


<center><script type="text/javascript" src="http://g.adspeed.net/ad.php?do=js&zid=30244&wd=-1&ht=-1&target=_top"></script></center>


Anyway, glad it works now.  I will remove the block from the test site and once again mark this topic solved.

ZarPrime

This website is proudly hosted on Crocweb Cloud Website Hosting.