SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 25, 2012, 09:59:25 am

Login with username, password and session length
Members
Total Members: 10073
Latest: makablue
Stats
Total Posts: 28688
Total Topics: 4978
Online Today: 85
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 52
Total: 53
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Rating Pictures  (Read 4080 times)
lexi_be
Newbie
*
Offline Offline

Posts: 13


View Profile
« 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:
//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
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« 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.
Logged
lexi_be
Newbie
*
Offline Offline

Posts: 13


View Profile
« Reply #2 on: June 26, 2007, 06:35:22 am »

I had allredy done that. You can see in add
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #3 on: June 26, 2007, 06:37:53 am »

What happens when you try to rate a picture?
Logged
lexi_be
Newbie
*
Offline Offline

Posts: 13


View Profile
« 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
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« 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.
Logged
lexi_be
Newbie
*
Offline Offline

Posts: 13


View Profile
« 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 » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #7 on: June 26, 2007, 07:23:40 am »

Yeah that page.
Make sure you have these entries in your language file
Code:
$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';
Logged
lexi_be
Newbie
*
Offline Offline

Posts: 13


View Profile
« Reply #8 on: June 26, 2007, 11:51:10 am »

Thanks! I will search this. I think, that is not defined....
Logged
lexi_be
Newbie
*
Offline Offline

Posts: 13


View Profile
« 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:
//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?   
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« 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.
Logged
lexi_be
Newbie
*
Offline Offline

Posts: 13


View Profile
« Reply #11 on: June 28, 2007, 12:39:20 am »

Ahhh, I must install this mod Rating for SMF?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« 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.
Logged
lexi_be
Newbie
*
Offline Offline

Posts: 13


View Profile
« 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
Logged
lexi_be
Newbie
*
Offline Offline

Posts: 13


View Profile
« 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
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 09:42:09 am]

[May 24, 2012, 08:02:50 am]

[May 24, 2012, 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.281 seconds with 19 queries.