Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Media Gallery (Photos, Audio, YouTUBE) Details »»
Media Gallery (Photos, Audio, YouTUBE)
Version: 1.1.1, by TheAdminMarket TheAdminMarket is offline
Developer Last Online: Jul 2017 Show Printable Version Email this Page

Category: Major Additions - Version: 4.2.2 Rating:
Released: 07-11-2015 Last Update: 07-27-2015 Installs: 48
DB Changes Uses Plugins Auto-Templates
Additional Files Translations Is in Beta Stage  
No support by the author.

Since 2006 I was serving community members with my Free Mods
But as this site will starts operating by the company,
I'm no willing to support them

** File Removed **


Media Gallery

Photos, Audio, YouTUBE

Compatible with vB4.2.3

Quote:
I'm offering my hard work for free, without even a single copyright line in footer, expecting that some of you will appreciate the time that I spent for coding it and they will donate something.
Demo: http://www.teriakis.com/vb423/media.php

1.- What's this?

Media Gallery it's a simple Gallery mod supporting Photo and Audio uploads and YouTUBE videos. I was looking for a simple Gallery mod for my own use and as I didn't found something meeting my requirements, I coded this mod. By saying "simple" mostly goes to the easy of use, otherwise it has some great features that you can't even find in big Galleries. It's social share ready especially for Facebook using OpenGraph Meta.

Explore it. You'll love it.

2.- Installation
  1. Download the zip file, and unzip it
  2. Upload the content of upload/ folder to your forum directory
  3. CMOD 777 the directories:
    1. mediagallery/audio
    2. mediagallery/photos
    3. mediagallery/photos/thumbs
  4. From your Admincp import product-mediagallery.xml
  5. If you're using htaccess file for SEO Urls copy the content of htaccess.txt to your .htaccess file
  6. Check and Set Usergroup Permissions
  7. Check and Set General Settings
  8. Add Categories
  9. Moderation is available from ModCP.
PS: For YouTUBE videos the code with tries to fetch the video thumb. Sometimes this action stucks. In this case you can upload your own thumb.

Show Your Support

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

Comments
  #62  
Old 07-21-2015, 01:45 AM
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
Location: USA - West Coast
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rotor View Post
Running vB 4.2.3

firstly thx for the mod. Great stuff!

Cannot seem to get the showing on the Category Page - VIEW

I have the path set properly and after I add a video a new image appears in /photos/thumbs but it is the same generic thumb image on all. If I click on the thumb then it does play the correct video or Photo - photo thumbs work fine!

Any help would be appreciated
Your server path is not right.

/home/zdakzcvbmbx/public_html/mysite.com/mediagallery/photos

You have to make sure your hosting path...for it to work.
Reply With Quote
  #63  
Old 07-21-2015, 04:55 AM
BlackxRam BlackxRam is offline
 
Join Date: Aug 2003
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am pretty sure the code for grabbing the youtube thumbnails has broken somewhat in the newer updates. I just tried adding about 15 youtube videos to test this and not one fetched the thumbnail.

Thumbs work just fine for uploading regular images and such. It's only for the Youtube stuff. You also said you can add your own youtube thumbnail but I don't see that option anywhere when I click edit on a youtube addition to the gallery.
Reply With Quote
  #64  
Old 07-21-2015, 05:14 AM
TheAdminMarket's Avatar
TheAdminMarket TheAdminMarket is offline
 
Join Date: Jun 2013
Location: Thessaloniki, Greece
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BlackxRam View Post
I am pretty sure the code for grabbing the youtube thumbnails has broken somewhat in the newer updates. I just tried adding about 15 youtube videos to test this and not one fetched the thumbnail.

Thumbs work just fine for uploading regular images and such. It's only for the Youtube stuff. You also said you can add your own youtube thumbnail but I don't see that option anywhere when I click edit on a youtube addition to the gallery.
Assuming that you've correct the follow 2 values:
  1. YouTUBE id and NOT the full URL in the video that you post
  2. The server path to .../mediagallery/photos
it's easy to find if its the mod's error or YouTUBE error. In details:

YouTUBE has some links for retrieving the video's thumb. The URL looks like:
https://i3.ytimg.com/vi/...YouTUBEid...resdefault.jpg

The last is the type of thumb. In this case is Maximum Resolution. Other possible values are:
  • hqdefault.jpg for High Quality
  • mqdefault.jpg for Medium Quality ...and...
  • sddefault.jpg for Standard Definition
Most often the last one (even in not so good quality) works:
https://i3.ytimg.com/vi/...YouTUBEid...../sddefault.jpg

If you want to use this type, you can change media_usercp.php line 374:
From:
Code:
$videourl = 'https://i3.ytimg.com/vi/'.$video.'/maxresdefault.jpg';
Change to:
Code:
$videourl = 'https://i3.ytimg.com/vi/'.$video.'/sddefault.jpg';
Reply With Quote
  #65  
Old 07-21-2015, 10:48 AM
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
Location: USA - West Coast
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nick, can you reply to post 58,59? Thanks.
Reply With Quote
  #66  
Old 07-21-2015, 11:20 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by madness85 View Post
Im seeing this in error log not sure how to resolve it

Code:
File does not exist: /site1/mediagallery/jquery/images, referer: http://mysite/media.php
File does not exist: /site1/skins, referer: http://mysite/media.php?do=viewmedia&id=13
File does not exist: /site1/clientscript/vbulletin_css/style00040l/container.css, referer: http://mysite/media_usercp.php?do=mymedia
File does not exist: /site1/clientscript/vbulletin_css/style00040l/container.css, referer: http://mysite/media_usercp.php?do=addedit
File does not exist: /site1/mediagallery/jquery/images, referer: http://mysite/mediagallery/jquery/jquery-ui.min.css
Do you have the other media library installed? I'm thinking there is a conflict.
Reply With Quote
  #67  
Old 07-21-2015, 12:04 PM
madness85 madness85 is offline
 
Join Date: Jun 2012
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67 View Post
Do you have the other media library installed? I'm thinking there is a conflict.
I have vbtube installed but disabled atm
Reply With Quote
  #68  
Old 07-21-2015, 01:01 PM
TheAdminMarket's Avatar
TheAdminMarket TheAdminMarket is offline
 
Join Date: Jun 2013
Location: Thessaloniki, Greece
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bosanci28 View Post
Testing this right now!

I thing i found, while posting ,at the entering the "keywords" if you try to put 2 words,will not let you !
It only works if i copy and paste "my city" then comma and the next keyword.
The normal for Tags and Keywords is: One word. Anyway try something that most probably will works. Edit Templates:
- mediagallery_search_block
- mediagallery_addedit (2 Times)


Change:
Code:
<script>
	$(document).ready(function(){
		$("#tags").tag({
			width: '90%',						
			height: 50,
			inputName: 's_keywords',
			key: ['enter', 'space', 'comma'],
			clickRemove: true
		});
		{vb:raw addtags}
	});
</script>
To:
Code:
<script>
	$(document).ready(function(){
		$("#tags").tag({
			width: '90%',						
			height: 50,
			inputName: 's_keywords',
			key: ['enter', 'comma'],
			clickRemove: true
		});
		{vb:raw addtags}
	});
</script>
Now when user hits spaces will not becomes tag. Tag should be after hitting Enter or Comma.
Reply With Quote
  #69  
Old 07-21-2015, 01:02 PM
TheAdminMarket's Avatar
TheAdminMarket TheAdminMarket is offline
 
Join Date: Jun 2013
Location: Thessaloniki, Greece
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by madness85 View Post
I have vbtube installed but disabled atm
For me it looks like a mess with SEO rules.
Reply With Quote
  #70  
Old 07-21-2015, 01:06 PM
TheAdminMarket's Avatar
TheAdminMarket TheAdminMarket is offline
 
Join Date: Jun 2013
Location: Thessaloniki, Greece
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bosanci28 View Post
Now , regarding the watermark works fine! What will be the code for Bottom Center? BC? or...

If possible later to add pictures in bulk? highlight 10-20 and upload?! possible?

Thanks
1.- There is no BC. There is only BL or BR but setting the distance from left border you can do it. I'm not designer but I think that you can set: 50%

2.- No. Because it does not supports Albums. Only in Albums you can add bulk images. Here you must upload one by one and enter a description for each one.
Reply With Quote
  #71  
Old 07-21-2015, 08:52 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NickTheGreek View Post
For me it looks like a mess with SEO rules.
Yeah, these are the rewrite rules for one of the other libraries and this is my issue. I love your mod Nick but do not want to lose the media already posted with the other library and apparently I cannot use both.


PHP Code:
## Expires
<ifModule mod_expires.c>
        
ExpiresActive On
        ExpiresDefault 
"access plus 1 seconds"
        
ExpiresByType text/html "access plus 1 seconds"
        
ExpiresByType image/gif "access plus 3456000 seconds"
        
ExpiresByType image/jpeg "access plus 3456000 seconds"
        
ExpiresByType image/png "access plus 3456000 seconds"
        
ExpiresByType text/css "access plus 3456000 seconds"
        
ExpiresByType text/javascript "access plus 3456000 seconds"
        
ExpiresByType application/javascript "access plus 3456000 seconds"
        
ExpiresByType application/x-javascript "access plus 3456000 seconds"
</ifModule>

## Compression
<ifmodule mod_headers.c>
        <
ifmodule mod_deflate.c>
                
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
                BrowserMatch 
^Mozilla/4 gzip-only-text/html
                BrowserMatch 
^Mozilla/4\.0[678no-gzip
                BrowserMatch 
\bMSIE !no-gzip !gzip-only-text/html
        
</ifmodule>
</
ifmodule>

## Rewrites
<ifmodule mod_rewrite.c>
        
RewriteEngine on
        Options 
+FollowSymlinks

        RewriteCond 
%{REQUEST_FILENAME} -[OR]
        
RewriteCond %{REQUEST_FILENAME} -[OR]
        
RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule 
^.*$ - [NC,L]

        
# Media Library
        
ReWriteRule ^media/m(\d+).*/tagsmedia.php?do=tags_edit&mid=$[QSA]
        
ReWriteRule ^media/m(\d+).*/editmedia.php?do=details_edit&mid=$[QSA]
        
ReWriteRule ^media/m(\d+).*/reportmedia.php?do=report&mid=$[QSA]
        
ReWriteRule ^media/m(\d+).*/c(\d+)$ media.php?do=comment_edit&cmt=$[QSA]
        
ReWriteRule ^media/m(\d+).*/p(\d+).*$ media.php?do=details&mid=$1&pid=$[QSA]
        
ReWriteRule ^media/m(\d+).* media.php?do=details&mid=$[QSA]
        
ReWriteRule ^media/p(\d+).*/editmedia.php?do=playlist_edit&pid=$[QSA]
        
ReWriteRule ^media/p(\d+).* media.php?do=playlist&pid=$[QSA]
        
ReWriteRule ^media/c(\d+).* media.php?do=category&cid=$[QSA]
        
ReWriteRule ^media/u(\d+).* media.php?do=user&uid=$[QSA]
        
ReWriteRule ^media/tag/(.*) media.php?do=tag&tid=$[QSA]
        
ReWriteRule ^media/results/(.*) media.php?do=results&query=$[QSA]
        
ReWriteRule ^media/advresults/(.*) media.php?do=advresults&query=$[QSA]
        
ReWriteRule ^media/letter/(.*) media.php?do=letter&query=$[QSA]
        
ReWriteRule ^media/browse.* media.php?do=browse [QSA]
        
ReWriteRule ^media/search.* media.php?do=search [QSA]
        
ReWriteRule ^media/random.* media.php?do=random [QSA]
        
ReWriteRule ^media/submit.* media.php?do=submit [QSA]
        
ReWriteRule ^media/tagcloud.* media.php?do=tagcloud [QSA]
        
ReWriteRule ^media/playlists.* media.php?do=playlists [QSA]
        
ReWriteRule ^media/pcreate.* media.php?do=playlists_create [QSA]
        
ReWriteRule ^media/pmine.* media.php?do=playlists_mine [QSA]
        
ReWriteRule ^media/favorites.* media.php?do=favorites [QSA]
        
ReWriteRule ^media/subscriptions.* media.php?do=subscriptions [QSA]
        
ReWriteRule ^media/admin/edit/s(\d+).* media.php?do=admin_host_edit&sid=$[QSA]
        
ReWriteRule ^media/admin/delete/s(\d+).* media.php?do=admin_host_delete&sid=$[QSA]
        
ReWriteRule ^media/admin/export/s(\d+).* media.php?do=admin_host_export&sid=$[QSA]
        
ReWriteRule ^media/admin/(\w+).* media.php?do=admin_$[QSA]

        
# Media Library from Video Directory
        
RewriteCond %{QUERY_STRING} do=viewdetails&videoid=(\d+)
        
RewriteRule ^video\.phpmedia.php?do=details&mid=%1
        RewriteCond 
%{QUERY_STRINGviewcategory&categoryid=(\d+)
        
RewriteRule ^video\.phpmedia.php?do=category&cid=%1
        RewriteCond 
%{QUERY_STRINGviewuser&userid=(\d+)
        
RewriteRule ^video\.phpmedia.php?do=user&uid=%1
        RewriteCond 
%{QUERY_STRINGviewtag&tag=(.*)
        
RewriteRule ^video\.phpmedia.php?do=tag&tid=%1
        ReWriteRule 
^video\.phpmedia.php

        
# Forum
        
RewriteRule ^threads/.* showthread.php [QSA]
        
RewriteRule ^forums/.* forumdisplay.php [QSA]
        
RewriteRule ^members/.* member.php [QSA]
        
RewriteRule ^blogs/.* blog.php [QSA]
        
ReWriteRule ^entries/.* entry.php [QSA]

        
RewriteCond %{REQUEST_FILENAME} -[OR]
        
RewriteCond %{REQUEST_FILENAME} -[OR]
        
RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule 
^.*$ - [NC,L]

        
# MVC
        
RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$[QSA]
</
ifmodule
Reply With Quote
Reply

Thread Tools

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 05:55 AM.


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.08493 seconds
  • Memory Usage 2,413KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_code
  • (1)bbcode_php
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (12)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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