WordPress.org

Ready to get started?Download WordPress

Forums

using an HTML get for search instead of PHP??? (6 posts)

  1. rudme
    Member
    Posted 2 months ago #

    (just a note on top here, my hoster bluehost updates all my WordPress sites automatically, no questions asked, so i kind of wonder why there still is this Version selection here in the forum???

    Anyway, to my actual technical problem;
    I still have a full Flash interface to one of my sites.
    The Flash movie was done on Flash 4, so it is kind of antique in a sense, but since i put in a lot of hard artistic work and still use it as my browser home page i want to keep it also on my new WordPress site.
    The only catch i have with Flash 4 is that i have no clue how to get the search box / button go to get some PHP coded link to the actual search page.
    I can only use a string that looks like this:
    "
    On (Release)
    If (query ne "")
    Get URL ("cgi-bin/linksaroo/search.pl", window="_self", vars=GET)
    End If
    End On

    "
    in other words an HTML style of Get command.
    What would be my HTML search page link HTML equivalent to <?php get_search_form(); ?>
    ??

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 2 months ago #

    I don't know a lot about ActionScript, but I figure it would be something like this:

    var s:String = "search phrase";
    getURL("http://example.com", "_self", "GET");

    Basically, you just call a link to your site and pass it the s=search parameter to perform a search. There is no specific "file" you need to hit, just the main URL of the site is what you are sending the data to, in the "s" parameter.

  3. rudme
    Member
    Posted 2 months ago #

    Thanks Otto,
    the var s:String = "search phrase";
    part IS the problem!!
    What i am trying to say is that Flash 4 is so old it did not yet have what they called "action script" in the later versions of Flash.
    In other words i only have preset options to chose from.
    One sector is called "Expression" the other "string literal", and there is an "Expression Editor" (inside which i find no option to add something like a variation "s"
    Inside the strings editor i have several sections:
    General Operators, Numeric Operators, String Operators (mainly about greater than etc. option to add a string target)
    Logical Operations. Than also General, Numeric and String Functions, Properties, Global Properties, Multibyte String Functions- sorry, i lined these up because i never used any of them, no clue what they mean or how to implement....

    So i just wonder if this ominous "s" couldn't be attached to the URL string somehow??

    Maybe
    Get URL ("useroo.tk", window="_self", vars=GET s) oh, nope, the Vars options are only Don't send, send using Get or send using Post, eieiei, my brain starts to rotate in circles....
    I know just that calling the home page alone does not produce any search results ...

  4. rudme
    Member
    Posted 2 months ago #

    and just tried..
    What WP suggests here http://codex.wordpress.org/Creating_a_Search_Page#Using_the_page.php
    so i could link to this new search page as in
    Get URL ("http://www.useroo.tk/search/", window="_self", vars=GET)
    but - you guessed it - it just jumps to that page without fetching the actual search term, eieiei

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 2 months ago #

    Yeah, no idea man. There isn't even documentation remaining on the internet for flash code that old.

    I recommend rewriting it or ditching it. Sorry.

  6. rudme
    Member
    Posted 2 months ago #

    Ditching a cutie like this:
    http://www.useroo.tk/flasheroo.html
    i worked this out completely in Flash, long before there where touch screens and tablets, just with the mouse.
    But anyway, i put on second best for my site so i can at least still use it as my home page - while visitors get the new main page, there's always a work around everything ....

Reply

You must log in to post.

About this Topic

Tags

No tags yet.