• Online Demo
  • 30-day Free Trial
  #1  
Old 06-02-2012, 03:59 AM
ehansen ehansen is offline
Member
 
Join Date: Mar 2012
Posts: 30
Default Modifying the Blesta DB

I'm working on integrating SMS into Blesta, and for authentication purposes (I don't want the user to send their passwords or something over plain text), I am wanting add another column to the users table. This would be a simple modification by adding a new column ("sms_key" or something) and populating that for people who agree to.

My question is how bad of an idea is this? I know you're not typically supposed to change tables and such of software that isn't yours, but I do not see how this change would be that bad.
Reply With Quote
  #2  
Old 06-03-2012, 03:24 AM
naja7host's Avatar
naja7host naja7host is offline
Senior Member
 
Join Date: May 2007
Posts: 688
Default

Of i have Well understand , you CAN add a custom field to the table client via settings , nô need to change via phpmyadmin .
Reply With Quote
  #3  
Old 06-03-2012, 03:53 AM
ehansen ehansen is offline
Member
 
Join Date: Mar 2012
Posts: 30
Default

Quote:
Originally Posted by naja7host View Post
Of i have Well understand , you CAN add a custom field to the table client via settings , nô need to change via phpmyadmin .
Correction, can it be made to be read only? I just tested it an the user can edit the values when they modify their profile. This isn't something I want to be made possible.

Last edited by ehansen; 06-03-2012 at 03:55 AM. Reason: Performed a quick test and saw that users can edit the field too
Reply With Quote
  #4  
Old 06-04-2012, 04:03 PM
Paul's Avatar
Paul Paul is offline
Blesta Developer
 
Join Date: Apr 2006
Location: Wherever I go, there I am.
Posts: 1,469
Send a message via AIM to Paul Send a message via MSN to Paul
Default

You can toggle the visibility of custom fields, and if the client can't see it they can't update it.. but if they need to be able to see it and not update it what you could do is write a little code in the appropriate template file to do a query for the custom field and display it as text-only.
__________________
Paul
Misc Stuff Guy

Blesta
Professional Billing
www.blesta.com
Reply With Quote
  #5  
Old 06-04-2012, 06:02 PM
ehansen ehansen is offline
Member
 
Join Date: Mar 2012
Posts: 30
Default

Quote:
Originally Posted by Paul View Post
You can toggle the visibility of custom fields, and if the client can't see it they can't update it.. but if they need to be able to see it and not update it what you could do is write a little code in the appropriate template file to do a query for the custom field and display it as text-only.
If I do decide to leave it visible and editable by the client then for them to change it they just need to edit their profile, put in the new value, then update it?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use blesta API? ximian API & Order Forms 3 10-06-2011 04:02 PM
Pre-sales question before i buy Blesta xeonet Pre-Sale Questions 1 03-10-2009 04:22 PM
Customizing Blesta Cody General Discussion 0 03-17-2008 09:19 PM
Most popular billing app takes direction from Blesta Cody General 8 01-29-2008 10:33 PM


All times are GMT. The time now is 11:08 AM.