The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/portal.php 39 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 1,007
» Latest member: kavitasinghji
» Forum threads: 1,324
» Forum posts: 7,788

Full Statistics

Online Users
There are currently 364 online users.
» 0 Member(s) | 362 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

 
  Recommended Help Desk?
Posted by: Trioxin - 11-28-2016, 12:05 AM - Forum: UserSpice 4.3 and Below - Replies (3)

I need to incorporate a help desk in my site and I'm wondering if anyone else has done this with relative ease as far as the bootstrap theming goes. Any suggestions?

Thanks


  INSERT variabile
Posted by: picassoo - 11-27-2016, 07:08 PM - Forum: Documentation - Replies (13)

Hey again, sory I needd again your help here. I have form and I need to add in DB in tow tabels. Here i trid to make the form but no luck, can you help my again pleasee.


INSERT POST SCRIPT

<pre>

Code:
//Forms posted
if (!empty($_POST)) {
  
  //Manually Add User
  if(!empty($_POST['addTask'])) {
    $cine_post_task = Input::get('cine_post_task');
      $utilizator = Input::get('utilizator');
      $titlu = Input::get('titlu');
      $color = Input::get('color');
    $descriere = Input::get('descriere');
    $data_start = Input::get('data_start');
    $data_end = Input::get('data_end');
    $post_data = Input::get('post_data');
    $post_time = Input::get('post_time');
    $descriere = Input::get('descriere');

    $form_valid=FALSE; // assume the worst
    $validation = new Validate();
    $validation->check($_POST,array(
      'cine_post_task' => array(
      'display' => '',
      'required' => false,
      'min' => 5,
      'max' => 35,
      ),
      'utilizator' => array(
      'display' => '',
      'required' => false,
      'min' => 2,
      'max' => 35,
      ),
      'titlu' => array(
      'display' => '',
      'required' => false,
      'min' => 2,
      'max' => 35,
      ),
      'color' => array(
      'display' => '',
      'required' => false,
      ),
      'descriere' => array(
      'display' => '',
      'required' => false,
      ),
      'data_start' => array(
      'display' => '',
      'required' => false,
      ),
      'data_end' => array(
      'display' => '',
      'required' => false,
      ),
      'post_data' => array(
      'display' => '',
      'required' => false,
      ),
      'post_time' => array(
      'display' => '',
      'required' => false,
      ),
    ));
      if($validation->passed()) {
        $form_valid=false;
      try {
        // echo "Trying to create user";
        $fields=array(
          'task_utilizator' => Input::get('utilizator'),
          'task_sub_descriere' => Input::get('descriere'),
        );
         $db->insert('task',$fields);
        $theNewId=$db->lastId();
        // bold($theNewId);
        $addNewTask = array('id' => $theNewId, 'task_id' => $perm);
        $db->insert('task_list_sub',$addNewTask);

        $successes[] = lang("ACCOUNT_USER_ADDED");

      } catch (Exception $e) {
        die($e->getMessage());
      }

    }
  }
}
</pre>



HERE THE FORM
<pre>
Code:
<form id="demo-form2" class="form-horizontal form-label-left " action="<?php echo $_SERVER['PHP_SELF'];?>" method="POST" id="payment-form">
<br>
                    <div class="form-group">
                    
                      <label class="control-label col-md-3 col-sm-3 col-xs-12">Utilizator <span class="required"></span></label>
                      <div class="col-md-7 col-sm-7 col-xs-12">
                        <select id="first-name" name="utilizator" class="select2_single form-control" required="required" tabindex="-1">
                          <option ></option>
                           <?php

                  foreach ($departamentCS as $permOp){
                    echo "<option value='$permOp->id'>$permOp->lname</option>";
                  }
                  ?>
                  
                        </select>
                      </div>
                    </div>
                    
                    <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">Titlu <span class="required">*</span>
                      </label>
                      <div class="col-md-7 col-sm-7 col-xs-12">
                        <input type="text" id="last-name" name="titlu" required="required" class="form-control col-md-7 col-xs-12">
                        <input type="hidden" id="last-name" name="cine_post_task" required="required" value="<?=ucfirst($user->data()->lname)?>" class="form-control col-md-7 col-xs-12">
                        <input name="post_time" id='time' type="hidden" value="" />
                        <input name="post_data" id='' type="hidden" value="<?php echo date("d/m/Y");?>" />
                      </div>
                    </div>

<div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">Data start <span class="required">*</span>
                      </label>
                      <div class="col-md-7 col-sm-7 col-xs-12">
                       <input type="text" name="data_start" class="form-control has-feedback-left" required="required" id="single_cal2" value="<?php echo date("d/m/Y");?>" placeholder="First Name" aria-describedby="inputSuccess2Status2">
                              <span class="fa fa-calendar-o form-control-feedback left" aria-hidden="true"></span>
                              </div>
                    </div>
<div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">Data end <span class="required">*</span>
                      </label>
                      <div class="col-md-7 col-sm-7 col-xs-12">
                       <input type="text" name="data_end" class="form-control has-feedback-left" required="required" id="single_cal3" placeholder="First Name" aria-describedby="inputSuccess2Status2">
                              <span class="fa fa-calendar-o form-control-feedback left" aria-hidden="true"></span>
                              </div>
                    </div>                    
                    
                    <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12">Detalii<span class="required"></span>
                      </label>
                      <div class="col-md-7 col-sm-7 col-xs-12">
                        <textarea id="message" required="required" class="form-control" name="descriere" data-parsley-trigger="keyup" data-parsley-minlength="20" data-parsley-maxlength="100" data-parsley-minlength-message="Trebui sa pui celputin 20 caractere"
                          data-parsley-validation-threshold="10"></textarea>
                      </div>
                    </div>
                    
                    <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12">Culoare <span class="required"></span>
                      </label>
                      <div class="col-md-7 col-sm-7 col-xs-12">
                        <select class="colorpicker-selectColor-unknown" name="color">
   <option value="#000000">Black</option>                    
  <option value="#7bd148">Green</option>
  <option value="#5484ed">Bold blue</option>
  <option value="#a4bdfc">Blue</option>
  <option value="#46d6db">Turquoise</option>
  <option value="#7ae7bf">Light green</option>
  <option value="#51b749">Bold green</option>
  <option value="#fbd75b">Yellow</option>
  <option value="#ffb878">Orange</option>
  <option value="#ff887c">Red</option>
  <option value="#dc2127">Bold red</option>
  <option value="#dbadff">Purple</option>
</select>
                      </div>
                    </div>
                    
                    
                      </div>
                      <div class="modal-footer">
                        <input class='btn btn-success' type='submit' name='addTask' value='Adauga' />
                      </div>
</form>
</pre>


thank you


  4.2 Beta Released - Final Version is coming soon
Posted by: mudmin - 11-27-2016, 05:41 PM - Forum: UserSpice 4.3 and Below - Replies (26)

Check out UserSpice 4.2 now with social logins. Links are on the homepage. Unless you guys find bugs (there are probably some), this will be the full version.

Instructions for configuring social logins are here...
http://userspice.org/documentation-social-logins/

One very cool thing about our implementation is that it detects if the user already has an account on the system and links their FB/Google creds with the same account. Most implementations of Oauth would create 3 different accounts for "regular", google, and facebook. We're better than that!


  File Manager
Posted by: inugami - 11-27-2016, 03:56 AM - Forum: Off-topic Discussions - Replies (6)

Hi
I need that the users can access to determinated files and others don't, but this is achievable with the roles system. And the question is... how can i list the files in a page??? should i use just php or can i use a premade solution????


  Moving Languages to Database
Posted by: Brandin - 11-26-2016, 08:22 PM - Forum: UserSpice 4.3 and Below - Replies (28)

Hey there!

Although when I'm directly editing files I "can" edit the language file to make new stuff, but I am interested in the possibility of moving the languages into the database. Do you think this would be an easy process? What would I do to language.php to get it to pull the information still? Do you think this would be a good idea?

Thanks!


  Bootstrap Table
Posted by: Brandin - 11-26-2016, 05:31 PM - Forum: UserSpice 4.3 and Below - Replies (3)

Heyo!

I am trying to use the bootstrap table classes on a new page I made that users visit

Code:
usersc/external.php?type=templates
that pulls from `usersc/external/templates.php. My table classes work on the majority of my other pages, but I cannot get this one to work. It is stuck with the default, non-bordered table, like in the screenshot below:
http://pasteboard.co/2FQ6mwdWw.png

I want it to look more like this:
http://pasteboard.co/2FQtVa47c.png

I had accomplished this by adding classes
Code:
table table-hover table-bordered
to the
Code:
functions.php
page (which is the second screenshot) but this is not working on the external page that I made. Any advise? Has anyone had issues getting classes to work like this?

Thank you.


  Count by username
Posted by: picassoo - 11-26-2016, 09:59 AM - Forum: Documentation - Replies (5)

Hello, I need some help pleasee, I wull like to count some tiket name by username login.

<pre>

Code:
$db = DB::getInstance();
$taskQ = $db->query("SELECT utilizator FROM task WHERE utilizator = $permOp->lname ",array($permOp->lname));
$task_count = $taskQ->count();
</pre>


will cont all my Id not my utilizator why ?
Can you help me ?


  mariaDB
Posted by: Brandin - 11-25-2016, 08:37 PM - Forum: Modifications and Hackery - Replies (1)

Heyo!

I'm considering migrating from MySQL to mariaDB - does UserSpice support mariaDB?

Thanks!


  Sessions
Posted by: Brandin - 11-25-2016, 03:18 PM - Forum: Off-topic Discussions - Replies (7)

Heyo!

Everytime I login from the login form on the bottom right sidebar of the forums, even though my info is saved, it pushes me to the WP login form saying my password was invalid, however, I use the same saved credentials, check the "Robot" box and it lets me login. Not sure why this is happening but thought I would let you know.

This only happens when my session has expired or I am no longer logged in (or logging in from a new location).

Thanks.


  Early timeout for logged in user
Posted by: Overlordv2 - 11-24-2016, 11:29 PM - Forum: UserSpice 4.3 and Below - Replies (8)

Hello!

First, congratulations for such a wonderful user management system. This helps my project a great deal.

I am encountering an issue with a logged in user timing out early. I have set up UserSpice as follows:

Linux / Ubuntu 16.04 w/ Nginx and PHP 7
UserSpice is installed in a subdirectory
I am able to successfully login as a user

Once I log in with that user, it automatically logs out the user after about one minute no matter what I do. It then makes me log back into the system. This happens even with the administrator account. I have double checked the Cookie timeout and it is set at the default one week. Any ideas for fixing this?

Thanks!