Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
SEO YouTube and Google Videos Details »»
SEO YouTube and Google Videos
Version: 1.00, by Adult SEO Adult SEO is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.4 Rating:
Released: 11-13-2006 Last Update: 02-17-2007 Installs: 142
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

This mod was inspired by by Embed XHTML valid YouTube and Google Video into your posts but this mod contains some bugs and isn't complete so I then needed to modify it and decided to do it really well and aply SEO technology to it.

This mod will enable your users to publish YouTube or Google videos on your forum. It's managable via the adminpanel and the script will automaticly download the titles of the videos from YouTube or Google Video and store it in the database so it will get the videos indexed verry well and it's fast.

Some of the features:
  • Custom tagnames, manageable from the adminpanel
  • Automatic Video Title retrieval, with optional support for Lib Curl and user-simulated video title retrieval
  • Custom editor icons, managable from the adminpanel
  • Template based Google or YouTube video output
  • Support for local Google Video servers, to make your site local
  • Phrases for all text so it has support for multi-lingual forums
  • Optional, extend all links within the video with rel="nofollow", customizable seperately for YouTube or Google Video
  • Custom Video titles via tag option ([googlevideo="Video Title"]...[/googlevideo])
  • SEO Video Index (demo)
  • SEO Video Bar (demo)
  • Ability to configure usergroups that have access to delete videos.
Instalation:
  1. Import the XML product
  2. Upload the attached icon images (or use your own)
    • Default is:
      • /images/editor/google.gif
      • /images/editor/youtube.gif
  3. Open htaccess.txt, configure it (replace yourdomain with your domain), save it as .htaccess and upload it to the root of your forum
  4. Run the included installer
    • The installer will also upgrade previous instalations
    • Bug: when you run the installer more then once, multiple of the same indexes are created. I haven't found a way yet to prevent this. I have posted some messages on MySQL forums to find an answere and will then upgrade the installer. For now it is adviced to run the installer just once and for upgrades it is adviced to check the PREFIXseovideos table after upgrading to see if there are any duplicate indexes configured to remove them if needed.
  5. To install the Videobar anywhere on the forum use the folowing code:
    • PHP Code:
      <!-- SEO Videos Index Bar --> 
Done.

Have Fun!
Jan Jaap

Screenshots:





Update: 18 februari 2007 (latest files from www.papegaaienforum.nl where this mod works very well).

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #182  
Old 11-21-2006, 08:26 PM
silks silks is offline
 
Join Date: Jul 2006
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi have had this working great on my forum
went to turn html on in one of my forums and got this error

Fatal error: Field seo_videos_bar is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 485

HTML wont turn on? any ideas
Reply With Quote
  #183  
Old 11-22-2006, 02:19 AM
Eagle Eyes Eagle Eyes is offline
 
Join Date: Oct 2006
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Adult SEO,

You didn't answer my question. Post 167.

https://vborg.vbsupport.ru/showpost....&postcount=167
Reply With Quote
  #184  
Old 11-22-2006, 02:28 AM
Adult SEO's Avatar
Adult SEO Adult SEO is offline
 
Join Date: May 2006
Location: The Netherlands
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eagle Eyes View Post
I uninstalled it, since it was full of bugs.

You have fixed the similie bug. Good job!

Well i think you need good instructions for installing.

Before i install it again, i wanna make sure i am doing things right.


Right now, i use the one .htaccess file which effects all the subdirectories.

Currently my .htaccess file looks like this.


How should i paste your .htaccess code?

By the way, Google and Youtube images from the editor are gone!! Nothing there.
Hi!

This code should work, I've also optimized your existing code.

Code:
## OpenSEF plain htaccess file
 
## Can be commented out if causes errors
Options FollowSymLinks
 
## mod_rewrite in use
RewriteEngine On
 
## If Joomla is installed in the web server root
## RewriteBase /
## If Joomla is installed in a sub-directory
## RewriteBase /directory_name_here
RewriteBase /


RewriteEngine on
RewriteCond %{HTTP_HOST} ^pakistaniforces\.com
RewriteRule ^(.*)$ http://www.pakistaniforces.com/$1 [L,R=301]
 
RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
 
RewriteCond %{HTTP_HOST} ^pakistaniforcesforum\.com
RewriteRule ^(.*)$ http://www.pakistaniforcesforum.com/index.php?styleid=35/$1 [L,R=301]
 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^videos\.html&page=([0-9]+)$ http://www.pakistaniforcesforum.com/videos-page$1.html [L,R=301]
 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^videos\.html$ index.php?videos=1 [L]
 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^videos-page([0-9]+)\.html$ index.php?videos=$1 [L]

 
## Begin 3rd Party or OpenSEF Section
##
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]   ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
##
## End 3rd Party or OpenSEF Section
Note! This code has been edited, use the code from this message not from the email.
Reply With Quote
  #185  
Old 11-22-2006, 04:17 AM
xitrum's Avatar
xitrum xitrum is offline
 
Join Date: Feb 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xitrum View Post
Thanks Adult SEO . That works!
However, I am still having problem with Google Video post. I kept getting this error:

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /includes/class_bbcode.php(166) : eval()'d code on line 65

Warning: file_get_contents(http://video.google.com/videoplay?do...85656910458954) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /includes/class_bbcode.php(166) : eval()'d code on line 65

The video display ok and I can play but kept getting this error. Could this have anything to do with mod rewrite disable on my host? TIA.

-xitrum

P.S. You can see the error here:

http://hoangtram.com/forum/showthread.php?t=7600
Adult SEO,

I think this has to do with fopen() and URL file access is disable problem with many hosts. It would be nice if you use cURL to make it more portable. Thanks.

-xitrum
Reply With Quote
  #186  
Old 11-22-2006, 04:24 AM
Adult SEO's Avatar
Adult SEO Adult SEO is offline
 
Join Date: May 2006
Location: The Netherlands
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xitrum View Post
Adult SEO,

I think this has to do with fopen() and URL file access is disable problem with many hosts. It would be nice if you use cURL to make it more portable. Thanks.

-xitrum
Hi!

The mod has cURL support from the beginning! You can enable it from the adminpanel.

cURL will also ensure that the user doesn't have to wait for minutes when a videohost is down since you can specify the connection timeout and it will also ensure that the videohosts don't ban you as fast as they may when they detect your server being accessing the videos as cURL will simulate a real user!

Best Regards,
Jan Jaap
Reply With Quote
  #187  
Old 11-22-2006, 07:58 AM
camdude camdude is offline
 
Join Date: Oct 2004
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is previous post also an answer to how the .htaccess file should be written for boards that are installed in a subdirectory ? My forum is installed in /forum and the videobar isnt working with that rewrite condition .. See posts 179 and 180

Can you post an example of a rewrite rule for /forum ?
Reply With Quote
  #188  
Old 11-22-2006, 05:23 PM
xitrum's Avatar
xitrum xitrum is offline
 
Join Date: Feb 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Adult SEO View Post
Hi!

The mod has cURL support from the beginning! You can enable it from the adminpanel.

cURL will also ensure that the user doesn't have to wait for minutes when a videohost is down since you can specify the connection timeout and it will also ensure that the videohosts don't ban you as fast as they may when they detect your server being accessing the videos as cURL will simulate a real user!

Best Regards,
Jan Jaap
Awesome!!! Thanks Jan. That works....
Reply With Quote
  #189  
Old 11-22-2006, 07:35 PM
silks silks is offline
 
Join Date: Jul 2006
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does anyone else have trouble using html on with this hack ?
Reply With Quote
  #190  
Old 11-23-2006, 11:48 AM
Hastin Hastin is offline
 
Join Date: Sep 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, but have a couple of issues:

1. What would the .htaccess look like for a forum installed in /forums/?
2. It seems that all my videos in the index are black. I've tracked this down to how the script is parsing the videoid. Most of my videos have the wrong id in the database. What's going on?
Reply With Quote
  #191  
Old 11-23-2006, 11:56 AM
Adult SEO's Avatar
Adult SEO Adult SEO is offline
 
Join Date: May 2006
Location: The Netherlands
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hastin View Post
Great hack, but have a couple of issues:

1. What would the .htaccess look like for a forum installed in /forums/?
2. It seems that all my videos in the index are black. I've tracked this down to how the script is parsing the videoid. Most of my videos have the wrong id in the database. What's going on?
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^videos\.html&page=([0-9]+)$ http://www.micechat.com/forums/videos-page$1.html [L,R=301]
 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^videos\.html$ index.php?videos=1 [L]
 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^videos-page([0-9]+)\.html$ index.php?videos=$1 [L]
Regarding the wrong ID's, could you please show me an example?

Best Regards,
Jan Jaap
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:48 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06191 seconds
  • Memory Usage 2,330KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete