Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 168
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 170
Total: 170

Author Topic: Rating Pictures  (Read 9817 times)

0 Members and 1 Guest are viewing this topic.

Offline lexi_be

  • 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: 16436
    • 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

  • 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: 16436
    • 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

  • 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: 16436
    • 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

  • 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: 16436
    • 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

  • 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

  • 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: 16436
    • 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

  • 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: 16436
    • 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

  • 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

  • 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
4742 Views
Last post January 20, 2010, 07:53:35 am
by valu
2 Replies
4027 Views
Last post April 17, 2013, 01:15:42 pm
by a454nova
3 Replies
5202 Views
Last post May 13, 2018, 01:36:36 pm
by SMFHacks
4 Replies
883 Views
Last post March 09, 2022, 02:46:46 pm
by SMFHacks
1 Replies
1038 Views
Last post August 22, 2022, 04:31:50 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal