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)

winstone 12-05-2008 08:53 AM

Quote:

Originally Posted by Surviver
No, each api is completely different, and many hosters don't have one. There's also another was to integrate them, but that could be very cpmplex.

my question was having a sample plugin code (sample hoster) which does not uses any API, you simply get the URL, extract the variable from it and finally wrap the variable with html stuff, that shouldn't be complex

btw I saw a guy who wanted a WeGame hoster, I made one for it however it requires PHP5 with SimpleXML libraries (couldn't get the built-in vbulletin XML class to work, perhaps you can fix it Surviver and maybe include in future releases)

Edit:
if interested to use this, after installation create a folder called "WeGame" (case sensitive) in "videothumbnails" folder and give it write(777) permission

Surviver 12-05-2008 11:42 AM

Quote:

Originally Posted by winstone (Post 1678920)
my question was having a sample plugin code (sample hoster) which does not uses any API, you simply get the URL, extract the variable from it and finally wrap the variable with html stuff, that shouldn't be complex

btw I saw a guy who wanted a WeGame hoster, I made one for it however it requires PHP5 with SimpleXML libraries (couldn't get the built-in vbulletin XML class to work, perhaps you can fix it Surviver and maybe include in future releases)

Very nice! This XML Page i called api (it's not a full api, but it's eneught).

I'll modify it a bit and integrate it into the next release!

Regards
Surviver

TriMe 12-05-2008 01:31 PM

Quote:

Originally Posted by Jaxel (Post 1677845)
Survivor... I've made a crap ton of changes to your code on my own forums... in the scripts, and in the templates... This is what I have now:

http://www.8wayrun.com/video.php
http://www.8wayrun.com/video.php?do=...ls&videoid=230

I changed a lot of the formatting, so that it looks less generic and can display more information a single screen... plus, on the video details pages, hacked your code up to support BB Code for [youtube] tags.

That's amazing! Please share your work with us!

TriMe

puregraf 12-05-2008 02:41 PM

I cant figure out out to add /edit the categories can you please help?

Thanks

Surviver 12-05-2008 02:49 PM

Quote:

Originally Posted by puregraf (Post 1679062)
I cant figure out out to add /edit the categories can you please help?

Thanks

You can just add some via the ACP Menu?!

TriMe 12-05-2008 04:27 PM

Quote:

Originally Posted by puregraf (Post 1679062)
I cant figure out out to add /edit the categories can you please help?

Thanks

Make sure your administrator usergroup has permissions set.

and as Survivor said - in your admincp

puregraf 12-05-2008 08:33 PM

ah! i totally missed that, thank you!!! this contrib rocks!

nightbloom 12-06-2008 11:23 PM

Quote:

Originally Posted by winstone (Post 1678920)
my question was having a sample plugin code (sample hoster) which does not uses any API, you simply get the URL, extract the variable from it and finally wrap the variable with html stuff, that shouldn't be complex

btw I saw a guy who wanted a WeGame hoster, I made one for it however it requires PHP5 with SimpleXML libraries (couldn't get the built-in vbulletin XML class to work, perhaps you can fix it Surviver and maybe include in future releases)

When I tried to use it, I got an error and the thumbnail creation failed. *frustrated* So close.... The video shows tho and will play but I uninstalled it.

Ooooooh someone fix it for me! My forum members are gathering the pitchforks and torches.......
PHP Code:

Warningfopen([path]/videothumbnails/WeGame/SRO_s_Original_Trailer.jpg) [function.fopen]: failed to open streamNo such file or directory in [path]/includes/videoserviceapi/class_wegame.php on line 95

Warning
fwrite(): supplied argument is not a valid stream resource in [path]/includes/videoserviceapi/class_wegame.php on line 96

Warning
fclose(): supplied argument is not a valid stream resource in [path]/includes/videoserviceapi/class_wegame.php on line 97

 
/** * vBulletin 3.7.4 CSS * Style: 'Fly's 1337 skin'; Style ID: 3 */ @import url("clientscript/vbulletin_css/style-ffaa9bb7-00003.css"); 


winstone 12-07-2008 03:29 AM

Quote:

Originally Posted by nightbloom (Post 1679933)
When I tried to use it, I got an error and the thumbnail creation failed.

all you need to do is, creating a folder called "WeGame" (case sensitive) in "videothumbnails" folder and giving it write(777) permission

as for PHP5 question, it seems you already have PHP5 with SimpleXML libraries

winstone 12-07-2008 03:34 AM

a feature request to Survivor,

-> multi-level categories

all that needs to be done is adding "parentid" to cats and creating a function to show them all in right structure

by the way I modified the code to have maximum 3 level cats but it's not worth sharing as its just a nested while loop

cheers


All times are GMT. The time now is 02:37 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.01792 seconds
  • Memory Usage 1,754KB
  • 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
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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