jsutton's Recent Forum Activity

  • Array.At(0,0)&" "&Array.At(1,0)&" "&Array.At(2,0)&" "&Array.At(3,0)&" "&"<a href="&Array.At(4,0)&">"&Array.At(4,0)&"</a>"

    Creates the text properly, then codes the link. Link opens inside the iframe.

    Unfortunately, this isn't what I need.

    I'm trying to embed links after someone posts a message.

    If they type "@whomever", that would be an internal link (not a webpage) and switch to a layout, call a php for that user and then show his profile(easy stuff).

    Unless I've missed something about iframes, they are good for web links and videos.

    Is that wrong? If so, any idea if anyone's done a tutorial on any of this?

  • For what I'm actually doing, I can't figure it out using the iframe.

    I'm actually trying to have linkable "#", "@", and hyperlinks.

    It's doable with dynamic box creation. It's just crazy to have 50k text boxes lol, surely there is an easier way.

  • I'm guessing you mean in the layout editor.

    If so, click on the layout, properties on left, grid size / snap to grid are listed there.

  • Is there any way to create multiple hyperlinks inside a single text?

    The possible solutions I've come up with all seem cumbersome.

    1. Dynamic text, each word having it's own instance allowing each one to have it's own hyperlink.

    2. Pure html where bbcode could handle it.

    3. Allow only 1 hyperlink per text.

    Ideally, something like:

    "If you clicked on this hyperlink it goes to main, but if you click on this hyperlink it goes to a sales page."

    (Funny enough, the editor we are using for this forum has the ability to do exactly what I want, just not sure if that's doable with C3.)

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Doubt this is any help, but it looks URLencoded. Is there any way to use URLdecode to get the URL format closer to something usable? Perhaps you could do a regex expression afterwards to get it back into the proper format?

  • The URL works fine.

    Its AJAX or something of the script to give me the ID and that ID put it into de Ajax.Lastdata and then put on the variable UserID

    I just want to double check: "Works fine"

    When you open a browser and on the URL type in your site address and php request with data it returns exactly what you want?

    example:

    yoursite.com/cgi-bin/file.php

    the php file runs and returns the correct id number in html format in your browser. Correct?

    (I use php / ajax everyday. So I'm just walking this through my normal troubleshooting process. Eliminating one problem at a time until complete.)

    If all that works, open your project in debugger mode. Under System, Ajax, lastdata, your id number should be there. If it is not, then check the browser log for an error. If still nothing, check that your ajax request.

    Assuming all that works, you probably just have a simple coding issue, maybe something as simple as Set ID = int(ajax.lastdata) as suggested above.

  • PHP calls are a pain. If your file is called GET.php and you call Get.php it will not work. Which is why I suggested making certain the php file is working before wasting any more time on the construct side.

    (on line 11 you have [and], which if I'm not wrong has to be [AND]...it's little stuff that always gives me fits.

    Good Luck!

  • If I may suggest some troubleshooting things you can do:

    1. In a browser, run the ajax call in the URL line (https://site.com/file.php?username=xyz&password=123 [this assumes the user/pwd exist]

    and just make sure it is giving a return (ie, the php file is working properly)

    [If the php file runs, at least you know that part is correct and can move on with debugging.]

    2. If the php file is working, preview your project in a browser and pull up the browser debugger (developer tools). See if the project is throwing an error.

    If I had to guess right now...your php file is tossing an error on line 11

    You might also check your server to see if there is an error report.

  • You could try and make some artwork (I use Gimp because it's free and has a pretty small learning curve, but blender might be more to your liking...also free) to create the feel of a ball rolling. Import the frames into and animation, set your speed.

    I typically use 9 animations, 6 frames each, 0,45,90,135, etc.

    Then use the angle of the ball's movement to set the animation in real time.

    I've done a few things like this, and it can look pretty realistic.

    I do find it easier to have an object that moves and rotates that is invisible. Then pin the animation to that object. That way the animation doesn't rotate, but you can easily get the angle of the sprite that does. Makes it a lot easier to set the animations. (just MO)

  • If it's just a couple buttons it'll be minimal rendering to keep them around. (technically you could destroy and recreate each time)

    I'd probably just move the buttons off screen when you make them invisible and then move whichever one you need when you make it's layer visible.

    You can check the FPS and CPU profiler (debug preview), but it likely will not affect performance in any noticeable way.

  • I'm not sure what it is you are asking, can you try and explain your question?

    You might look at the browser plugin, or if you have a website you can set the button to open new tab?

    Best I can offer with limited info.

  • If this is data you want as the developer:

    The only reliable way I would know is to use a mysql database and collect the data for you to manipulate.

    There is a high-score tutorial that gives a good introduction to how to store data in a database. (AJAX, MYSQL, PHP)

    If it's just for the user, you could just store a variable in local storage.

    construct.net/en/tutorials/tracking-users-ajax-php-mysql-1061

jsutton's avatar

jsutton

Member since 31 Mar, 2015

Twitter
jsutton has 1 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies