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

FUBAR

I tried running a search on this error but nothing came up..

8: Undefined variable: my
File: /home/xxx/public_html/forum/Themes/default/languages/MGallery.english.php (eval?)
Line: 1


Any idea what could be causing this?

Thanks in advance guys.

Akyhne

Seems your Mgallery file is corrupted somehow. How's the start of the file?

It should look like this:
<?php

global $txt, $scripturl;

// General tabs and titles
$txt['mgallery_title'] = 'Gallery';
$txt['mgallery_home'] = 'Home';
$txt['mgallery_admin'] = 'Admin';

FUBAR

I just noticed 1.5.4 was released so I have now upgraded and it went successfully with no errors, although I haven't seen anything in the error log yet.

I took a look at the /Sources/MGallery.php file and it looks nothing like what you have posted.

Am I looking in the right area?

Akyhne

/home/xxx/public_html/forum/Themes/default/languages/MGallery.english.php

FUBAR

The beginning of that file looks like this..

<?php



global $txt, $scripturl;



// General tabs and titles

$txt['mgallery_title'] = 'Gallery';

$txt['mgallery_home'] = 'Home';

$txt['mgallery_admin'] = 'Admin';


Just has extra spaces compared to what you posted but I don't think this would cause an error would it?

Thanks for the help.  ;)

Akyhne

I don't know.. the text looks ok, but the double line breaks tells me something might be corrupted.

Did you try uninstalling and installing again? With a new downloaded package?

time31415

What a long thread! maybe it is best to make a new one?

Anyways, I've downloaded SMG and installed it. I thought everything was working fine, I could a User album/User Picture Gallery, but the link won't open properly so I can add images. Also it doesn't show my thumbnail.

It gives me this message when I click on it:

QuoteMethod Not Implemented

GET to /talk/index.php not supported.

Additionally, a 404 Not Found error was encountered while tring to use an ErrorDocument to handle the request.

What do I do?
I need help :(

Akyhne

Did you have errors when installing? What other mods did you install?

Akyhne


time31415

it didn't say I had any errors when I was installing, everything seemed ok until I tried to view my pictures. That is how it is with the SMF Image Gallery as well. I had that installed but deleted it because it didn't work either.

Man this forum stuff is stressful :(

That doesn't really sound like my problem.. but maybe.

Dragooon

Quote from: FUBAR on February 16, 2009, 06:05:24 PM
I tried running a search on this error but nothing came up..

8: Undefined variable: my
File: /home/xxx/public_html/forum/Themes/default/languages/MGallery.english.php (eval?)
Line: 1


Any idea what could be causing this?

Thanks in advance guys.
Its not related to this mod...Some other mod might be causing this.

Quote from: time31415 on February 16, 2009, 09:13:34 PM
What a long thread! maybe it is best to make a new one?

Anyways, I've downloaded SMG and installed it. I thought everything was working fine, I could a User album/User Picture Gallery, but the link won't open properly so I can add images. Also it doesn't show my thumbnail.

It gives me this message when I click on it:

QuoteMethod Not Implemented

GET to /talk/index.php not supported.

Additionally, a 404 Not Found error was encountered while tring to use an ErrorDocument to handle the request.

What do I do?
I need help :(
Ask your host, its a permission problem.

Kuzmitch

Hi all!

The question about smg BBC code. Is there any way to make text wrap to the next line for aligned images to the left (or none) instead of putting it on the right?



Thanx in advance!

Nao 尚

Well the [smg] tag is pretty much customized for blog (or blog-like) integration in the first place...
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.

Kuzmitch

Yes, but the div's which used by developer it seems like a little bit complicated for me (I've tryed to manage it it by myself).

I've also found that the align=none is similar to the align=center. How can we fix that?

Here is some illustrations:












Nao 尚

When I implemented the tag, I had only two possibilities:
- either do a tag for "in the know" users, which basically just shows the pic and lets you do the rest yourself,
- or do a tag for n00bs that tries to guess the best possible use for people who'd like the thing to look good on their posts, without having to touch anything.

Basically, it was a hell of a hard thing to implement anyway. I wanted to do the fastest possible implementation and I think I did pretty well in that area. I also wanted to have a tag that was easy to customize, so I implemented all of the options and added the help file. A help file, imagine that! I hate writing help files and I still did it! In two languages, lol! Anyway--

What I'm trying to say is: if you think you have a better way of making the tag work, then feel free to share.
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.

Kuzmitch

Hi Nao,

thanks for the fast reply!

I've finally cheated with the tag system :)  with the 2 additional choices:



Setting them reccomended for the basic users:

[url=http://forum.guitarplayer.ru/gallery.php?id=27][img]http://forum.guitarplayer.ru/gallery.php?id=27;thumb[/img][/url]

and

[url=http://forum.guitarplayer.ru/gallery.php?id=27][img]http://forum.guitarplayer.ru/gallery.php?id=27;preview[/img][/url]

It requires the small addition to the MGallery.template.php

echo '
<tr>
<td class="info smalltext">BBC код: миниатюра + увеличение до оригинального по клику <font color="red">(рекомендуется)</font></td><td class="info">
<input id="html_embed" type="text" size="60" value="', $item['type'] == 'image' ?
htmlspecialchars('[url=' . $boardurl . '/gallery.php?id=' . $item['id_media'] . '][img]' . $boardurl . '/gallery.php?id=' . $item['id_media'] . ';thumb[/img][/url]') :
htmlspecialchars(trim(preg_replace('/[\t\r\n]+/', ' ', $item['embed_object']))), '" onclick="return selectText(this);" readonly="readonly" />
</td>
</tr>
<tr>
<td class="info smalltext">BBC код: превью 640px + увеличение до оригинального по клику <font color="red">(рекомендуется)</font></td><td class="info">
<input id="html_embed" type="text" size="60" value="', $item['type'] == 'image' ?
htmlspecialchars('[url=' . $boardurl . '/gallery.php?id=' . $item['id_media'] . '][img]' . $boardurl . '/gallery.php?id=' . $item['id_media'] . ';preview[/img][/url]') :
htmlspecialchars(trim(preg_replace('/[\t\r\n]+/', ' ', $item['embed_object']))), '" onclick="return selectText(this);" readonly="readonly" />
</td>
</tr>


So I think the problem is solved. I've also renamed MGalleryItem.php to gallery.php to make the url a bit shorter for my personal needs.

Thanks again for the grat gallery mod!

Nao 尚

I'm not too fond of using that system (it's the old one), but if it works for you...
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

#2617
Why not just use the normal tags built into the forum when making your post. It's not rocket science, i know i would never have bothered editing the source just to align something and already having the tags to do so. BTW the centered alignment picture you made up there is wrong. If the text was inside the (center)(/center) tags, it would also be vertically centered.

cleanfiles

This gallery is by far the best gallery I have used so it's a credit to the developers, you have done well guys.
But your support leaves a lot to be desired I must say. I have read this entire thread and most posts at http://smf-media.com .
I find you both have very little patience and understanding for other people, and can be very rude. You both need to work on your attitude I'm afraid if you plan on getting anywhere in life...

LinK187


Advertisement: