Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chasil

    (@chasil)

    Can you please give me an example for your request?

    Where does this variable come from?

    At this time the plugin can not use any variables. But this could be a nice feature for the next update. Please provide the needed information.

    Thanks

    Thread Starter kkkk45

    (@kkkk45)

    I solve it doing this little modification to your plugin (sorry….)

    //—————————————————————–//
    // Insert function for one rating //
    //—————————————————————–//

    function insertUSR() {
    global $media; // (the variable)
    $atts[0] = $media;
    //Read default settings
    $usrMaxStars = get_option(‘usrMaxStars’);
    $usrStarImage = get_option(‘usrStarImage’);
    $usrStarText = get_option(‘usrStarText’);……..
    ———————————————————————-

    and calling the function:
    global $media;
    [usr][/usr]

    Plugin Author Chasil

    (@chasil)

    Thanks for the info.

    I’m fine with your modification but this is nothing I can change for everyone. I thought there could be a way to define a variable inside the admin panel so that this is a possibility for everyone.

    Any Ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using variables’ is closed to new replies.