vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - Video-Directory (https://vborg.vbsupport.ru/showthread.php?t=192241)

Morrus 01-01-2009 06:50 PM

Quote:

Originally Posted by Jaxel (Post 1698673)
I said in a previous post that this customization will be coming in my next version in a few days.

Yes, but that was a few days ago! :D

Jaxel 01-01-2009 08:17 PM

Quote:

Originally Posted by Morrus (Post 1698704)
Yes, but that was a few days ago! :D

I said a WEEK a few days ago... a few days from now...

I'm waiting to figure out this ajax stuff before I release my new version. Does anyone know how this crap works?

ArnyVee 01-02-2009 12:28 AM

Take your time Jaxel, I think that the new layout and the TAG CLOUD (Woo hoo! :) ) will be worth the wait. :D

You are taking Survivor's awesome mod to the next level my friend! :up:

indie2industry 01-02-2009 03:46 AM

Quote:

Originally Posted by Jaxel (Post 1698754)
I said a WEEK a few days ago... a few days from now...

I'm waiting to figure out this ajax stuff before I release my new version. Does anyone know how this crap works?

http://www.sematopia.com/?p=34
http://www.w3schools.com/Ajax/Default.Asp

I don't know if this will be helpful or not but here you go :o

logoz2008 01-02-2009 08:59 AM

Can anyone add sub-categories feature to this???

indie2industry 01-02-2009 10:10 AM

Quote:

Originally Posted by logoz2008 (Post 1699120)
Can anyone add sub-categories feature to this???

Jaxel Hooked it up already here in this thread. Here's the post.

https://vborg.vbsupport.ru/showpost....&postcount=560


when you go to manage categories in the AdminCP, you'll see a new column named Display Order. You would use that to create sub-categories.
:up:

Jaxel 01-02-2009 12:30 PM

Okay... I'm having trouble getting some new data from the YouTube API... maybe someone can help me...

For adding new videos, I have two new fields
  • name/id = taglist (this is for adding tags)
  • name/id = timelength (this is for video duration)
And this is my YouTube.XML prepare_data function as it stands right now:
Code:

        function prepare_data()
        {
                if (!$this->verify_videoid())
                {
                        return false;
                }

                //Request Video Data
                $vurl = new vB_vURL($this->registry);
                $vurl->set_option(VURL_URL, 'http://gdata.youtube.com/feeds/api/videos/' . $this->video_id);
                $vurl->set_option(VURL_USERAGENT, 'vBulletin/' . FILE_VERSION . ' | Video Directory');
                $vurl->set_option(VURL_RETURNTRANSFER, 1);
                $vurl->set_option(VURL_TIMEOUT, 30);
                $result = $vurl->exec();

                if ($vurl->fetch_error())
                {
                        $this->set_error(VSS_ERROR_CONNECTION);
                        return false;
                }

                require_once(DIR . '/includes/class_xml.php');

                $xmlobj = new vB_XML_Parser($result);

                if(!$arr = $xmlobj->parse())
                {
                        $this->set_error(VSS_ERROR_RESPONSE);
                        return false;
                }

                if (isset($arr['yt:noembed']))
                {
                        $this->set_error(VSS_ERROR_NOEMBEDING);
                        return false;
                }

                $this->thumbnailpath = $arr['media:group']['media:thumbnail'][0]['url'];
                $this->videodescription = $arr['media:group']['media:description']['value'];
                $this->videotitle = $arr['media:group']['media:title']['value'];
                $this->taglist = $arr['media:group']['media:keywords']['value'];
                $this->timelength = $arr['media:group']['yt:duration']['seconds'];

                return true;
        }

And this is my vbulletin_ajax_videodirectory.js AJAX code as it stands right now:
Code:

function request_videoinfo()
{
        if (!fetch_object('videourl').value)
        {
                return false;
        }

        YAHOO.util.Connect.asyncRequest("POST", "video.php?do=videoinfo", {
                success: handel_videoinfo,
                failure: vBulletin_AJAX_Error_Handler,
                timeout: 15000
        }, SESSIONURL + 'securitytoken=' + SECURITYTOKEN + "&url=" + PHP.urlencode(fetch_object('videourl').value) + "&wysiwyg=" + vB_Editor[editor_id].wysiwyg_mode);

        fetch_object('videoajaxbutton').value = vbphrase['requesting_information_please_wait'];
        fetch_object('videoajaxbutton').disabled = true;

        return false;
}

function handel_videoinfo(ajax)
{
        if (ajax.responseXML)
        {
                // check for error first
                var error = ajax.responseXML.getElementsByTagName('error');
                if (error.length)
                {
                        fetch_object('thumbnail').setAttribute('src', '');
                        fetch_object('thumbnail_border').style.display = 'none';
                        alert(error[0].firstChild.nodeValue);
                }
                else
                {
                        try
                        {
                                var description = ajax.responseXML.getElementsByTagName('description')[0].firstChild.nodeValue;
                                vB_Editor[editor_id].insert_text(description);
                        }
                        catch (e)
                        {
                        }

                        try
                        {
                                var title = ajax.responseXML.getElementsByTagName('title')[0].firstChild.nodeValue;
                                fetch_object('videotitle').value = title;
                        }
                        catch (e)
                        {
                        }

                        try
                        {
                                var keywords = ajax.responseXML.getElementsByTagName('keywords')[0].firstChild.nodeValue;
                                fetch_object('taglist').value = keywords;
                        }
                        catch (e)
                        {
                        }

                        try
                        {
                                var duration = ajax.responseXML.getElementsByTagName('duration')[0].firstChild.nodeValue;
                                fetch_object('timelength').value = duration;
                        }
                        catch (e)
                        {
                        }

                        try
                        {
                                var videothumbnailpath = ajax.responseXML.getElementsByTagName('thumbnailpath')[0].firstChild.nodeValue;
                                fetch_object('thumbnail').setAttribute('src', videothumbnailpath);
                                fetch_object('thumbnail_border').style.display = '';
                        }
                        catch (e)
                        {
                        }
                }
        }
        fetch_object('videoajaxbutton').value = vbphrase['request_videoinfo_from_service'];
        fetch_object('videoajaxbutton').disabled = false;
}

Does anyone know why this isnt working? What am i missing?

jlew24asu 01-02-2009 01:31 PM

ok here is a dumb question. how do I add categories?

jlew24asu 01-02-2009 01:32 PM

does anyone have this on CMPS?

EWGF 01-02-2009 03:01 PM

Works perfectly with CMPS.

Categories can be added via the admin.

jlew24asu 01-02-2009 03:11 PM

Quote:

Originally Posted by EWGF (Post 1699350)
Works perfectly with CMPS.

Categories can be added via the admin.

would you mind posting the module code?


I know this is stupid but I dont see how to add categories in the admin cp

KW802 01-02-2009 03:27 PM

Quote:

Originally Posted by jlew24asu (Post 1699354)
would you mind posting the module code?

https://vborg.vbsupport.ru/showthread.php?t=199084 ;)

jlew24asu 01-02-2009 03:32 PM

thanks KW!

I thought I remembered seeing this

jlew24asu 01-02-2009 03:47 PM

Quote:

Originally Posted by jlew24asu (Post 1699354)

I know this is stupid but I dont see how to add categories in the admin cp

I think I'm missing something...do you go..

admin cp----> video-directory ?

I dont see anything in there about adding categories.

EWGF 01-02-2009 03:51 PM

Admincp - videos - add category

If not, check if you uploaded all .xml files of this mod.

TCB 01-02-2009 04:04 PM

Thanks a lot Jaxel for keeping this mod alive :D

I see on your page that you have the default youtube player, while I have on mine that ugly one from Survivor with the blue borders. Also when I hover over 'my' player a youtube 'search' box comes up, while that doesn't happen on your site.

Could you please tell me how to get the same player (style) as on your page?

And also: is there a way to remove the embed block from the video information table and add (retrieve) the original postername from youtube?

Jaxel 01-02-2009 04:06 PM

Quote:

Originally Posted by TCB (Post 1699417)
And also: is there a way to remove the embed block from the video information table and add (retrieve) the original postername from youtube?

Just delete the embed block from showing in your templates...

As for retrieving the original postername from youtube... yes, you could do that... if you fix my problem from the previous post.

jlew24asu 01-02-2009 04:07 PM

Quote:

Originally Posted by EWGF (Post 1699407)
Admincp - videos - add category

If not, check if you uploaded all .xml files of this mod.

I definitely dont have that. all I have is admincp - video-directory

I only see one xml file to upload. is there more then one? I added video.php to admincp directory but thats it.

XtremeOffroad 01-02-2009 08:46 PM

Can videos be moved into new categories?
I had tested this without creating categories and now want to move them,
I tried searching and could not find the way.
Thanks.

Edit: Nevermind I found it.

jlew24asu 01-02-2009 08:59 PM

Quote:

Originally Posted by XtremeOffroad (Post 1699685)
Can videos be moved into new categories?
I had tested this without creating categories and now want to move them,
I tried searching and could not find the way.
Thanks.

Edit: Nevermind I found it.

how do you add categories?? lol

EWGF 01-02-2009 09:02 PM

https://vborg.vbsupport.ru/

jlew24asu 01-02-2009 09:14 PM

Quote:

Originally Posted by EWGF (Post 1699705)

LOL thanks EWGF. I totally didnt see that. I was looking in vb options....and of course Videos is hidden among a bunch of other things on the sid and not in vb options.

whew.

edytwinky 01-02-2009 09:56 PM

After the installation, is it still required that you have a folder chmodd 777? I don't like to keep folders open like that

Jaxel 01-02-2009 11:09 PM

Is anyone able to help me with my AJax problem? Until I get that fixed, I wont be releasing my new version.

EWGF 01-02-2009 11:20 PM

I checked your codes, but couldn't tell what could be wrong. Then again, I can't seem to be able to get YT HD working ^^"

@ twinky: Don't know for sure, but I don't think thumbnails can automatically be made if the thumbnail folder isn't chmodded to 777.

ArnyVee 01-02-2009 11:36 PM

Jaxel, I wish I knew Ajax so that I could jump in and help...but, I don't :(

I hope someone can lend a hand so that we can all benefit from it. :up:

EWGF 01-03-2009 12:35 AM

Question about YouTube HD...

I'm guessing it is not enough to install videohoster-YouTubeHD.xml and than including a link such as hdef://www.youtube.com/watch?v=OX6H7t1wXZI, right?

Can anyone please confirm :)

Jaxel 01-03-2009 01:16 AM

I fixed the Ajax stuff... dont worry... I'll upload my new version on Monday when I get back from Magfest.

EWGF... thats exactly how you do it... the HDEF thing only works with my NEW youtubehd xml... the old HD xml works as follows...

http://www.youtube.com/watch?fmt=22&v=OX6H7t1wXZI

I changed it to HDEF instead because it makes it easier. Download my new XMLs, as it has three settings to control the API.

ArnyVee 01-03-2009 01:28 AM

Quote:

Originally Posted by Jaxel (Post 1699921)
I fixed the Ajax stuff... dont worry... I'll upload my new version on Monday when I get back from Magfest.

Woo hoo! :D

Great to hear....can't wait to get my tags and nice layout going! Thanks Jaxel! :up:

K4GAP 01-03-2009 02:32 AM

Getting this:

Quote:

Butch - TLR, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
And I am the admin, head cook and bottle washer of the site. I have permissions for everything else. Heck I own it all. Well actually the wife said I could get it :|

Where else would there be permissions I'm missing?

BTW, Happy '09 to everyone.

Jaxel 01-03-2009 03:14 AM

Well I jsut got the TIME LENGTH field working... which means in the future, videos can have information about the length of the video. This information, like the tags is stored LOCALLY... which means videos that don't have time fields right now, wont magically get these time fields when you install my updates. Just like the tags, you must manually put in this information yourself. However; unlike the tag system, there is no easy way to do this without doing it straight in your database.

father guido 01-03-2009 04:26 AM

Here is a minor issue. If I create a category for a specific user group and add videos - that category is hidden, as it should be, from all other user groups. However, the videos are accessible by clicking the name of the contributor as that shows all the videos added by that member. It essentially circumvents the permissions.

inciarco 01-03-2009 06:01 AM

The Mod Looks Nice, Very Promising.

Is it possible for you to Instruct the code needed to be placed on the XLM Files to Import New videohosters? :confused:

Is important for Admins to be able to Provide all the Video Embeddings they want; it's like on the Auto Media Embedding Mod, the Admins have the Option to Include as much Video Services as they want, only by knowing the Embedding Code provided by the Video Service.

Could you please provide the Instructions to do that with this Mod? :confused:

My Best Regards.

:)

Digital Jedi 01-03-2009 06:06 AM

Quote:

Originally Posted by edytwinky (Post 1699760)
After the installation, is it still required that you have a folder chmodd 777? I don't like to keep folders open like that

You have to CHMOD a folder if you want dynamically created content like this. It's unavoidable. But as long as your folder is protected by the index.php file, it's unlikely it's going to be security risk to anyone who didn't already have access to the server to begin with.

lingstar 01-03-2009 07:18 AM

Hello,

Might someone share what is the hook I need to add
to display a 3 random video thumbnails on the main
page of my site? I'm running CMPS.

Thanks in advance,

Barbara

Jaxel 01-03-2009 09:30 AM

Quote:

Originally Posted by father guido (Post 1700025)
Here is a minor issue. If I create a category for a specific user group and add videos - that category is hidden, as it should be, from all other user groups. However, the videos are accessible by clicking the name of the contributor as that shows all the videos added by that member. It essentially circumvents the permissions.

No it doesnt... while yes, the video does appear to them, when they click on the video, they get a permission error. So they can see that the video exists, they just cant watch it. If you ask me, thats even better, because it lets people know "hey, if I want to watch this video, I have to register". In fact, I'm changing the programming so that it doesn't hide the categories...

*EDIT*

Okay! You will be happy to know... not only did I fix this little error... but I did TWO better.

1. Fixed the error... now if a video is in a non-allowed category for a viewer's permissions, it will not show up on the user's listings... (fixed in tag-search too)

2. Fixed other errors... now if a video is in a non-allowed category, it wont show up in the small-bits either! (related videos, random videos, etc)

3. Added "Can see hidden listing" permission... Now you can assign usergroup permissions so that people can see listings for videos thats they dont have permission to watch! This is in response to a request someone previously asked for. Now you can set it so that unregistered users can see all the video listings, but they wont be able to watch. It will entice people to register for your forums.

EWGF 01-03-2009 11:47 AM

Quote:

Originally Posted by Jaxel (Post 1699921)
I fixed the Ajax stuff... dont worry... I'll upload my new version on Monday when I get back from Magfest.

EWGF... thats exactly how you do it... the HDEF thing only works with my NEW youtubehd xml... the old HD xml works as follows...

http://www.youtube.com/watch?fmt=22&v=OX6H7t1wXZI

I changed it to HDEF instead because it makes it easier. Download my new XMLs, as it has three settings to control the API.

Hmm, I'll just wait for your new xml, since I can't get the current ones to work.

Meaning this one:
Attachment 91152

father guido 01-03-2009 12:02 PM

Quote:

Originally Posted by Jaxel (Post 1700163)
No it doesnt... while yes, the video does appear to them, when they click on the video, they get a permission error. So they can see that the video exists, they just cant watch it. If you ask me, thats even better, because it lets people know "hey, if I want to watch this video, I have to register". In fact, I'm changing the programming so that it doesn't hide the categories...

*EDIT*

Okay! You will be happy to know... not only did I fix this little error... but I did TWO better.

1. Fixed the error... now if a video is in a non-allowed category for a viewer's permissions, it will not show up on the user's listings... (fixed in tag-search too)

2. Fixed other errors... now if a video is in a non-allowed category, it wont show up in the small-bits either! (related videos, random videos, etc)

3. Added "Can see hidden listing" permission... Now you can assign usergroup permissions so that people can see listings for videos thats they dont have permission to watch! This is in response to a request someone previously asked for. Now you can set it so that unregistered users can see all the video listings, but they wont be able to watch. It will entice people to register for your forums.

You are a Rockstar! Thank you

chikkoo 01-03-2009 12:45 PM

Hi.. Jaxel,

Thanks for replying my queries/suggestions.

1) I hope Survivor will take a note of it. I don't want to bother him by sending a PM to him.
2) I was thinking, we can just add another URL, it will replace the old url and contents. If difficult just leave it.
3) Hope it will be added in the next update.
4) Hope this too added in the next update.
5) Good news, thanks.
6) I can't figure it anywhere, would you mind thowing some light on it?
7) I thought it must be easy, if difficult just ignore it.

Thanks once again for providing such a wonderful mod.

Quote:

Originally Posted by Jaxel (Post 1698673)
I said in a previous post that this customization will be coming in my next version in a few days.

1) I wont be able to help you with that, ask Survivor
2) That cant happen; the APIs draw information from the URL; the URL itself isn't even stored anywhere.
3) I have that in my verison... sort of... its just the level system like in VBA CMPS Nav Module
4) Already done in my version...
5) coming soon sometime this week...
6) doesn't this already exist?
7) not worth the effort for me, to add this.

Quote:

Originally Posted by chikkoo (Post 1698659)
Hi..

Thank you for this very nice Mod.
I just installed it recently, may I suggest some feature that you may look into it.
If they already exist, somebody guide me where to find them.

1) A preview button to view the movies, before pressing the add video button.
2) Edit video to enable editing of the url of the video.
3) Sub-Categories, with categories.
4) Top poster link at the Video Statistics to bring all the videos posted by the user, instead of showing the profile of the poster.
5) ability to import keywords, or add tags.
6) ability to add parameters to hide related video, and other information.
7) Unregistered/Guests can view the categories and other information, but not playing option.
8) Showing Duration of the clips at thread/summary display.


ArnyVee 01-03-2009 01:15 PM

Jaxel, you are really kickin' @$$ with this mod! Since this mod is unsupported, those of us that are not coders would be limited to what we could do with the mod. So, I know that I really appreciate the work that you continue to put into this mod! :up:


All times are GMT. The time now is 09:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02139 seconds
  • Memory Usage 1,871KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete