Send Variables to cu3er config

  • 6 posts
  1. SchattenMann

    1 year ago

    hello

    first off all i have to say: cu3er is by far the best gallery/slider i ever used! congrats for that!

    im totally anscious to see cu3er 1.0 :D

    i have the need to use a dynamic config with cu3er that gets the images from my Wordpress Gallery.

    To do that i need to pass the variable id to the config.php (config.php?id=X)

    my problem is that cu3er automatic adds ?t=RANDOM to prevent cache...so i get something like config.php?id=X?t=RANDOM = FAILS

    is there any othe way to post my var? (please don't make me use cookies lol)

    is there any config param to add personal data to request? (i doubt that)

    also the URL_encode_function should see if a "&" or "?" is required and not force "?"...

    tks

  2. SchattenMann

    1 year ago

    cm'on...no reply!? i can't believe this has never been requested....

  3. stukerr

    1 year ago

    Agreed this would be a great feature, still in the mean time you can get it from the PHP request_uri:

    $pieces = explode("?", $_SERVER['REQUEST_URI']);
    parse_str($pieces[1]);

    That will create a variable with the name as your 1st get var, not sure about any security implications tho

  4. SchattenMann

    1 year ago

    that's a great idea!

    much better then my other 2 options:

    1. cookies
    2. generate a temp config.xls before the call and delete it after

  5. I wonder why they add this extra var! If they need it, they should have option to configure this from js stuff. It's being problem to implement with cms

  6. I am using htaccess rewrite so the server sends the GET var directly...

    ^xml-(.?*).php /xml.php?gallery=$1

    Then the script outputs xml file, afaik, you can't send variables via javascript, at least my script can't read them...

    eg
    http://webarto.info/galerija/elemar%20pinguin
    http://webarto.info/galerija/gti
    http://webarto.info/galerija/maloprodaje