Syleron
-
Posts
19 -
Joined
-
Last visited
-
Days Won
1
Posts posted by Syleron
-
-
I'm attempting to access support tickets via the API but no matter the request I keep getting the following error:
object(BlestaResponse)#7 (2) { ["raw":"BlestaResponse":private]=> string(68) "{"message":"The requested resource does not exist.","response":null}" ["response_code":"BlestaResponse":private]=> int(404) }
Example Request:
function getTicket($id) { $data = [ 'ticket_id' => $id, 'get_replies' => true, 'reply_types' => null, 'staff_id' => null ]; $response = $this->api->get("support_manager.support_manager_tickets", "get", $data); var_dump($response); return $response; }
Can someone please advise?
Cheers
-
Hello,
I was wondering if someone could let me know if it is possible to grab support tickets via the Blesta API? If so, a link to the docs would be fantastic!
-
Looking forward to the Proxmox Reloaded updates!
-
Trying to modify a module and select info from another DB than the blesta db.
How would I go about doing this?
Edit: Apart from directly opening the DB connection and closing it directly in the method...
-
Ah brilliant!
Thanks.
-
Title pretty much says it all.
Could we possibly see the Yubikey added to the list of supported 2 factor auth?
Best regards,
Andrew
-
I tried grabbing the session but that's not working.
I would like to know whether or not a user has logged in through the root website (The area before they get to the Blesta portion of the website)
Any ideas?
Cheers!
-
I'm trying to grab the user's email using Contacts::get() but I'm not sure how to get the user's client id so I can pass it through.
Any idea?
Thanks,
Andrew
Edit:
Found that you can use $_SESSION['blesta_client_id'] but is there a better way of doing this?
-
If you can share the custom change withe the community , so others can see the response to your request .
This is hardly the best way of doing it but it works. (Don't judge me )
In /app/views/client/bootstrap/javascript/jquery-client-3.2.0.js method blestaLoadWidget find:
var temp = $(data.content);
after it put the following:
// Append the widget to the page if (data.content.indexOf("services") >= 0) $(container).prepend(temp); else $(container).append(temp);
That's it!
edit: forgot to mention which method to change lol
- Michael, Blesta Addons and serge
- 3
-
-
You should fetch the custom fields in the controller and make them available to the page you're referring to. You can fetch a custom field using Clients::getCustomField, and client custom field values using Clients::getCustomFieldValues, e.g.
$client_id = 1; $custom_field_values = $this->Cliens->getCustomFieldValues($client_id);
Fantastic, thanks again Tyson!
Andrew
-
I'd like to grab the value of one of my custom fields and display it on one of the client pages. How would I go about grabbing the value of the custom field?
Thanks,
Andrew
-
I think what they mean by 'not possible' is that it is currently not an available behavior in Blesta. And the code that handles this happens to be in an encoded file. But if you're familiar with jquery, you can take a look at /app/views/client/bootstrap/javascript/jquery-client-3.2.0.js, and update blestaLoadWidgets to update the interface to display the widgets in your custom order.
I have done exactly that.
Thank you!
-
It's not impossible but you would need to change a lot of the code to make it like the admin area where you can drag and drop, save the locations for each customer.
Except I'm not looking to giving the people the ability to customize the layout through drag and drop.. I just want to hard code it so that services always show first
-
not possible ...
in my plugin "announcement" i have a jquery code to make the widget in the first view of all .
you can inspire from it
Why is it impossible? It seems out of all the things that would not be possible would be this as the majority of the code is available to you.
-
Just drag and drop mate.
That method doesnt seem to work on the client page but even if it did it still doesnt really solve the fact that I would like the widgets to load in a specific order for everyone.
Any other ideas?
Thanks again!
-
Hello!
I was wondering if anyone could assist me on where to look in order to change the order of the widgets on the client dashboard? (Invoices, services, transactions).
Cheers,
Andrew
Plugin API Request - Support Manager
in General
Posted
@Adam Thank you so much! I appreciate the fix