News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Media Center

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

Previous topic - Next topic

nitins60

Quote from: JayBachatero on December 03, 2006, 02:06:09 AM
RvG I'll have to look into it.  Seems that the "error" that I fixed with the commas is not working on some versions. >_</

nitins60 I'll make this mod more modular since its easy to add new categories but I will not make this a download mod.  Its a media center mod.
hmmm, tell me the way, how to modify it, so that it can display all files. Still smf doesn't have a download center mod. Don't say tinyportal, for downloads, i can't install it...

Tanks

#21
I cant get it to grab from a single board..

I have a board with alot of movies and i want to show all attached images from all topics in this board.. i use this url ?

http://mysite.com/index.php?action=mediacenterfile;mediacentertopic=30

But that only returns attached images from topic 30.. not board 30  :(

Looks like a very good mod, if i can get it to do what i want.. so i want to say THANK YOU  :)

Edit: Okey i found out that it graps from a single topic.. how can i get it to grab from all topics within a single board.. and maybe only grab the first one or two attached images.. i need it for a board full of movies.. and the first two attached images are always the covers for the movie.. i hope you can help me to mod your mod because my im not that good at php.. but learning  :)

maybe something like http://www.yoursite.com/index.php?action=mediacenter;sa=images;limit=2;mediacenterboard=30

That would return the first two attached images of every single topic in board with ID # 30

I know it's much to ask for but that could really be useful for forums running boards with lots of movies, music and pictures in them. if its to much to ask for then maybe you can just instruct me how to hardcode the changes.. i need the first two attachments from all topics in the board with the id 30  ;)

JayBachatero

Actually it wouldn't be so hard to do this for boards.  Also for those that are having problems on install I will be looking into this again tom and see if I change a few tings around so that it works for everyone.
Follow me on Twitter

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

Tanks

QuoteActually it wouldn't be so hard to do this for boards.

Does this meen that you will consider adding this in the next version ?  :) :) :)

What about the limitation thing ? Possible to only show one or two attachments from each topic ?

Btw i also had the problem when i installed.. its something to do with /sources/managepermissions.php

I just added the mod to that file myself and then it worked fine  :)

Cheers

Knat

JayBachatero

Yes I'm considering adding this for the next release.  I'm also making it more modular so that it's easier for people to add new sections.

No I'm not thinking of adding the limitations.  I use the start value to work out some things in queries so I would have to rewrite that area.

I changed the position of where this is getting added.  It will be before the profile section and not after that way it works for everyone.
Follow me on Twitter

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

JayBachatero

#25
Ok 1.0 Beta 2 is out.  I made a mistake and named the other release to RC1 when it should have been Beta 1.  Here are the changes.

12/04/06 - Beta 2
+ Added permission for Custom Sections support (MediaCenter.php)
+ Added extra mime type headers to support other sections. (MediaCenter.php)
+ Added support to simplify the addition of extra sections.
+ Added option to only show attachments from a specific board (MediaCenter.php)
! Send only one Content-Type header when downloading an attachment (MediaCenter.php)
! Make sure to check to see if the user is allowed to see the board the attachment is on before downloading. (MediaCenter.php)


Hidden Features
Follow me on Twitter

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

Xarcell

THis is a fresh install of the 1.0, moments before you released the beta.

IT installs and uninstalls fine.

But have a look....

www.xboxnarc.com

;D

JayBachatero

Uninstall that one and install beta2.
Follow me on Twitter

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

Xarcell

I did.

Even if I uninstall it, the code appears at the top. Also, the text is miossing from the admin area. I will check to make sure the package manager didn't add the code twice like it did with teh arcade, lol...

JayBachatero

What code appears at the top?
Follow me on Twitter

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

Xarcell

I found the issue.

The modifcations.english.php.

The text strings were listed after the ?> of the file, causing the code to appear at the top of the page.

JayBachatero

Weird.  Was this a manual install?
Follow me on Twitter

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

Xarcell

no it wasn't, and yes that was wierd.

Nice mod though.

Tanks

CooL i see that you can now grab the images from a single board.. just what i needed.. thanks  :)

But for some reason all the images now show as red crosses and when i try to click on them it shows me this error in the pop up box:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND m.ID_MSG = att.ID_MSG
AND att.ID_ATTACH = 1196
LIMIT
Fil: /hsphere/local/home/kjartan/gapeindex.dk/Sources/MediaCenter.php
Linie: 468


It worked fine with beta 1.. this error came when i installed beta 2  :-[

JayBachatero

Ok here you go.  Use this file.  I forgot $user_info in the global scope.
Follow me on Twitter

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

Tanks

Thanks alot - works fine now  ;) I would still wish i had some more features but you did an amazing job and im very happy with using this mod   ;)

JayBachatero

What features would that be Knat?
Follow me on Twitter

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

Tanks

Well the limit thing would be so nice to have.. because right now its showing all the screenshot from my movies.. and it would look better if it only showed the covers.. wich are the two first attachments of every topic.. front cover and back cover  :D

another feature is to be able to sort without leaving the ;mediaboards=30.. but i will be able to sort that one out by creating a sideblock (yes i use TP  :) ) with a button for each sortoption hardlinked to go to board 30. (my movie board)


Xarcell

This really is a nice mod.  Thanks jay...

JayBachatero

Well the first request requires a few changes.  The second one is a bug.  It should retain the url.  I'll have to look into that one.
Follow me on Twitter

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

Advertisement: