Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11229
Latest: mriganka
New This Month: 16
New This Week: 2
New Today: 2
Stats
Total Posts: 33681
Total Topics: 6006
Most Online Today: 89
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 64
Total: 64

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

No thumbnail coming from this Youtube video by shuban
October 19, 2014, 12:05:59 pm

Member not able to upload by SMFHacks
October 18, 2014, 11:20:38 pm

Gallery block spitting out errors. by shuban
October 18, 2014, 11:55:28 am

Zoom support by Michel68
October 15, 2014, 11:58:42 am

Problem in uploading videos by SMFHacks
October 14, 2014, 10:46:56 am

This is an interesting mode. by Labradoodle-360
October 14, 2014, 08:35:43 am

Convert phpbb Gallery? by SMFHacks
October 13, 2014, 05:47:24 am

My Listings by SMFHacks
October 12, 2014, 01:40:43 pm

Gallery Pro 6.5 - undefined index by Saftek
October 12, 2014, 01:02:21 pm

upgrading SMF Advanced Profile Fields to include lists and then linking with,,, by DenDen60
October 12, 2014, 04:09:29 am

Powered by EzPortal