News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

TinyPortal

Started by lurkalot, February 12, 2005, 04:43:00 AM

Previous topic - Next topic

lurkalot

Try hitting save on that article and see if it fixes the problem.

d3vcho

Unfortunately that didn't make it.
"Greeting Death as an old friend, they departed this life as equals"

lurkalot

Hmm,  What happens if you create a new HTML article, does that display ok?

@rjen

Remove the html bit at start and end ... that is the problem

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">

And the closing < html> tag
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

d3vcho

Quote from: @rjen on January 29, 2020, 04:01:59 AM
Remove the html bit at start and end ... that is the problem

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">

And the closing < html> tag

Thanks for the fast answers. Sorry, that didn't make it either.
"Greeting Death as an old friend, they departed this life as equals"

@rjen

That's strange! It works for me... see attached...

Any chance you can give me an admin account for the site in question?
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

d3vcho

Quote from: @rjen on January 29, 2020, 04:27:24 AM
That's strange! It works for me... see attached...

Any chance you can give me an admin account for the site in question?

Lurkalot PMed me like an hour ago and I gave him admin credentials. Let's see if he can figure it out.

Thanks a lot @rjen!
"Greeting Death as an old friend, they departed this life as equals"

@rjen

 8)

Mick knows where to find me if needed...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

@rjen

#2588
Had another look, and it may be that the article is created using the wysiwyg editor...
This adds styling to the code ( < p> elements ) breaking the layout.

Note: if you want to write pure HTML into a HTML article you should not use the wysiwyg editor, but maintain it in the Source view...
try this: go into the article, make sure that the wysiwyg editor is switched off: (View Source, Ctrl+Shift+S)

The entire HTML code should be pasted in there. You can leave all the < head> stuff in there too...

<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Tutorial Coming Soon</title> <style type="text/css"> <!-- .tutcont343rf3wr2reg32rg h1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 36px; font-weight: 700; color: #cd3301; margin: 0px; } .tutcont343rf3wr2reg32rg p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } .tutcont343rf3wr2reg32rg h2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 700; color: #205c7e; font-style: normal; white-space: normal; text-indent: 0px; word-spacing: normal; line-height: normal; margin: 0px; } .tutcont343rf3wr2reg32rg h3 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 700; color: #cd3301; } .tutcont343rf3wr2reg32rg .tutdisc { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-weight: 400; } .tutcont343rf3wr2reg32rg img { float: left; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; margin-top: 0px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; } .tutcont343rf3wr2reg32rg p img { display: block; border: 2px solid #000000; text-align: center; background-position: center; float: none; margin-right: auto; margin-left: auto; } .tutcont343rf3wr2reg32rg { width: 700px; } .tutcont343rf3wr2reg32rg object { text-align: center; } .tutcont343rf3wr2reg32rg a { color: #cc3301; font-weight: 700; } .tutcont343rf3wr2reg32rg1 { width: 700px; } --> </style> </head> <body> <div class="tutcont343rf3wr2reg32rg"> <h1><img src="http://www.pro-jump.co.uk/PJF09/PJF-tutotials.jpg" alt="Pro-Jump Forum Tutorials" width="200" height="200" /> <strong>Tutorial Coming Soon</strong></h1> <h2>By: Add your name here!<br /> </h2> <p>Have a bit of spare time?<br /> Can you make an awesome tutorial for this page?<br /> Dab hand with a video or camera?<br /> Then you're just the kind of person we need to help us make this site a great resource for the PowerBocking community.<br /> <br /> If you want to claim this page and become a PJF contributor then please contact <strong><a href="http://www.projumpforum.co.uk/index.php?action=profile;u=1" title="View the profile of webmaster">me</a></strong> via pm - Thank you :)</p></div> </body>

Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

d3vcho

Quote from: @rjen on January 29, 2020, 08:24:11 AM
Had another look, and it may be that the article is created using the wysiwyg editor...

try this:
go into the article, make sure that the wysiwyg editor is switched off: (View Source, CTRL_Shift+S)

The entire HTML code should be pasted in there...

<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Tutorial Coming Soon</title> <style type="text/css"> <!-- .tutcont343rf3wr2reg32rg h1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 36px; font-weight: 700; color: #cd3301; margin: 0px; } .tutcont343rf3wr2reg32rg p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } .tutcont343rf3wr2reg32rg h2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 700; color: #205c7e; font-style: normal; white-space: normal; text-indent: 0px; word-spacing: normal; line-height: normal; margin: 0px; } .tutcont343rf3wr2reg32rg h3 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 700; color: #cd3301; } .tutcont343rf3wr2reg32rg .tutdisc { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-weight: 400; } .tutcont343rf3wr2reg32rg img { float: left; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; margin-top: 0px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; } .tutcont343rf3wr2reg32rg p img { display: block; border: 2px solid #000000; text-align: center; background-position: center; float: none; margin-right: auto; margin-left: auto; } .tutcont343rf3wr2reg32rg { width: 700px; } .tutcont343rf3wr2reg32rg object { text-align: center; } .tutcont343rf3wr2reg32rg a { color: #cc3301; font-weight: 700; } .tutcont343rf3wr2reg32rg1 { width: 700px; } --> </style> </head> <body> <div class="tutcont343rf3wr2reg32rg"> <h1><img src="http://www.pro-jump.co.uk/PJF09/PJF-tutotials.jpg" alt="Pro-Jump Forum Tutorials" width="200" height="200" /> <strong>Tutorial Coming Soon</strong></h1> <h2>By: Add your name here!<br /> </h2> <p>Have a bit of spare time?<br /> Can you make an awesome tutorial for this page?<br /> Dab hand with a video or camera?<br /> Then you're just the kind of person we need to help us make this site a great resource for the PowerBocking community.<br /> <br /> If you want to claim this page and become a PJF contributor then please contact <strong><a href="http://www.projumpforum.co.uk/index.php?action=profile;u=1" title="View the profile of webmaster">me</a></strong> via pm - Thank you :)</p></div> </body>

It seems the code is pasted into the WYSIWYG editor. This adds styling to the code ( < p> elements ) breaking the layout.

Note: if you want to write pure HTML into a HTML article you should not use the wysiwyg editor, but maintain it in the Source view...

That was it. Thanks a lot @rjen!

Great support here :)
"Greeting Death as an old friend, they departed this life as equals"

d3vcho

One last thing. In the post I linked I saw a SMF editor. In the rest I'm not able to see those. Please see attached screenshot.

"Greeting Death as an old friend, they departed this life as equals"

@rjen

#2591
The editor is only applicable for HTML and BBC articles.

If your article is somehow not flagged as such, there is no WYSIWYG editor available.
I think Lurkalot suggested setting the first one to 'HTML' (which you tried) so that may explain it.

So somehow the articles in your forum seem to be incorrect in the database (perhaps due to changes from your unidentified old version of TP). Setting them to HTML while using the Source View mode seems to fix them...

If you want to check in the database, look in table smf_tp_articles and check the value for field 'type': it should contain the value 'html'. If it does not you may change it and see the result...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

d3vcho

Yeah, even though they're listed as HTML, they aren't. I have to change them to another i.e PHP and then change back to HTML and the editor displays. Thanks!
"Greeting Death as an old friend, they departed this life as equals"

lurkalot

Glad you got it sorted with @rjen's assistance.  8) 

I have only just returned home from my day job, so looks like you're all set.  If you get stuck on something please don't hesitate to ask.  ;)

big red

Hello

Fresh install of SMF 2.0.17 in Xampp and Admin showing zero errors. Just installed the most up to date version of TP and now have several types of errors.

  Just read through the last 3 pages of posts and didn't see this reported. If the errors are minimal i can just probably leave as is.

8 Trying to access array offset on value of type nullApply Filter: Only show the errors from this fileFile: C:/xampp/htdocs/final/Sources/TPortal.php
Line: 2978


8192: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`Apply Filter: Only show the errors from this fileFile: C:/xampp/htdocs/final/Sources/TPassimilate.php
Line: 682


8192: Array and string offset access syntax with curly braces is deprecatedApply Filter: Only show the errors from this fileFile: C:/xampp/htdocs/final/Sources/Subs-Package.php
Line: 2820


lurkalot

What PHP version is you XAMPP running?

@rjen

I am guessing 7.4.1?

These are the errors we found with the latest php version, and we are testing TP165 for it.
If it is an earlier PHP version I would like to know which?
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

big red


@rjen

There you go...

I was not even aware the SMF 2.0.17 is tested on 7.4.1...
You may be one of the first trying it... it may be better to stay on 7.3 for now.
But if you want to go with 7.4, the next release of TP will address these errors...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

big red

Quote from: @rjen on February 07, 2020, 03:59:16 PM
There you go...

I was not even aware the SMF 2.0.17 is tested on 7.4.1...
You may be one of the first trying it... it may be better to stay on 7.3 for now.
But if you want to go with 7.4, the next release of TP will address these errors...

Sure - not noticing any forum problems with these errors so i'll just live with them until the next TP Release!

  Another question if i may - possible to have more that 1 TP Shoutbox? Would like to have 2 running separate from each other.

Advertisement: