SimplePortal

Support => English Support => Topic started by: habeycole on July 18, 2016, 07:16:45 AM

Title: Deleted block still showing!!!
Post by: habeycole on July 18, 2016, 07:16:45 AM
Hi,

I added a SP HTML block to my Forum after which I deleted the block. I didn't turn off the block before deleting it, so after deleting the block, the content still shows. Could you please help me out on how I can switch off the block, and hide its contents from showing???
Title: Re: Deleted block still showing!!!
Post by: Chen Zhen on July 18, 2016, 10:08:29 PM
habeycole,

If you deleted the block from the admin menu block list then it should not be showing at all.
Did you delete it this way or somehow via mysql editing/deleting?

Regards.
Title: Re: Deleted block still showing!!!
Post by: habeycole on July 19, 2016, 08:11:55 AM
Hi Chen Zhen,

I deleted the block from SP's interface ( the red button after move) but the contents of the block is still showing, hence, reason why I need help.

Thanks in anticipation for your reply.

Kindest regards.
Title: Re: Deleted block still showing!!!
Post by: Chen Zhen on July 19, 2016, 10:55:19 AM

After opting to delete a block all relevant data within the database is purged.
It should not be showing at all.
Are you positive that the content you speak of is not being displayed from another block that you created?
Title: Re: Deleted block still showing!!!
Post by: habeycole on July 20, 2016, 04:52:22 AM
Hi Chen Zhen,

I'm sure of what I wrote. The content of the deleted block still shows. Is this a malfunction from the database, or what do you think? I'd gladly accept any forthcoming help.
Title: Re: Deleted block still showing!!!
Post by: ♦ Ninja ZX-10RR ♦ on July 21, 2016, 10:43:54 AM
This is non-standard behaviour and never happened before, as far as I know...

Can you PM me (or Chen Zhen, if he wants) with a SP admin account for your forum? (It doesn't need to be full admin if you don't want, just SP admin).
A screenshot of where the deleted block is showing would help as well, I need to check some things.

Regards
Title: Re: Deleted block still showing!!!
Post by: habeycole on July 26, 2016, 10:49:54 AM
Hi Ninja ZX-10RR,

Thanks for your post. I'd try to create an admin profile and send you and Chen Zhen the details. I hope you'd be patient during this time as I'm currently having issues with my host.

Best regards.

*Modified*
SP Admin account created and have sent you the details through PM, including Chen Zhen.
Title: Re: Deleted block still showing!!!
Post by: ♦ Ninja ZX-10RR ♦ on July 27, 2016, 08:33:03 AM
I fail to see any block in that position, there is nothing in the page that is being generated.

It may worth to mention you have done something very wrong somewhere, considering I cannot see the "admin" button but I could still access it via action=admin, and on top of that all the images for the menu are not showing either (404 errors), which potentially tells me SP was not fully installed?
Title: Re: Deleted block still showing!!!
Post by: Chen Zhen on July 27, 2016, 07:21:42 PM
  It appears to be a theme that uses a different subroutine to display the nav menu.
The author of the theme could have had it gather the necessary data from the existing array but it does not.
(we have gone through this before on another custom theme)

  The HTML within your custom blocks was not conforming to W3c rules therefore I edited them to fix some of your issues.
I did not correct all the deprecated XHTML code nor did I omit much unnecessary repetitive styling elements although some was corrected.
Keep in mind that the SMF 2.0.X branch uses XHTML transitional and not HTML5 syntax which requires more closing tags than you had originally entered.

  Also you can not add head, html, body or style attributes (<- normally located within the head of the document) as this is already displayed prior to any SP blocks.
style attributes have to be added inline or via class from a preloaded css file (ie. edit SP's css file).
Imo the easiest way to introduce styling attributes for blocks is inline unless certain elements are just too repetitive then use class & edit a css file.



Major Notes:
- incorrect DOCTYPE declaration, needs to be (for SMF 2.0.X branch):
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">- all charset declaration should be utf-8 for the content shown
- all deprecated tags should be changed to css class or inline style elements
- name attribute is obsolete for hyperlinks, should be using id attributes (javascript and/or DOM events may also require adjustment)
- lang element missing in html tag
- some meta content using wrong attributes

XHTML (or HTML) errors can cause pages to not appear as intended and require browsers to auto adjust where possible.



Managing portal blocks does not give us access to PHP blocks for security reasons.
If you want me to look at the code in that block then post it within code tags in this thread (or in a PM if you prefer) & I will edit it then post it back again.
You can then use what I edited to overwrite its code afterwards.

Regards.
Title: Re: Deleted block still showing!!!
Post by: habeycole on July 28, 2016, 06:43:15 AM
Hi Ninja ZX-10RR, I think Chen Zhen already answered your question.

Chen Zhen, I understand your submissions loud and clear. I'll also fix the ones I can find, too. And from your edited post, I really do not understand what you mean by: "Managing portal blocks does not give us access to PHP blocks for security reasons.
If you want me to look at the code in that block then post it within code tags in this thread......." Can you please explain further?

BTW, I sent you a PM on the requested issue.
Title: Re: Deleted block still showing!!!
Post by: Chen Zhen on July 29, 2016, 11:48:52 AM
habeycole,

Your line break/spacing issue above the copyright it not from a SP block.
It is due to the footer section of your custom theme using the class of "frame" which resolves to a 60px top padding within that theme's css file.
Adjust the theme's template file and/or css file to address the issue.
I suggest editing the template in case the class of "frame" is used elsewhere for aesthetics.

I explained further in a PM.

Regards.
Title: Re: Deleted block still showing!!!
Post by: habeycole on August 01, 2016, 10:08:41 AM
Hi Chen Zhen,

I sent you a PM concerning the issue.

Kindest regards.
Title: Re: Deleted block still showing!!!
Post by: Chen Zhen on August 05, 2016, 09:56:24 AM
Simple Portal uses the div id of "sp_footer" for its last/bottom set of footer blocks.
The adsense code is not within SP's HTML div inserts (it appears afterward) therefore it is not being displayed via your Simple Portal modification.
As I have said many times thus far it is not caused by anything to do with Simple Portal.
Please accept that fact & try to remember how else you have added such a code.
You must have used another way to implement that code & have forgotten that you did so.

Imo the code is being implemented via custom theme, another modification or manual edit.
It is definitely not caused by any Simple Portal block (current or previously deleted).

Regards.
SimplePortal 2.3.8 © 2008-2024, SimplePortal