News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)

Started by SMGTeam, September 09, 2008, 03:14:05 PM

Previous topic - Next topic

Kindred

well, then modify the button code in index.template.php (for 1.1.10) or subs.php (in 2.0)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

capabmx

Ok so I've managed to semi-integrate a php/xml script into smf. Demo can be seen here. It right now auto searches mgal_data/albums/ and all subdirectories. and creates an individual playlist for each album, only pulling mp3's or wma's for audio playlists, and a few types of movies. It's very customizable just with the object embed code, colors, album art, everything. My question is to make it perfect for my site, I need to know where I'd look in smfmedia gallery to do these:

Switch it so it makes a folder profile_albums, and change it from global album_id's to something like http://thesite.com/index?action=mygallery;u=1;id=1,2,3,etc. So each user's first album would have id=1. Long time no see Dragoon :], and if anyone can help I'll figure as much out from there as possible, just need a little guidance to kickstart. Thanks :].
Always looking to take on a web design/ programming job :], PM me if interested.

ardd

#5162
Quote from: Kindred on November 23, 2009, 09:08:28 PM
well, then modify the button code in index.template.php (for 1.1.10) or subs.php (in 2.0)
Thanks Kindred I'm using SMF 2.0RC2 and Gallery 2.03

Here's the code from subs.php

'mgallery' => array(
'title' => $txt['mgallery_gallery'] . (empty($user_info['mgal_unseen']) || $user_info['mgal_unseen'] == -1 ? '' : ' [<b>' . $user_info['mgal_unseen'] . '</b>]'),
'href' => $scripturl . '?action=mgallery',
'show' => allowedTo('mgallery_access'),
'sub_buttons' => empty($user_info['mgal_unseen']) || $user_info['mgal_unseen'] == -1 ? array() : array(
'mgallery_home' => array(
'title' => $txt['mgallery_home'],
'href' => $scripturl . '?action=mgallery',
'show' => true,
),
'mgallery_unseen' => array(
'title' => $txt['mgallery_unseen'],
'href' => $scripturl . '?action=mgallery;sa=unseen',
'show' => true,

I'm not 100% on where it's calling for the number to be displayed in the code. I'm guessing it's the "unseen" references but I'm not good enough with the syntax and coding yet to feel comfortable pruning.

I would like to do the least possible to stop it from displaying the number. I'm still a little green and don't want to go hacking away at the code like Jason in a cabin full of summer camp counselors. I'm shooting for just disabling the display in the button without otherwise affecting the stat counter. 

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SMGTeam

SMG v2.0.4 is out!

Version 2.0.4                                   November 24, 2009
-----------------------------------------------------------------
* Updated getid3 library to be entirely compatible with PHP6
! Yet another attempt at fixing button strips on all themes
! Fixed potential crashes on MySQL servers running in strict mode
! Fixed links in moderation panel

Nao 尚

Just a small update this time -- but I figured one release every 10 days has become acceptable for you ;)
Feel free not to update if you don't have Strict MySQL though!

@capabmx> http://smf-media.com/community/index.php?topic=1448.msg11121#msg11121
Also, Dragooon doesn't read the SMG topic/boards much these days, you should contact him by PM if you want him to notice you. ;)

@aard> As long as it helps someone, it's cool :)
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

CiQ


micropitt


Darknico

Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Nao 尚

Sorry to all previous 27 downloaders... ;) This is fixed.
I usually forget to update one or two areas of the mod... This time I forgot them all. Very proud of myself eheh.

I'm wondering if I can simply release a version as 1.x in the internals and only update the version number in one of the php files... I'll probably do that at some point.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Dragooon

Then the Package Manager feature telling that there is a new version won't work :D

Nao 尚

Which is not a problem since it'll be using Aeva's system anyway :D The filename will indicate the internal version number.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Clara Listensprechen

Quote from: Kindred on November 24, 2009, 02:47:26 AM
'title' => $txt['mgallery_gallery'] ,
Exactly what I was looking for, which I didn't think was too much to ask (at the time). Thank you VERY much!
I shall continue to be an impossible person so long as those who are now possible remain possible. {Michael Bakunin 1814-1876}

Nao 尚

I tend not to make new features optional -- partly because I think new features are cool. :P
If anyone wants a feature to *be* optional, nothing should prevent you from doing so ;) If enough people request the same thing, I'll do my best to implement it. I'm not closed to the idea that I don't always make the best design/UI decisions ;)
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Harvester

For some reason whenever I upload an FLV movie file to the gallery (I do it via ftp) I get "Error #2095"
Im encoding my videos with Adobe Premiere CS4/Adobe Media Encoder. I have tried several different variations when encoding but I still get the same error in SMG.

Anyone have this issue and if so, how did you resolve it?

micropitt

Hello,
I apologize if it is already known or was discussed. Every time I use the "Mass Upload" option with a Mac it will crash the Browser. This seems to happen with every Mac user I know. So far I tried Safari, Webkit and Firefox 3.6b3. The result always was the same. Uploading single pictures always is working fine.

Harvester

for uploading a lot of files I find the ftp feature is much better to use than the mass upload anyway.

MATTEK

Should I install this overtop of 2.0.3 or uninstall and then install 2.0.4?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

micropitt

Quote from: Harvester on November 24, 2009, 11:03:21 PM
for uploading a lot of files I find the ftp feature is much better to use than the mass upload anyway.

Which is not available to the average user.

kingkingston

Quote from: MATTEK on November 24, 2009, 11:15:20 PM
Should I install this overtop of 2.0.3 or uninstall and then install 2.0.4?
always unistall the old one and delete it from your package manager then install the updated one

Advertisement: