vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - Media Gallery (Photos, Audio, YouTUBE) (https://vborg.vbsupport.ru/showthread.php?t=319444)

bosanci28 07-21-2015 01:45 AM

Quote:

Originally Posted by rotor (Post 2550896)
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.

BlackxRam 07-21-2015 04:55 AM

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.

TheAdminMarket 07-21-2015 05:14 AM

Quote:

Originally Posted by BlackxRam (Post 2550909)
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';

bosanci28 07-21-2015 10:48 AM

Nick, can you reply to post 58,59? Thanks.

RichieBoy67 07-21-2015 11:20 AM

Quote:

Originally Posted by madness85 (Post 2550743)
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.

madness85 07-21-2015 12:04 PM

Quote:

Originally Posted by RichieBoy67 (Post 2550928)
Do you have the other media library installed? I'm thinking there is a conflict.

I have vbtube installed but disabled atm

TheAdminMarket 07-21-2015 01:01 PM

Quote:

Originally Posted by bosanci28 (Post 2550770)
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.

TheAdminMarket 07-21-2015 01:02 PM

Quote:

Originally Posted by madness85 (Post 2550930)
I have vbtube installed but disabled atm

For me it looks like a mess with SEO rules.

TheAdminMarket 07-21-2015 01:06 PM

Quote:

Originally Posted by bosanci28 (Post 2550774)
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.

rotor 07-21-2015 08:52 PM

Quote:

Originally Posted by bosanci28 (Post 2550899)
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 :confused:


All times are GMT. The time now is 01:11 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.01316 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete