By attaching one and clicking on browse again I am able to post more than one attachment to a new ticket or a reply.
Get the latest news and updates on SimpleDesk!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: NextLevelSMF on November 30, 2015, 05:09:15 AM
Thank you! Unfortunately I don't have access to that topic.
Quote from: tfs on September 03, 2011, 11:28:21 PMQuote from: SleePy on September 03, 2011, 07:10:25 PM
So you are looking to see the SMF custom profile fields display on tickets?
Yessir! I'm looking to display fields 1, 2, 8 & 9.SELECT id_field, col_name, field_name FROM `smf_custom_fields` where I_WANT!
id_field, col_name, field_name
1, cust_organi, Organization Name
2, cust_jobtit, Job Title
8, cust_08, Phone
9, cust_09, Mobile Phone
Quote from: cσσкιє мσηѕтєя on September 06, 2011, 12:11:35 PM
It's never actually sent to the template in that sense but it's there. Just need to be lazy and globalize $memberContext and it's right there.
In SimpleDesk-Display.template.php:global $memberContext;
print_r($memberContext[$context['ticket']['member']['id']]);
That array will contain cust_organi, cust_jobtit and the rest of them. So you then just need to add them where you want them to be in the template. And of course remove the print_r() line. So to add them right below the username in the ticket details column:<li id="item_userstarted">
<dl>
<dt><img src="', $settings['default_images_url'], '/simpledesk/user.png" alt="" class="shd_smallicon" /> ', $txt['shd_ticket_user'], ':</dt>
<dd>', $context['ticket']['member']['link'], '</dd>
</dl>
</li><li id="item_organi">
<dl>
<dt><img src="', $settings['default_images_url'], '/simpledesk/user.png" alt="" class="shd_smallicon" />Organization name:</dt>
<dd>', $memberContext[$context['ticket']['member']['id']]['options']['cust_organi'], '</dd>
</dl>
</li>
And so on. As you can see you have to edit each "label" yourself since it doesn't fetch that itself. If that's a problem you need another query to find them, unless I'm being stupid. You also may want to give each of them their own icon instead of user.png.
Quote from: tfs on September 07, 2011, 02:49:21 AM
Looks like the template has a glitch in it. It looks OK on the screen, in that the custom fields are displayed.
https://www.x.com/helpdesk/index.php?action=helpdesk;sa=ticket;ticket=1454.msg12839
8: Undefined index: cust_09
File: /x/helpdesk/Themes/default/sd_template/SimpleDesk-Display.template.php
Line: 103
https://www.x.com/helpdesk/index.php?action=helpdesk;sa=ticket;ticket=1454.msg12839
8: Undefined index: cust_08
File: /x/helpdesk/Themes/default/sd_template/SimpleDesk-Display.template.php
Line: 96
https://www.x.com/helpdesk/index.php?action=helpdesk;sa=ticket;ticket=1454.msg12839
8: Undefined index: cust_organi
File: /x/helpdesk/Themes/default/sd_template/SimpleDesk-Display.template.php
Line: 89
Quote from: cσσкιє мσηѕтєя on September 07, 2011, 09:47:05 AM
Ah, that's stupid of me. You'll want to make sure they actually have a value first:',!empty($memberContext[$context['ticket']['member']['id']]['options']['cust_organi']) ? $memberContext[$context['ticket']['member']['id']]['options']['cust_organi'] : '','
That makes sure it only shows if there's something to show, if not it'll just be empty. You can of also put the entire thing in an if statement so it doesn't show the icon and the label either if the field is empty.
QuoteWarning: Missing argument 2 for shd_error_types() in /homepages/9/d299421546/htdocs/180support/web_root/Sources/sd_source/Subs-SimpleDesk.php on line 2037
Warning: Missing argument 3 for shd_error_types() in /homepages/9/d299421546/htdocs/180support/web_root/Sources/sd_source/Subs-SimpleDesk.php on line 2037
Warning: Missing argument 4 for shd_error_types() in /homepages/9/d299421546/htdocs/180support/web_root/Sources/sd_source/Subs-SimpleDesk.php on line 2037
Warning: Missing argument 5 for shd_error_types() in /homepages/9/d299421546/htdocs/180support/web_root/Sources/sd_source/Subs-SimpleDesk.php on line 2037
Notice: Undefined variable: file in /homepages/9/d299421546/htdocs/180support/web_root/Sources/sd_source/Subs-SimpleDesk.php on line 2045
Notice: Undefined variable: error_message in /homepages/9/d299421546/htdocs/180support/web_root/Sources/sd_source/Subs-SimpleDesk.php on line 2045
Notice: Undefined variable: file in /homepages/9/d299421546/htdocs/180support/web_root/Sources/sd_source/Subs-SimpleDesk.php on line 2047
Notice: Undefined variable: error_message in /homepages/9/d299421546/htdocs/180support/web_root/Sources/sd_source/Subs-SimpleDesk.php on line 2047
Notice: Undefined variable: error_message in /homepages/9/d299421546/htdocs/180support/web_root/Sources/sd_source/Subs-SimpleDesk.php on line 2047
<a class="firstlevel" href="', isset($tab['url']) ? $tab['url'] : $menu_context['base_url'] . ';area=' . $menu_context['current_area'] . ';sa=' . $sa, $menu_context['extra_parameters'], isset($tab['add_params']) ? $tab['add_params'] : '', '"><span class="firstlevel">', $tab['label'], '</span></a>
Page created in 0.042 seconds with 17 queries.