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 418 online users.
» 0 Member(s) | 416 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

 
  Adding Ajax to userspice
Posted by: rahadi - 08-22-2017, 08:22 AM - Forum: UserSpice 4.3 and Below - Replies (5)

Hi,
I am new to userspice. Already played around with the framework but was wondering how to add ajax to this framework?
I want to know how to use ajax/http calls to userspice? Suppose, I have a login form and want to submit these form's data through javascript to users/login.php file. Should I make changes to login.php file? or what?
Please help. Thanks


  $master_account
Posted by: mudmin - 08-21-2017, 02:15 PM - Forum: UserSpice 4.3 and Below - Replies (4)

What kind of problems have you all had with the master_account feature? I've had it do some weird things. Sometimes it seems to get the variable from the init file and other times it doesn't. What should we do with this?


  HELP!!!!
Posted by: Katronix - 08-21-2017, 12:15 PM - Forum: UserSpice 4.3 and Below - Replies (22)

Hi all, I have the following code as one of my pages and I keep being told I have some kind of DB error. How do I find out what it is?

<?php

require_once 'users/init.php';
require_once $abs_us_root.$us_url_root.'users/includes/header.php';
require_once $abs_us_root.$us_url_root.'users/includes/navigation.php';

if (!empty($_POST['studio-name']))
{
$studio_name = Input::get('studio-name');
$studio_url = Input::get('studio-url');
$studio_rss = Input::get('studio-rss');
$studio_bio = Input::get('studio-bio');
$added_on = Input::get('added-on');
$added_by = Input::get('added-by');

$insert = array('studio_name'=>$studio_name, 'studio_url'=>$studio_url,'studio_rss'=>$studio_rss,'studio_bio'=>$studio_bio, 'studio_added'=>$added_on, 'studio_by'=>$added_by);
$db->insert('ad-studio',$insert);
if ($db->error()) { echo "Some kind of DB error!"; die();}
?>
<div id="page-wrapper">
<div class="container">
<div class="jumbotron">
<h1>Thank you!</h1> The Studio Information you have provided has been added!
</div>
</div>
</div>
<!-- footers -->
<?php require_once $abs_us_root.$us_url_root.'users/includes/page_footer.php'; // the final html footer copyright row + the external js calls ?>

<!-- Place any per-page javascript here -->


<?php require_once $abs_us_root.$us_url_root.'users/includes/html_footer.php'; // currently just the closing /body and /html ?>
<?php
die();
}
?>

<div id="page-wrapper">
<div class="container">
<form action="addstudio.php" method="post" class="form-group">
<label for="studio-name">Studio Name</label>
<input type="text" name="studio-name" class="form-control" id="studio-name" placeholder="Podcast Audio" required><p/>
<label for="studio-url">Studio URL</label>
<input type="url" name="studio-url" class="form-control" id="studio-url" placeholder="http://podcastaudio.com" required><p/>
<label for="studio-rss">Studio RSS</label>
<input type="url" name="studio-rss" class="form-control" id="studio-rss" placeholder="http://podcastaudio.com/?feed=rss" required><p/>
<label for="studio-bio">Studio Bio</label>
<textarea id="studio-bio" name="studio-bio" cols="80" rows="20"></textarea><p/>
<input type="hidden" name="added-on" value="<?php echo date('m/j/Y'); ?>">
<input type="hidden" name="added-by" value="<?php echo $user->data()->id; ?>">
<button type="submit" name="add-studio" <?php if(!$user->isLoggedIn()){ echo "disabled"; } ?> class="form-control btn btn-primary">Add Studio</button>
</form>
</div>
</div>


<!-- footers -->
<?php require_once $abs_us_root.$us_url_root.'users/includes/page_footer.php'; // the final html footer copyright row + the external js calls ?>

<!-- Place any per-page javascript here -->


<?php require_once $abs_us_root.$us_url_root.'users/includes/html_footer.php'; // currently just the closing /body and /html ?>


  Programmatic Login
Posted by: geomC - 08-21-2017, 05:54 AM - Forum: UserSpice 4.3 and Below - Replies (1)

Hi guys,

I am quite new to php development and I am trying to set up a simple backend for a an existing hybrid (mobile, webbased) application using Apache Cordova.
I customized the users account page so that a logged-in user can inspect and download datasets linked to his account.

Now I would like the mobile client to perform the same query for data linked to the user from within the app.
From here I pictured

  • the user fills out a login form
  • username and password are sent to <myUserSpiceInstance>/login.php
  • the response contains a token to be persisted in the browser
  • the token can be used for further requests to obtain model data

Meanwhile I came to understand that the login request already has to provide a token in order to prevent CSRF.

Does that mean that a "programmatic login" (using a remote form and do the login via POST) is not possible with UserSpice?
If it is still possible, I would appreciate some hints to achieve this.


  Hello from Sascha
Posted by: geomC - 08-21-2017, 05:16 AM - Forum: New to UserSpice? - Replies (2)

Hi guys,

I am using userspice to develop my first little backend and
I am very happy that I found this project.


Regards
Sascha


  Hi From Chris!
Posted by: Katronix - 08-21-2017, 01:41 AM - Forum: New to UserSpice? - Replies (6)

Hi all,

Chris here. Just learning UserSpice and so far finding it fairly easy to pick up, compared to say Larval or other products.

I was curious is there an "official" chat system (irc / Slack/ etc) for this product?


  What do you use?
Posted by: Brandin - 08-20-2017, 02:45 PM - Forum: Off-topic Discussions - No Replies

Hey guys,

Just want to get a feel for what everyone uses here in different aspects when it comes to US.

What code/text editor do you use? What localhost environment do you use? Production Server?

I use Notepad++.
I normally doesn't test locally since I code both from home and work, but I am installing MAMP right now to try it out.
I work off a cPanel VPS with 75gb SSD, 2gb RAM and CentOS with latest apache and mariaDB.


  Sistem news
Posted by: shoropio - 08-20-2017, 05:25 AM - Forum: UserSpice 4.3 and Below - Replies (22)

I have been following the project for a long time and I would like to know how far away is a news system like blogspot, post or input.


  Issues with localhost
Posted by: Katronix - 08-20-2017, 02:45 AM - Forum: UserSpice 4.3 and Below - Replies (2)

So I just have started using / looking at UserSpice, and found that installing it on localhost with home directories turned on makes it so that there is at least one space where the code looks in the wrong directory:

In the file users/init.php on line 22 it normally says:

require_once $abs_us_root.$us_url_root.'users/helpers/helpers.php';

For me however this turned into /var/www/html/usersc/includes/custom_functions.php instead of being:
/home/<user name>/public_html/spice/usersc/includes/custom_functions.php

Kat


  Validate Class
Posted by: marceloatmartins - 08-18-2017, 08:14 PM - Forum: UserSpice 4.3 and Below - Replies (6)

Hi Everybody,

Did someone make an implementation for validate fields kind "DATE" in Validate Class ?

How can I do it?

Thanks