Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11311
Latest: Hobewaulker09
New This Month: 3
New This Week: 11
New Today: 3
Stats
Total Posts: 35518
Total Topics: 6270
Most Online Today: 88
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 46
Total: 47

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

"Bulk Add Pictures" doesn't work | Version 7.0.4 by lakestclair
Today at 10:57:05 am

Slideshow ends after 50 pics by SMFHacks
June 30, 2015, 10:01:30 pm

What is the advantage of this mod over doing it manually? by rexall
June 29, 2015, 11:15:35 pm

Banned!!! by SMFHacks
June 29, 2015, 09:12:32 pm

No option to ad picture to Members Galleries in drop down list. by SMFHacks
June 29, 2015, 09:02:13 pm

Badge Awards by balon
June 29, 2015, 04:59:35 pm

Mark all as Viewed by SMFHacks
June 28, 2015, 01:18:38 pm

How to do like button on smf like this page by SMFHacks
June 28, 2015, 12:44:29 pm

Early support for smf 2.1 by SMFHacks
June 28, 2015, 12:06:54 pm

[Theme] SMF : Facebook Theme Beta Test by ittiphol
June 28, 2015, 03:40:04 am

Powered by EzPortal