Thread: Major Additions - Video-Directory
View Single Post
  #560  
Old 12-26-2008, 11:38 AM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay... here is my newest build information...

In efforts to make this easier, I have completely rebuilt the product file and enclosed all my changes in a zip file. Extract the zip, upload all the new files, then import the product. This is NOT a replacement product; its an ehancement. You must have Survivor's version first. There are of course several important notes you should read before doing anything...
  1. For some reason, when you re-install the Video-Directory, it does NOT save your previous settings for "Limits". Make sure you go into Videos > General Settings and record your settings in the "Limits" section. Everytime you upgrade, this stuff will be wiped out and I couldn't figure out how to fix Survivor's code to fix it.
    • I recommend the following settings for your limits...
    • 5 - 15 - 2 - 5 - 0 - 0 - 5 - 20 - 5
  2. When you re-install the Video-Directory, it also does not re-install your videohoster XML files. Simple, this means you need to re-import the two YouTube XML files I have included in the zip. Just import them and it will automatically overwrite your old YouTube XML files.
  3. You may need to update/revert your existing templates to get my new template edits.
  4. By default I have disabled the options for SEO-slugs. While yes, the SEO-slugs do work great; they inherintly break the Who's Online system. I don't know much about SEO or VBplugins, so chances are I wont be fixing this anytime soon. If you use VBSEO, the SEO-slug system doesn't affect you.
  5. If you so wish, you can enable the SEO-slugs as they are right now by uncommenting the following line in /video.php.
    Code:
    // define('SEO_ENABLED', true);
    And add the following to your .htaccess file:
    Code:
    RewriteEngine On
    
    #### VideoDirectory
    RewriteRule ^(.*)video-(.*)-v([0-9]+)(.*)&page=([0-9]+)$ video.php?do=viewdetails&videoid=$3&page=$5 [QSA,L]
    RewriteRule ^(.*)video-(.*)-v([0-9]+)(.*)$ video.php?do=viewdetails&videoid=$3 [QSA,L]
    RewriteRule ^(.*)video-(.*)-c([0-9]+)(.*)&page=([0-9]+)$ video.php?do=viewcategory&categoryid=$3&page=$5 [QSA,L]
    RewriteRule ^(.*)video-(.*)-c([0-9]+)(.*)$ video.php?do=viewcategory&categoryid=$3 [QSA,L]
    RewriteRule ^(.*)video-(.*)-u([0-9]+)(.*)&page=([0-9]+)$ video.php?do=viewuser&userid=$3&page=$5 [QSA,L]
    RewriteRule ^(.*)video-(.*)-u([0-9]+)(.*)$ video.php?do=viewuser&userid=$3 [QSA,L]
Okay... that was simple enough... now for my patch notes, once again being worked backwards with Beyond Compare 3

CHANGES TO product-videodirectory.xml from Survivor's Version
  • Fixed create table constructs to check for existance.
  • Added new column in videocategory for the indent level.
  • Rewrote ALL TEMPLATES to be more aestheticly pleasing.
  • Added templates "video_catbit_small_sub", "video_details_embed" and "video_user".
  • Added Who's Online information for video user pages.
  • Added missing phrases for many of the new features in my edits.
  • Rewrote the majority of the phrases in this mod for better English.
CHANGES TO /video.php from Survivor's Version
  • Added support for a basic SEO slug system.
  • Added support for a basic "sub-category" system. Its not actually sub categories; but I have made it so that you can define a "level" for each category. When listing categories on the sidebar, the system will now print out the contents of the template "video_catbit_small_sub" once for each level of the category. So by default, categories are level 0, and video_catbit_small_sub prints out 0 times. If you set a category to level 2, then the contents of video_catbit_small_sub will print out 2 times before it displays the category link. You can see an example of how this works here: http://www.8wayrun.com/video.php
  • Added support for contributor video pages. Very simple, click on the user link and it will go to a page listing all videos uploaded by that user.
  • Moved embed code to the top of the page using the template "video_details_embed". This gives more space for high definition video.
  • VideoBBCode now fetches the video title for bbcode embed tags.
  • 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!
  • Per Survivor's hotfixes; RSS feeds are properly sanitized for IE and Opera. Firefox was displaying the broken RSS feed without issues; so most people didn't notice it.
  • 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.
  • The Delete Comment page is now constructed properly. It calls its own page, instead of from the shell.
  • I forced category display on all pages. In the original version, on certain pages, the category didn't show up in the videobit... now it always does.
CHANGES TO /admincp/video.php from Survivor's Version
  • Added support for the category "level" indenting system. In order to change the level of a category, you must do it in the category edit screen in your admincp. I tried to figure out how to do it from the display order screen; but as I said, I dont know much about VB plugins; so i couldn't figure it out.
  • Changed the videohoster "yesno" setting from "true : false" to "1 : 0"... The problem is that if you set something for true, it worked fine (it properly inputted "1" into the videohoster fields); but if you set something for false, it inputted a null instead of properly inputting "0". So now the "yesno" goes straight to the 1 or 0.
CHANGES TO /includes/class_dm_videocategory.php from Survivor's Version
  • Added support for the category "level" indenting system.
CHANGES TO /includes/functions_videodirectory.php from Survivor's Version
  • 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).
  • Added support for the contributor video pages.
  • Added support for the SEO slug system.
I've also rewritten the YouTube videohoster files, so that they have options for enabling/disabling fullscreen, autoplay and related video options.

@Survivor... you can pretty much incorporate ALL of my changes in your next version; this way at least you dont have to do much for the video user pages. You can download a program called Beyond Compare that will show you a line by line comparison to your files. Anyways, the biggest thing I want is a TAGGING system... get that asap! =P
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01406 seconds
  • Memory Usage 1,794KB
  • 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
  • (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