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
  #72  
Old 07-21-2015, 08:52 PM
rotor rotor is offline
 
Join Date: Jul 2007
Location: Qld, Australia
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bosanci28 View Post
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.
I'm lost - why do you say the server path is not right. Looks good to me
Reply With Quote
  #73  
Old 07-21-2015, 08:58 PM
rotor rotor is offline
 
Join Date: Jul 2007
Location: Qld, Australia
Posts: 116
Благодарил(а): 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.

yep same for me using vB 4.2.3
Reply With Quote
  #74  
Old 07-21-2015, 10:49 PM
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 NickTheGreek View Post
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.
Ok, Thanks for that info!
Reply With Quote
  #75  
Old 07-21-2015, 10:53 PM
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
I'm lost - why do you say the server path is not right. Looks good to me
Hmm, Not sure but i had the same problem with the video thumbs not generating and i figure out that my server path was wrong ...

I had it like:

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

It was doubled. Now all works. I am on vb4.2.2 , so not sure if for v4.2.3 if different.
Reply With Quote
  #76  
Old 07-22-2015, 02:31 AM
BlackxRam BlackxRam is offline
 
Join Date: Aug 2003
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NickTheGreek View Post
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';
the media_usercp.php seems to be broken. I haven't made any edits but i noticed when you browse to it from the My Media area, the page is just a WHITE page.
Reply With Quote
  #77  
Old 07-22-2015, 02:51 AM
BlackxRam BlackxRam is offline
 
Join Date: Aug 2003
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok i figured out the youtube thumbnail thing and why some are not showing. Not every video I was adding had a Max Res Version.

Perhaps adding into the code some checks to see if an image exists because if a video does not have a Max Res Thumb then the media gallery gets broken.

The three image options that I see that seem to be the best are:

maxresdefault.jpg

then

hqdefault.jpg

then

0.jpg

sddefault.jpg did not work on every youtube video either. But 0.jpg always exists as far as I can tell. 0.jpg looks to be a better res anyways than sddefault.
Reply With Quote
  #78  
Old 07-22-2015, 04:30 AM
BlackxRam BlackxRam is offline
 
Join Date: Aug 2003
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also, where can i modify each of the gallery bit tables? The current format doesnt allow for titles that are too long as it makes the tables a bit too tall and then it creates big blank spaces in the home listing.

I was thinking about moving it to a Vertical Format or atleast trying to. A vertical list format would atleast allow for better visible organization.
Reply With Quote
  #79  
Old 07-22-2015, 07:12 AM
BlackxRam BlackxRam is offline
 
Join Date: Aug 2003
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, I made some changes to the MY MEDIA pages to save some space. Maybe you can adopt it if you like. I also made some changes to the 'containers' based on the info you gave me in the PM. I seperated each line (the title and the 'likes/views/comments line) into their own containers so they don't stretch and pull as easily if the titles get long. I also moved the Active/Hidden/Unapproved line into the thumbnail container to save space and be a bit more prominent on the listing.

Reply With Quote
5 благодарности(ей) от:
ArcadeSyndicate, bosanci28, madness85, RichieBoy67, TheAdminMarket
  #80  
Old 07-23-2015, 04:43 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
So, I made some changes to the MY MEDIA pages to save some space. Maybe you can adopt it if you like. I also made some changes to the 'containers' based on the info you gave me in the PM. I seperated each line (the title and the 'likes/views/comments line) into their own containers so they don't stretch and pull as easily if the titles get long. I also moved the Active/Hidden/Unapproved line into the thumbnail container to save space and be a bit more prominent on the listing.
Send me the changes and I can include them in the official release along with the /0.jpg image for the video thumb.

Thank you
Reply With Quote
Благодарность от:
bosanci28
  #81  
Old 07-23-2015, 12:38 PM
ArcadeSyndicate's Avatar
ArcadeSyndicate ArcadeSyndicate is offline
 
Join Date: Oct 2008
Location: Germany
Posts: 298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello nick,

at first really great addon, exactly what i was looking for (i want to use it for an imageboard like pr0gramm or 4++++r)

i only have a little problem with the ajax functionality, there seems to be a conflict with another addon or the theme i use (for example the top media box and the like button doesn`t work). can you give me a hint where this is included?

i also have another little question. i can edit my own files via media_usercp.php?do=mymedia, but how about editing uploads from others users? in the modcp it seems i can only approve media files.

best regards
oliver
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 04:18 PM.


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.05084 seconds
  • Memory Usage 2,342KB
  • Queries Executed 27 (?)
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
  • (7)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
  • (18)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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