SimplePortal

Support => English Support => Topic started by: adrivanrex on January 20, 2012, 04:54:21 PM

Title: Added a Custom PHP block
Post by: adrivanrex on January 20, 2012, 04:54:21 PM
Hello I added a custom PHP block which can be viewed to the forum including the admin page..

How do i remove this error?

I inputted ?><html> codes</html>

then my forum now doesnt work

I cannot enter the admin page and also the forum..

www.botarea.com
Title: Re: Added a Custom PHP block
Post by: tomeh on January 20, 2012, 05:11:32 PM
I propose to restore a copy of the file forum - and then uninstall the modyfikations of the database for packages
Title: Re: Added a Custom PHP block
Post by: adrivanrex on January 20, 2012, 08:17:34 PM
Hello everyone,
My website is ok now i just deleted the

index.php
Code: [Select]

// Load SimplePortal.
sportal_init();


But I dont want to uninstall simple portal.. Because I want to use the mod
I just want to delete the custom PHP block code that I have installed on my website.
Where do I find that code? Is the configuration stored on the mysql?

I tried uninstalling SP but after I downloaded a new SP and delted the last MOD. I still get the error...
Title: Re: Added a Custom PHP block
Post by: Old Fossil on January 20, 2012, 09:21:30 PM
Please attach your Subs.php file which can be found in your Sources folder.

The error is a rogue }
Title: Re: Added a Custom PHP block
Post by: Chen Zhen on January 21, 2012, 10:04:01 AM

...
Where do I find that code? Is the configuration stored on the mysql?
...

Are you familiar with manipulating your db with phpmyadmin as this statement may suggest?

Using phpmyadmin take a look at the sp_blocks table.
Find where the block title is referenced & alter the state column to 0.
This will disable that block.
Title: Re: Added a Custom PHP block
Post by: [SiNaN] on January 21, 2012, 04:47:25 PM
You can add debug=sinaniscool to the URL of your site to disable SimplePortal temporarily. Then you can go to Blocks admin area and remove the offending code. Example:

Code: [Select]
Your site: http://www.myforum.com/index.php
Modified URL: http://www.myforum.com/index.php?debug=sinaniscool
SimplePortal 2.3.8 © 2008-2024, SimplePortal