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

adynis

#120
In the first page ther was a single media_no_thumb.gif ; I enterd in the parent thread of that thumbnail, and i came back to media center; then F5 and the media_no_thumb.gif transformed into X :(
So, in this moment, in the first page, I see 4 thumbnails from 20.
example:
thumb from media center (doesn't work ( for me ))
http://forum.liceulcervantes.ro/index.php?action=mediacenterfile;attach=437;image [nofollow]
thumb from parent thread (it works for me)
http://forum.liceulcervantes.ro/index.php?action=dlattach;topic=58.0;attach=437;image [nofollow]

Sory for beeing so insistent, my intent is to be helpful so the possible bug to be found :)
If u want me to try something else, pls tell me :) (but I will try tomorow :D )

JayBachatero

This one os going to be a tough bug to track.  Both work.
Follow me on Twitter

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

Jorin

Hi Jay,

nice mod. But as you can see here in our testforum your mod does not know that the anime picture is in a subboard. Is it possible to show the subboards like in the board index?

HRM

Quote from: JayBachatero on December 12, 2006, 05:09:47 PM
Thanks HRM but I'm able to see ALL of the images on your site also.  Can you grab the query when you have broken images?

I'll try when i'm at home this evening cause will have to upload some new images to be able to reproduce.

Guess you can see all images now cause i have opend all messages containing pics en refreshed the mediacenter zo now everything can be seen, also on other systems which is quit strange.
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

JayBachatero

Quote from: nehcregit on December 13, 2006, 02:57:51 AM
Hi Jay,

nice mod. But as you can see here in our testforum your mod does not know that the anime picture is in a subboard. Is it possible to show the subboards like in the board index?
What exactly do you mean it doesn't know it's on a subboard?

Quote from: HRM on December 13, 2006, 06:11:51 AM
Quote from: JayBachatero on December 12, 2006, 05:09:47 PM
Thanks HRM but I'm able to see ALL of the images on your site also.  Can you grab the query when you have broken images?

I'll try when i'm at home this evening cause will have to upload some new images to be able to reproduce.

Guess you can see all images now cause i have opend all messages containing pics en refreshed the mediacenter zo now everything can be seen, also on other systems which is quit strange.
Well lets see if I write a fix before you get the query :P.
Follow me on Twitter

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

JayBachatero

Can you guys check to see if you have the following error in your log.

8: Undefined index: width
File: /home/www/lomaximoforum/Sources/MediaCenter.php
Line: 410
Follow me on Twitter

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

dakotaroar

The only forum for students in North and South Dakota!  Campus Dakota.

JayBachatero

Umm might have been a glitch on my end then.
Follow me on Twitter

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

HRM

Cant check anything right now guys, as the server I running on has some malfunction.
www.muziek4um.nl
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

Jorin

Quote from: JayBachatero on December 13, 2006, 08:38:22 AM
Quote from: nehcregit on December 13, 2006, 02:57:51 AM
Hi Jay,

nice mod. But as you can see here in our testforum your mod does not know that the anime picture is in a subboard. Is it possible to show the subboards like in the board index?
What exactly do you mean it doesn't know it's on a subboard?

As you can see here our catagory has a subboard. But when we look at the media center here the subboard is not showing. Is there any way to show the user that there is a subboard? At the moment all files who are posted in the subboard are shown in the media center without any hint where they are from.

JayBachatero

Well the variable is there with the info of which board it is.  Just that it's not shown.  You can edit the template to show this.
Follow me on Twitter

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

Jorin

You mean I can show to name of the subboard in the list of picture details?

Hm, that's not exactly what I wanted to do. Because there is no download mod I want to use your mod. Therefor we need some subboards to order our files. Is it possible to do something in the way this looks like: http://www.smfportal.de/index.php?action=downloads ?

JayBachatero

No there is no way to do this.
Follow me on Twitter

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

Jorin

Hm, okay. Thank you, we will see what we do  ;)

JayBachatero

Ok those of you that are having a problem with the broken images try this file.  Upload it to the source dir.
Follow me on Twitter

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

HRM

#135
I just uploaded 6 pictures and didn't show the message (disabled the going back to topic after posting function ) to try to regenerate the problem with redcrosses but they dont appear in the mediacenter at all ???

the pics are named testpic_01.jpg to testpic_06.jpg


http://www.muziek4um.nl/index.php?action=mediacenter
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

HRM

Quote from: JayBachatero on December 14, 2006, 09:44:10 AM
Ok those of you that are having a problem with the broken images try this file.  Upload it to the source dir.

Huh?

Wow Jay! I think I waited to long with my examples.

I will ttry your file.

Thanks!
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

HRM

#137
Quote from: JayBachatero on December 14, 2006, 09:44:10 AM
Ok those of you that are having a problem with the broken images try this file.  Upload it to the source dir.

Done!

WOW!!!

It works Jay!
COOL!!! Thanks a lot!!!

The newly uploaded pics are on page 5 and those show up right away with anybody having even seen the topic!
http://www.muziek4um.nl/index.php?action=mediacenter
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

HRM

#138
*EDIT*

But still some old pics dont show and show the No Thumb picture:

And.... The resize function seems to have a lot to do with it...

Now I uploaded some extra pics (Testpic 08.jpg to Testpic 13.jpg, on page 5 too) and those dont show.

Those are uploaded with the "Resize images when showing under posts" disabled.

With the debug line it shows:
  UPDATE yabbse_log_activity
      SET
         hits = hits + 1
      WHERE date = '2006-12-14'
      LIMIT 1
   in /home/muziek4um.nl/www/Sources/Subs.php line 2990, which took 0.00029206 seconds.

         SELECT variable, value
         FROM yabbse_settings
   which took 0.00173306 seconds.

            SELECT mem.*, IFNULL(a.ID_ATTACH, 0) AS ID_ATTACH, a.filename, a.attachmentType
            FROM yabbse_members AS mem
               LEFT JOIN yabbse_attachments AS a ON (a.ID_MEMBER = 1)
            WHERE mem.ID_MEMBER = 1
            LIMIT 1
   in /home/muziek4um.nl/www/Sources/Load.php line 390, which took 0.00093293 seconds.

         SELECT variable, value, ID_MEMBER, ID_THEME
         FROM yabbse_themes
         WHERE ID_MEMBER IN (-1, 0, 1)
            AND ID_THEME IN (20, 1)
   in /home/muziek4um.nl/www/Sources/Load.php line 1169, which took 0.0005908 seconds.

SELECT name,value FROM yabbse_tp_settings
   in /home/muziek4um.nl/www/Sources/TPortal.php line 110, which took 0.00050688 seconds.

SELECT grp.onlineColor FROM (yabbse_members as m, yabbse_membergroups as grp)
         WHERE m.ID_GROUP=grp.ID_GROUP
         AND ID_MEMBER=1 LIMIT 1
   in /home/muziek4um.nl/www/Sources/TPortal.php line 150, which took 0.00021887 seconds.

SELECT count(*) FROM yabbse_tp_variables WHERE type='art_not_approved'
   in /home/muziek4um.nl/www/Sources/TPortal.php line 208, which took 0.00020099 seconds.

SELECT count(*) FROM yabbse_tp_variables WHERE type='dl_not_approved'
   in /home/muziek4um.nl/www/Sources/TPortal.php line 219, which took 0.00019693 seconds.

SELECT * FROM yabbse_tp_blocks WHERE off=0 ORDER BY bar,pos,id ASC
   in /home/muziek4um.nl/www/Sources/TPortal.php line 250, which took 0.00163603 seconds.

SELECT value, item FROM yabbse_tp_data WHERE type=0 AND ID_MEMBER=1
   in /home/muziek4um.nl/www/Sources/TPortal.php line 506, which took 0.00023222 seconds.

SELECT type,value, item FROM yabbse_tp_data WHERE type=2 AND ID_MEMBER=1
   in /home/muziek4um.nl/www/Sources/TPortal.php line 516, which took 0.00021601 seconds.

SELECT * FROM yabbse_tp_variables WHERE type='category' ORDER BY value1 ASC
   in /home/muziek4um.nl/www/Sources/TPortal.php line 614, which took 0.00029516 seconds.

SELECT * FROM yabbse_tp_variables WHERE type='menubox' ORDER BY value5 ASC
   in /home/muziek4um.nl/www/Sources/TPortal.php line 633, which took 0.00042987 seconds.

         SELECT COUNT(*)
         FROM (yabbse_attachments AS att, yabbse_boards AS b, yabbse_messages AS m)
         WHERE m.ID_BOARD = b.ID_BOARD
            AND att.ID_MSG = m.ID_MSG
            AND 1
            AND (RIGHT(att.filename, 3) = 'png' OR RIGHT(att.filename, 3) = 'jpeg' OR RIGHT(att.filename, 3) = 'jpg' OR RIGHT(att.filename, 3) = 'gif' OR RIGHT(att.filename, 4) = 'jpeg')
            AND 1
            AND 1
   in /home/muziek4um.nl/www/Sources/MediaCenter.php line 282, which took 0.00197196 seconds.

         SELECT att.ID_ATTACH
         FROM (yabbse_attachments AS att, yabbse_messages AS m, yabbse_boards AS b)
         WHERE att.ID_MSG = m.ID_MSG
            AND b.ID_BOARD = m.ID_BOARD
            AND (RIGHT(att.filename, 3) = 'png' OR RIGHT(att.filename, 3) = 'jpeg' OR RIGHT(att.filename, 3) = 'jpg' OR RIGHT(att.filename, 3) = 'gif' OR RIGHT(att.filename, 4) = 'jpeg')
            AND 1
            AND 1
            AND 1
         ORDER BY att.filename DESC
         LIMIT 10, 30
   in /home/muziek4um.nl/www/Sources/MediaCenter.php line 339, which took 0.00206518 seconds.

      SELECT
         att.ID_ATTACH, att.ID_MSG, att.filename, IFNULL(att.size, 0) AS filesize, att.downloads, mem.ID_MEMBER,
         IFNULL(mem.realName, m.posterName) AS posterName, m.ID_TOPIC, m.subject, t.ID_BOARD, m.posterTime,
         att.width, att.height, IFNULL(thumb.ID_ATTACH, 0) AS ID_THUMB, thumb.width AS thumb_width, thumb.height AS thumb_height
      FROM (yabbse_attachments AS att, yabbse_messages AS m, yabbse_topics AS t)
         LEFT JOIN yabbse_members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
         LEFT JOIN yabbse_attachments AS thumb ON (thumb.ID_ATTACH = att.ID_THUMB)
      WHERE att.ID_ATTACH IN (241,120,151,14,297,8,502,501,500,499,498,497,494,492,490,488,486,484,482,91,158,157,156,134,364,201,263,48,165,202)
         AND t.ID_TOPIC = m.ID_TOPIC
         AND att.ID_MSG = m.ID_MSG
      ORDER BY att.filename DESC
   in /home/muziek4um.nl/www/Sources/MediaCenter.php line 397, which took 0.00225306 seconds.

      UPDATE yabbse_log_activity
      SET
         hits = hits + 1
      WHERE date = '2006-12-14'
      LIMIT 1
   in /home/muziek4um.nl/www/Sources/Subs.php line 2990, which took 0.00028205 seconds.

               SELECT code, filename, description
               FROM yabbse_smileys
   in /home/muziek4um.nl/www/Sources/Subs.php line 2486, which took 0.00059605 seconds.

      SELECT
         m.posterTime, ms.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, b.ID_BOARD, b.name AS bName,
         IFNULL(mem.realName, m.posterName) AS posterName,
         IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, 0)) >= m.ID_MSG_MODIFIED AS isRead,
         IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from, LEFT(m.body, 384) AS body, m.smileysEnabled, m.icon
      FROM (yabbse_messages AS m, yabbse_topics AS t, yabbse_boards AS b, yabbse_messages AS ms)
         LEFT JOIN yabbse_members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
         LEFT JOIN yabbse_log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = 1)
         LEFT JOIN yabbse_log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = 1)
      WHERE t.ID_LAST_MSG >= 10593
         AND t.ID_LAST_MSG = m.ID_MSG
         AND b.ID_BOARD = t.ID_BOARD
         AND b.ID_BOARD NOT IN (97)
         AND 1
         AND ms.ID_MSG = t.ID_FIRST_MSG
      ORDER BY t.ID_LAST_MSG DESC
      LIMIT 10
   in /home/muziek4um.nl/www/SSI.php line 352, which took 0.00103903 seconds.

To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

Amon777

I installed it properly....(no errors) but where i edit or where do i config that mod?
I just see the ?action=mediacenter but is there any options in admin panel or do i have to edit the code of mod?
Thanks

Advertisement: