0
Hello, Germi
I find Music Collection wonderful. It suits very good for new site I'm making for my friends. But I have questions.
Is it possible to have both Russian and English letters in A-Z search in different modules?
Is it possible to change shape of A-Z search.
My friends also were interested in album search for year of creation of album.
Thanx.
I find Music Collection wonderful. It suits very good for new site I'm making for my friends. But I have questions.
Is it possible to have both Russian and English letters in A-Z search in different modules?
Is it possible to change shape of A-Z search.
My friends also were interested in album search for year of creation of album.
Thanx.
Responses (23)
-
Accepted Answer
0hello flibustier,
thanks for your compliment
It is not directlty possible to have both letter bars, but this wont be much difficult to add as custom work.
yes, it is possible to change the shape (it's all CSS, my friend)
year of creation is not an option of the search, but again, this can be easily included by small code add-ons
please let me know any other soubts you may have
all the best,
Germi -
Accepted Answer
-
Accepted Answer
0sure. let's start with the A-Z bar
(I asume you have basic PHP knowledge)
I was going to explain how to create the AZ bar in russian, but finally I decided it was too hard to explain, so I made it myself :lol:
so I made the function for you, all you have to do now is call it.
here's the thing: copy the attached file on the folder /components/com_muscol/helpers/
(unzip it first)
[file name=helpers.zip size=2270]http://www.joomlamusicsolutions.com/images/fbfiles/files/helpers.zip[/file]
the file in it, helpers.php, has to replace the existing one you'll have in this folder.
now open it with your editor. go to line 144. you'll find this:
$inicials = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","123"); $inicials_russian = array("1","2","3","4","5","6","7","8","9","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","123");
as you see, I duplicate the array containing the letters in the bar, and I named it "$inicials_russian". I replaced the first characters for 1, 2, 3 etc. that's because I dont have the russian alphabetbut here's where you'll have to replace all this characters for the russian ones. do you understand?
ok, now I asume this is done. the only step left is to call a new function I created so the bar is also rendered in russian.
open file /components/com_muscol/views/artists/tmpl/detailed.php (I asume you use detailed view)
at the very beginning you'll find this:
if($this->params->get('showletternavigation')){ echo MusColHelper::letter_navigation($this->letter); }
here is where the alph bar is printed. well, we just need to add the russian one, too. so replace this piece of code for this one:
if($this->params->get('showletternavigation')){ echo MusColHelper::letter_navigation($this->letter); echo MusColHelper::letter_navigation_russian($this->letter); }
as you see, I'm also calling the new function made SPECIALLY FOR YOU!!called letter_navigation_russian
ok! we're almost done. one last step. you'll have to add the calling to this function to ALL the view of Music Collection :S :lol: that's about 10 files or so. wich ones? well..
/components/com_muscol/views/artist/tmpl/default.php
/components/com_muscol/views/artist/tmpl/grid.php
/components/com_muscol/views/artist/tmpl/detailed.php
/components/com_muscol/views/album/tmpl/default.php
/components/com_muscol/views/song/tmpl/default.php
/components/com_muscol/views/search/tmpl/default.php
/components/com_muscol/views/search/tmpl/detailed.php
/components/com_muscol/views/search/tmpl/grid.php
/components/com_muscol/views/search/tmpl/songs.php
/components/com_muscol/views/songs/tmpl/detailed.php
I hope I'm not missing any
and that's all for having a russian alphabet bar, folks!
hope you understand everything. if you dont, let me know
tomorrow we'll go ahead with the YEAR search thing, now I gotta go!
best,
Germi -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0let's see: the letter that does below is just that does not have space to fit on the bar, you should give the bar more space (in your template)
one question: how many characters are in Russian? I mean, there is an equivalency between each character (A, B, C) to an russian one? (the solution I gave you was assuming that the number of chars where exactly the same)
did you try the other letters? do they show results? I tested on my localhost and it worked fine... are you sure you have some artist under these letters? -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0ok, first think: do not add letters in form.php, because these wont be recognized in the frontend.
the problem is that there are more letters in russian than in english
in this case, the russian bar has to work independently of english one, not like he solution I gave, wich makes they work together.
so, what you want is that ALL russian characters are different than english ones, right? not like it is now, that when you select a letter from a letterbar, the equivalent letter on the other letterbar is selected... is that right?
if that's the case, tell me and I'll think a solution for this.
Germi -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Your Reply

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »