SMF Gallery

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

Previous topic - Next topic

aw06

kool thanks .... i see i needed to use 'smfgallery_menue' in stead of just 'gallery'

:D
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

DarkAngel612

Sorry, I did not see it is fixed. will leave this if it is alright so others may do this if they have problems too

have you access to the database to turn off eval?

you can do that to see what file is really causing the problem then turn it on once you get it to behave:

Run this query in phpMyAdmin .


INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);

Clear your error log, do what you did to get the error to begin with  and then copy and paste the errors here.



To turn the template eval back on run this query:


DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';


This will help the guys with your problem easier
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

vbgamer45

I wish that was enabled by default because it gets really confusing for people to think the error is in one place but in reality it is somewhere else.
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

DarkAngel612

it sure is so now when i ge an error message that has that eval at the end I use those instructions to prowl around...lol

it helps both the person having the error and the ones trying to help us.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

aw06

Is thier someway for people t quickly know that pics are added to the gallery ?
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

aw06

and also now prev and next button :-[
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Chas Large

Hi Vbgamer,

Thanks for a great mod, I have it installed on 1.1.8 and it's working fine.

Because we used the default settings of allowing photos 2500 x 2500 many members have uploaded huge photos. Some members however are complaining that they cannot see these images without a lot of scrolling cos they're too big for the screen.

I have looked at the code of gallery.php to see if I could add some kind of auto resize to window size function but cannot work it out.

At the same time I noticed the following checks

   //Check if Image Magik is installed
   $IM_Installed = false;//function_exists('NewMagickWand');

   //Check if GD is installed
   $GD_Installed = function_exists('imagecreate');

and am presuming that these are other mods that can resize the images, am I right? and if so can I install them from somewhere?

I know time is limited for you and appreciate it but If you could just point me to where I can mod the appropriate page to auto resize the images to a window then that would be great.

Cheers and thanks again for a great mod.

PS if this facility is in the Pro version then I must have missed it in the features list.

Chas.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

vbgamer45

The code above is for thumbnail generation but does not autoresize the image that is uploaded I was thinking about adding image magick support along with gd.

The pro version does have auto resize settings and options to generate a medium sized image in addition to the thumbnail image.

Demo can be found at
http://www.smfhacks.com/storedemo/index.php?action=gallery
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

Chas Large

Thank you for your quick response.

Chas
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Jarowit

#2129
Hi,

I am attempting to covert to SMf and SMF Gallery from Joomla & PhpBB.  I will not be converting any databases , i will just re-upload everything.  My new site is HERE.

I installed everything without a problem but later I could not figure out how to access the gallery.  After reading this ( and few other ) forums I found that you need to hand-code the new button in the theme itself if you are not using the default theme -  a little surprising but ok.

I tried all the instructions about where to paste what code ( there is few different instructions on a couple of different forums around the net ) but none of them worked.  I always get a template error afterward and have to FTP the original file back onto the server.

I'am using :
SMF Version : SMF 2.0 RC1
MOD : SimplePortal 2.2.1
Gallery : SMF Gallery Lite 2.0.5
Theme : DeviantSMF

Can anyone help me with getting the menu button for the gallery to show ?

PS : The instructions from SMF download page do not seem to help.

PS2 : I switched back to the core theme and it is all showing, so it was the problem with template.  I will search around for a template that will work ( unless someone can help me make this one work ).



Jarowit


Looks like the only theme I likes is not a 2.0+ theme, I am guessing that is the problem. 

vbgamer45

Attach your index.template.php and I can fix it.
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

TomW

This is a great mod; I like the way that it uploads images and creates thumbnails automatically.  A problem that I'm seeing on my forum is that there is a different image upload for the posts than what is used with your mod.  Do you have a similar mod for uploading pics to posts ?

mathmission

#2133
Love the mod, used it before, but I have a tendency to pick themes that don't usually match up. Need to add the button:

// Show the top navigation buttons. Do not put code breaks in between list items or you will have whitespace between each image.
   echo '
            <a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" border="0" />' : $txt[103]), '</a>', '<a href="', $scripturl, '?action=help">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" border="0" />' : $txt[119]), '</a>' ;if ($context['allow_search'])echo '<a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" border="0" />' : $txt[182]), '</a>' ;if ($context['allow_admin'])echo '<a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" border="0" />' : $txt[2]), '</a>' ;if ($context['allow_edit_profile'])echo '<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" border="0" />' : $txt[467]), '</a>' ;if ($context['allow_calendar'])echo '<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" border="0" />' : $txt['calendar24']), '</a>' ;if ($context['user']['is_guest']){echo '<a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" border="0" />' : $txt[34]), '</a>',  '<a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" border="0" />' : $txt[97]), '</a>';}else echo '<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" border="0" />' : $txt[108]), '</a>';



somewhere in there....

*added

Sorry, 1.1.8, using the Classic Red theme

vbgamer45

Jeez that is awful menu code above
Change to

   echo '
            <a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" border="0" />' : $txt[103]), '</a>', '<a href="', $scripturl, '?action=help">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" border="0" />' : $txt[119]), '</a>' ;if ($context['allow_search'])echo '<a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" border="0" />' : $txt[182]), '</a>' ;if ($context['allow_admin'])echo '<a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" border="0" />' : $txt[2]), '</a>' ;if ($context['allow_edit_profile'])echo '<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" border="0" />' : $txt[467]), '</a>' ;if ($context['allow_calendar'])echo '<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" border="0" />' : $txt['calendar24']), '</a>' ;


if ($context['allow_smfgallery_view'])
echo '<a href="', $scripturl, '?action=gallery">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . 'Gallery' . '" border="0" />' : 'Gallery'), '</a>' ;

if ($context['user']['is_guest']){echo '<a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" border="0" />' : $txt[34]), '</a>',  '<a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" border="0" />' : $txt[97]), '</a>';}else echo '<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" border="0" />' : $txt[108]), '</a>';
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

njdevils28

Hi,

Can anyone help please.

Getting this error when trying to upload a picture......

Parse error: syntax error, unexpected T_ELSE in /home/content/c/i/t/cityofgamers/html/smf/Sources/Subs-Graphics.php on line 227

Thanks in advance.



vbgamer45

Please attach your subs-graphics.php file. so we can take a look.
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

njdevils28

#2137
Quote from: vbgamer45 on May 22, 2009, 08:14:02 PM
Please attach your subs-graphics.php file. so we can take a look.

Hiya vbgamer45,

Here it is.

vbgamer45

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

njdevils28


Advertisement: