Thread: Major Additions - Video-Directory
View Single Post
  #555  
Old 12-25-2008, 09:29 PM
Surviver's Avatar
Surviver Surviver is offline
 
Join Date: Feb 2006
Location: Bonn, Germany
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChipW View Post
Just for anyone's information. I use 3.7 Beta 4. I changed the minimum version in the .xml file and it installed flawlessly and works great.

The only bug I have is no ACP links. But, I seen there was a video.php in the admincp folder and called it up. No problems.
Can't confirm. Did you refresh the ACP?

Quote:
Originally Posted by Jaxel View Post
Survivor... the settings classes for videohoster XML files dont work... it gives an error in admincp/video.php

TriMe... I know what the problem is with your thumbnails not showing... send me a PM on AIM if you can.
What error exactly do you get?

Quote:
Originally Posted by Jaxel View Post
I also have a question about this mod for Survivor...

Why do you store the uploader's username in the video table? Shouldn't the userid be enough? If you are reading the usernames from the video table, instead of the vbulletin user table, what happens when someone's username gets changed?
The Column is for guests. If a guest posts a video, he has no id - we have to store the username in the video table

Quote:
Originally Posted by Jaxel View Post
Okay... Merry Christmas Everyone! I have a whole bunch of new edits this time around... and I have made it easier by simply making them all into files for you...

The first file of course is "videoDirectory.XML"... this is simply my template edits. Just download the file and then import it into your style and you will get all my most recent updates. Don't forget of course to download the other files as some of my edits are dependant on them. This new version adds support for comment counting, and manages the new "isHD" variable I've created.

The next file is "video.php"... The core video script I have made a lot of changes to. Allow me to enumerate them...
  1. Added support for VIDEO-DETAILS-EMBED... this is the template I added so that the embedded video goes above the categories, isntead of to the right; this way there is more space for high definition videos.
  2. VideoBBCode now fetches the video title for bbcode embed tags.
  3. PageNav for comments on VIDEO-DETAILS now properly calls up construct_video_url. Why it was not doing this to begin with, when every other video url link was; is beyond me. SHAME ON YOU SURVIVOR!
  4. Per Survivor's hotfixes; RSS feeds are properly sanitized for IE and Opera.
  5. I have removed the "random" and "best rated" options for VIDEO-DETAILS. There is no reason to have these options for when people are viewing specific videos. I have left the "related video" options intact.
  6. The Delete Comment page is now constructed properly. It calls its own page, isntead of from the shell.

The new file this time around is "includes/functions_videodirectory.php"...
  1. The construct_video_bit function now has a new routine for handling the new isHD variable. Basically, if the video service for a video contains the word "HD" in it; it will mark the video as HD in the video_bit. (By default, I have this marking as a red "HD" tag). Now the HD tag will work for ANY high definition hosting service, as long as "HD" is in the $hostername (its inside the XML for the video-hoster).
  2. The construct_video_url and construct_category_url functions have been rewritten. For those of you using VBSEO, there will be no change for you. For everyone else, YOU NOW HAVE BASIC SEO! It's not perfect, its only for video and category links. You don't need TfSEO for this; it will work for anybody with Apache. To get the SEO functions, your .htaccess file must include the following:
    Code:
    RewriteEngine On
    
    #### VideoDirectory
    RewriteRule ^(.*)video-(.*)-v([0-9]+)(.*)&page=([0-9]+)$ video.php?do=viewdetails&videoid=$3&page=$5 [QSA,L]
    RewriteRule ^(.*)video-(.*)-c([0-9]+)(.*)&page=([0-9]+)$ video.php?do=viewcategory&categoryid=$3&page=$5 [QSA,L]
    RewriteRule ^(.*)video-(.*)-v([0-9]+)(.*)$ video.php?do=viewdetails&videoid=$3 [QSA,L]
    RewriteRule ^(.*)video-(.*)-c([0-9]+)(.*)$ video.php?do=viewcategory&categoryid=$3 [QSA,L]
  3. If you do not want to use the SEO functions (either you dont have an apache server, or dont have access to your .htaccess) delete or comment out the following line from video.php. You dont have to do this if you have VBSEO, since I set the priority to the function to search for VBSEO first, before it looks for this basic SEO... but you can delete the line if you so wish.
    Code:
    define('SEO_ENABLED', true);

Also included are new versions of YouTube.XML and YouTubeHD.XML.
Quote:
Originally Posted by Jaxel View Post
Working on somethign new....

My video directory now has USER VIDEO PAGES....
http://www.8wayrun.com/video.php
http://www.8wayrun.com/video.php?do=viewuser&userid=1
http://www.8wayrun.com/video-jaxel-u1

I'll upload this and further fixes to the basic SEO stuff later... Now EVERY link to videos, categories, and users is SEO.
Very nice changes I hope, I'll be able to integrate some of them in Version 1.1.0.

But at the momenmt i don't have much time - i don't know when i'll be ready to release the next version

I'm going to integrate the user's page in Version 1.2.0

Regards
Surviver

PS: Sorry, that i replyed with a large delay - but as I said, i don't have much time at the moment
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01201 seconds
  • Memory Usage 1,805KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete