Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 609 online users. » 0 Member(s) | 607 Guest(s) Bing, Google
|
Latest Threads |
UserSpice Alpha Testing a...
Forum: News Center
Last Post: ivinsons
11-08-2024, 06:13 PM
» Replies: 13
» Views: 42,475
|
UserSpice 4.4 Development
Forum: News Center
Last Post: Amelie12
09-21-2024, 12:23 PM
» Replies: 4
» Views: 15,199
|
Welcome to the new UserSp...
Forum: News Center
Last Post: ivinsons
08-25-2024, 07:39 AM
» Replies: 2
» Views: 27,918
|
How to use hasPerm
Forum: UserSpice 4.4
Last Post: mudmin
07-20-2019, 02:45 PM
» Replies: 1
» Views: 13,755
|
Session issue? What I sho...
Forum: UserSpice 4.4
Last Post: Parth
07-17-2019, 05:06 PM
» Replies: 4
» Views: 14,502
|
Email Error
Forum: UserSpice 4.4
Last Post: Brandin
07-17-2019, 04:47 PM
» Replies: 1
» Views: 6,623
|
{ Missing Text } after up...
Forum: UserSpice 4.4
Last Post: Brandin
07-16-2019, 04:23 PM
» Replies: 22
» Views: 53,638
|
Best Practice Info
Forum: New to UserSpice?
Last Post: Brandin
07-16-2019, 11:55 AM
» Replies: 1
» Views: 13,490
|
Force to use 2FA -always-
Forum: UserSpice 4.4
Last Post: Brandin
07-12-2019, 12:43 PM
» Replies: 1
» Views: 6,636
|
e-mail not verifying
Forum: UserSpice 4.4
Last Post: LBC
07-10-2019, 11:34 AM
» Replies: 31
» Views: 76,232
|
|
|
Hi |
Posted by: kingnath - 09-06-2017, 10:27 AM - Forum: New to UserSpice?
- Replies (1)
|
|
My name is King Nath, am kinda new to userspice but have a great intuition that its going to be awesome here....
Thanks.
|
|
|
Error when updating table with 0 |
Posted by: gaiusjaugustus - 09-06-2017, 03:52 AM - Forum: UserSpice 4.3 and Below
- Replies (7)
|
|
Hi,
I'm having a weird issue and hoping to get some help on it.
I'm using a form to update a MySQL table with something like the code below, where I (1) get a posted value (2) validate it, and (3) update the table. It works great, but there's an issue. Whenever 0 (zero) is sent, it throws an error, in this case saying that "Chapter number is required". I have no problems inserting a 0 into the MySQL table when I do it manually. I assume I've done something wrong in the validation. Any suggestions?
(Couldn't figure out how to insert multi-line code in the forums?)
$chapternum = Input::get('chapternum');
$fields=array('chapternum'=>$chapternum);
$validation->check($_POST, array(
'chapternum' => array(
'display' => 'Chapter Number',
'required' => true
)
));
if($validation->passed()){
$db->update('comic_chapters',$id,$fields);
$successes[] = "Chapter Number Updated";
}else{
?><div id="form-errors">
<?=$validation->display_errors();?></div>
<?php
}
|
|
|
Search div does not clear |
Posted by: Brandin - 09-05-2017, 11:07 PM - Forum: UserSpice 4.3 and Below
- Replies (6)
|
|
When you make a search, e.g. on admin_users.php, if you backspace the search out, or clear it (ctrl a and delete/bkspc) it keeps the line that says "Search results for" even though the search has been cleared and the table reset.
|
|
|
Required Fields |
Posted by: Katronix - 09-05-2017, 04:40 PM - Forum: UserSpice 4.3 and Below
- Replies (6)
|
|
Hi all,
I noticed the User table has several columns which it seems currently are not needed by UserSpice ie: the billing_* fields, etc.
Which fields are required for UserSpice to work?
thanks,
Chris
|
|
|
Better solution to find init |
Posted by: Brandin - 09-03-2017, 07:35 PM - Forum: Off-topic Discussions
- Replies (1)
|
|
So my biggest problem is calling init from different directories (in particular, my userpost.php file inside of /templates/)
I currently call using:
require_once $_SERVER['DOCUMENT_ROOT'] .'/mydash/users/init.php';
But if I move this to my prod server, I lose the /mydash/ dir - which means this function breaks
Thoughts?
|
|
|
Call the role |
Posted by: shoropio - 09-03-2017, 03:54 AM - Forum: UserSpice 4.3 and Below
- Replies (16)
|
|
Could you help me call the role? I do not know if I explain myself very well? there is a function to call the name, surname, income and more but I do not know if I can call example: admin and below the call the role. admin: admin, user: user, user: collaborator, etc.
|
|
|
|