News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

no funktion html code on smf 2.0.9

Started by larry007, October 03, 2014, 08:04:51 AM

Previous topic - Next topic

larry007

Please take a look on this topic

http://www.forum.bundeswehr-feuerwehr.de/index.php?board=1.0

two topic trys with Google Maps and one with Weather html code as admin - no display??

[html]blabla[/html]

can anybody help please?

Hj Ahmad Rasyid Hj Ismail

I think it is working but the body is empty?

margarett

It would be handy to know what HTML are you putting there ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

larry007

in weather

[html]<a  href="http://www.wetter24.de/"  style="padding:0;background:none"  target="_blank"  title="Wetter24:  Ihr  Wetter-Dienst"><img  src="http://www.wetter24.de/meteo/hptool/logo_meteogroup.png"  alt=""  width="120"  height="32"  border="0"  style="display:block;"  /></a><div  style="background-color:#102840;color:#00B0CA;font-family:Verdana,Arial,Tahoma,Times  New  Roman;font-weight:bold;font-size:10px;width:120px;text-align:center"><a  href="http://www.wetter24.de/wetter/berlin/49X10168.html"  target="_blank"  style="color:#00B0CA;font-family:Verdana,Arial,Tahoma,Times  New  Roman;font-weight:bold;font-size:10px;padding:0;background:none"  title="Ausführliche  Wetter-Vorhersage  für  Wetter  Berlin">Wetter  Berlin</a></div><iframe  width="120"  height="151"  scrolling="no"  frameborder="0"  src="http://www.wetter24.de/meteo/hptool/index.php?cid=49X10168&cityName=Berlin&l=de&style=1&v=de&ver=2&c1=00B0CA&c2=102840&c3=102840&c4=ffffff&c5=102840&c6=ffffff&c7=102840&f1a=1&f1b=2&f2a=1&f2b=1&f3a=1&f3b=1&ct1=1&ct2=2&ct3=6&ct4=10&ct5=12&fcd=0"></iframe><div  style="height:14px;width:120px;text-align:center;background-color:#f8b920"><a  href="http://www.wetter24.de/"  target="_blank"  style="background:none;padding:0;text-decoration:none;color:#000000;font-family:Verdana,Arial,Tahoma,Times  New  Roman;font-weight:bold;font-size:10px"  title="Aktuelles  Wetter  und  Vorhersagen  für  2  Mio.  Orte  weltweit">Mehr  Wetter</a></div>[/html]

the first code in maps

[html]<iframe    src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d5627.893711238953!2d10.194581958537555!3d52.90828949873205!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e1!3m2!1sde!2sde!4v1411379422968"    width="600"    height="450"    frameborder="0"    style="border:0"></iframe>[/html]

the second in map

[html]
<head>
...
<script    type="text/javascript"    src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCeFVxWexYZN1oHc53ZMFPOz6tpv4WqU3g&sensor=false"></script>
<script    type="text/javascript"    src="http://www.map-generator.org/map/iframejs/0dc871e4-cd73-4704-91a0-a240e10132d3?key=AIzaSyCeFVxWexYZN1oHc53ZMFPOz6tpv4WqU3g&width=400px&height=400px"></script>
...
</head>
<body>
...
<div    id    ="mapid-0dc871e4-cd73-4704-91a0-a240e10132d3"></div>
<br    />
<a    href="http://www.map-generator.org/0dc871e4-cd73-4704-91a0-a240e10132d3/large-map.aspx">Karte    vergrößern</a>
..
</body>
[/html]

margarett

The first and second should work, methinks. Not looking very closely at it but I think it should work.

The last one can't be used. You can't create a html document inside SMF... So that needs to be made differently.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

larry007

nothing of them works on my side... :o

the second map works on localhost smf 2.0.8 perfect!

margarett

Well, since SMF only supports a reduced number of HTML tags, it might clean that up for you...

So if it works locally and doesn't work on your server, maybe your server can't connect to the target sites?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kindred

#7
Well, the last one is totally bogus anyway...  You should never create a whole new html page inside an existing html page. That markup is invalid.

Try putting any character in the post, outside the the html BBC section...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

Holder of controversial views, all of which my own.


larry007

Hi

I have installed smf 2.0.9, I insert this code with html BBCode.

No map display in topic!

Quote<iframe width="600" height="400" src="http://maps.google.de/maps?hl=de&q=52.908440, 10.190231&ie=UTF8&t=&z=16&iwloc=B&output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" ></iframe><br><a href="http://www.ixq.de/google-maps.php" title="Google Maps für Ihre Webseite"><span style="font-family:Verdana; font-size:50%">Google Maps Generator</span></a><br>

Now I found this topic:
http://www.simplemachines.org/community/index.php?topic=524724.msg3716380#msg3716380

So I change and use now the file Sups-Post.php from SMF 2.0.8 and copy/replace the file to my ftp location.

Now I tryed the same code on top to the post and the map can I see now perfect!!!

I attachment the two files.. please take a look perhaps the Sups-Post.php from SMF 2.0.9 is buggy??


mashby

I just put your html code on a test site running 2.0.9 and it displayed the map just fine.
Always be a little kinder than necessary.
- James M. Barrie

Oldiesmann

Comparing the files, I see the problem. The file from 2.0.9 has old buggy code in it, while the one from 2.0.8 has the proper code in it. I'm not sure how that happened though. Basically, it's replacing single spaces (rather than double spaces) in HTML with a space and the Unicode space character. This was an issue with early versions of the 2.0.8 patch and the 2.0.9 patch was supposed to fix this, but only if the issue still existed. I'm not sure how this happened for you as the patch has the correct code in it.

Hj Ahmad Rasyid Hj Ismail

Errr??? What do you mean Oldies? Is this Subs-Post.php the same with the one in the new 2.0.9 package?

larry007

Quote from: Oldiesmann on October 04, 2014, 01:59:59 PM
Comparing the files, I see the problem. The file from 2.0.9 has old buggy code in it, while the one from 2.0.8 has the proper code in it. I'm not sure how that happened though. Basically, it's replacing single spaces (rather than double spaces) in HTML with a space and the Unicode space character. This was an issue with early versions of the 2.0.8 patch and the 2.0.9 patch was supposed to fix this, but only if the issue still existed. I'm not sure how this happened for you as the patch has the correct code in it.

Hi

I downloaded just the file "smf_2-0-9_install.zip" again!

I have take a look to the file "Sups-Post.php", why is this file still buggy with the single spaces on line 239?

So every User must copy your file with the correct code in there own location, so that run the html code correct.....!?

Or I misunderstud something wrong?

larry007

Quote from: Oldiesmann on October 04, 2014, 01:59:59 PM
Comparing the files, I see the problem. The file from 2.0.9 has old buggy code in it, while the one from 2.0.8 has the proper code in it. I'm not sure how that happened though. Basically, it's replacing single spaces (rather than double spaces) in HTML with a space and the Unicode space character. This was an issue with early versions of the 2.0.8 patch and the 2.0.9 patch was supposed to fix this, but only if the issue still existed. I'm not sure how this happened for you as the patch has the correct code in it.


No answers for this question?

it is still so bugy in "Sups-Post.php" 2.0.9

Mhh...

Advertisement: