Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11079
Latest: pd35
New This Month: 59
New This Week: 7
New Today: 2
Stats
Total Posts: 34387
Total Topics: 6110
Most Online Today: 73
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 2
Guests: 70
Total: 72

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

Comments on the Gallry pro by SMFHacks
Today at 06:40:07 am

Listing credit not credited by SMFHacks
January 27, 2015, 12:02:39 pm

SMFHacks.com - forum theme currently in use by Encephale
January 25, 2015, 06:10:31 pm

[Mod] Tagging System by SMFHacks
January 25, 2015, 03:48:22 pm

Is there a conflict with pretty urls module? by SMFHacks
January 24, 2015, 03:14:00 pm

Ad locations for a single board by access control forum
January 23, 2015, 01:28:17 pm

Ad Seller Pro how do I update by SMFHacks
January 22, 2015, 08:34:18 pm

Display different ads based on IP adress by SMFHacks
January 22, 2015, 08:20:59 pm

Having an issue saving ads with new version by SMFHacks
January 22, 2015, 10:09:00 am

How do I make badges appear under a username? by SMFHacks
January 22, 2015, 08:40:58 am

Powered by EzPortal