Jump to content

Hosting dHosting.pl - 10% rabat!

Sign in to follow this  
laza

Skala ocen zdjęć

Recommended Posts

Witam, jest jakiś sposób na zwiększenie skali ocen zdjęć? Mianowicie teraz jest teraz jest skala do 5 gwiazdek, a chodzi mi o zwiększenie jej do 10.

 

Jest jakiś prosty sposób na to, czy zostaje pisanie modyfikacji do tego celu?

 

Dzięki

Share this post


Link to post
Share on other sites
Guest naXe

Strzelam! :D
 
W albumSelectorPanel pod:

<if test="guestrate5:|:$this->registry->gallery->helper('rate')->canRate($album) !== false"><a href='{parse url="app=gallery&module=images&section=rate&where=album&id={$album['album_id']}&rating=5&secure_key={$this->member->form_hash}" base="public"}' id='album_rate_5' title='{$this->lang->words['rate_file_5']}'></if><if test="filerate5:|:$album['album_rating_aggregate'] >= 5"><img src="{$this->settings['img_url']}/star.png" alt='*' class='rate_img' /><else /><img src="{$this->settings['img_url']}/star_off.png" alt='*' class='rate_img' /></if><if test="endguestrate5:|:$this->memberData['member_id']"></a></if>

dodaj:

<if test="guestrate6:|:$this->registry->gallery->helper('rate')->canRate($album) !== false"><a href='{parse url="app=gallery&module=images&section=rate&where=album&id={$album['album_id']}&rating=1&secure_key={$this->member->form_hash}" base="public"}' id='album_rate_6' title='{$this->lang->words['rate_file_6']}'></if><if test="filerate1:|:$album['album_rating_aggregate'] >= 6"><img src="{$this->settings['img_url']}/star.png" alt='*' class='rate_img' /><else /><img src="{$this->settings['img_url']}/star_off.png" alt='*' class='rate_img' /></if><if test="endguestrate6:|:$this->memberData['member_id']"></a></if>
<if test="guestrate7:|:$this->registry->gallery->helper('rate')->canRate($album) !== false"><a href='{parse url="app=gallery&module=images&section=rate&where=album&id={$album['album_id']}&rating=2&secure_key={$this->member->form_hash}" base="public"}' id='album_rate_7' title='{$this->lang->words['rate_file_7']}'></if><if test="filerate2:|:$album['album_rating_aggregate'] >= 7"><img src="{$this->settings['img_url']}/star.png" alt='*' class='rate_img' /><else /><img src="{$this->settings['img_url']}/star_off.png" alt='*' class='rate_img' /></if><if test="endguestrate7:|:$this->memberData['member_id']"></a></if>
<if test="guestrate8:|:$this->registry->gallery->helper('rate')->canRate($album) !== false"><a href='{parse url="app=gallery&module=images&section=rate&where=album&id={$album['album_id']}&rating=3&secure_key={$this->member->form_hash}" base="public"}' id='album_rate_8' title='{$this->lang->words['rate_file_8']}'></if><if test="filerate3:|:$album['album_rating_aggregate'] >= 8"><img src="{$this->settings['img_url']}/star.png" alt='*' class='rate_img' /><else /><img src="{$this->settings['img_url']}/star_off.png" alt='*' class='rate_img' /></if><if test="endguestrate8:|:$this->memberData['member_id']"></a></if>
<if test="guestrate9:|:$this->registry->gallery->helper('rate')->canRate($album) !== false"><a href='{parse url="app=gallery&module=images&section=rate&where=album&id={$album['album_id']}&rating=4&secure_key={$this->member->form_hash}" base="public"}' id='album_rate_9' title='{$this->lang->words['rate_file_9']}'></if><if test="ralerate4:|:$album['album_rating_aggregate'] >= 9"><img src="{$this->settings['img_url']}/star.png" alt='*' class='rate_img' /><else /><img src="{$this->settings['img_url']}/star_off.png" alt='*' class='rate_img' /></if><if test="endguestrate9:|:$this->memberData['member_id']"></a></if>
<if test="guestrate10:|:$this->registry->gallery->helper('rate')->canRate($album) !== false"><a href='{parse url="app=gallery&module=images&section=rate&where=album&id={$album['album_id']}&rating=5&secure_key={$this->member->form_hash}" base="public"}' id='album_rate_10' title='{$this->lang->words['rate_file_10']}'></if><if test="filerate5:|:$album['album_rating_aggregate'] >= 10"><img src="{$this->settings['img_url']}/star.png" alt='*' class='rate_img' /><else /><img src="{$this->settings['img_url']}/star_off.png" alt='*' class='rate_img' /></if><if test="endguestrate10:|:$this->memberData['member_id']"></a></if>
Edited by naXe

Share this post


Link to post
Share on other sites

W pliku albumSelectorPanel nie mam

 


<if test="guestrate5:|:$this->registry->gallery->helper('rate')->canRate($album) !== false"><a href='{parse url="app=gallery&module=images&section=rate&where=album&id={$album['album_id']}&rating=5&secure_key={$this->member->form_hash}" base="public"}' id='album_rate_5' title='{$this->lang->words['rate_file_5']}'></if><if test="filerate5:|:$album['album_rating_aggregate'] >= 5"><img src="{$this->settings['img_url']}/star.png" alt='*' class='rate_img' /><else /><img src="{$this->settings['img_url']}/star_off.png" alt='*' class='rate_img' /></if><if test="endguestrate5:|:$this->memberData['member_id']"></a></if>
Edited by laza

Share this post


Link to post
Share on other sites
Guest naXe

To jest bit w szablonie.

Edited by naXe

Share this post


Link to post
Share on other sites
Guest naXe

Eh.. w jakoś nie zauważyłem tego tam :P 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.