Create a Page Problem

  • Betroffene Version
    WoltLab Suite 3.0

    I am trying to include a flash irc client to my forum installation, but since the page creator has an automatic word wrap it breaks the script I am posting.

    Is there a way to bypass the wordwrap?

  • First and I think this is important, but I would advise you to avoid using flash altogether since support for flash is being dropped by Adobe. All the major mainstream web browsers, for example, Microsoft Edge, Google Chrome, and Apple Safari have been blocking or otherwise removing flash support as well. However, if you still feel this is the path you wish to proceed upon, have you tried editing within the editor outside of the WYSIWYG windows? You can disable it and view the pure HTML code by clicking on the editor button in the top left corning of the editor. Beyond that, I do not believe you can disable the word-wrap. I know you can add code to a widget box though and I would suggest you try that too.

    Love is love. * Liebe ist Liebe.

    Meine Muttersprache ist Japanisch. Ich schreibe in Englisch, um ins Deutsche zu übersetzen. Bitte haben Sie Geduld mit mir. https://www.deepl.com/translator

  • Howdy LoveisLove,

    /start rant :p

    I do not give a hoot what the mainstream browsers wish. I run a page with a game that runs on a Java client, and I have to use IE to use the client. A few bad people implant virus' and malware in a client and boom everyone gets screwed over.

    I have yet to find an IRCd Webclient better than a flash client. IF SOMEONE doesn't want to run it than they do not have to. BUT on my page I will include it. As I have for the last 18 years.

    /end rant.

    I can bypass that by probably doing a PHP include via that page to an external page I uploaded to the file system. My method will work, Thank you for your reply.

  • Or I assume it is :p

    I have already included this script in my HeaderCode, but I used the full web address in the src"" tag.

    HTML: Header Script
    <script type="text/javascript" src="irc/config.js"></script>

    I have uploaded the lightIRC folder to the home directory of the forums, and then I created an HTML page with WoltLab, and when I included this code....

    It doesnt work....

    HTML: Flash client, javascript
    <div id="lightIRC" style="height:300px; text-align:center;">
      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
    
     </div>
    
     <script type="text/javascript">
            swfobject.embedSWF("/irc/lightIRC.swf", "lightIRC", "100%", "75%", "10.0.0", "/irc/expressInstall.swf", params);
     </script>
    <br>

    Once again I included the full webaddress to the irc folder

    • Offizieller Beitrag

    I wouldn't use the header code to inject the JavaScript, because you don't need it to be run everywhere. I don't see any reason not to combine it into one by putting it in line 5 of your code above, keeping everything in one place.

    Besides that, LoveIsLove brought up a valid point: Flash support is removed by all browser browsers in small steps. On of these is to remove the ability to use swfobject to load a Flash object onto a HTML page, regardless wether you allow the tab to use Flash or not. You have to use the <object>-element instead to embed it, see https://stackoverflow.com/a/41303952 and/or ask the lightIRC folks for an updated code that works in recent web browsers.

  • First and I think this is important, but I would advise you to avoid using flash altogether since support for flash is being dropped by Adobe. All the major mainstream web browsers, for example, Microsoft Edge, Google Chrome, and Apple Safari have been blocking or otherwise removing flash support as well. However, if you still feel this is the path you wish to proceed upon, have you tried editing within the editor outside of the WYSIWYG windows? You can disable it and view the pure HTML code by clicking on the editor button in the top left corning of the editor. Beyond that, I do not believe you can disable the word-wrap. I know you can add code to a widget box though and I would suggest you try that too.

    But he does have a good point. I removed FLASH after reading a year ago that Chrome and FireFox was going to start blocking it and adobe posted they are stopping support for Flash in the near future. And when you think how often flash gets updated all the time because of security issues, there is no point anyone running it once adobe stopped supporting it with updates.. it would be a security nightmare still using it then.

    I have not run the flash plug-in for over a year now.

    Einmal editiert, zuletzt von NicoleSophie (26. Februar 2018 um 01:17)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!