Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4274
Latest: kellanphil
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43645
Total Topics: 7572
Most Online Today: 129
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 55
Total: 56

Author Topic: Changing image owner  (Read 3756 times)

0 Members and 1 Guest are viewing this topic.

Offline Sweetwater

  • Bad Emails DO NOT EMAIL
  • Full Member
  • *
  • Posts: 128
    • View Profile
    • Sweetwater Fishing Australia
Changing image owner
« on: October 30, 2010, 08:02:42 pm »
Is there a way that the owners name of an image can be edited / changed?

Sweetwater
SMF 2.0.9 | SMF Store 2.5.5 | SMF Classifieds 4.0.1 | SMF Gallery Pro + Video Add On
Home Page - http://sweetwaterfishing.com.au
Forum - http://sweetwaterfishing.com.au/Forum
Australian Lure Shop - http://australianlureshop.com.au
Australian Lure Fly & Outdoors Expo http://lureshow.com.au

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16611
    • View Profile
Re: Changing image owner
« Reply #1 on: October 30, 2010, 08:12:16 pm »
As admin you have the option when editing the picture to change the item's owner. There should be a box to enter the new item owner's name.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Sweetwater

  • Bad Emails DO NOT EMAIL
  • Full Member
  • *
  • Posts: 128
    • View Profile
    • Sweetwater Fishing Australia
Re: Changing image owner
« Reply #2 on: October 31, 2010, 04:20:20 am »
As admin you have the option when editing the picture to change the item's owner. There should be a box to enter the new item owner's name.

Hi Hacks,
Thanks for the reply.
Appologies, I should have explained better. In public galleries that's fine & can change owner ok. However in a members own gallery I cannot see the option to do that. I've got a few members who have asked me to load images for them.

Regards,

Sweetwater
SMF 2.0.9 | SMF Store 2.5.5 | SMF Classifieds 4.0.1 | SMF Gallery Pro + Video Add On
Home Page - http://sweetwaterfishing.com.au
Forum - http://sweetwaterfishing.com.au/Forum
Australian Lure Shop - http://australianlureshop.com.au
Australian Lure Fly & Outdoors Expo http://lureshow.com.au

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16611
    • View Profile
Re: Changing image owner
« Reply #3 on: October 31, 2010, 09:13:42 am »
Hotfix change to allow user gallery admins option to change picture owner

Open themes/default/Gallery2.template.php

Find
Code: [Select]
// If the user can manage the gallery give them the option to change the picture owner.
  if ($context['is_usergallery'] == false && $g_manage == true)
  {
  echo '<tr class="windowbg2">
  <td align="right">', $txt['gallery_text_changeowner'], '</td>
  <td><input type="text" name="pic_postername" id="pic_postername" value="" />
  <a href="', $scripturl, '?action=findmember;input=pic_postername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);"><img src="', $settings['images_url'], '/icons/assist.gif" alt="', $txt['find_members'], '" /></a>
  <a href="', $scripturl, '?action=findmember;input=pic_postername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);">', $txt['find_members'], '</a>
  </td>
  </tr>
  <tr class="windowbg2">
  <td colspan="2" align="center">
  ',$txt['gallery_txt_picturemoveoptions'],'<a href="',$scripturl,'?action=gallery;sa=changegallery;mv=touser;id=',$context['gallery_pic']['id_picture'], '">',$txt['gallery_movetousergallery'],'</a>
  </td>
  </tr>
  ';
  }
  else
  {
if ($g_manage == true)
{
echo ' <tr class="windowbg2">
  <td colspan="2" align="center">
  ',$txt['gallery_txt_picturemoveoptions'],'<a href="',$scripturl,'?action=gallery;sa=changegallery;mv=togallery;id=',$context['gallery_pic']['id_picture'], '">',$txt['gallery_movetomaingallery'],'</a>
  </td>
  </tr>
  ';
}

  }

Change to
Code: [Select]

  // If the user can manage the gallery give them the option to change the picture owner.
  if ($context['is_usergallery'] == false && $g_manage == true)
  {
  echo '<tr class="windowbg2">
  <td align="right">', $txt['gallery_text_changeowner'], '</td>
  <td><input type="text" name="pic_postername" id="pic_postername" value="" />
  <a href="', $scripturl, '?action=findmember;input=pic_postername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);"><img src="', $settings['images_url'], '/icons/assist.gif" alt="', $txt['find_members'], '" /></a>
  <a href="', $scripturl, '?action=findmember;input=pic_postername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);">', $txt['find_members'], '</a>
  </td>
  </tr>
  <tr class="windowbg2">
  <td colspan="2" align="center">
  ',$txt['gallery_txt_picturemoveoptions'],'<a href="',$scripturl,'?action=gallery;sa=changegallery;mv=touser;id=',$context['gallery_pic']['id_picture'], '">',$txt['gallery_movetousergallery'],'</a>
  </td>
  </tr>
  ';
  }
  else
  {
if ($g_manage == true)
{
echo '
<tr class="windowbg2">
  <td align="right">', $txt['gallery_text_changeowner'], '</td>
  <td><input type="text" name="pic_postername" id="pic_postername" value="" />
  <a href="', $scripturl, '?action=findmember;input=pic_postername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);"><img src="', $settings['images_url'], '/icons/assist.gif" alt="', $txt['find_members'], '" /></a>
  <a href="', $scripturl, '?action=findmember;input=pic_postername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);">', $txt['find_members'], '</a>
  </td>
  </tr>

<tr class="windowbg2">
  <td colspan="2" align="center">
  ',$txt['gallery_txt_picturemoveoptions'],'<a href="',$scripturl,'?action=gallery;sa=changegallery;mv=togallery;id=',$context['gallery_pic']['id_picture'], '">',$txt['gallery_movetomaingallery'],'</a>
  </td>
  </tr>
  ';
}

  }
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
5725 Views
Last post February 25, 2007, 07:55:14 pm
by TheWrks
2 Replies
4994 Views
Last post January 23, 2008, 05:15:19 am
by Ken.
0 Replies
2984 Views
Last post May 23, 2009, 03:56:59 am
by Paddleducks Forum - Damien
2 Replies
4443 Views
Last post February 27, 2010, 04:35:25 pm
by SMFHacks
7 Replies
5142 Views
Last post May 24, 2010, 09:41:17 am
by donworden

+- Recent Topics

Ability to exclude categories from ezPortal SMF Gallery random image ezblock by Alistair
Today at 08:20:13 am

How to move SMF to new server by SMFHacks
January 21, 2025, 08:45:53 pm

Figuring out settings by SMFHacks
January 12, 2025, 04:56:14 pm

Filesizes incorrect by SMFHacks
January 12, 2025, 02:02:47 pm

December 2024 Sale! by SMFHacks
December 02, 2024, 10:30:38 pm

Denying members some admin settings by rickk
November 17, 2024, 12:02:55 pm

Weird setup by SMFHacks
November 07, 2024, 06:37:41 am

Restoring a deleted photo by Monocero
November 01, 2024, 04:23:56 am

Gallery Pro reinstalation by Lirorobert
October 14, 2024, 01:43:43 am

Move picture from main gallery to user gallery by SMFHacks
October 11, 2024, 09:11:00 pm

Powered by EzPortal