Hello,
I have two questions for the Piwigo team and other devs!
1st question:
On my site (http://aclcontest.arabelladesign.com/photos/) I have made it so that only registered users can vote but I would like users to not see the totals/average until they have voted (so that they are not influenced). This is a similar thread to one discussed here:
http://piwigo.org/forum/viewtopic.php?id=13981
But I cannot implement the coding mentioned and am concerned as the thread dates to 2008 and there have probably been major changes since.
2nd question:
Once you create an album and put photos inside it Piwigo creates the album for example "Andrew McDermott" and below it it says "X number of photos". Is there anyway to change the word photos to something else? (Screenshot attached)
Thank you!
AM
Offline
Hello
1 you will have to do a plugin to control
2 check out Localfiles editor and its language tab
Offline
Hi Flop,
Thanks for the quick answer.
#1
While I'm pretty good with computers I'm not familiar with php and wouldn't know how to write a plugin. Has there been any development since 2008 on this thread? Could I duplicate what rherzog did? (http://piwigo.org/forum/viewtopic.php?id=13981)
#2
I'm currently using this (some of your work from another thread) to modify some of the language.
$lang['Albums'] = "Artists";
$lang['Identification'] = "Login Details";
Is there a way to do the same with the photos sub heading? Firebug shows it as "Nb_images" but I wouldn't know where to start.
AM
Offline
Hi again,
Does any one have any other suggestions? While the rating question might be a little complicated, could someone help me with the Language one (question 2)?
Thanks,
AM
Offline
Have a look in the Admin=>Localfiles Editor=> Language tab.
Select the correct language to edit - and paste the following
$lang['%d photo'] = "%d photo";
$lang['%d photos'] = "%d photos";
Changing photo/photos to the words you want.
See the attached screenshot
Last edited by pewe (2013-06-01 16:18:03)
Offline
Hi pewe,
Thanks I made the changes and they work perfectly! Do you have any thoughts on how I can control the ratings/star system? Hasn't anyone ever wanted to run a photo contest from within their gallery or needed to modify the ratings in some ways?
AM
Offline
Sorry Anon,
But I am not a coder so can't really help with the voting thing.
As flop says, it will need a plugin I feel.
You first have to record for each registered user that they have voted, and record a vote for each voting option, then before displaying any votes it will require checking for the item concerned if the viewer is registered and logged in if they have voted already for that item etc etc - so not too simple.
Offline
Ok we'll have to work around #1 for now. Thanks for the help you two.
AM
Offline
Hi pewe & Flop,
Thanks for your help with my site issues, can I ask you guys one more language/php question? Rather than a plugin to deal with issue #1 I realize it would simply be easier to hide the image rating score line. Only admins will need to see the totals to declare a winner and we can do that through the back-end.
Can you let me know what code to put in the language section? I'd really appreciate it.
Thanks!
AM
Offline
Not sure if I understand what you are asking - but
to turn off the visibility for the rating score for everyone you uncheck the option in
Administation=>Options and use the 'Display' tab.
(Leave the rating option checked in the 'Main' tab.)
Offline
:lol: where's the "doh" smily! Thanks again!
Offline
Hi again...
Is it possible to customize the comment form labels? I'd like to put "Your" in front of "Website" to make it less confusing. I've been using firebug to ID the element but cant seem to find forms.css to which it seems to belong.
Thanks Piwigo-team!
AM
Offline
Hi Anon
It's in your language file again.
Put this in the Localfiles Editor after the previous entries listed above
$lang['Website'] = 'Your Website';
Offline
Hi pewe,
Thanks! I understand the basic syntax of the language modifications but how do you identify the object's name? I think if I understand that I'll avoid asking you future questions... :)
AM
Offline
I don't identify the syntax -
what I do is open the language file in a text editor (I use EMEditor) and search for the word I want to change (eg Website). I then copy the complete line from the file into the LocalFiles Editor, change the words and save the file, then check if it changed what I wanted.
The cautionary note is that the same word may be used elsewhere on the site and changing it may not be right for the other places if it is used elsewhere. So checking other places is obviously advised.
Offline