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

techbot

Minare, forgive the newbness here, does that block of code just go into a new block or is it hard coded into the index template somewhere?
Any help is appreciated. Scornful comments will be met with a blank stare

Dragooon

Quote from: qubbah on July 31, 2009, 11:30:13 AM
Quote from: qubbah on July 30, 2009, 03:02:59 PM
i have check all the permission... but my regular member still cant add and item... can help?

anobody can help me...?
SMG Version? Are you sure that local album permission is correct? Check for the "Default" permission profile, and make sure that the album is assigned to it.

qubbah

Quote from: Dragooon on July 31, 2009, 11:52:40 AM
Quote from: qubbah on July 31, 2009, 11:30:13 AM
Quote from: qubbah on July 30, 2009, 03:02:59 PM
i have check all the permission... but my regular member still cant add and item... can help?

anobody can help me...?
SMG Version? Are you sure that local album permission is correct? Check for the "Default" permission profile, and make sure that the album is assigned to it.

TQ.. solved..

Soms

QuoteloadMemberContext(): member id XXX not previously loaded by loadMemberData()

I think this might be worth looking into when you guys do the next update. It has been reported before. This happens when a member has been deleted. If this member still has pictures the gallery and one clicks on it, you get this error in your log.

Nao 尚

I don't know what I can say. I'm not familiar with that aspect of the code, and as for Dragooon I'm not sure what's his current position towards SMG itself -- I've been asking him to release beta 2 for weeks now (he promised he'd release early & often, as soon as we'd have some stuff ready for testing really...), and apparently he no longer reads his own board -- there's a large backlog of topics to comment on, really.

Dragooon, if you read this... Get up!
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.

Minare

Quote from: techbot on July 31, 2009, 11:45:00 AM
Minare, forgive the newbness here, does that block of code just go into a new block or is it hard coded into the index template somewhere?


I added this code to boardindex.temp and it works here : http://www.minare.net/forum/index.php


LHW

I'm not sure if this has been mentioned or suggested before, so I'm going to apologize right off the bat if it has.  Sorry.  If it has, just ignore this...

We just installed v2b1 (on SMF v1.1.10) and absolutely love it!  Haven't run into any problems at all, and it's likely going to be even more popular than Aeva.  However, unless we missed a setting somewhere, it doesn't seem to tell you that there are new files unless you actually enter the Gallery.  We were wondering if it'd be possible to add something similar to the way the PM system lets you know you have new PMs...

On the Main Menu Button, have it display "GALLERY [xx]" to tell you xx amount of files are new to you in the Gallery.

No big deal if it can't be done.  Just wanted to pass the suggestion along.

Again, I apologize if it's been mentioned already.  You guys rock!


sangwe11

I am working on a mod to split the gallery for my subdomain mod.

Basically, the mod splits the forum into subdomains, say a subdomain for each game series on the site.

I also want it to split the download and gallery section, so I don't get downloads and gallery images from one subdomain in another subdomain.

I got the category split working, but I need to do the same for recent and random items / comments.

However, I am not sure where to find the function I need to edit.

Thanks.

Nao 尚

Quote from: Lord High Warlock on August 01, 2009, 04:33:48 PM
We just installed v2b1 (on SMF v1.1.10) and absolutely love it!  Haven't run into any problems at all, and it's likely going to be even more popular than Aeva.
Yeah I guess so... It's more impressive at least. (I'm only saying that because I wrote both, uh.)
Too bad it doesn't have a hundredth of Aeva's popularity over here. No idea why... Sometimes I'm actually thinking of merging SMG and Aeva together into some über-mod that would do everything including the laundry.

QuoteHowever, unless we missed a setting somewhere, it doesn't seem to tell you that there are new files unless you actually enter the Gallery.  We were wondering if it'd be possible to add something similar to the way the PM system lets you know you have new PMs...
Nah. Anything that changes stuff in the SMF core files, I leave up to Dragooon. And he doesn't seem to be working on SMG these days. Haven't seen him commit something serious for the last few months. I'm actually releasing Beta 2 without him today...

You can still get the latest gallery pics to show up somewhere on your theme with a hack... I'm doing it on http//noisen.com for instance.

QuoteOn the Main Menu Button, have it display "GALLERY [xx]" to tell you xx amount of files are new to you in the Gallery.
Go over to the Unseen area if that's what you want to show... You can add a direct link to it...
Still, calculating the number of unseen pics is quite taxing I think... I'm not sure it can be shown on every page like that...
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.

Nao 尚

Quote from: sangwe11 on August 01, 2009, 04:50:41 PM
I got the category split working, but I need to do the same for recent and random items / comments.

However, I am not sure where to find the function I need to edit.
......What?
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.

LHW

Quote from: Nao 尚 on August 02, 2009, 01:18:35 AM
QuoteOn the Main Menu Button, have it display "GALLERY [xx]" to tell you xx amount of files are new to you in the Gallery.
Go over to the Unseen area if that's what you want to show... You can add a direct link to it...
Still, calculating the number of unseen pics is quite taxing I think... I'm not sure it can be shown on every page like that...

Hmmm, good idea.  I didn't think of that.  Thanks for the tip!  ;D


Nao 尚

(Man, am I really getting away with such a cheap answer? Lol!)
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.

ArkServer

Hi i've created a passworded personal album but the folder image doesn't show up. Is it possible to show the thumbnail image even if the album is password protected?

Nao 尚

No.
The usual answer: if you're putting adult contents in your album, and you password-protect it to avoid children seeing it, they'll still be able to see the album's icon which may or may not be adult oriented...
Etc.
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.

ArkServer

Quote from: Nao 尚 on August 02, 2009, 07:47:44 AM
No.
The usual answer: if you're putting adult contents in your album, and you password-protect it to avoid children seeing it, they'll still be able to see the album's icon which may or may not be adult oriented...
Etc.

I dont have an adult album. My site if about software development and i'm currently working on adding an implementation collision detection alghoritm to be added to my game engine but i only want people that are part of the project to be able to access it and see the screenshots of the current build, i want to show a thumbnail instead of the default folder image. That said,  I have little php experience so i'm not sure if it's easy to do, Thanks anyway, awesome mod.

LHW

Quote from: Kindred on July 27, 2009, 07:52:56 AM
I just used FTP to upload about 200 files.

using your ftp program, go to the ftp folder in mgal_data
using your ftp programs, load all of the images for a single directory

in gallery admin, go to ftp and select a folder (all of the image files that you just uploaded should be listed)
click proceed.

All of those files are moved into the chosen folder and thumbnails generated.

You can now load files into the ftp directory for the next folder... or edit the uploaded images

I followed this procedure, and it seemed to work fine.  Then I checked the error log and found these:

http://{domain path}/index.php?action=admin;area=mgallery;sa=ftp;sesc
2: mysql_real_escape_string() expects parameter 2 to be resource, null given
File: /{server path}/Sources/Subs-MGallery-Vital.php
Line: 328

http://{domain path}/index.php?action=admin;area=mgallery;sa=ftp;sesc
8: Undefined variable: connection
File: /{server path}/Sources/Subs-MGallery-Vital.php
Line: 328


Both were displayed twice (a total of 4 errors) each time I used the FTP option to add files to a Gallery.

SMF is v1.1.10, and SMG is v2.0b1.

By the way, adding the server timeout/pause when adding lots of files via FTP was very considerate programming.  Nice job!


sangwe11

Quote from: Nao 尚 on August 02, 2009, 01:19:22 AM
Quote from: sangwe11 on August 01, 2009, 04:50:41 PM
I got the category split working, but I need to do the same for recent and random items / comments.

However, I am not sure where to find the function I need to edit.
......What?

basically, i need to modify the function that generates the recent items/comments list for the gallery

but i cant find it

Nao 尚

Uh it's not a function, it's simply inside mgallery_home() or something in MGallery.php ... Then it's shown through the template.
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.

sangwe11

Quote from: Nao 尚 on August 02, 2009, 09:31:14 AM
Uh it's not a function, it's simply inside mgallery_home() or something in MGallery.php ... Then it's shown through the template.

Where the code for the recent and random item / comments lists are, there is this function

smg_item_list($context['recent_items'])

Nao 尚

I don't have the rights to edit the first message in the topic (and thus its title), but SMG 2.0 beta 2 is officially available.

http://custom.simplemachines.org/mods/index.php?mod=1365

Version 2.0 beta 2                                 August 2, 2009
-----------------------------------------------------------------

Regular, cool additions:

+ Added "clear thumbnail names" setting in admin's SMG security area, which allows you to show an album's thumbnails using
  the thumbnail's direct URL, saving your server the cost of a PHP call (which goes through the SMF initialization process),
  if you don't mind letting your users be able to share the URL to your thumbnails with anyone.
+ Added a pre-written .htaccess solution to the mod_security problem. It only needs to be found by the swf file itself,
  so let's just put it in the mgallery folder and let mod_security do its work on the rest...
+ Added "next" variables to admin area settings, allowing the page to show "Kb", "pixels" or "%" values next to text boxes
+ Rewrote homepage's "Recent Items" feature to allow users to browse through all files uploaded to the gallery, and choose a sort order for them
* When showing 5 thumbnails in the previous/next section on item pages, clicking on the arrows will now
  go to the previous/next page of thumbnails, instead of just going to the next visible thumbnail
* Comment box and report box's textareas will now always fit the resizable window if Highslide is enabled

Related to Foxy! add-on:

! "details" setting in smg tag for Foxy! add-on was always empty
+ Added "no_name" details setting for linked topics (topics are *usually* showing a title already, right?)

The big whoops:

! Search results number was always set to 1, which limited them to one page
! Hidden albums were broken when applying the setting to a general album. In addition to fixing this, I also removed the warning text
  which usually shows up on hidden albums, because really the only people that won't be able to view them are the guests.

Small change, aka Pocket money:

* Added ability to specify several permissions in albumsAllowedTo, just in case...
* Show the preview picture for audio files inside the player when outside the item page, to save some space
* Allowed every membergroup to be checked regardless of the scenario (Dragooon's only contribution to this beta -- where are you gone, Dragooon?! -- Nao)
! Potential undefined index in Exif code (not our fault :P)
! array_string database type wouldn't work because $connection wasn't initialized
+ Added a short routine that automatically renames thumbnail files to prevent users from guessing the full file's URL.
  This is only a dirty implementation -- if you have thousands of thumbnails around, please don't enable the "clear thumbnails"
  option as it might crash your server when renaming them all in a single process.
* Added a generic sortbox function for use in Recent Items as well as album listings
! Don't show the area for action icons in album pages if user can't see any of these icons
* Updated prev/next code to show direct thumbnail URLs if this setting is enabled
! Fixed an unclosed div when disabling Javascript
! A typo would break CSS validation
* Slightly updated homepage layout

Things left to do:

@ To do: debug the file deletion area -- seems like everything's not deleted when using clear filenames and deleting an item
@ To do: add a "URL to gallery files" setting in admin area, instead of trying to guess it from the data_dir_path setting
         (because of folder aliases, it might not be in the same apparent path as $boarddir -- was the case for me)
@ To do: will need to rename "Recent Items" to something more generic or change it according to the current sort order...
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.

Advertisement: