Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12425
Latest: rineywent
New This Month: 6
New This Week: 1
New Today: 1
Stats
Total Posts: 40039
Total Topics: 7047
Most Online Today: 42
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 26
Total: 26

Author Topic: Rating Pictures  (Read 7391 times)

0 Members and 1 Guest are viewing this topic.

Offline lexi_be

  • Newbie
  • *
  • Posts: 13
    • View Profile
Rating Pictures
« on: June 26, 2007, 05:38:26 am »
Excuse my bad English, but i have a Problem with our Gallery Pro.

I hope, you understand which I to say would like...

in our Gallery does not function rating. Showing is ok, but I cannot rating.

This ist de Codesnippet:

Code: [Select]
//echo $txt['gallery_form_rating'] . $rating . $txt['gallery_form_ratingby'] . $context['gallery_pic']['totalratings'] . $txt['gallery_form_ratingmembers'] . '<br />';
echo $txt['gallery_form_rating'] . GetStarsByPrecent($rating)  . ' ' . $txt['gallery_form_ratingby'] .$context['gallery_pic']['totalratings'] . $txt['gallery_form_ratingmembers'] . '<br />';
}

if(allowedTo('smfgallery_ratepic'))
{
   
echo '<form method="post" action="' . $scripturl . '?action=gallery;sa=rate">';
for($i = 1; $i <= $max_num_stars;$i++)
echo '<input type="radio" name="rating" value="' . $i .'" />' . str_repeat('<img src="' . $settings['images_url'] . '/star.gif" alt="*" border="0" />', $i);


echo '
<input type="hidden" name="id" value="' . $context['gallery_pic']['ID_PICTURE'] . '" />
<input type="submit" name="submit" value="' . $txt['gallery_form_ratepicture'] . '" />
';

what could be wrong? you need  more information?

Thanks lexi

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15022
    • View Profile
Re: Rating Pictures
« Reply #1 on: June 26, 2007, 06:24:11 am »
Did you give each membergroup the rate picture permission?

Admin -> Permissions -> Modify each Group ->
Then give each group the gallery permissions needed.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline lexi_be

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Rating Pictures
« Reply #2 on: June 26, 2007, 06:35:22 am »
I had allredy done that. You can see in add

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15022
    • View Profile
Re: Rating Pictures
« Reply #3 on: June 26, 2007, 06:37:53 am »
What happens when you try to rate a picture?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline lexi_be

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Rating Pictures
« Reply #4 on: June 26, 2007, 06:49:28 am »
I can't use this function. the Rating are displayed, but i can't rating. there are no operation

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15022
    • View Profile
Re: Rating Pictures
« Reply #5 on: June 26, 2007, 07:01:46 am »
You can only rate a picture when you are viewing the image. On the main view image page.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline lexi_be

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Rating Pictures
« Reply #6 on: June 26, 2007, 07:11:31 am »
oh this page??


But there are also no radio buttons which allow me to rate a pictures. Oh sorry....I'm all mixed up.
« Last Edit: June 26, 2007, 07:18:15 am by lexi_be »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15022
    • View Profile
Re: Rating Pictures
« Reply #7 on: June 26, 2007, 07:23:40 am »
Yeah that page.
Make sure you have these entries in your language file
Code: [Select]
$txt['gallery_form_viewratings'] = 'View Ratings';
$txt['gallery_form_ratepicture'] = 'Rate Picture';
$txt['gallery_form_norating'] = 'This picture has not been rated yet.';
$txt['gallery_form_rating'] = 'Rating: ';
$txt['gallery_form_ratingby'] = ' by ';
$txt['gallery_form_ratingmembers'] = '  members.';
$txt['gallery_text_rating'] = 'Rating';
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline lexi_be

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Rating Pictures
« Reply #8 on: June 26, 2007, 11:51:10 am »
Thanks! I will search this. I think, that is not defined....

Offline lexi_be

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Rating Pictures
« Reply #9 on: June 26, 2007, 12:04:39 pm »
it does not function. The string was already present. do I have to be changed in the Modification.german(engish).php  still something?

Code: [Select]
//Begin SMF Gallery Text Strings
$txt['smfgallery_menu'] = 'Galerie';
$txt['smfgallery_admin'] = 'Galerie-Einstellungen';

//Permissions
$txt['permissiongroup_smfgallery'] = 'SMF Galerie';

$txt['permissionname_smfgallery_view'] = 'SMF-Galerie zeigen';
$txt['permissionhelp_smfgallery_view'] = 'Sie haben Du hast keine Berechtigung, die Galerie anzuschauen.';

$txt['permissionname_smfgallery_add'] = 'Bild hochladen';
$txt['permissionhelp_smfgallery_add'] = 'Erlaubt dem Benutzer, ein Bild hochzuladen.';
$txt['cannot_smfgallery_add'] = 'Sie haben keine Berechtigung, ein Bild hochzuladen.';

$txt['permissionname_smfgallery_bulk'] = 'upload großer Datenmengen';
$txt['permissionhelp_smfgallery_bulk'] = 'Erlaube dem User den upload großer Datenmengen.';
$txt['cannot_smfgallery_bulk'] = 'Sie haben keine Berechtigungen, große Datenmengen zu laden.';

$txt['permissionname_smfgallery_edit'] = 'eigene Bilder bearbeiten';
$txt['permissionhelp_smfgallery_edit'] = 'Erlaubt dem Benutzer, eigene Bilder zu bearbeiten.';
$txt['cannot_smfgallery_edit'] = 'Sie haben keine Berechtigung, Bilder zu bearbeiten.';

$txt['permissionname_smfgallery_delete'] = 'eigene Bilder l&ouml;sche';
$txt['permissionhelp_smfgallery_delete'] = 'Erlaubt dem Benutzer, eigene Bilder zu l&ouml;schen.';
$txt['cannot_smfgallery_delete'] = 'Sie haben keine Berechtigung, Bilder zu l&ouml;schen.';

$txt['permissionname_smfgallery_ratepic'] = 'Bild bewerten';
$txt['permissionhelp_smfgallery_ratepic'] = 'Erlaubt dem Benutzer Bilder zu bewerten';
$txt['cannot_smfgallery_ratepic'] = 'Sie haben keine Berechtigung, dieses Bild zu bewerten.';

$txt['permissionname_smfgallery_editcomment'] = 'Kommentare &auml;ndern';
$txt['permissionhelp_smfgallery_editcomment'] = 'Erlaubt dem Benutzer, eigene Kommentare zu bearbeiten';
$txt['cannot_smfgallery_editcomment'] = 'Sie haben keine Berechtigung, diesen Kommentar zu bearbeiten.';

$txt['permissionname_smfgallery_comment'] = 'Kommentare schreiben';
$txt['permissionhelp_smfgallery_comment'] = 'Erlaubt dem Benutzer, einen Kommentar zu einem Bild zu schreiben.';
$txt['cannot_smfgallery_comment'] = 'Sie haben keine Berechtigung, Kommentare zu schreiben.';

$txt['permissionname_smfgallery_report'] = 'Bild/Kommentar dem Administrator melden';
$txt['permissionhelp_smfgallery_report'] = 'Erlaubt dem Benutzer, Bilder/Kommentare dem Administrator zu melden.';
$txt['cannot_smfgallery_report'] = 'Sie haben keine Berechtigung, Bilder/Kommentare dem Administrator zu melden.';

$txt['permissionname_smfgallery_autocomment'] = 'Automatische Freigabe f&uuml;r Kommentare';
$txt['permissionhelp_smfgallery_autocomment'] = 'De-/Aktiviere die vorherige Freigabe f&uuml;r Kommentare in der Galerie, bevor diese den Benutzern angezeigt werden.';

$txt['permissionname_smfgallery_autoapprove'] = 'Automatische Freigabe f&uuml;r Bilder';
$txt['permissionhelp_smfgallery_autoapprove'] = 'De-/Aktiviere die vorherige Freigabe f&uuml;r Bilder in der Galerie, bevor diese den Benutzern angezeigt werden.';

$txt['permissionname_smfgallery_usergallery'] = 'pers&ouml;nliche Galerie';
$txt['permissionhelp_smfgallery_usergallery'] = 'Erlaubt dem Benutzer eine pers&ouml;nliche Galerie anzulegen';
$txt['cannot_smfgallery_usergallery'] = 'Sie haben keine Berechtigung f&uuml;r  eine pers&ouml;nliche Galerie.';

$txt['permissionname_smfgallery_manage'] = 'Galerie administrieren';
$txt['permissionhelp_smfgallery_manage'] = 'Erlaubt dem Benutzer, Kategorien hinzuzuf&uuml;gen, zu bearbeiten und zu l&ouml;schen, sowie Kommentare und Bilder zu l&ouml;schen und Bilder freizugeben.';
$txt['cannot_smfgallery_manage'] = 'Du hast keine Berechtigung, die Galerie zu administrieren.';
//END SMF Gallery Text Strings

or in the ManagePermission.german(english).php?   

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15022
    • View Profile
Re: Rating Pictures
« Reply #10 on: June 27, 2007, 07:25:25 am »
Is the category set to allow ratings? There is an option to disalbe ratings inside a category when it is created.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline lexi_be

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Rating Pictures
« Reply #11 on: June 28, 2007, 12:39:20 am »
Ahhh, I must install this mod Rating for SMF?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15022
    • View Profile
Re: Rating Pictures
« Reply #12 on: June 28, 2007, 07:02:40 am »
No it is built into the Gallery. Maybe PM a admin account and a forum url and I can check it out.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline lexi_be

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Rating Pictures
« Reply #13 on: June 29, 2007, 03:17:02 am »
ok, Thanks. i think, I have found the error. The designer changed the SMF-default-theme. Probably it deleted too much. On my test sytem is usable the rating. Here are present the original. We will convert the data. If that does't function, then  I will adjust a admin account for you

Have a good weekend!

Lexi

Offline lexi_be

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Rating Pictures
« Reply #14 on: July 12, 2007, 01:47:26 am »
I again installed. The rating is selectable now.

Thanks! Now I have a new question

 

Related Topics

  Subject / Started by Replies Last post
6 Replies
5467 Views
Last post January 19, 2008, 02:01:52 pm
by spurry
2 Replies
3474 Views
Last post January 20, 2010, 07:53:35 am
by valu
0 Replies
1383 Views
Last post February 28, 2010, 03:42:20 pm
by Wegg
2 Replies
2750 Views
Last post April 17, 2013, 01:15:42 pm
by a454nova
3 Replies
1212 Views
Last post May 13, 2018, 01:36:36 pm
by SMFHacks

+- Recent Topics

Nature Crave Keto Reviews - Is This The Best Weight Loss Diet? by rineywent
Today at 02:51:57 am

Cannot install by SMFHacks
January 18, 2020, 09:40:56 pm

Call to undefined function mysql_query() by SMFHacks
January 18, 2020, 02:06:47 pm

English British Translation file by HAL9000
January 17, 2020, 05:44:28 pm

Characters dispayed as boxes by SMFHacks
January 16, 2020, 07:21:51 am

Multiple adds where one used to be? by SMFHacks
January 07, 2020, 08:20:38 am

Ribbon Theme Logo Position by slizzie1986
January 06, 2020, 08:52:31 pm

System enhancement? by SMFHacks
January 03, 2020, 09:22:45 am

Pretty Url Pro Is it compatible with 7.2? by Rock Lee
January 01, 2020, 08:53:50 pm

Order of photos by SMFHacks
December 29, 2019, 02:02:28 pm

Powered by EzPortal