[PLUGIN] HTML_Div

0 favourites
  • 12 posts
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • <font size="4">Thread Discontinued - Go Here Instead</font>

    Want to display formatted HTML text / links, PHP generated HTML content, youtube videos, facebook like buttons, images, widgets, news listings, comments and much more HTML/PHP stuff into your games and apps? Well with this plugin you can.

    You can create an HTML Div with this plugin. By default, it is a blank square that allows you to type HTML formatted text into. Included are the abilities to change the content/innerHTML of the div, and even change the style (for example, you can restrict the size and add scrollbars to your text div box by adding the overflow:auto; style)

    Also supported is the ability to load the content with AJAX! You can load text files, the results of PHP files, and more with this feature. This feature only works on web servers (much like the AJAX plugin). You can even pass GET and POST data while requesting content from HTML/PHP pages.

    Included in the download is the plugin, example and documentation - but I assure you if you know HTML, this will be a breeze to use (no advanced learning curve).

    Download HTML_Div Plugin, Example, Docs

    Enjoy!

  • It's very powerful! Thanks.

  • I get an error upon previewing, I think its to do with it not being on a server though right?

    I saw something about that on your txt file..

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Is there a way to load a twitter widget with this --

    <script src="http://widgets.twimg.com/j/2/widget.js"></script>

    <script>

    new TWTR.Widget({

    version: 2,

    type: 'profile',

    rpp: 4,

    interval: 30000,

    width: 250,

    height: 300,

    theme: {

        shell: {

          background: '#333333',

          color: '#ffffff'

        },

        tweets: {

          background: '#000000',

          color: '#ffffff',

          links: '#4aed05'

        }

    },

    features: {

        scrollbar: false,

        loop: false,

        live: false,

        behavior: 'all'

    }

    }).render().setUser('GinoRea').start();

    </script>

  • I can't get that code to work. If anyone has any ideas, on how to overcome that, let me know.

  • Do you have anyway of retrieving user tweets? -- You would save my life :)

  • smitchell - ill work on this tonight,

    I highly recommend using the iframe for user tweets for now though! Tonight I will add the "style" functionality to the iframe plugin, and then you can just take off the border with CSS style, and use the iframe to show a blank page containing only your user tweets

    deal? I'll message you tonight regarding the updated plugin :D

    or if you need it now, you can insert an iframe into your HTML_div object's innerHTML and style the border out. For example:

    <font color=#0a67b5>Set HTML_Div innerHTML to</font>

    <font color=#880000>"<iframe src=""tweets.html"" style=""width:100%;height:100%;border-width:0px;""></iframe>"</font>

    The problem with what you're describing is that I think there is an interference of the scripts, and I would need to probably talk to Ashley regarding what can be done (as I'm unable to determine what's causing it to not function) about using other scripts on the same document alongside the runtime.

  • This is exactly what i done! i came on this thread to get the link to your plugin.

    Here is my thread

    scirra.com/forum/topic47066_post294781.html

  • when i try to set the innerHTMl from an expression that returns a string after selecting the expression the diaog gives error saying you cant use numbers only strings, BUT the expression IS a string.

    can you fix this

  • : I need to iron some bugs on those plugin (at the beginning, they aren't mine, I just choose to continue their development). I'm a bit overcharged with work this week, but I'm going to try to fix that next week.

  • Please update the link for the plugin. It's not working. Thanks

  • Please update the link for the plugin. It's not working. Thanks

    khelaghor

    Please be aware of where you are posting.

    This thread is nearly 6 years old and the original poster hasn't been on here for over 3 years (check user profile), so it's doubtful he will be updating any download links.

    If any other user has a link then they may be able to help, but it is a very old plugin.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)