News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF Gallery

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

Previous topic - Next topic

vbgamer45

Probably since the theme uses tabs it expects that there are image files for the buttons
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

wickedstangs


vbgamer45

To fix that you would need to create an image for each of the broken images. Or I can give some code to disable the tabs.
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

wickedstangs

I can create an image if you can show me where to place it..

vbgamer45

If you post your index.template.php of your theme I can fix the main gallery button easily.

For the broken images. Right click on them and get the image url and is the image you would need to create. Or I can give code for the Gallery.php to disable image links and use text based instead.

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

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

wickedstangs

wow very nice and fast than you vbgamer45 your my new hero:)

vbgamer45

I checked out your main site using vbbulletin.

You might want to add a portal to your new smf site such as EzPortal which I made.
And also look into smfgarage.com addon as well.
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

wickedstangs

sweet, looking for them now:) Oh ya vb awhile back I purchased the pro version of SMF gallery for my original site can that be transferred to this site? 

My main site is www.wickedstangs.com
I just started this new site www.modularfoxmustangs.com

vbgamer45

Yeah I can transfer it send me a pm at smfhacks.com so I know the account that has it.
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

Sentinel [AF]

It's working now mate, Taaa esé :bigup:

mrmiyagi

I am trying to make this mod show up in the top of a skin,


"Unzip or un-archive the Mod package, and look for a file ending with .mod or .xml. If you do not see a ".mod" file, then chances are the mod author is using the newer XML format - look for something like "modification.xml" or "modname.xml". "

I am finding it hard to see where the .mod file is to edit

vbgamer45

There is no .mod file only .xml

You can use the install instructions on the modsite to make manually install instructions
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

somebadguy711

This was most probably posted already, but I'll post it anyways, too lazy to surf 97 pages  :P

So anyways, I'm using smf 1.1.7, and whenever I upload a large image (as in width and height) while in the image view page, it comes in the way of the overall design structure and ruins the theme itself. (for example if your wrapper is set to 950px, and the image itself is 1000px+)

So here's a quick fix I came up with.

  • Resizes all images which width is bigger than 500px to 500px
  • Ignores all images which width is equal or below 500px
  • Links resized images to the original ones

Open Gallery.template.php
Find:

<td align="center"><img height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="" /></td>


Replace with:

<td align="center"><a href="'. $modSettings['gallery_url'] . $context['gallery_pic']['filename'] .'" target="_blank"><img '; if($context['gallery_pic']['width'] >= "500") echo 'width="500"'; else echo ''; echo 'src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="" /></a></td>


You can alter the '500px' restriction by editing the following:

if($context['gallery_pic']['width'] >= "500") echo 'width="500"';

Once again, I'm new to this stuff so sry if the code is a bit mixed up or if this has already been posted somewhere  :)

vbgamer45

Nice work
What you could do to make simpler is

<td align="center"><a href="'. $modSettings['gallery_url'] . $context['gallery_pic']['filename'] .'" target="_blank"><img ', ($context['gallery_pic']['width'] >= 500)  ? 'width="500' : ''), 'src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="" /></a></td>


The ? operator basicly replaces the if else condition system.

expression ? true : false

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

jayc7176

If it is possible! Please Please add -- Mass Upload.

Thnx for the Awesome mod.
I cannot teach anybody anything, I can only make them think -  Socrates™ 469 BC

SMF- 1.1.5

willerby

hello again vbgamer...

Been trying out this mod on 2.0 b4 and everything great except WYSIWYG editor appears when posting  comments for each image but none of the functions work?  Is this correct as comments shouldn't really be formatted anyway? If so, how can I rid that template of the editor without affecting the main forum using it?

Thanks
What type of washing machine is September?

An autumnatic. :)

LinK187

#1938
Quote from: jayc7176 on January 06, 2009, 11:50:29 PM
If it is possible! Please Please add -- Mass Upload.

Thnx for the Awesome mod.

This feature exists.

Nvm, I was thinking of SMG :P

vbgamer45

Quote from: willerby on January 19, 2009, 09:07:55 AM
hello again vbgamer...

Been trying out this mod on 2.0 b4 and everything great except WYSIWYG editor appears when posting  comments for each image but none of the functions work?  Is this correct as comments shouldn't really be formatted anyway? If so, how can I rid that template of the editor without affecting the main forum using it?

Thanks
The template editor should work. Will check it out.
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

Advertisement: