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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 651
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 464
  • Total: 464

Activate/Deactivate Block Not Working

Started by JBlaze, March 25, 2009, 04:30:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JPDeni

Sorry if this is something really obvious, but I thought I'd throw it in the mix just in case.

Are you sure that the block in question already has been set to show somewhere? If it hasn't, the activate won't work.

G6Cad

Saw that this topic is marked SOLVED, but is it ?

JBlaze

OK, for some reason it's not working again. Instead of starting a new topic, I'll just add to this one. It does not work for any block at all.

I'll give any info needed.

IchBin

What have you done? Anything changed or added to your forum? Theme change?

JBlaze

Changed theme back to Default. Haven't changed or added any mods either. Just completely random.

ZarPrime

JBlaze,

Are you getting any errors in your error log that might tell us what's going on?  If so, post them here.

ZarPrime


IchBin

When you say it doesn't work, do you mean that the red/green images changes back after a page refresh? Or that the Block doesn't show, but the image shows green? Can you be more specific about what your problem please?

JBlaze

The problem is that all my blocks can no longer be activated/deactivated. I click and nothing happens. I'm trying to activate some and deactivate others and can't.

Is there another way to activate/deactivate other than the red/green icons?

ZarPrime

JBlaze,

The change from green to red, and vice versa, is done via AJAX.  A lot of people don't understand how it works, but the primary thing to remember is that anything that uses AJAX uses javascript.  AJAX, which stands for Asynchronous Javascript and XML, makes use of Javascript to make changes on the same page instead of creating different pages to effect the changes.  For more information on how AJAX actually works, this video (http://www.youtube.com/watch?v=tJXLRLDWjn4) explains it quite well.

The problem comes in when some other Javascript on the page is interfering with the ability of the AJAX to function properly.  This is quite possibly why yours has quit working.  What has probably happened is that you have added a block, or a Mod, that stops the AJAX from working.

If it is just a block that is causing the problem, and you have blocks set to show in the Admin section, you might turn this off so that the blocks don't show in Admin and see if that fixed the problem.  If it doesn't, then it is likely another Mod that is causing the problem and you will have to uninstall them, one at a time, starting with the last one you added.

Try these things, and let us know if it fixes the ability to to activate and deactivate the blocks.

ZarPrime

This website is proudly hosted on Crocweb Cloud Website Hosting.