TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 03, 2024, 07:01:20 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,178
  • Total Topics: 21,220
  • Online today: 106
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online

Image gallery in Tiny Portal

Started by verbotten, May 25, 2007, 12:38:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

falguni1

I have a doubt If one person is using smf gallery and has loads of images and data in it

then after 3 or 4 years TP gallery is available
and one wishes to use tp gallery instead of smf gallery
the will it be possible to import data from smf gallery to tp gallery

Ken.

#21
Quote from: Lotti on October 01, 2007, 09:39:02 AM
how to put togheter coppermine and smf and tinyportal? thanks


Lotti you should start a new topic for your question.
A search will show you many posts on how to pull cpg into your forum.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

FataMorgana

All reading about the fine SMF module Gallery 1.8.1.1.
Understand the "smooth" install module made for TP will take some time.
So I have tried just implement the SMF Module and change some code in the index.template.php and upload the Juno-button (the TP skin I use!).
But something seems wrong: the button will not appear.

Knowing it works all fine in the SMF Default Skin... What can be the problem the button does not appear in Juno?

All together:
My forum works fine with SMF 1.1.4, TP 0.9.8, Juno TP Skin.
The SMF Mod Gallery 1.8.1.1 has been installed and the gallery links works fine.
In Default Skin everything is fine.
Just missing the Gallery-button in Juno.
I have uploaded the gallery.jpg on the right place.

Nokonium

Mods are only installed into the default theme, so unless you have a theme with SMF Gallery support, support for some mods is built ito some of Bloc's themes, you will need to add the code yourself.

FataMorgana

Quote from: nokonium on November 20, 2007, 01:08:47 PM
Mods are only installed into the default theme, so unless you have a theme with SMF Gallery support, support for some mods is built ito some of Bloc's themes, you will need to add the code yourself.

Exactly! So like I said before I have added some code:
Quote
// How about the [gallery] button?
        if ($context['allow_gallery'])
                echo '
                                <a href="', $scripturl, '?action=gallery">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/images/gallery.jpg" alt="' . $txt[182] . '" style="margin: 0px 0;" border="0" />' : $txt[182]), '</a>', $context['menu_separator'];

Placed under the How about the [search] button area.
This I've found in some other topic, related to this problem.
But it does not work...

IchBin

Are you sure $context['allow_gallery'] is defined? Remove the if statement for it and see if it works.

FataMorgana

Quote from: IchBinâ,,¢ on November 20, 2007, 01:28:09 PM
Are you sure $context['allow_gallery'] is defined? Remove the if statement for it and see if it works.
Bingo!!! :)  It works!
IchBin, YouAre the Best! ;)