We’re with you. JoomShaper is offering a 20% Discount on all plans due to the impact of COVID-19.

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

You tube in Speakers

Featured Lock Resolved Issue
Hi
We are adding Speakers (Bands) to Eventum Component.
When adding a you tube link. there are Bands they have a channel, oders are Users.
Where can i modify php to user fukk link such as http://www.youtube.com/channel / or User / XXXXXX

thanks for the help
Matt

7 Answers

normoffice

More than a month ago #Permalink
We are adding Speakers (Bands) to Eventum Component.

We like to add a full link as there are Bands with a channel oders are users.
Where can i modify the code to use a full link such as http://www.youtube.com/channel/xxx or http://www.youtube.com/user/xxxxxx


sorry to ask you in PM, but we did change the code there allready, removed "user".
but when we add a just the youtube code, its adding "user/" automaticly again,

components\com_speventum\views\speakers\tmpl\default_speaker.php
line 49

if(isset($this->speaker->social_youtube) && $this->speaker->social_youtube) {
$socials[] = array('youtube', 'https://www.youtube.com/user/' . $this->speaker->social_youtube);
}


Could you please tell us where to change the code?

Original Post in Forum
https://www.joomshaper.com/forums/you-tube-in-speakers#reply-51184

Many thanks in advance
Matt

Paul Frankowski - Staff

More than a month ago #Permalink
Hi, check here:

components\com_speventum\views\speakers\tmpl\default_speaker.php
line 49
if(isset($this->speaker->social_youtube) && $this->speaker->social_youtube) {
$socials[] = array('youtube', 'https://www.youtube.com/user/' . $this->speaker->social_youtube);
}



you can edit here or create a template override

normoffice

More than a month ago #Permalink
Paul Frankowski wrote:

Hi, check here:

components\com_speventum\views\speakers\tmpl\default_speaker.php
line 49
if(isset($this->speaker->social_youtube) && $this->speaker->social_youtube) {
$socials[] = array('youtube', 'https://www.youtube.com/user/' . $this->speaker->social_youtube);
}



you can edit here or create a template override


We did edit here

if(isset($this->speaker->social_youtube) && $this->speaker->social_youtube) {
$socials[] = array('youtube', 'https://www.youtube.com/' . $this->speaker->social_youtube);

removed "User" but still the Link points to https://www.youtube.com/user/XXXXX instead of https://www.youtube.com/channel/XXXXX
its allways adding user before $this->speaker->social_youtube

Best
Matthias

Rifat Wahid Alif

More than a month ago #Permalink
Hi,
I have attached 2 files:

1. default_speaker.zip replace it to following path components/com_speventum/views/speakers/tmpl/

2. view.html.zip replace it to following path /components/com_speventum/views/speaker/

NB: After replaced, you have to insert your youtube url like this: user/joomshaper i mean without https://www.youtube.com/

- Thanks

Attachments (2)

  • default_speaker.zip 1.5 KB
  • view.html.zip 1.5 KB

normoffice

More than a month ago #Permalink
Rifat Wahid Alif wrote:

Hi,
I have attached 2 files:

1. default_speaker.zip replace it to following path components/com_speventum/views/speakers/tmpl/

2. view.html.zip replace it to following path /components/com_speventum/views/speaker/

NB: After replaced, you have to insert your youtube url like this: user/joomshaper i mean without https://www.youtube.com/

- Thanks


Thank you Rifat, it works now like a charm.

Rifat Wahid Alif

More than a month ago #Permalink
You are always welcome :)


There are no replies made for this post yet.
Be one of the first to reply to this post!

126

Templates

334229

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us