SMF Gallery

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

Previous topic - Next topic

MYBESTHOMESnet

#820
thanks for your help vbgamer45:

nice tool but my problem now is my theme/language folder has only "settings.english" file, no "Modifications.english.php" which i need to modify. No other files found.

thanks again.

~Unkn0wn~

#821
Works on 1.1.3?
Works on custom themes?

TrueSatan

@ MYBESTHOMESnet

As is the case with all custom themes if they don't have their own version of a particular file they will use the file of the same name in the SMF Default theme.

If you want to make a particular change to Modifications.english.php for that theme then copy the one from the SMF Default theme to the custom theme's language directory and edit as required.

@ assasnklla

Yes, yes with manual installation.

MYBESTHOMESnet

Quote from: TrueSatan on July 23, 2007, 04:16:37 AM
@ MYBESTHOMESnet

As is the case with all custom themes if they don't have their own version of a particular file they will use the file of the same name in the SMF Default theme.

If you want to make a particular change to Modifications.english.php for that theme then copy the one from the SMF Default theme to the custom theme's language directory and edit as required.

@ assasnklla

Yes, yes with manual installation.

thanks truesatan. i will try this one.

~Unkn0wn~

Quote from: TrueSatan on July 23, 2007, 04:16:37 AM
@ MYBESTHOMESnet

As is the case with all custom themes if they don't have their own version of a particular file they will use the file of the same name in the SMF Default theme.

If you want to make a particular change to Modifications.english.php for that theme then copy the one from the SMF Default theme to the custom theme's language directory and edit as required.

@ assasnklla

Yes, yes with manual installation.

TY, if you tell me how i reallyt manually install it would be good, example first install then edit this in this etc

TrueSatan

#825
You need to first read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

...then use the following which will give you the list of actions to take that you mention:

http://modparser.dev.dansoftaustralia.net/

sonst-was

Hi,

nice Mod, really. But i have a little problem with the button.

I installed the mod with the Package Parser, the system is also working, only the [SMF Gallery] button doesnt appear in the menu (although it is in the code)...

Is there a way to make the button visible?
MfG sonst-was,

"Heute ist nicht das Ende aller Tage, denn Sataan macht Urlaub..."

TrueSatan

@ sonst-was

It sounds as though you've missed one of the edits to index.template.php

Look for:

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


...and, immediately following, add to it:

'gallery',

sonst-was

That cant be the problem, because the "gallery" is already there...

$current_action = 'admin';
if (in_array($context['current_action'], array('gallery', 'search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))


I controlled the edits several times... but ive never found something forgotten... ???
MfG sonst-was,

"Heute ist nicht das Ende aller Tage, denn Sataan macht Urlaub..."

TrueSatan

 If the edits are properly in place in index.template.php and it is being called properly (in other words the right file is being used) then it ought to display the button...even if the rest of the mod weren't working the button would still be displayed (in the event of the rest of the mod not working the button would still be there but clicking on it would not work.)

If you are sure that you are using the theme you have edited then I would have to say that the rest of the theme, and perhaps other files in your forum, were not working as they should.

You might first try replacing the theme's files and re-editing them to put in the mods you wish to use but if this is not sufficient to solve your problem you would then need to replace all the files from the SMF installation package (including those in directories) save for Settings.php and Settings_bak.php in the forum root with fresh copies from the SMF installation package and reapply all your mods, edits and themes.

This would not affect the stored records in your database.

vbgamer45

Released SMF Gallery 1.8
+Added guest add picture support. Guests can now be allowed to add pictures to gallery if they have the add picture permission.
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

Bulakbol

ShouldI uninstall version 1.7.4 first before installing 1.8 version? 

Thanks.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

TrueSatan

@ JohnyB

Yes. You won't lose any images, comments etc so it is safe to do.

ozoknar

i just install 1.8 version but i can't see on admin panel?
what is the problem?

smf 1.1.3

turkish
SMF 1.1.3

default tema

Modlarım;
SMF 1.0.11 / 1.1.3 Update    1.1
YouTube BBC Tag (XHTML Compliant)    1.0       SMF Gallery Lite    1.8

sonst-was

#834
Quote from: TrueSatan on July 27, 2007, 12:25:20 PM
If the edits are properly in place in index.template.php and it is being called properly (in other words the right file is being used) then it ought to display the button...even if the rest of the mod weren't working the button would still be displayed (in the event of the rest of the mod not working the button would still be there but clicking on it would not work.)

Okay, ive found one problem... Now the link is shown, but not the image gallery.gif (ive copied it also in the german image-folder).

I also cant find any <img>-Tag in the code, where button should be included. I think thats the reason why i was only seeing a text-link an not a linked button/image:

// 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']  , '</a>
</td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


If im right, i have to use this code:

// 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"> <img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . $txt['smfgallery_menu'] . '" style="margin: 2px 0;" border="0" /></a>
</td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


With these code i the the button/image and also click on it...

Edit:
ozoknar: I think you have to add the texts you added into Modifications.english.php also into the Modifications.turkish.php (you can translate it if you want to).
MfG sonst-was,

"Heute ist nicht das Ende aller Tage, denn Sataan macht Urlaub..."

ozoknar

QuoteEdit:
ozoknar: I think you have to add the texts you added into Modifications.english.php also into the Modifications.turkish.php (you can translate it if you want to).

i just want to  see the gallery menu at side panel
thanks
SMF 1.1.3

default tema

Modlarım;
SMF 1.0.11 / 1.1.3 Update    1.1
YouTube BBC Tag (XHTML Compliant)    1.0       SMF Gallery Lite    1.8

sonst-was

Quote from: ozoknar on July 28, 2007, 08:01:54 AM
i just want to  see the gallery menu at side panel
thanks

Yes, but the text for the menu is in english. and if you added the texts only in the Modifications.english.php you can also see the menu if your language is english (you can choose it in your profile)...
If you want to see the menu also in turkuish, you have to add the same texts (or the turkish translation) into the Modifcations.turkish.php.
MfG sonst-was,

"Heute ist nicht das Ende aller Tage, denn Sataan macht Urlaub..."

ozoknar

Quote
Yes, but the text for the menu is in english. and if you added the texts only in the Modifications.english.php you can also see the menu if your language is english (you can choose it in your profile)...
If you want to see the menu also in turkuish, you have to add the same texts (or the turkish translation) into the Modifcations.turkish.php.

ok.

i copied the "Modifications.english.php" to "Modifications.turkish-utf8.php"

thanks...
now ican see and modify my settings in English no prob.
thanks
SMF 1.1.3

default tema

Modlarım;
SMF 1.0.11 / 1.1.3 Update    1.1
YouTube BBC Tag (XHTML Compliant)    1.0       SMF Gallery Lite    1.8

Bulakbol

Quote from: TrueSatan on July 28, 2007, 04:31:26 AM
@ JohnyB

Yes. You won't lose any images, comments etc so it is safe to do.

That's good.  I'll uninstall the old one first then install this new one. Thanks TrueSatan.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

TrueSatan

@ sonst-was

Thanks for helping ozoknar

The code in this mod should work properly without the alteration you suggest...remember this is a very popular mod so it is well tried and tested.

I still suspect that you have some part of this mod missing from your forum...please recheck all edits and all extra files to see that everything is in place.

@ JohnyB

My pleasure...

Advertisement: