News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Media Center

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

Previous topic - Next topic

Ertado

Alright I am having a problem with the size of the images displayed in the media center. Some of the images have thumbnails (150px) and the width and height of these images is displayed correctly.

However, other images are shown in their original size and the width and height of these images is shown as being 0px. Do you know what the problem is?

nibb

I installed and it said ok, how do i run it or see now?

JSizzal

I dont know how to even work this mod, where does the music go to.

Where do I upload anything.??

Thanks

Ertado

I fixed the problem. I just re-uploaded the images that weren't displaying correctly and everything is fine.

However, I do have two questions. How would I change the Tab order around (music, videos, images) and how would I remove a category (for example, videos)?

tsmalmbe

Quote from: JSizzal on April 11, 2007, 05:47:26 PM
I dont know how to even work this mod, where does the music go to.

Where do I upload anything.??

Thanks

Read this thread, it'll clear things out.
..:: http://www.kontrollrummet.com - Studio och musik ::.. RSS?

JSizzal

Uhm so now that i figured out how images works

How do I get movies and music to work/play

JJLodge

I get this error


Quote
Unable to load the 'main' template.

any help please

JayBachatero

Make sure that the files got extracted correctly.  The template file in specific.
Follow me on Twitter

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

violablu

I keep getting this error and I already made my file size 2800000kb in admin. I tried to upload a file that was 2253 kb.
Help?

Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.

Please consult your server administrator for more information.

JJLodge

Quote from: JayBachatero on May 29, 2007, 01:05:22 AM
Make sure that the files got extracted correctly.  The template file in specific.

it said all files were correct, what file is this error refering to and where should it be please

James

KGIII

Some responses removed. Let's be civil, move on, and hope that nothing more than spliting and deleting is required in the future. Thanks.

To everyone else:

Do keep in mind that no one likes mini-moding and that the author is on hiatus for the time being.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

chep

#271
Someone should update the mod. As mentioned previously there seemed to be an extra , in Managepermissions.php update.

JJLodge

oh no

i installed the one you have just put up for download and its not working, look at my site now !!

http://affordabletackle.co.uk/forum/index.php

oh and its been uninstalled and deleted and its still like it "!

chep

#273
Sorry to hear that.

You should restore to your backups. I will remove the zip file then. It wasn't necessarily meant for distribution as much as it is for seeing the difference in managepermissions.php

From the looks of things it seems that $languagedir/Modifications.english.php is the problem which I didn't touch anyways:

<file name="$languagedir/Modifications.english.php">
<operation>
<search position="end" />
<add><![CDATA[

$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 <a href="' . $scripturl . '?action=mediacenter">Media Center</a>.';
]]></add>

</operation>
</file>


But truthfully it is the same one I have installed on my forum. Is it possible that you ignored some warnings and installed\uninstalled anyways?&nbsp; Or perhaps uninstalled manually and forgot to remove that portion?


I suspect that you can just remove that text as it is more than likley below this line ?> in the file. However there is no way of knowing for sure without looking...

JJLodge

Right the only way i could lose that writing at the top of my forum was to not have a $languagedir/Modifications.english.php

thanks James

chep

#275
It looks like your forum is back to normal. Does that mean you do not (or did not) have a file called $languagedir/Modifications.english.php for SMF or that you fixed it by removing it manually from that existing file or ?

Just curious.. There should be a file called Modifications.english.php that come with SMF 1.1.2 in the default theme.

It's basically an empty file I believe until you install mods. It could be the case that the mod here has a small bug in it somehow..


<?php// Version: 1.1; Modifications?>

JJLodge

yes it was there, i also had the same file with the ~ ( the origional i belive) i tried looking through it for the text to remove but it wasnt there, i renamed them so it would not point to either and yes the forum now once more is ok, does sem od though, really would like some sort of mod that people can upload there vids and music for all to view and listen to

chep

#277
Here's what I suspect is going on... I suspect that the section here is actually adding the code after the end of your php file. Right where the search position end is...

<file name="$languagedir/Modifications.english.php">
<operation>
<search position="end" />


If that is true then this one attached might work. Here is what I changed.

<file name="$languagedir/Modifications.english.php">
<operation>
<search position="after"><![CDATA[// Version: 1.1; Modifications]]></search>


At the end of your Modifications.english.php file there should be the following characters ?>
If something adds code after the ?> then it would probably have the effects which I saw on your board. Which treats that new text like regular html. I believe you should have the Modifications.english.php in your folders or it might create more problems for you later on... I could be wrong though...

The other edit I made was inside install.xml which affects $sourcedir/ManagePermissions.php was very small. I removed the final "," so that I could get permissions working in the admin section. Someone else mentioned the same problem on a previous page...

<file name="$sourcedir/ManagePermissions.php">
<operation>
<search position="replace"><![CDATA[ 'profile_remote_avatar' => false,
)]]></search>
<add><![CDATA[ 'profile_remote_avatar' => false,
),
'media_center' => array(
//'media_center_enter' => false,
'media_center_listen' => false,
'media_center_videos' => false,
'media_center_images' => false,
)]]></add>


Make sure you back up before installing mods :D This one attached will definitely not work unless you restore your Modifications.english.php first...

Here's a piece of advice. Never outright delete a file you think is causing a problem. Just rename it something useless like Modifications.english.php.old  You may need it later for some reason. I read somewhere earlier that the ~ tilde files had something to do with the mods and backup files or temporary files but I got busy and cannot find that documentation now...

Good luck

JJLodge

Hi

thanks for that, i do still however get the "unable to load main template error

but what is more worrieng, when i uninstalled last media center, my admin panel has gone funny



i really need that to look good again :). the missing section is the arcade, and the gap i am not 100% sure what that was

need help

James

chep

#279
That is not related at all as this mod doesn't touch that section. That's probably inside Admin.template.php

Maybe another mod is causing those problems but it's not likely this one.... Additionally that looks like a different theme. Last time we were looking at something like Dilber MC.

When that error is flagged it indicates there is probably a problem with a template file. This mod only touches one portion of the template file to put in a media center button. It's not even the same file which your picture indicates the problem is...

It's unclear how you are installing things but I think you should heed my previous advice about doing backups and such... Most mods should be installed on the default theme and not on the Custome Theme first. That's pretty common knowledge.

Advertisement: