[RC] YouTube Videos Mod

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Get Involved
User avatar
san3auni
Registered User
Posts: 133
Joined: Mon May 10, 2010 5:45 am
Location: yemen

Re: [BETA] YouTube Videos Mod

Post by san3auni »

thanks :mrgreen:
User avatar
Alien_Time
Registered User
Posts: 389
Joined: Fri Dec 31, 2010 7:08 am

Re: [BETA] YouTube Videos Mod

Post by Alien_Time »

Hi keith10456,

First of all mate, thank you for this MOD...This is a v good mod and v simple to install..Awesome..

I just installed this mod and I have a couple of questions. I would really appreciate your help:

1) Is there a way to change or set a video to appear first..I am talking about the first video that you see in the Player at the top. Everytime I check, its always this boring "Ok Go interview" video. Is there a way to control what video appears first? Also how often does this video change?

2) I like the "Back" and "Next" button. At the moment, these buttons are at the top right side above the videos list. Is there a way to insert these buttons at the bottom of the videos list as well?

Thank you once again for this MOD.

Cheers...
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm

Re: [BETA] YouTube Videos Mod

Post by keith10456 »

accn wrote:Hi keith10456,

First of all mate, thank you for this MOD...This is a v good mod and v simple to install..Awesome..

I just installed this mod and I have a couple of questions. I would really appreciate your help:

1) Is there a way to change or set a video to appear first..I am talking about the first video that you see in the Player at the top. Everytime I check, its always this boring "Ok Go interview" video. Is there a way to control what video appears first? Also how often does this video change?

2) I like the "Back" and "Next" button. At the moment, these buttons are at the top right side above the videos list. Is there a way to insert these buttons at the bottom of the videos list as well?

Thank you once again for this MOD.

Cheers...

1) It doesn't always show the same video. The video should change at least once every day. It pulls YouTube's recently featured video. To change it:

Open

Code: Select all

root/styles/yourstyle/youtube.html
Find

Code: Select all

quvic.PresentVideos('recently_featured','',1);
Replace With

Code: Select all

quvic.PresentVideos('search','your_search_term_here',1);
Note: Be sure to replace your_search_term_here with the term you want the script to search for. For example, sports, movies, etc. Also, DO NOT remove the quotation marks around the search term.


2) Trying to work that out... Haven't found a solution yet ;)
User avatar
Alien_Time
Registered User
Posts: 389
Joined: Fri Dec 31, 2010 7:08 am

Re: [BETA] YouTube Videos Mod

Post by Alien_Time »

Thank you keith10456,

You have been very helpful...Cheers!
DocSommer
Registered User
Posts: 257
Joined: Mon Aug 24, 2009 10:30 pm
Location: Hamburg

Re: [BETA] YouTube Videos Mod

Post by DocSommer »

keith10456 wrote:
DocSommer wrote:Hey Keith,

nice Mod - already bookmarked :mrgreen:

It would be great if it will be possible to add some kind of categories feature - like if someone is using the mod for a band fanpage they can file the content in categories like "interviews", "tv-appearances", "live clips" and so on.
Hmmm... I'll look at the code and see.
Hi Keith,

are you still considering some king of categorie/grouping feature? :geek:
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm

Re: [BETA] YouTube Videos Mod

Post by keith10456 »

Yes I am... Just been a bit hectic for me. I'll try to give a look this weekend.

I have to make some small install edits also (this last one is just a reminder for myself).
DocSommer
Registered User
Posts: 257
Joined: Mon Aug 24, 2009 10:30 pm
Location: Hamburg

Re: [BETA] YouTube Videos Mod

Post by DocSommer »

that's good news - thanks
Dragonb022
Registered User
Posts: 11
Joined: Tue Sep 20, 2011 6:35 am
Name: John

Re: [BETA] YouTube Videos Mod

Post by Dragonb022 »

Very excited for the mod, i followed the instructions but the link on the header is not working. i tested the youtube.php page and that works fine maybe you can point me in the right direction on this trouble shooting, i went through and checkined the edits and everything looked good. Below is the site link to see the header.

http://onlinemilitarybulletin.com/JOC/i ... 9e3787878a

Thanks for the help, currently the link just brings me back to my main page.
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm

Re: [BETA] YouTube Videos Mod

Post by keith10456 »

Dragonb022 wrote:Very excited for the mod, i followed the instructions but the link on the header is not working. i tested the youtube.php page and that works fine maybe you can point me in the right direction on this trouble shooting, i went through and checkined the edits and everything looked good. Below is the site link to see the header.

http://onlinemilitarybulletin.com/JOC/i ... 9e3787878a

Thanks for the help, currently the link just brings me back to my main page.
Check your language edits to common.php (root/language/en/common.php) and your functions.php edits (root/includes/functions.php).
Dragonb022
Registered User
Posts: 11
Joined: Tue Sep 20, 2011 6:35 am
Name: John

Re: [BETA] YouTube Videos Mod

Post by Dragonb022 »

I checked again here are my codes if you could take a look
Last edited by tumba25 on Thu Oct 06, 2011 2:49 pm, edited 1 time in total.
Reason: Code removed.
User avatar
tumba25
Former Team Member
Posts: 4430
Joined: Wed Jun 06, 2007 6:42 am
Location: Kokkola, Finland.
Name: Jari Kanerva

Re: [BETA] YouTube Videos Mod

Post by tumba25 »

Dragonb022 wrote:I checked again here are my codes if you could take a look
I removed the code. Please don't post all your files complete. Post something like 10 rows before and after the affected place.
Need a mod/extension created/installed, other custom-coded solution or a server admin? https://tumba25.net
Keefy
Registered User
Posts: 407
Joined: Fri Jan 28, 2005 4:30 am

Re: [BETA] YouTube Videos Mod

Post by Keefy »

Nice mod....

I use the code to fetch my related videos up...

Code: Select all

quvic.PresentVideos('search','cyprus',1);
However there is not much added to my catogory, for example if my search term was CYPRUS they might be only a new video uploaded on that subject each few weeks so the shown video is always the same till a new one is added to youtube, is it possible to search for example CYPRUS but show a random video from the searched term.

Is it also possible to show how many related videos - About 20,100 results and also page numbers ?

Thanks for you work.
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm

Re: [BETA] YouTube Videos Mod

Post by keith10456 »

Keefy wrote:Nice mod....

I use the code to fetch my related videos up...

Code: Select all

quvic.PresentVideos('search','cyprus',1);
However there is not much added to my catogory, for example if my search term was CYPRUS they might be only a new video uploaded on that subject each few weeks so the shown video is always the same till a new one is added to youtube, is it possible to search for example CYPRUS but show a random video from the searched term.

Is it also possible to show how many related videos - About 20,100 results and also page numbers ?

Thanks for you work.
1) Yes it's possible but beyond the scope of this mod (and/or the mod's intended purpose).

2) Same as number 1...
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm

Re: [BETA] YouTube Videos Mod

Post by keith10456 »

Just an FYI... I finally got some time to get back to this mod. More details coming... ;)
DocSommer
Registered User
Posts: 257
Joined: Mon Aug 24, 2009 10:30 pm
Location: Hamburg

Re: [BETA] YouTube Videos Mod

Post by DocSommer »

nice - take your time keith

Return to “[3.0.x] MODs in Development”