Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4268
Latest: Butiks
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43584
Total Topics: 7566
Most Online Today: 72
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 39
Total: 39

Author Topic: Rating Pictures  (Read 10236 times)

0 Members and 1 Guest are viewing this topic.

Offline lexi_be

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • 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: 16580
    • 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

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • 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: 16580
    • 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

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • 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: 16580
    • 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

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • 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: 16580
    • 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

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • 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

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • 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: 16580
    • 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

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • 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: 16580
    • 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

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • 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

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • 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
2 Replies
4877 Views
Last post January 20, 2010, 07:53:35 am
by valu
0 Replies
2324 Views
Last post February 28, 2010, 03:42:20 pm
by Wegg
2 Replies
4115 Views
Last post April 17, 2013, 01:15:42 pm
by a454nova
4 Replies
1091 Views
Last post March 09, 2022, 02:46:46 pm
by SMFHacks
1 Replies
1299 Views
Last post August 22, 2022, 04:31:50 pm
by SMFHacks

+- Recent Topics

Weird setup by SMFHacks
November 07, 2024, 06:37:41 am

Restoring a deleted photo by Monocero
November 01, 2024, 04:23:56 am

Gallery Pro reinstalation by Lirorobert
October 14, 2024, 01:43:43 am

Move picture from main gallery to user gallery by SMFHacks
October 11, 2024, 09:11:00 pm

quoting part of message by Lirorobert
October 04, 2024, 03:21:40 pm

Does SMF Gallery support by SMFHacks
October 02, 2024, 06:14:26 am

Item count on Gallery Tab shows double by SMFHacks
September 26, 2024, 12:59:20 pm

Forum post missing when image over 4000x pixels is uploaded to gallery by Michel68
September 24, 2024, 01:37:17 pm

Setting a photo as invisible by Monocero
September 17, 2024, 02:11:56 pm

Two gallery names by SMFHacks
September 15, 2024, 02:17:49 pm

Powered by EzPortal