News:

Wondering if this will always be free?  See why free is better.

Main Menu

Media Center

Started by JayBachatero, December 02, 2006, 12:43:49 AM

Previous topic - Next topic

JayBachatero

It takes the attachments that have been posted in the posts ;).
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

vkcweb

#181
First of all, many thanks to JayBachatero for implementing this excellent mod.  Also, thanks to everyone else on this thread for being his guinea pigs!

I've got the same problem that Knat had (has, without his edit) with thumbnails and images not being displayed unless all media-type permissions are enabled for a membergroup.  Since there won't be a music attached to messages on my forum, I would like to disable the music permission to hide the music tab.  This but is not visible to anyone logged in as an administrator because they will always have all permissions enabled by default.  I have attached a screenshot of what this problem looks like to a member who's membergroup has music permissions disabled.  I'm running SMF 1.1.1 with the latest version of Media Center (including the updated MediaCenter.php posted on Dec 14).

An unrelated edit that I've made (has nothing to do with the permissions bug) is to reassign the order of which media type is displayed first in the Media Center.  I did so by changing the code in MediaCenter.php from

   if ($context['can_listen'])
      $default = 'music';
   elseif ($context['can_see_videos'])
      $default = 'videos';
   elseif ($context['can_see_images'])
      $default = 'images';
to
   if ($context['can_see_images'])
      $default = 'images';
   elseif ($context['can_see_videos'])
      $default = 'videos';
   elseif ($context['can_listen'])
      $default = 'music';
As I mentioned, this mod is a great addition to my forum.  However, it would be great if a future version had the permissions bug fixed.  As a suggestion for extending the capabilities of this mod, it would be very useful if attachments could be displayed in order of date posted.

Cheers!

JayBachatero

I'll be looking back into this mod soon and get another version out then a final version.  I'll try to tackle down the permission bug.  I was also thinking about adding links to boards so that you can say "Media in this board" and it will show the images and attachments for that board.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Tanks

My mediacenter stopped working at some point. I dont know when or why but all i get is red crosses  :-[

vkcweb

I've just noticed that I also have the problem where thumbnails in the Media Center do not show in Internet Explorer 7 (IE7).  I have checked this problem on multiple computers and the thumbnails always appear with IE6 and Firefox but never in IE7.  I want my forum to work the same for all users so I'm afraid that I have to remove the Media Center from my forum until at least this bug is fixed.

When you've got time, JayBachatero, please see what you can do. Thanks.

JayBachatero

What I don't get is why it's not working with IE7.  I wonder if it's a header issue.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Tanks

OMG its true.. my mediacenter also works in firefox but not in IE7  :o

It makes no sense ?!?  :(

JayBachatero

Umm might be a header issue then.  I'll look more into it.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

stormgal

#188
I now get this text header at the top of my forums - even though I've uninstalled the mod:

$txt['media_center'] = 'Media Center'; $txt['media_music_width'] = 'Width for the music popup'; $txt['media_music_height'] = 'Height for the music popup'; $txt['media_videos_width'] = 'Width for the videos popup'; $txt['media_videos_height'] = 'Height for the videos popup'; $txt['media_disable_filename_filter'] = 'Disable filename formating for Media Center'; $txt['whoallow_mediacenter'] = 'Viewing the Media Center.'; $txt['media_center'] = 'Media Center'; $txt['media_music_width'] = 'Width for the music popup'; $txt['media_music_height'] = 'Height for the music popup'; $txt['media_videos_width'] = 'Width for the videos popup'; $txt['media_videos_height'] = 'Height for the videos popup'; $txt['media_disable_filename_filter'] = 'Disable filename formating for Media Center'; $txt['whoallow_mediacenter'] = 'Viewing the Media Center.';  

Coldfx

Quote from: stormgal on February 11, 2007, 11:43:02 PM
I now get this text header at the top of my forums - even though I've uninstalled the mod:

$txt['media_center'] = 'Media Center'; $txt['media_music_width'] = 'Width for the music popup'; $txt['media_music_height'] = 'Height for the music popup'; $txt['media_videos_width'] = 'Width for the videos popup'; $txt['media_videos_height'] = 'Height for the videos popup'; $txt['media_disable_filename_filter'] = 'Disable filename formating for Media Center'; $txt['whoallow_mediacenter'] = 'Viewing the Media Center.'; $txt['media_center'] = 'Media Center'; $txt['media_music_width'] = 'Width for the music popup'; $txt['media_music_height'] = 'Height for the music popup'; $txt['media_videos_width'] = 'Width for the videos popup'; $txt['media_videos_height'] = 'Height for the videos popup'; $txt['media_disable_filename_filter'] = 'Disable filename formating for Media Center'; $txt['whoallow_mediacenter'] = 'Viewing the Media Center.';  

Go to: forum directory > Themes > default > Languages > Modifications.english.php

Hold CTRL + F, and enter: ?>

Remove anything that's after the ?>, and all that extra (Stuff I guess?) should be removed.

stormgal

#190
thanks a lot coldfx!

Why doesn't my media tab work, and instead I get that message?  I suspect that it's interfering with one of the other packages

Here's a copied list of the packages I have installed:

1. Karma Buttons 1.02  [ List Files ] [ Delete ] 
2. Alternate Text for Member Group Images 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
3. SMF Arcade 2.0.6   [ Uninstall ] [ List Files ] [ Delete ] 
4. MessagePreviewOnHover 1.4   [ Uninstall ] [ List Files ] [ Delete ] 
5. SMF Achat ALPHA 0.2.0   [ Uninstall ] [ List Files ] [ Delete ] 
6. EmailFlash 2.0   [ Uninstall ] [ List Files ] [ Delete ] 
7. Award Mod 1.11   [ Uninstall ] [ List Files ] [ Delete ] 
8. Media Center 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
9. cbi, 0.5 0.5   [ Uninstall ] [ List Files ] [ Delete ] 
10. Ad Managment 2.3   

WhatsUp

This mod is working fine on my 1.1.1 site. Thanks!
History Hunters: http://historyhuntersinternational.org/
Enter: test/test
SMF and TinyPortal

Oldiesmann

Quote from: stormgal on February 12, 2007, 12:02:23 AM
thanks a lot coldfx!

Why doesn't my media tab work, and instead I get that message?  I suspect that it's interfering with one of the other packages

Here's a copied list of the packages I have installed:

1. Karma Buttons 1.02  [ List Files ] [ Delete ] 
2. Alternate Text for Member Group Images 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
3. SMF Arcade 2.0.6   [ Uninstall ] [ List Files ] [ Delete ] 
4. MessagePreviewOnHover 1.4   [ Uninstall ] [ List Files ] [ Delete ] 
5. SMF Achat ALPHA 0.2.0   [ Uninstall ] [ List Files ] [ Delete ] 
6. EmailFlash 2.0   [ Uninstall ] [ List Files ] [ Delete ] 
7. Award Mod 1.11   [ Uninstall ] [ List Files ] [ Delete ] 
8. Media Center 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
9. cbi, 0.5 0.5   [ Uninstall ] [ List Files ] [ Delete ] 
10. Ad Managment 2.3   


That's a known bug that (I think) we fixed in 1.1.2 - <search position="end"> was sometimes literally adding code at the end of the file (ie after the "?>"). Simply put all that stuff before the "?>" and it should work fine.
Michael Eshom
Christian Metal Fans

thefishkrib

I think ive missed something............? How do i get it to work in different themes?

Tanks

so is there any way to resolve the problem with the mediacenter not showing the thumbs in IE ?  :o

JayBachatero

I haven't looked into it yet.  I'm going to try to get another beta out so that it takes advantage of the new attachments headers.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Tanks

Quote from: JayBachatero on February 15, 2007, 10:25:12 AM
I haven't looked into it yet.  I'm going to try to get another beta out so that it takes advantage of the new attachments headers.

Does this mean that it wont be compatible with 1.1 RC3 ?  :o

JayBachatero

Quote from: Knat on February 15, 2007, 11:19:51 AM
Quote from: JayBachatero on February 15, 2007, 10:25:12 AM
I haven't looked into it yet.  I'm going to try to get another beta out so that it takes advantage of the new attachments headers.

Does this mean that it wont be compatible with 1.1 RC3 ?  :o
I'm not too sure yet.  I have to look deeper into this.  Although I suggest that you upgrade to 1.1.2.  There are some security updates in 1.1.2.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Michelle_Reed

Hi, just want to let you know that this mod is fantastic, I have fully customised it to show only what I want in the media center. I had some trouble with the code in the language file too but it was a simple fix, well documented ealier in the thread.

My request/question is,is there any way I can make this mod sort by date rather than name? I really need it to be a recent downloads section for my site. I can edit the code myself if given instruction, I just can't write the code :p

Also is there any way to change the name of the media center main button and would you mind if I did this?

I would be very grateful for your help here.

Claireh82
The Sims 2 Cafe Review
www.sims2cafereview.com

dakotaroar

I've been trying to get someone to help me with this for a while.
The only forum for students in North and South Dakota!  Campus Dakota.

Advertisement: