• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Integrate select language in ultimatube

Started by mihai,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

mihaiTopic starter

Hi! I want to have a select language element like videoscriptdemo in ultimatube:) and if it's possible how should i add words when i create a language?
  •  

Marius P.

I will add it soon.
The function is there, just needs adding and styling.

Add words? It auto-ad the word if you use it like:
_lang("New word")
in your coding.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Bob.Weston

Quote from: mihai on
Hi! I want to have a select language element like videoscriptdemo in ultimatube:) and if it's possible how should i add words when i create a language?

all you have to do to add a select language in ultimatube is edit the tpl.globals.php

find:

$nav .= '


and change it to:

$nav .= lang_menu().'


Clean cache and go to the website.

You will see a little map icon below your profile name on the upper right.. click the icon to select which language you want.
If you use this you will also need to make English under create language because it does not show the default language in the list.

Bob
  •  

mihaiTopic starter

  •  

mihaiTopic starter

Is there a way that i can integrate the language select menu in the footer?
  •  

Bob.Weston

Quote from: mihai on
Is there a way that i can integrate the language select menu in the footer?

Sure you can but it doesn't make sense to scroll down to the bottom of the website to find the change language
All you have to do is undo what I mentioned above, and in the same file, you scroll down to the footer information and put the following code in where you want the language menu to appear:

'.lang_menu().'


for example, if you want it by the logo on the bottom left you would find:

'.show_logo().'


and replace it with:

'.show_logo().'
'.lang_menu().'


would look kind of stupid there but oh well.. you could also place it to the right of the copyright info by doing the following:

find:

'.apply_filters('tfc', get_option('site-copyright')).'


and replace it with:

'.apply_filters('tfc', get_option('site-copyright')).'
'.lang_menu().'


you have to be creative and place it where you want.. but in the end u only need  '.lang_menu().' within the footer.

Bob
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

mihaiTopic starter

  •  

mihaiTopic starter

If i will add this to my footer
$nav .= lang_menu().'
i will get the same text on the footer not the function:)
  •  

mihaiTopic starter

So i didn't manage to integrate the select language element in my custom footer:)
  •  

 

Similar topics (7)

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 38937

The problem of video viewing PHPVibe 5.0

Started by Nayn


Replies: 25
Views: 69984

embed video does not work on v5

Started by neospider69


Replies: 6
Views: 50085

Male Female Select: only male stays actvie-Female does not

Started by spirog


Replies: 2
Views: 1824

Video that I've uploaded needs to have that value in admin to upload

Started by spirog


Replies: 4
Views: 5047

Hearted - select all then click Remove-selected, not working

Started by spirog


Replies: 1
Views: 2846

when slecting to unpublish music mp3 - next page says unpublished video ?

Started by spirog


Replies: 2
Views: 4264