Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11197
Latest: smhbns01
New This Month: 20
New This Week: 1
New Today: 1
Stats
Total Posts: 35207
Total Topics: 6221
Most Online Today: 64
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 47
Total: 48

Author Topic: "Add picture" button on the index page  (Read 5084 times)

0 Members and 1 Guest are viewing this topic.

Offline maxipes

  • Full Member
  • ***
  • Posts: 148
    • View Profile
    • MaxiFórum
"Add picture" button on the index page
« 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!

Offline maxipes

  • Full Member
  • ***
  • Posts: 148
    • View Profile
    • MaxiFórum
Re: "Add picture" button on the index page
« Reply #1 on: February 14, 2010, 09:08:40 am »
SMFHacks could help me?
I really miss this option in the Gallery :-)
Thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12944
    • View Profile
Re: "Add picture" button on the index page
« Reply #2 on: February 14, 2010, 09:36:29 am »
What SMF version?
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline maxipes

  • Full Member
  • ***
  • Posts: 148
    • View Profile
    • MaxiFórum
Re: "Add picture" button on the index page
« Reply #3 on: February 14, 2010, 12:00:18 pm »
The lastest - 2.5.7.4 SMF 2.0 RC2 :)
Thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12944
    • View Profile
Re: "Add picture" button on the index page
« 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: [Select]
// 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: [Select]
$context['gallery']['buttons']['addpicture'] =  array(
'text' => 'gallery_form_addpicture',
'url' => $scripturl . '?action=gallery;;sa=add',
'lang' => true,
);
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline maxipes

  • Full Member
  • ***
  • Posts: 148
    • View Profile
    • MaxiFórum
Re: "Add picture" button on the index page
« Reply #5 on: February 15, 2010, 01:35:21 am »
Thank You man!
It works! :)

Offline jarska

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 68
    • View Profile
Re: "Add picture" button on the index page
« Reply #6 on: February 23, 2010, 08:43:16 am »
Hello,

how i can do the same thing to SMF version 1.1.11 ?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12944
    • View Profile
Re: "Add picture" button on the index page
« Reply #7 on: February 23, 2010, 10:42:38 pm »
Open
Sources/Gallery.php
Find
Code: [Select]
// 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: [Select]
$context['gallery']['buttons']['addpicture'] =  array(
'text' => 'gallery_form_addpicture',
'url' => $scripturl . '?action=gallery;sa=add',
'lang' => true,
);
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline jarska

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 68
    • View Profile
Re: "Add picture" button on the index page
« 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 »

Offline jarska

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 68
    • View Profile
Re: "Add picture" button on the index page
« 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!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12944
    • View Profile
Re: "Add picture" button on the index page
« Reply #10 on: February 24, 2010, 01:58:35 pm »
Same thing almost just add before
Code: [Select]
$context['gallery']['buttons']['addvideo'] =  array(
'text' => 'gallery_form_addvideo',
'url' => $scripturl . '?action=gallery;sa=addvideo',
'lang' => true,
);
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline jarska

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 68
    • View Profile
Re: "Add picture" button on the index page
« Reply #11 on: February 25, 2010, 12:10:43 am »
It works, thank`s again.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12944
    • View Profile
Re: "Add picture" button on the index page
« Reply #12 on: May 28, 2011, 08:32:37 am »
Added in 3.0.21
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

 

+- Recent Topics

Before I buy this...questions.... by DragonLady
April 17, 2015, 02:06:57 pm

Option for opening links in a new window by SMFHacks
April 13, 2015, 03:26:13 pm

Subject Required Error by Saftek
April 13, 2015, 11:19:04 am

Subscription page error by Saftek
April 13, 2015, 11:11:00 am

Pre sale question by SMFHacks
April 13, 2015, 07:44:06 am

Display different ads based on IP adress by SMFHacks
April 13, 2015, 07:17:11 am

From Ad Management to Ad Seller Pro by SMFHacks
April 10, 2015, 06:57:02 am

Profile, members files/gallery by SMFHacks
April 09, 2015, 05:27:12 pm

Do you design custom mods? by SMFHacks
April 09, 2015, 08:09:25 am

close label URL... by Empire
April 08, 2015, 08:22:48 pm

Powered by EzPortal