Hey Byron, I need some help...I tried but couldn't find the answer...So how do I add the toggle rating link on custom layout? And if possible could the toggle rating behave show/hide instead of hide/show? thanks.
resolvedHey Byron, I need some help...I tried but couldn't find the answer...So how do I add the toggle rating link on custom layout? And if possible could the toggle rating behave show/hide instead of hide/show? thanks.
Hi Mike,
To get ratings on custom layouts, add: [ps_rating]
Sorry, there isn't a setting to switch your toggle...but you could do a javascript call to it on page load to toggle it off first.
Cheers,
Byron
Byron thanks for your answer, but I was using [ps_rating] already and the toggle rating link doesn't show at all...Any idea to how make it appear? Thanks.
Oh...sorry. Misread that. Do you have the Rating Type turned on in Gallery Settings for the particular gallery you're wanting to show? If it is, the toggle link should show automatically. If no and you can't turn it on because you don't want ratings showing in a standard gallery, you can add this code to the Wrapper in the Custom Layout:
Toggle ratings
[gallery]
The [gallery] tag is needed to insert the gallery somewhere in your wrapper. You can put div's or whatever other html you want in the wrapper to get it to do what you want.
Hope that helps,
BB
Well, do a view source on to see the html tag on that Toggle link above. It's got a [gallery_id] in there that is really important.
BB
Well I had the Rating type turned on for all galleries, but I forgot to tell you that I am using the custom layout on a shortcode to show some random pictures on my index page...I have no idea if that matters or not for automatically showing the toggle rating.
About the wrapper, I tried to add the code of the toggle ratings link on your answer, together with [gallery] but it didn't work...As soon as I went around the matter to actually show the rating when hovering the pic, I am not going to exam this matter further. So I leave to you to put a red or a green light on the subject since i didn't really tried to make it work.. :)
Thank you for your help!
No problem....one question, though...in addition to [gallery], did you put the [gallery_id] in the javascript? That is required to make it work as well.
I'm closing.
Cheers,
Byron
Byron are you able to make a [toggle] shortcode for this plugin please? I've made a gallery of the highest rated images that sits on my front page. It's totally clean only having a cropped square thumb, no ratings, no name etc which is what I am after. The problem is making a custom layout for that sort of page, I was able to remove all the rating, name etc shortcodes but found there was no shortcode for toggle. So now my home page has this sweet looking clean gallery set up but it has 'toggle' ratings sitting above it... and there aren't even any ratings to toggle, which makes that link look quite silly sitting there as you could imagine. You have everything else asa shortcode, why not get the toggle thing set up as well? It would be an awesome feature to complete the templating side of things. Thanks
I'll put it on the list. Shouldn't be too hard.
BB
That's great news, thanks for adding it to your to-do list.
Welcome.