• [MOD] Media sites v1.11.1 (2010-12-22) 5 0 5 1
Currently:  

Author Topic: [MOD] Media sites v1.11.1 (2010-12-22)  (Read 349401 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5 (2009-03-21)
« Reply #45 on: June 11, 2009, 04:40:06 AM »
..... Geht das alles nur über das ACP?
No, you can "upload" via members upload form.

..... Werden die Videos via Link oder Embedcode eingefügt?
Most of the supported sites use links, but some can only be used from embed code (stupidvideos.com)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [MOD] Media sites v1.5 (2009-03-21)
« Reply #46 on: June 11, 2009, 03:09:01 PM »
Danke V@no!

..... Fällt das dann weg? Also brauche ich das nicht mehr?
http://www.4homepages.de/forum/index.php?topic=20597.0

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5 (2009-03-21)
« Reply #47 on: June 11, 2009, 03:39:15 PM »
No, you don't need that mod anymore.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [MOD] Media sites v1.5 (2009-03-21)
« Reply #48 on: June 11, 2009, 04:32:52 PM »
Very Nice. You are the Best :D

Sorry, but dont work.
I have added this Mod in 4images 1.7.7

I cant Upload a Video by Remoteupload

This is the Link:
http://www.myvideo.de/watch/6522164/Shippuuden_112_Englisch_sub_Teil_3_3
« Last Edit: June 11, 2009, 04:43:39 PM by Benny »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5 (2009-03-21)
« Reply #49 on: June 11, 2009, 04:56:01 PM »
http://4images.vano.org/ajaxcomments/details.php?image_id=17

works fine.

Make sure you added myvideo_de into allowed extensions list in ACP settings (Step 4)


P.S.
Did you try add any other sites yet?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [MOD] Media sites v1.5 (2009-03-21)
« Reply #50 on: June 11, 2009, 04:58:53 PM »
Quote
Make sure you added myvideo_de into allowed extensions list in ACP settings (Step 4)

Yes!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5 (2009-03-21)
« Reply #51 on: June 11, 2009, 05:02:23 PM »
you don't have remote_media_file file input field on your upload form. you have remote_thumb_file instead.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [MOD] Media sites v1.5 (2009-03-21)
« Reply #52 on: June 11, 2009, 05:11:52 PM »
Oh man! You have eyes like a fox. Thank you!

I have added in my List:_
http://www.4homepages.de/forum/index.php?topic=24888.0


Edit://
Code: [Select]
Warning: move_uploaded_file(./data/thumbnails/1/youtube_rWY8k8hto_s.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /www/htdocs/w00b2576/anitube/includes/upload.php on line 121

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpWMZBa8' to './data/thumbnails/1/youtube_rWY8k8hto_s.jpg' in /www/htdocs/w00b2576/anitube/includes/upload.php on line 121

Edit.//
Vano, würdest du vielleicht ein kleines Addon schreiben? Das sollte dann so ähnlich wie bei Youtube funktionieren!

Vano, would you perhaps write a small addon? This should then be similar in function Youtube!



Edit.//

To see the links at me, but dont work:

Thumbnail for Website:
Code: [Select]
<a href="http://MYSITE.de/details.php?image_id=5"><img src="http://MYSITE.de/data/thumbnails/1/http://www.youtube.com/watch?v=rWY8k8hto_s" border="0" alt="http://www.youtube.com/watch?v=rWY8k8hto_s"></a>
Hotlink for Website:
Code: [Select]
<a href="http://MYSITE.de"><img src="http://MYSITE.de/data/media/1/http://www.youtube.com/watch?v=rWY8k8hto_s" border="0" alt="http://www.youtube.com/watch?v=rWY8k8hto_s"></a>Thumbnail for Forum:
Code: [Select]
[URL=http://MYSITE.de/details.php?image_id=5][IMG]http://MYSITE.de/data/thumbnails/1/http://www.youtube.com/watch?v=rWY8k8hto_s[/IMG][/URL]
Hotlink for Forum:
Code: [Select]
[URL=http://MYSITE.de][IMG]http://MYSITE.de/data/media/1/http://www.youtube.com/watch?v=rWY8k8hto_s[/IMG][/URL]
Share this Image:
Code: [Select]
http://MYSITE.de/details.php?image_id=5
Directpath to Image:
Code: [Select]
http://MYSITE.de/data/media/1/http://www.youtube.com/watch?v=rWY8k8hto_s
I also use the SEO MOD, therefore, should the link be otherwise be spent

With the Mod "Display Image Codes...." show me the Link:
Code: [Select]
http://MYSITE.de/details.php?image_id=5
But in my Gallery, is the Link:
http://MYSITE.de/video-test-1337-5.htm

Do you have an idea as Vano? Would you possibly expand the code?
« Last Edit: June 12, 2009, 08:40:33 PM by Benny »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5 (2009-03-21)
« Reply #53 on: June 13, 2009, 03:48:40 AM »
Code: [Select]
Warning: move_uploaded_file(./data/thumbnails/1/youtube_rWY8k8hto_s.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /www/htdocs/w00b2576/anitube/includes/upload.php on line 121

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpWMZBa8' to './data/thumbnails/1/youtube_rWY8k8hto_s.jpg' in /www/htdocs/w00b2576/anitube/includes/upload.php on line 121

This is permissions issue, covered in FAQ

Edit.//
Vano, würdest du vielleicht ein kleines Addon schreiben? Das sollte dann so ähnlich wie bei Youtube funktionieren!

Vano, would you perhaps write a small addon? This should then be similar in function Youtube!



Edit.//

To see the links at me, but dont work:

I gather you found the permalinks addon.

Since I don't know which version of permalinks addon you use I can only suggest download v1.5.5 (I just updated it) and in template use {if is_media_site}...{endif is_media_site} and {ifno is_media_site}...{endifno is_media_site} combination of template tags to display proper links.
 
Here is a quick example:
Code: (HTML) [Select]
<input value="{if is_media_site}{media_src}{endif is_media_site}{ifno is_media_site}http://MYSITE.de/{media_src}{endifno is_media_site}">
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [MOD] Media sites v1.5.5 (2009-06-12)
« Reply #54 on: June 13, 2009, 10:31:09 PM »
Hallo Vano,

wieder einmal ein großes Dankeschön. Aber funktioniert das auch, dass der Embedcode ausgegeben wird? Das Video wird ja auch über den Embedcode angezeigt, dann müsste das doch auch funktionieren das der Code ausgegeben wird oder?

----- GOOGLE-TRANSLATE
 
Hi Vano,

Once again a big thank you. But does this also implies that the embedCode is spent? The video is also on the embedCode displayed, then this should also work but the code is spent is not it?

Quick
.... Can me show the Embedcode?

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Media sites v1.5.5 (2009-06-12)
« Reply #55 on: June 20, 2009, 02:29:12 PM »
Thanx so much for this great MOD. It works fantastic!

1. I'd only like to know how to change the width-size of the thumbnails? I "need" 135px in the width, but the automatic created thumbs have 120px.  Upate: I guess it has something to do with this: http://code.google.com/intl/de-DE/apis/youtube/2.0/reference.html#youtube_data_api_tag_media:thumbnail But how to compilate?

2. To seperate videos from pictures (for the eyes  :wink: ), is it possible to add automatically "Video: " before the "Title" (e.g. "Video: Kid is jumping", while the user only "Kid is jumping" has written).

3. Another -maybe important- point is the "download"-Button below the video-clips. For sure you cannot download a video-FLV. But the most users are trying to do it. Is it possible, in case of speficied filetypes to deactivate this button (e.g. like the upload-button for unregistered users)?
« Last Edit: June 20, 2009, 10:37:20 PM by Schnick_und_Schnack »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5.5 (2009-06-12)
« Reply #56 on: June 20, 2009, 11:14:28 PM »
1. in includes/media_sites.php find:
Code: [Select]
       && ($image_info[0] > $dimension || $image_info[1] > $dimension))

Replace it with:
Code: [Select]
)
2. in includes/functions.php find:
Code: [Select]
 $num_comments = ($image_row['image_allow_comments'] == 1) ? $image_row['image_comments'] : "";
Insert below:
Code: [Select]
 if ($data = media_sites($image_row['image_media_file']))
  {
    $image_row['image_name'] = "Video: ".$image_row['image_name'];
  }
It will only show on home and category pages.


3. in includes/functions.php find:
Code: [Select]
 if (!check_permission("auth_download", $image_row['cat_id'])) {
Replace it with:
Code: [Select]
 if (!check_permission("auth_download", $image_row['cat_id']) || media_sites($image_row['image_media_file'])) {
(added it at optional step 2.7)
« Last Edit: June 20, 2009, 11:37:10 PM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #57 on: June 20, 2009, 11:38:41 PM »
Another very tiny update to v1.5.6:

Quote
- Added: optional Step 2.7
- Changed: mod's constants now can be copied into includes/constants.php
- Changed: template tag {is_media_site} now contains the ID of media site. can be used to display icons: {if is_media_site}<img src="icons/{is_media_site}.gif">{endif is_media_site}
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #58 on: June 21, 2009, 10:36:31 AM »
Thx it works perfectly   8)

1. NOW the thumbs will generate its width-size to the global settings.
2. Video will have now the "Videos:" in front of the title
3. And nevertheless the download buttons are deactivated

One Question to Point 1: How about the "old" videos? Is there a possibility to change the old thumbs to its new size? I already have too many comments to delete the videos and to upload them fresh and new.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #59 on: June 21, 2009, 10:43:23 AM »
Sorry, that is beyond functionality of this mod.

I might be able add support for this mod in [Plugin] Rebuild Thumbnails...later ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)