• Resolved steitiyeh

    (@steitiyeh)


    Hello There,

    I haven’t downloaded the plugin yes, but it looks amazing and it has everything I need in terms of functionality. I want to use it with a business directory theme (premiumpress) and want to add 4 or 5 rating criterias to each listing, I was thinking if it’s possible to embed the rating code through the php template? Cause It wouldn’t accept the shortcode I believe.

    Looking forward to your feedback

    Thanks,

    Steit

    https://www.ads-software.com/plugins/universal-star-rating/

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

    (@chasil)

    Hi Steit,

    I am working on a redesign which will include some new features. I think this could work for you. Beacause I’m doing this in my very limited free time I don’t know when it’s ready so: it’s ready when it’s ready ??

    I don’t know how the php template works nor if you are a good programmer (I am not :D) but you can try to access the plugins functions… maybe by including it? If this works you can use the functions for

    – single ratings: insertUSR(array("=5")) – This would use the standard output with 5 stars. You for sure can use all the options which can be used in shortcodes. e.g. insertUSR(array("=3.5","max" => "3"))

    – multy ratings: insertUSRList(array("Pizza:1","Ice Cream:2","Cookies:3"))

    Hope this works for you.

    Regards

    Thread Starter steitiyeh

    (@steitiyeh)

    I am not good in coding at all ?? i will give it a go right now and see what happens. Will keep you posted and thank you so much for your instant response.

    Thanks
    Steit

    Thread Starter steitiyeh

    (@steitiyeh)

    Hello again Chasil,

    I am currently using the shortcodes to embed the ratings, but unfortunately those are read only! it only shows the rating i embeded within the shortcode and no one can vote.

    is this normal or am i missing something!?

    thanks,

    Plugin Author Chasil

    (@chasil)

    Hi steitiyeh,

    at the moment this is the focus of this plugin: The Author can rate something. So everything seems to be OK.

    But as I said I am working on a newer version which will include some new functions/features.

    Regards

    hi,

    I added the code on post.php file like
    <?php insertUSRList(array(“Pizza:1″,”Ice Cream:2″,”Cookies:3”)) ?>
    but dont show on home recent posts page. Is it true code?

    thanks

    Plugin Author Chasil

    (@chasil)

    Hi asunnetcioglu,

    I didn’t try by my own but I think you have to include the needed PHP files from the plugin. Your post.php shouldn’t be able to use the function “insertUSRList()” without these files.

    Do you have some error logs to check if I’m right?

    Regards

    Hi chasil,

    Don’t show any errors on my page.
    I want to use plugin in my posts. I placed short code on post. But don’t show my recent posts page. How can i use the template code? Plugin shows on my home page like a [usrlist “Pizza:3” “Ice Cream:3.5”]. When i click post title, plugin works correctly.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Embed Multiple Rating Criteria into PHP Template’ is closed to new replies.