News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF Gallery

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

Previous topic - Next topic

vbgamer45

Quote from: merosler on May 08, 2007, 09:43:18 PM
Is there a way to integrate the "keywords" I associate in the pictures I upload in the gallery with my "Tags" page for the whole site?

...My tags page displays all the tags associated with just the message board posts.. it would be great to also integrate the photo gallery key words into this "tags" page

thanks,!
matt

Currently that is something I could look into intergrating with the Tag Mod.
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

hotrod

#661
Quote from: dyota on April 22, 2007, 10:36:25 PM
Could we make 5 thumbnail of newest pics that appear in the certain of forum. Sample attached

Yes please.. or 10 thumb's ? Or is this posible already ?
regards Hotrod  ;)
Check: http://www.hotrodpage.nl              and       http://www.coverplaza.nl

vbgamer45

I have a mod for that for in the Pro edition.
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

hein

hi there, great mod ;)
thanks a lot for your work

just one question..
how can i integrate gallery to the linktree?
i mean that when i enter the gallery i see the linktree with the gallery on it...
i currently manage to get the linktree on the gallery page... but it only shows this (site name > forum)... i want it to look like (site name > forum > gallery) and hopelly when i move to other section of the gallery, for example a galery category, the link tree show more detailed information (site name > forum > gallery > category ) etc..
in a few words.. fully integrate the linktree to the smf gallery...

hope it can be done, and it isnt very complicated..

greetings.

pd: sry for my english..

watt

thank you for cool mod

dyota

QuoteI have a mod for that for in the Pro edition.

If you dont mind may i have this mod?

AeroFennec

Is there a way to have different permissions for each gallery? I want some gallerys to be viewed by everyone, but others only by users in a certain group. I can't find any way to do this, is there an option for this in the pro version? I'd buy it if there is, but I need that feature to use it at all.

vbgamer45

Category level permission by membergroups is in 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

joejackson

#668
Joomla 1.0.12
SMF 1.1.2
SMF bridge 1.1.7

Babylon Theme

Trying to install Gallery 1.7.1

I receive this error

"Some of the files the package manager needs to modify are not writable. "

My question is therefore, what files would these be?
I can make writable very easily if I know which ones are required.

I don't mind installing manually if given instructions.
I have already tried running the galleryinstall.php file from a browser which produces a blank white page.

Please advise.

TrueSatan

Rather than making files writable piecemeal you'd be better off using the SMF system that's built into your forum:

ACP>Packages>Options>Installation Options

...and fill in your ftp data then use Cleanup Permissions on that page and make all files writable...you would also do well to check via your ftp client that the CHMOD permissions really have changed to either 775 or 777...this should be done prior to installing any mod...after installation you can use the same system to lower the permissions on your files if you so wish.

joejackson

I've tried the CP>Packages>Options route with no success.

Also, I use sftp rather than ftp so using the package manager ftp route is not viable.

joejackson

Is there an installation guide for this gallery mod instead of using the package manager which isn't working for me?

TrueSatan

There is no real need of an installation guide as such...use the Package Parser by Daniel15 on any mod at all and it will output pretty much what you require.

http://server.daniel15.com/smf/package.php

joejackson

#673
I've visited Daniels Package Parser, uploaded the Gallery zip file, here's what I get...

-----
PHP script to execute: galleryinstall.php
-----

As mentioned previously, I have tried this from a browser, got a blank page as a result, and no files or folders were created in the installation location.



TrueSatan

I just went to it, uploaded the mod zip file and it worked as it should...there seems to be something odd with regard to your machine/configuration

Quote
General Package Information
This is general information about the package, such as the package ID and name.
Package ID: vbgamer45:smfgallery
Package name: SMF Gallery Lite
Package version: 1.7.1
Package type: modification

Installation instructions for SMF versions: 1.1.2,1.1.1,1.1, 1.1 RC3, 1.1 RC2
Readme:
*******************************
SMF Gallery Lite Edition
By: vbgamer45
http://www.smfhacks.com
*******************************

Mod Information:
For SMF 1.1.2 and 1.0.10

Install Information:
Upload to your packages directory of your SMF folder
Goto your package manager and apply the mod.
Then afterwords make the gallery directory writable.


An in depth gallery for SMF.
Features:
Categories
Comment System
Picture Approval
Reporting of Picture.
Permissions for adding/editing/approving/deleting and more
And much more...


############################################
License Information:
SMF Gallery is NOT free software.
This software may not be redistributed.

Links to http://www.smfhacks.com must remain unless
branding free option is purchased.
#############################################

Other mods can be found at
SMFHacks.com
Include:
SMF Staff Mod
SMF Links
SMF Trader System
SMF Archive
Profile Comments



PHP script to execute: galleryinstall.php
Files installed

    * Gallery.php will be copied to $sourcedir
    * Gallery.template.php will be copied to $themedir
    * Gallery.english.php will be copied to $themedir/languages
    * Gallery.english-utf8.php will be copied to $themedir/languages

Directories installed

    * gallery will be copied to $boarddir

Modifications to SMF files
In file $languagedir/Modifications.english.php
Find:


?>



Add before:


//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         





In file $languagedir/Who.english.php
Find:


?>



Add before:


//Begin SMF Gallery
$txt['whoall_gallery'] = 'In the <a href="' . $scripturl . '?action=gallery">Gallery</a>';
//END SMF Gallery Strings         





In file $boarddir/index.php
Find:


      'help' => array('Help.php', 'ShowHelp'),



Add after:

      'gallery' => array('Gallery.php', 'GalleryMain'),




In file $themedir/index.template.php
Find:

$current_action = 'admin';
   if (in_array($context['current_action'], array(



Add after:

'gallery',




Find:

// the [member] list button
   if ($context['allow_memberlist'])
      echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
            </td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';




Add after:


   // the [SMF Gallery] button
   if ($context['allow_smfgallery_view'])
      echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']&nbsp; , '</a>
            </td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';





In file $sourcedir/Subs.php
Find:

'edit_settings' => '<a href="' . $scripturl . '?action=serversettings;sesc=' . $sc . '">' . $txt[222] . '</a>',



Add after:


   'gallery_settings' => '<a href="' . $scripturl . '?action=gallery;sa=adminset;sesc=' . $sc . '">' . $txt['smfgallery_admin'] . '</a>',





Find:

$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);



Add after:


      $context['allow_smfgallery_view'] = allowedTo('smfgallery_view');




In file $sourcedir/ManagePermissions.php
Find:

'pm' => array(
            'pm_read' => false,
            'pm_send' => false,
         ),



Add after:


'smfgallery' => array(
            'smfgallery_view' => false,
            'smfgallery_add' => false,
            'smfgallery_edit' => false,
            'smfgallery_delete' => false,
            'smfgallery_comment' => false,
            'smfgallery_report' => false,
            'smfgallery_autoapprove' => false,
            'smfgallery_manage' => false,
         ),





joejackson

Hi TrueSatan

I was also presented with all the information you have pasted above from the Package Parser, but the only relevant part for me was the line I mentioned in my previous post.

------
PHP script to execute: galleryinstall.php
------

This script is not executing from the SMF package manager and unzipping the Gallery package and running galleryinstall.php manually produces nothing.

No files or directories are added.

So, from Daniels Package Parser everything after the line about galleryinstall.php is not relevant to me.

TrueSatan

OK I understand what you are askiing now...the galleryinstall.php file isn't supposed to create files or directories, rather it is a file that alters your database...it adds the necessary parts (tables and settings) to the database for the mod to run and that's all it does. The package parser tells you what files to edit and what edits to make it doesn't list the database changes. After running the galleryinstall.php file a blank screen wouldn't be a surprise...the thing to check (via phpMyadmin) is if the tables and settings for the gallery were added to your database by said file...if they were it did its job.

Your original query asked about some files not being writable...this was what I was still trying to help you get around. You still need to edit files as per the package parser details if the edits failed to be made by the package installer...at the very least check each file to see that the edits were made.

joejackson

ahaaaaaa, ok, I've looked at the galleryinstall.php file again to see what tables it should create

gallery_pic
gallery_comment
gallery_cat
gallery_report

None of these have been added to the database

TrueSatan

I don't know your level of experience but what I'd do is to create the tables according to what is in that file but do it via phpMyadmin...it's not that difficult a task but you should certainly take a backup of your database before doing it (or anything else.) Unless you are both confident and experienced opt to work on a fresh test forum running on a different database from your main one and try the work on that. Id probably also choose to restore the database backup of your live forum onto a new database and again do the work on that...all this just makes sure that when/if you do go ahead with the work on your main database you a) have a backup b) have all issues resolved and know exactly what to do.

joejackson

Thanks for all your help satan, and I can manually create database tables and make backups easily enough, but my gut feeling is that this mod is not going to prove suitable for me.

My intention was to try it out before buying the Pro version, but when an installation takes as long as this and it is not succesful via the standard smf package manager method, it makes me think twice about going any further.

However, I'll double check the working of the smf package manager and if that works correctly with a different mod I'll sideline the Gallery. If however I find the smf package manager to be at fault I will persevere a little more with Gallery.

Advertisement: