• Welcome to Simple Machines Community Forum. Please login or sign up.
September 24, 2021, 08:43:17 AM

News:

Wondering if this will always be free?  See why free is better.


SMF Gallery

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

Previous topic - Next topic

dash

Hi,
I've a problem to install the gallery (see attachment).
Can anybody help me?

indigotwilight

It's me again! sorry to keep 'bugging' you with all these questions about coding, but I've an idea for gallery that I'd like to ask you...

First of all, if I wanted to adapt the gallery to upload and store other files such as PDF's and word documents, how would I do it? Can the gallery display thumbnails of the first page of a pdf?

Secondly, noting there is demand for a working music download mod, could I try and use the gallery template system to build such a thing? Maybe allowing the upload of media files such as mp3, .wav? I'd like to give unsigned bands the opportunity to show off their talent in one of my forums, and this seems like a good way of doing it...

Twilight
I write what I dream - through my writing my dreams come true

vbgamer45

You could modify the mod to upload other files. Thumnails wouldn't work but maybe you could setup a system to use icons for other filetypes that are not images. Getting the first page of PDF would require some php extension to read the format and then somehow get a screenshot of it which would be hard to do.
Community Suite for SMF - Take your forum to the next level built for 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

Arnaldo

Hi all, I new to all this code stuff, and will need to learn it very soon.

I installed SMF Gallery and I'm able to upload pics and able to view thumbnails, but when i click on the thumbnail the full size image is not viewable

Is there a setting that I need to change somewhere?

any help would be great

vbgamer45

No image at all? Check your Gallery folder and see if the picture was uploaded.
Community Suite for SMF - Take your forum to the next level built for 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

Arnaldo

yea the pictures are there, i just get an empty image holder with a red x in it

Arnaldo

Quote from: vbgamer45 on November 29, 2006, 09:17:23 AM
No image at all? Check your Gallery folder and see if the picture was uploaded.
i even check the folder and it has 777 rights on it

what do you think can be wrong

should I uninstall and then reinsall?

Arnaldo

no worries, i unistalled and reinstalled - everything seems to be workig now

sorry for the bother

†MavN†

missing language string
Code (Gallery.template.php;  line 701) Select

echo $txt['gallery_text_postedby'] . ''  . $context['gallery_pic']['realName'] . ' at ' . $context['gallery_pic']['date'] . '

at

vbgamer45

Quote from: †MavN† on December 05, 2006, 05:08:05 PM
missing language string
Code (Gallery.template.php;  line 701) Select

echo $txt['gallery_text_postedby'] . ''  . $context['gallery_pic']['realName'] . ' at ' . $context['gallery_pic']['date'] . '

at
Fixed added txt string.
Community Suite for SMF - Take your forum to the next level built for 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

Released an update to a bug that was found.

Version 1.6.9
Fixed low quality thumbnails that were being generated. The thumbnails should now retain the color information that the image used.
Community Suite for SMF - Take your forum to the next level built for 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

Adamzon

Gallery "text" dont show up in Swedish

Tried to locate where it is, but i dont get it..

Menu button shows up in English, but dont show in swed, I got all the lang and theme files for swe ..


Help?

/adam

Adamzon

can i add the textbutton my self?
where ?

/Adam

vbgamer45

You need to copy the text strings from modificaitons.english.php to modifications.yourlanguage.php
Community Suite for SMF - Take your forum to the next level built for 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

jazz

Great mod!  This is very much appreciated.

Just one question.  Is there any way to make the images auto fit the screen when you click on the thumbnail to view?  Some of the pictures you need to scroll all over the place to see the whole thing.

hdhoran

Hi.....love the mod. I'm not new to SMF but don't play in the code often enough to know what I'm doing. I have been running the default theme on 1.1 final with Tiny Portal...I want to switch to the DilbertMC...

Would you mind showing me where in the index.template. php where to put the code and WHAT code to put?

Thanks in advance.  :)


index.template.php attached...

vbgamer45

File attached check the template_menu function for adding menu links.
Community Suite for SMF - Take your forum to the next level built for 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

hdhoran

December 19, 2006, 12:49:58 PM #277 Last Edit: December 19, 2006, 12:51:39 PM by hdhoran
Thank you....I looked at what you did and actually understand it...lol.

But it still didn't add the text button?? Is there something else I need to do?

vbgamer45

Check that the following is in your themes modifications.english.php file

//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Gallery For SMF';
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_version'] = '1.0 Lite';
$txt['smfgallery_admin'] = 'Gallery Configuration';

//Permissions
$txt['permissiongroup_smfgallery'] = 'SMF Gallery';

$txt['permissionname_smfgallery_view'] = 'View SMF Gallery';
$txt['permissionhelp_smfgallery_view'] = 'Allows the user to view the Gallery';
$txt['cannot_smfgallery_view'] = 'You are not allowed to view the Gallery';

$txt['permissionname_smfgallery_add'] = 'Add Picture';
$txt['permissionhelp_smfgallery_add'] = 'Allows the user to add a picture.';
$txt['cannot_smfgallery_add'] = 'You are not allowed to add a picture.';

$txt['permissionname_smfgallery_edit'] = 'Edit own Picture';
$txt['permissionhelp_smfgallery_edit'] = 'Allows the user to edit a picture.';
$txt['cannot_smfgallery_edit'] = 'You are not allowed to edit a picture.';

$txt['permissionname_smfgallery_delete'] = 'Delete own Picture';
$txt['permissionhelp_smfgallery_delete'] = 'Allows the user to delete a picture.';
$txt['cannot_smfgallery_delete'] = 'You are not allowed to delete a picture.';

$txt['permissionname_smfgallery_comment'] = 'Leave Comments';
$txt['permissionhelp_smfgallery_comment'] = 'Allows the user to leave comments on a picture.';
$txt['cannot_smfgallery_comment'] = 'You are not allowed to leave comments.';

$txt['permissionname_smfgallery_report'] = 'Report Pictures/Comments';
$txt['permissionhelp_smfgallery_report'] = 'Allows the user to report pictures and comments.';
$txt['cannot_smfgallery_report'] = 'You are not allowed to report content.';

$txt['permissionname_smfgallery_autoapprove'] = 'Auto Approve Pictures';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Pictures do not need to wait for approval.';

$txt['permissionname_smfgallery_manage'] = 'Manage Gallery';
$txt['permissionhelp_smfgallery_manage'] = 'Allows the user to add/delete/edit all catagories. Delete Comments, Delete Pictures, Approve Pictures';
$txt['cannot_smfgallery_manage'] = 'You are not allowed to manage gallery.';

//END SMF Gallery Text Strings
Community Suite for SMF - Take your forum to the next level built for 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

jazz

Quote from: jazz on December 18, 2006, 01:06:42 PM
Great mod!  This is very much appreciated.

Just one question.  Is there any way to make the images auto fit the screen when you click on the thumbnail to view?  Some of the pictures you need to scroll all over the place to see the whole thing.

Anyone know the answer to this?

Advertisement: