Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Less language in Start page

Less language in Start page 2 years 5 months ago #79897

  • whitetiger
  • whitetiger's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
I don't want show a list of languages from Albania to Vietnam.
In any case, If I've defined a default language and some alternative languages foe summaries, why have to see this list?
Thanks in advance
The administrator has disabled public write access.

Re: Less language in Start page 2 years 5 months ago #79985

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4271
  • Thank you received: 805
  • Karma: 369
Where are you seeing the list?

Can you provide screenshots or a better explanation?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Less language in Start page 2 years 5 months ago #80101

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
You should be able to hide options by using CSS. Have a look at the adminstyle.css file and add CSS code to hide options you don't want to be listed.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Less language in Start page 2 years 5 months ago #80182

  • whitetiger
  • whitetiger's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Mazi wrote:
You should be able to hide options by using CSS. Have a look at the adminstyle.css file and add CSS code to hide options you don't want to be listed.

Perhaps I am not clear.
I don't wish change the "layout", but only the list of the countries.
It is a good thing if there is a some option to "publish" or "unpublish" the countries from the administrative panel, but I will be happy also I a can simply delete all countries, from Albania to Vietnam.
I don't think that people in Vietnam goes into my portal for some surveys in Italian ;)

Thanks.
The administrator has disabled public write access.

Re: Less language in Start page 2 years 5 months ago #80184

  • whitetiger
  • whitetiger's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
tpartner wrote:
Where are you seeing the list?

Can you provide screenshots or a better explanation?

It is the combo button in the first page.
In attach there is the snapshoot.

Thanks.
Attachments:
The administrator has disabled public write access.

Re: Less language in Start page 2 years 5 months ago #80189

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
I think I once saw a solution here at the forums, so please use the forum search.

If I remember, adding such a feature for Limesurvey 2 was also on the list but I can't say if this has already been implemented.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Less language in Start page 2 years 5 months ago #80257

  • whitetiger
  • whitetiger's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Mazi wrote:
I think I once saw a solution here at the forums, so please use the forum search.

If I remember, adding such a feature for Limesurvey 2 was also on the list but I can't say if this has already been implemented.

I've already done a search, but I read only one message with a suggest to change the code and I don't wish to work in this manner because then I've to remember to do it also with new releases.
But if this is the unique solutions... I will do it.

Thanks
The administrator has disabled public write access.

Re: Less language in Start page 2 years 5 months ago #80299

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4271
  • Thank you received: 805
  • Karma: 369
Yeah, tacman's solution requires modifying the core code.

I would be inclined to do it with JavaScript.

Add something like the following to the end of surveylist.pstpl. Replace 'en', 'fr','it' with the language code(s) you want to show. (this example will only show English, French and Italian)
<script type="text/javascript" charset="utf-8">
 
	$(document).ready(function(){
 
		// All language codes to be displayed (comma separated)
		showLanguages('en', 'fr','it');
 
		function showLanguages() {
 
			// Create a clone of the language selector
			var clone = $('select.languagechanger').clone();
			$('option', clone).remove();
 
			// Loop through all arguments passed to the function and move corresponding select options to the clone
			$(arguments).each(function(i, val){
 
				$(clone).append($('.languagechanger:eq(0) option[value$="lang='+val+'"]'));
			});
 
			// Hide the original lang selector and insert the clone
			$('select.languagechanger').hide().after(clone);
		}
	}); 
 
</script>
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 2 years 5 months ago by tpartner.
The administrator has disabled public write access.

Re: Less language in Start page 2 years 5 months ago #80303

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
Simple but very useful solution, Tony. Please add it to the workarounds.

Thanks!

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Less language in Start page 2 years 5 months ago #80329

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6435
  • Thank you received: 840
  • Karma: 249
Mazi wrote:
If I remember, adding such a feature for Limesurvey 2 was also on the list but I can't say if this has already been implemented.
Already implemented, maybe some optimisation, but here.

Denis
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.143 seconds
Donation Image