Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
July 25, 2014, 01:14:38 pm

Login with username, password and session length
Members
Total Members: 11296
Latest: pepesoto
Stats
Total Posts: 35183
Total Topics: 5891
Online Today: 87
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 74
Total: 75
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: "Add picture" button on the index page  (Read 4760 times)
maxipes
Full Member
***
Offline Offline

Posts: 148


View Profile WWW
« on: February 14, 2010, 06:12:09 am »

Hello,
what can I do to add an "Add picture" button on the index page of the Gallery?

Thank you!
Logged
maxipes
Full Member
***
Offline Offline

Posts: 148


View Profile WWW
« Reply #1 on: February 14, 2010, 09:08:40 am »

SMFHacks could help me?
I really miss this option in the Gallery :-)
Thanks
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 12014


View Profile
« Reply #2 on: February 14, 2010, 09:36:29 am »

What SMF version?
Logged
maxipes
Full Member
***
Offline Offline

Posts: 148


View Profile WWW
« Reply #3 on: February 14, 2010, 12:00:18 pm »

The lastest - 2.5.7.4 SMF 2.0 RC2 Smiley
Thanks
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 12014


View Profile
« Reply #4 on: February 14, 2010, 09:19:36 pm »

   $g_add = allowedTo('smfgallery_add');
   $g_gallery = allowedTo('smfgallery_usergallery');


Open Sources/Subs-Gallery2.php
Find
Code:
// MyGallery
if (!$context['user']['is_guest'] && $g_gallery)
$context['gallery']['buttons']['mygallery'] =  array(
'text' => 'gallery_text_mygallery2',
'url' => $scripturl . '?action=gallery;su=user;u=' . $context['user']['id'],
'lang' => true,
);

Add Before
Code:
$context['gallery']['buttons']['addpicture'] =  array(
'text' => 'gallery_form_addpicture',
'url' => $scripturl . '?action=gallery;;sa=add',
'lang' => true,
);
Logged
maxipes
Full Member
***
Offline Offline

Posts: 148


View Profile WWW
« Reply #5 on: February 15, 2010, 01:35:21 am »

Thank You man!
It works! Smiley
Logged
jarska
SMF Gallery Pro Customer
Jr. Member
*****
Offline Offline

Posts: 64


View Profile
« Reply #6 on: February 23, 2010, 08:43:16 am »

Hello,

how i can do the same thing to SMF version 1.1.11 ?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 12014


View Profile
« Reply #7 on: February 23, 2010, 10:42:38 pm »

Open
Sources/Gallery.php
Find
Code:
// Show My Gallery Button
if (!$context['user']['is_guest'] && $g_gallery)
$context['gallery']['buttons']['mygallery'] =  array(
'text' => 'gallery_text_mygallery2',
'url' => $scripturl . '?action=gallery;su=user;u=' . $ID_MEMBER,
'lang' => true,
'image' => 'GalleryMyGallery.gif',

);
Add Before
Code:
$context['gallery']['buttons']['addpicture'] =  array(
'text' => 'gallery_form_addpicture',
'url' => $scripturl . '?action=gallery;sa=add',
'lang' => true,
);
Logged
jarska
SMF Gallery Pro Customer
Jr. Member
*****
Offline Offline

Posts: 64


View Profile
« Reply #8 on: February 23, 2010, 11:58:37 pm »

Thank you very much!
« Last Edit: February 24, 2010, 01:22:45 pm by jarska » Logged
jarska
SMF Gallery Pro Customer
Jr. Member
*****
Offline Offline

Posts: 64


View Profile
« Reply #9 on: February 24, 2010, 01:20:49 pm »

I just install video addons on my gallery pro.

How do i make same thing  for "add video" button in SMF version 1.1.11 ?

Thank You!
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 12014


View Profile
« Reply #10 on: February 24, 2010, 01:58:35 pm »

Same thing almost just add before
Code:
$context['gallery']['buttons']['addvideo'] =  array(
'text' => 'gallery_form_addvideo',
'url' => $scripturl . '?action=gallery;sa=addvideo',
'lang' => true,
);
Logged
jarska
SMF Gallery Pro Customer
Jr. Member
*****
Offline Offline

Posts: 64


View Profile
« Reply #11 on: February 25, 2010, 12:10:43 am »

It works, thank`s again.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 12014


View Profile
« Reply #12 on: May 28, 2011, 09:32:37 am »

Added in 3.0.21
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[July 24, 2014, 03:15:32 pm]

[July 24, 2014, 01:07:19 pm]

[July 23, 2014, 07:52:40 am]

[July 22, 2014, 09:55:50 pm]

by donk
[July 22, 2014, 12:25:04 am]

[July 20, 2014, 11:37:03 pm]

[July 20, 2014, 09:12:32 pm]

[July 19, 2014, 12:11:49 pm]

[July 18, 2014, 09:41:27 am]

by MKJ
[July 17, 2014, 09:21:58 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.19 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.279 seconds with 19 queries.