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: 500
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 438
  • Total: 438

manually remove block

Started by Final60, January 06, 2009, 01:43:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Final60

Hi
I have activated a block containing an error in the php code that is inside the block, which has pushed the body of the forum beyond view, so i cannot get into admin to disable the block again. How can i manually disable the block?
thanks in advance

JPDeni

Can you access phpMyAdmin, such as through a cPanel from your webhost? If so, you can go into there and go look at the table called smf_tp_blocks. Depending on how many blocks you have, you can probably just look down the list and find the title. If you have a whole lot, you can do a search. Click the red X at the beginning of the row. You'll be asked if you're sure you want to delete it. Say you do. All should be fine then.

If you don't have phpMyAdmin available, ask your webhost about how you can directly access your MySQL database. There are other ways of getting to it, but they're usually pretty similar, so you should be able to figure it out.

IchBin

http://www.yoursite.com/forum/index.php?noblocks;

Adding noblocks to your URL will allow you to browse back to your forum without any blocks showing if you are the admin.

JPDeni

Ooh! What a cool thing to know!

I'll remember that in the future.

Final60

#4
Excellent thank you Ichbin!!

Yeah I do have access to mysql and can see exactly where you mean JP :)

IchBin

Quote from: JPDeni on January 06, 2009, 02:35:22 AM
Ooh! What a cool thing to know!

I'll remember that in the future.

I know, its not a widely known thing I think. I discovered that gem looking at the code in TP one day. :)

Zetan

http://www.example.com/index.php?action=admin will also help.. it takes you direct to the admin panel.



/index.php?action=admin



This website is proudly hosted on Crocweb Cloud Website Hosting.