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

Biology Forums

I would LOVE a related photo pod for this mod!

vbgamer45

Quote from: shuban on June 10, 2011, 12:35:35 PM
I would LOVE a related photo pod for this mod!
Sounds like a good idea like on the bottom of the view picture based on keywords,description,title, etc
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

Biology Forums

Quote from: vbgamer45 on June 10, 2011, 12:37:08 PM
Quote from: shuban on June 10, 2011, 12:35:35 PM
I would LOVE a related photo pod for this mod!
Sounds like a good idea like on the bottom of the view picture based on keywords,description,title, etc

Yes and also show a maximum of four thumbnails

timetraveller

I would like to be able to scroll through the large images rather than returning to the thumbnails every time.

balou

thanks for your kind help. In the SMFGallery3.0.4 folder I find Gallery.template is this the one? Second, between where do I paste this code ?  ???





Quote from: shuban on June 09, 2011, 10:35:46 PM
Quote from: balou on June 09, 2011, 06:04:11 AM
Very kind of you, but sorry for stupidity.. but in what file should this be past in?
and
If I may show what I´m meaning to achieve in my SMF forum!
Random or latest albumpictures on the forum home: http://www.italienforum.nu/ [nofollow]

thanks again!

Quote from: shuban on June 08, 2011, 08:30:22 PM
Here's the code to do this:

if ($context['gallery_pic']['description'] != '')

echo '


<b>' . $txt['gallery_form_description'] . ' </b>' . (parse_bbc($context['gallery_pic']['description'])  ). '';

else '';

echo '';


Enjoy :)

balou, in the gallery_template.php

Biology Forums

Find:

<td>
<b>' . $txt['gallery_form_description'] . ' </b>' . (parse_bbc($context['gallery_pic']['description'])  ). '
<hr />


Replace with:

<td>';


if ($context['gallery_pic']['description'] != '')

echo '


<b>' . $txt['gallery_form_description'] . ' </b>' . (parse_bbc($context['gallery_pic']['description'])  ). '<hr />';

else '';

echo '

balou

Hmm now I done it like that, but the pictures doesn´t appear, do I need to enable something?

thank you


Quote from: shuban on June 11, 2011, 02:02:49 PM
Find:

<td>
<b>' . $txt['gallery_form_description'] . ' </b>' . (parse_bbc($context['gallery_pic']['description'])  ). '
<hr />


Replace with:

<td>';


if ($context['gallery_pic']['description'] != '')

echo '


<b>' . $txt['gallery_form_description'] . ' </b>' . (parse_bbc($context['gallery_pic']['description'])  ). '<hr />';

else '';

echo '


Ascot

hi there. Awesome mod !!!
thanks a lot.

A little question. How can i make uploads track images from external urls instead it upload to my host?
Hope you can help me.
Thanks in advance~ :)

vbgamer45

Quote from: Lük· on June 11, 2011, 03:38:04 PM
hi there. Awesome mod !!!
thanks a lot.

A little question. How can i make uploads track images from external urls instead it upload to my host?
Hope you can help me.
Thanks in advance~ :)

External images are a little tricky. Do you want it to store any pictures at all on your host. I can either download it or download it and create thumbnail then delete the downloaded file but use downloaded file as thumbnail
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

Biology Forums

Quote from: balou on June 11, 2011, 03:36:49 PM
Hmm now I done it like that, but the pictures doesn´t appear, do I need to enable something?

It should work right away, without enabling anything else. It doesn't interact with the picture part of the code, so I don't see why it's doing that. Do you want my gallery.template.php? You will need Highslide installed, though.

Ascot

Quote from: vbgamer45 on June 11, 2011, 08:09:13 PM
Quote from: Lük· on June 11, 2011, 03:38:04 PM
hi there. Awesome mod !!!
thanks a lot.

A little question. How can i make uploads track images from external urls instead it upload to my host?
Hope you can help me.
Thanks in advance~ :)

External images are a little tricky. Do you want it to store any pictures at all on your host. I can either download it or download it and create thumbnail then delete the downloaded file but use downloaded file as thumbnail

hi!, thanks for your answer.
What i really want is to load picture from external URLs and disable image hosting for saving host storage.  (exactly as Avatars).Thumbnail could make automatically trhough css redimention.

Is that possible?
Regards~
Luke

vbgamer45

I would like to see an example with h css redimention or code how to do it haven't' done much css work.
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

Ascot

For resize images you can use property max-width / max-height.
If you only use max-width, height will decrease proportional to width and same case for max-height.
This is an example class. You can add it in default theme, index.css


.thumbnail {
max-width:100px;
max-height:150px;
}


Your html should look like this
<img class="thumbnail" src="imgUrl" >

vbgamer45

Awesome that is a cool tip to know will use that then.
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

balou

 :( I´ve installed Highslide now, but after that can´t find site, HTTP 500 error..   now I´m really lost  :-\

Quote from: shuban on June 11, 2011, 10:19:11 PM
Quote from: balou on June 11, 2011, 03:36:49 PM
Hmm now I done it like that, but the pictures doesn´t appear, do I need to enable something?

It should work right away, without enabling anything else. It doesn't interact with the picture part of the code, so I don't see why it's doing that. Do you want my gallery.template.php? You will need Highslide installed, though.

Biology Forums

Here is my gallery.template.php; replace yours with mine temporarily and tell me if it works.

Ascot

Quote from: vbgamer45 on June 12, 2011, 12:53:23 AM
Awesome that is a cool tip to know will use that then.
Cool, glad to help you.
Are you able to help me too please?

vbgamer45

Yeah hopefully will get some time soon remind me.
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

eric1234

The pictures that users upgrade into the forum with this SMF, all the space that the picture used will be in my host's disk usage?

vbgamer45

Yes pictures are currently stored on your server and if you upgrade smf versions all data is safe.
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

Advertisement: