Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11276
Latest: SbiLlMoNk36
New This Month: 33
New This Week: 2
New Today: 2
Stats
Total Posts: 33934
Total Topics: 6044
Most Online Today: 76
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 55
Total: 55

Author Topic: "Add picture" button on the index page  (Read 4969 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: 12408
    • 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: 12408
    • 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: 64
    • 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: 12408
    • 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: 64
    • 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: 64
    • 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: 12408
    • 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: 64
    • 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: 12408
    • 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

Black Friday Sales Week! Big Savings on Products by SMFHacks
November 22, 2014, 11:29:17 am

Download Menu Editor Pro by SMFHacks
November 21, 2014, 11:31:08 pm

Tapatalk... by HDB
November 21, 2014, 02:27:17 pm

Am I just being stupid? by 420connect
November 21, 2014, 10:27:20 am

[Mod] SMF Articles by elbeer
November 21, 2014, 07:15:36 am

Problem with ad seller pro after upgrade to SMF 2.0 by amwebby
November 20, 2014, 11:39:04 pm

MOD Request: Sort / Order by 420connect
November 19, 2014, 07:22:46 am

New fields for the Tweet photos feature by Jonas1975
November 19, 2014, 03:21:23 am

Problem with category permissions by SMFHacks
November 18, 2014, 12:13:00 pm

No twit when adding picture by SMFHacks
November 17, 2014, 04:31:58 pm

Powered by EzPortal