News:

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

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

fatesjoke03

Cannot find if this has been covered already so here it is.

I am using SMF 2.0 B4, Coppermine 1.4.19 and SMG 1.5.3. I can install okay (had to manually correct my load.php file) but when I try to convert my Coppermine data to SMG I get the following error:

"Database Error
SELECT command denied to user 'mistral_tri08025'@'localhost' for table 'cpg_pictures'
File: /home/mistral/public_html/forum/mgconverter_cpg.php
Line: 159 "

I have uninstalled and reinstalled, no luck. I unbridged and rebridged SMF and CM but no luck. Any idea what the problem could be?

Nao 尚

The error message says it all... Your MySQL access data isn't authorized to use the SELECT query on this table. Considering this is a non-damaging query (and the single most used one), it's surprising that your SMF works at all... Make sure to double-check your user name & password for your MySQL database.
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.

fatesjoke03

Thanks, I actually figured it out as you were typing I imagine. I had Coppermine set up with it's own user on the database. I have made the database accessible by the SMF user and everything looks good. Thanks for confirming.

Nao 尚

(Posted on the Aeva topic -- posting it here as well, for those who don't read the topic but still use Aeva.)

Fix for lookups in SMF Media Gallery:

Open Subs-MGallery.php
Find
function smg_utf2entities($source, $is_file = true, $limit = 255)
{
global $context, $mgalSettings;

Replace with
function smg_utf2entities($source, $is_file = true, $limit = 255)
{
global $context, $mgalSettings, $modSettings;

if (isset($modSettings['aeva_enable']) && function_exists('aeva_onposting'))
$source = aeva_onposting($source);


Tested, it works on my site.
(What is it for? -- currently, if you post an embedded video in SMG, it will not try to look it up, i.e. it will not show the video in widescreen on YouTube, or use HQ/HD, or simply make some videos embeddable at all...)
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.

LinK187

Quote from: Nao 尚 on January 28, 2009, 12:46:35 PM
(Posted on the Aeva topic -- posting it here as well, for those who don't read the topic but still use Aeva.)

Fix for lookups in SMF Media Gallery:

Open Subs-MGallery.php
Find
function smg_utf2entities($source, $is_file = true, $limit = 255)
{
global $context, $mgalSettings;

Replace with
function smg_utf2entities($source, $is_file = true, $limit = 255)
{
global $context, $mgalSettings, $modSettings;

if (isset($modSettings['aeva_enable']) && function_exists('aeva_onposting'))
$source = aeva_onposting($source);


Tested, it works on my site.
(What is it for? -- currently, if you post an embedded video in SMG, it will not try to look it up, i.e. it will not show the video in widescreen on YouTube, or use HQ/HD, or simply make some videos embeddable at all...)

Thx, modified. No errors so far.

apenzoon

I have got a problem with this mods, the gallery is only visible for admins, how to make it public ???

LinK187

Quote from: apenzoon on January 28, 2009, 01:08:13 PM
I have got a problem with this mods, the gallery is only visible for admins, how to make it public ???

Permissions + Gallery Options = Rocket Science ;)

SergeantAsh

Quote from: apenzoon on January 28, 2009, 01:08:13 PM
I have got a problem with this mods, the gallery is only visible for admins, how to make it public ???

Go into the board's permissions and edit each membergroup - you'll see a new set of permissions on the righthand side, go through carefully and only check those that are applicable!
Quote"Moderation has been called a virtue to limit the ambition of great men, and to console undistinguished people for their want of fortune and their lack of merit."

SergeantAsh

Just a feature request idea...

As with the 'View Board Only' mod, it would be nice within the Albums to have two permissions columns - one to 'View' the album' and another permission that actually permits whether the user can 'Enter' the album to see pictures within it?

Just an idea :D
Quote"Moderation has been called a virtue to limit the ambition of great men, and to console undistinguished people for their want of fortune and their lack of merit."

apenzoon

Quote from: @sh on January 28, 2009, 01:13:56 PM
Quote from: apenzoon on January 28, 2009, 01:08:13 PM
I have got a problem with this mods, the gallery is only visible for admins, how to make it public ???

Go into the board's permissions and edit each membergroup - you'll see a new set of permissions on the righthand side, go through carefully and only check those that are applicable!

Thank you very much, it works.  :)

Marcus Forsberg

Quote from: @sh on January 28, 2009, 01:30:37 PM
Just a feature request idea...

As with the 'View Board Only' mod, it would be nice within the Albums to have two permissions columns - one to 'View' the album' and another permission that actually permits whether the user can 'Enter' the album to see pictures within it?

Just an idea :D

Thats good. Maybe a third permissions to, which will let them upload the the album. So they may view but not enter, enter but not post, etc.

Akyhne

A user can protect his album with a password. What more do you want?

Marcus Forsberg

What more we want? What we want more is what we stated above ;)

LinK187

#2073
Perhaps an allow list in place of the password. With chek boxes for permissions for each user on the allow list...

Akyhne

So you want the users to view the images as thumbs, just not in preview and full size?

Marcus Forsberg

Allow me to explain a bit further. Each album will have three different permissionsets:

View album = They will see the album in the list of albums, but not be albe to enter the albums and view the items inside etc.
Enter album = They will be able to enter the album and view all items inside.
Upload to album = They will be able to upload items to the album.

Nao 尚

#2076
Quote from: LinK187 on January 28, 2009, 01:55:30 PM
Perhaps an allow list in place of the password. With chek boxes for permissions for each user on the allow list...
Membergroups, that should be enough shouldn't it...?

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.

LinK187

#2077
Quote from: Nao 尚 on January 28, 2009, 02:06:58 PM
Quote from: LinK187 on January 28, 2009, 01:55:30 PM
Perhaps an allow list in place of the password. With check boxes for permissions for each user on the allow list...
Membergroups, that should be enough shouldn't it...?

The current member groups permissions only allow users to use the gallery. What buddy was asking was a per user permission list for each private album. Which is why I suggested that perhaps an "Allow List" may be useful in place of the current password protection.

SergeantAsh

I want Googlebots and search engines to be able to crawl my site including the Gallery, see albums and the hyperlinks that I've named purposely for SEO purposes but I don't want them to ENTER the albums listed unless they're registered.

This way, they would see the contents of the album and want to enter, but when they try, they're asked to register.

Currently, if I untick the Guests option in the Album settings, the album disappears and as far as a guest is concerned, it doesn't exist at all.

Think it would be a nice feature.
Quote"Moderation has been called a virtue to limit the ambition of great men, and to console undistinguished people for their want of fortune and their lack of merit."

Mai Pen Rai

Again I have ask since the search doesnt work perfectly here ;)

[limit reached] comes up even though I have set the limit alot higher than 10 per page (embedded in the forum with [smg id=x] )

How to resolve the problem??
Mai Pen Rai - means "No worries" in Thai

Mai Pen Rai.se

Advertisement: