SMF Gallery

Started by SMFHacks.com Team, September 16, 2006, 07:13:02 PM

Previous topic - Next topic

vbgamer45

Quote from: Rafferty on September 01, 2008, 10:55:11 PM
Im confused, I'm running SMF Gallery Pro version 1.3.23, so is this not related to pro version?


Not related to the pro version.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

4fit?

What file would I need to edit to adjust the error message received if an image exceeds the size restrictions?  Right now it just says something like below....
"Image exceeds size requirements. Your height was:  1341 Your width was: 900"

I would like to change if to something like....
"Image exceeds maximum size restrictions of [whatever specified in settings] high and [whatever specified in settings] wide.  Your height was:  1341 Your width was: 900"

I plan to also add a link to a free online image resizer underneath the error message as well.  I guess what I need to know is...
1 - What file contains the error message that I wish to edit?
2 - How do I reference the specified maximum settings to include in my revised error message?

Thanks for any help!

Chadrew

Quote from: vbgamer45 on September 01, 2008, 05:32:23 PM
SMF Gallery 1.9 Released!
+Major updates to the interface
+Uses Admin Tabs for the admin section.
+Added theme links on the major pages.
+Added tabs on many of the pages.
+Minor bugs and fixes.


Awesome update!
I've got a question about no 'Gallery' header when  a picture category is selected:

<td align="center">&nbsp</td>

Any logical reason in doing this? I thought normally you'd want a title there :)

vbgamer45

Quote from: Chadrew on September 02, 2008, 05:17:05 PM
Quote from: vbgamer45 on September 01, 2008, 05:32:23 PM
SMF Gallery 1.9 Released!
+Major updates to the interface
+Uses Admin Tabs for the admin section.
+Added theme links on the major pages.
+Added tabs on many of the pages.
+Minor bugs and fixes.


Awesome update!
I've got a question about no 'Gallery' header when  a picture category is selected:

<td align="center">&nbsp</td>

Any logical reason in doing this? I thought normally you'd want a title there :)
The title is shown below the main header in the main picture table. It would be odd for it to be shown twice.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

4fit?

Quote from: 4fit? on September 02, 2008, 02:58:05 PM
What file would I need to edit to adjust the error message received if an image exceeds the size restrictions?  Right now it just says something like below....
"Image exceeds size requirements. Your height was:  1341 Your width was: 900"

I would like to change if to something like....
"Image exceeds maximum size restrictions of [whatever specified in settings] high and [whatever specified in settings] wide.  Your height was:  1341 Your width was: 900"

I plan to also add a link to a free online image resizer underneath the error message as well.  I guess what I need to know is...
1 - What file contains the error message that I wish to edit?
2 - How do I reference the specified maximum settings to include in my revised error message?

Thanks for any help!

Nevermind.  Got it edited to do what I wanted.  Thanks for the great Gallery vbgamer45.

4fit?

#1625
On second thought, I would like to use the createThumbnail function to automatically resize the image is it falls outside of the maximum dimensions.  I figured that I would go about doing this:

Replace

elseif ((!empty($modSettings['gallery_max_width']) && $sizes[0] > $modSettings['gallery_max_width']) || (!empty($modSettings['gallery_max_height']) && $sizes[1] > $modSettings['gallery_max_height']))
{
//Delete the temp file
@unlink($_FILES['picture']['tmp_name']);
fatal_error($txt['gallery_error_img_size_height'] . $sizes[1] . $txt['gallery_error_img_size_width'] . $sizes[0],false);
}


With

elseif ((!empty($modSettings['gallery_max_width']) && $sizes[0] > $modSettings['gallery_max_width']) || (!empty($modSettings['gallery_max_height']) && $sizes[1] > $modSettings['gallery_max_height']))
{
require_once($sourcedir . '/Subs-Graphics.php');

createThumbnail($_FILES['picture']['tmp_name'], $modSettings['gallery_max_width'], $modSettings['gallery_max_height']);
rename($modSettings['gallery_path'] . $filename . '_thumb',  $_FILES['picture']['tmp_name']);
}


I also made a similar adjustment around line 779.  However, this is not working.  I will be the first to admit that I know practically nothing about PHP and it's workings.  Any guidance you could provide would be extremely appreciated!

MaXiForum.cz

A very nice mod!
THX!

CZ translation HERE  ;)

learjet45

Just a quick question.
What directory would I find the 'Search' and 'MyImages' buttons so I can get them to show with my custom theme, and what folder should I put them in under my directory for my custom theme? I tried extracting it the the ./images/english/ folder but they arent showing up/

vbgamer45

Those are not buttons but actually Tabs built into the SMF core.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

learjet45

Ah. Alright. Anyway to change it so it will show up on my theme? I'm using AA New Damage v2

Nibogo

Nice update but maybe you can add something like lightbox for view big pictures.

I know of this is a feature of smf gallery pro but maybe you can include that feature in smf gallert free ^^

lordtron

Is there a way to pull the last image's time per category?

VainSoftGames.com - New Design To Gaming


okc2

I added this mod in 1.1.5 am getting this error:
Quote8: Undefined index: image
File: /home/loganspr/public_html/Themes/default/languages/Gallery.english.php (main sub template - eval?)
Line: 788

Everything appears to be working OK, but getting a ton of these errors.

lordtron

How would I be able to pull 4 galleries per row?

VainSoftGames.com - New Design To Gaming

TroyG

I keep get a errior in my logs, that I do not understand. Please help

The upload folder is full. Please try a smaller file and/or contact an administrator.


vbgamer45

That is not related to gallery but to attachments on your SMF forum.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

vbgamer45

SMF Gallery 2.0 for SMF 2.0beta 4 Released!
+Updated for SMF 2.0
+New paging functions and settings to set how many items appear on a page!
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

CG Icon

Thank You Sir!.. awesome update !

I just did a quick scan of your site.. I didnt see a pro update that runs on smf2

do you have plans in the near future to update the Pro Version for those of us who have purchased it ? or are going to wait till the official final SMF2 release?

thanks again  :)

Bancherd

#1639
Quote from: vbgamer45 on September 12, 2008, 12:51:21 AM
SMF Gallery 2.0 for SMF 2.0beta 4 Released!
+Updated for SMF 2.0
+New paging functions and settings to set how many items appear on a page!

Alright!  I will check this out right away! :)

Having some problems with adding comment and setting Permission directly from gallery's own configuration page.

Advertisement: