collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 463
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: Bad tag nesting in signature breaks the pages when Simple Portal is turned on  (Read 4784 times)

0 Members and 1 Guest are viewing this topic.

Offline rtkane

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
I've recently installed SP primarily to allow for multiple Shoutboxes on different pages of my boards.  But when enabling it, I've noticed that it is breaking the structure of the page so that the page seems to have open table tags and the quick reply ends up in the middle.  The only thing I have it displaying is a Shoutbox on a single page (and not even on the below pages).  Doesn't seem to affect top level pages, only subs:





And more weirdness and broken table tags.  Lower on the page (not in the screenshot) the quick reply again is in the middle.




Any ideas?  Any help is certainly appreciated. 


SMF 2.0.2 w/ the most recent version of SP. 
« Last Edit: May 10, 2012, 11:31:37 AM by AngelinaBelle »

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Enabling SimplePortal breaks table structure of sub-pages
« Reply #1 on: May 07, 2012, 08:38:34 PM »
Hello rktane and welcome to Simple Portal.

This may not be related to Simple Portal since I see that the html error shows up on a page where no blocks appear to be enabled.
Unless you have other blocks enabled with improper code in it, imo it would appear to be caused by an improperly parsed installation/uninstallation of a mod?!

Did Simple Portal install without flagging any errors?
Do you have any other blocks enabled that may cause the issue?



Offline rtkane

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Enabling SimplePortal breaks table structure of sub-pages
« Reply #2 on: May 07, 2012, 08:45:49 PM »
Hi Underdog and thanks for the reply. SimplePortal installed without a hitch showing no errors and I have no other blocks enabled.  In addition, the reason I figured it was SimplePortal related was because the errors only appear when I activate it (whether front page, integration, or standalone modes). When I switch the Portal mode to "disabled" the errors all disappear.  Thank you again for your help.

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Enabling SimplePortal breaks table structure of sub-pages
« Reply #3 on: May 07, 2012, 08:49:04 PM »
Is this on a live installation?
May I have a link to a page showing the issue so I can examine the html?

Is this using the SimplePortal shoutbox? ... Or is it a 3rd party shoutbox?
« Last Edit: May 07, 2012, 08:52:30 PM by Underdog »

Offline rtkane

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Enabling SimplePortal breaks table structure of sub-pages
« Reply #4 on: May 07, 2012, 08:58:37 PM »
Is this on a live installation?
May I have a link to a page showing the issue so I can examine the html?

Is this using the SimplePortal shoutbox? ... Or is it a 3rd party shoutbox?

It is a live installation. Can I PM you a link with user credentials so you can see the error? 

Edit: and yes, it is a SimplePortal shoutbox.
« Last Edit: May 07, 2012, 09:03:48 PM by rtkane »

Offline rtkane

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Enabling SimplePortal breaks table structure of sub-pages
« Reply #5 on: May 07, 2012, 09:41:54 PM »
Here's some updated info:  It would appear that some extra tags in someone's forum sig was causing the breaks.  Cleaning up the tags seems to have fixed it, but I'm at a loss as to why a sig would break the boards when SimplePortal is active, but be fine when it's not.  Let me know how I can get info over to you as it would appear noobs on these boards don't have PM permissions.  :)

Thanks.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Enabling SimplePortal breaks table structure of sub-pages
« Reply #6 on: May 08, 2012, 11:28:38 AM »
Hi, rtkane,
You need 5 or 10 posts to achieve PM-ability. I'm glad you have solved the problem.
Do you want to mark this "Topic Solved"?

SimplePortal makes the HTML on the page more complicated.
So, without SimplePortal, the bad HTML in the signature actuall broke the HTML on the page, but you don't notice it because the browser deals with it OK.

But when you use SimplePortal, the page has more layers of things inside things, and you really start noticing the problem. The browser is not smart enough to make a good guess about how the page is supposed to be displayed.

Now, of course, if you have fixed the problem, you may not need to PM Underdog immediately.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline rtkane

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Enabling SimplePortal breaks table structure of sub-pages
« Reply #7 on: May 08, 2012, 11:47:59 AM »
I think cosmetically it's solved, but if I had another member post some poor BB code within their signature, it'll break the forums again.  It seems like their signature should be isolated enough in the code that a mod wouldn't allow for a user to completely (and unintentionally) mess up the forum structure itself.  If this is normal functionality for SimplePortal, feel free to mark it solved.

Thanks!


Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Enabling SimplePortal breaks table structure of sub-pages
« Reply #8 on: May 08, 2012, 03:23:31 PM »
What was in the bad signature, anyway?
It looks like it was some kind of BBC tag nesting mistake.

The interesting thing is that we cannot entirely protect the HTML from bad user HTML.
The BBC parser (called parse_bbc) tries to help with unclosed tags, but it cannot always succeed.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline rtkane

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Enabling SimplePortal breaks table structure of sub-pages
« Reply #9 on: May 08, 2012, 03:26:53 PM »
It was a missing part of the table structure, specifically this:

Code: [Select]
[TR][TD]
That's all that was causing all of the issues.  Of course, when I try to paste the bad table structure into another user's sig, it breaks it again.  I sent Underdog a PM that I can forward over to you (with user credentials) just for further explanation.

Thanks.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Thanks for sending me the sample signature. That signature has a problem -- an extra [./center] tag.
This causes bad HTML to be output, whether or not the forum is a BBC forum.
I hope you won't mind that I've changed the Subject of this topic to get more specific about the cause of the problem.

If anything, this is an SMF error.  The extra  tag causes parse_bbc to close the table incorrectly.  Instead of </td></tr></table>, it puts [nobbc]</table></tr></td>[/tr][/table].

A very strict browser would just complain about this and refuse to display the page. But your browser tries to deal with it.
On an ordinary SMF forum, the page is laid out using a number of <div> elements, so the browser won't find any tables to try to stick the spare </tr></td> with, so it just basically throws them away and keeps going. Stuff winds up in the order you would expect if they weren't there at all.

But on a Simpleportal page, which puts a table around the central section of the page, the browser might assume that </tr> is meant to close the row that <td id="sp_center"> belongs to. And then it has to deal with the </tr></td>. At that point, there are no open rows or cells to close.  What is the browser going to make of that mess?  Or the text [/tr][/table], and bunches of stuff which follows it, which seems to be within a table, but not inside any cell or even inside a row.
The browser does its best, but makes a mess of the rest of the page. It appears to put them inside the body of the table, before any of the rows.

You will get the same sort of result if you make a mistake like this in a post, rather than in the signature.  Blame it on parse_bbc.

Code: [Select]
[nobbc][table][tr][td]image   [./center]
[/td][/tr][/table][/nobbc]
causes
Code: [Select]
<div class="signature" id="msg_134_signature"><table class="bbc_table"><tr><td>image&nbsp;&nbsp;&nbsp;<br /></table></tr></td>[/tr][/table]</div>
Code: [Select]
[table][tr][td]image   
[/td][/tr][/table]
Code: [Select]
<div id="msg_134_signature" class="signature"><table class="bbc_table"><tbody><tr><td>image&nbsp;&nbsp;&nbsp;<br></td></tr></tbody></table></div>
I have reported this to the SMF project at http://dev.simplemachines.org/mantis/view.php?id=4982
« Last Edit: May 10, 2012, 02:02:42 PM by AngelinaBelle »
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?