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

 
  sintaxe error
Posted by: marceloatmartins - 08-01-2017, 11:02 AM - Forum: UserSpice 4.3 and Below - Replies (6)

Hi everybody,

I moved my site to other PC and now I get the error in this line:

//adding more ids to this array allows people to access everything, whether offline or not. Use caution.
$master_account = [1];


The message of error: Parse error: syntax error, unexpected '[' in /home/smsrio/public_html/subhue/pacientesocial/users/init.php on line 54

Some idea about this ?

Thanks


  Need ability to approve new user
Posted by: joelmalach - 07-31-2017, 03:04 PM - Forum: Modifications and Hackery - Replies (16)

Hi. I'm new to Userspice so please be gentle.
I am creating an online course and using Userspice to enable clients access the course
Clients need to make a payment before access is allowed
I would like them to be able to register, using the form here - users/join.php, then be redirected to my payment page
Once they have made the payment, I then want to be able to "approve" their registration in the admin panel and give them access to the course.
Could someone please explain how I can go about this?
Currently, once they complete the registration form, they can access the course immediately without making the payment
Thanks in advance


  Sync problems using Facebook, Google logins during site testing?
Posted by: haydentech - 07-27-2017, 02:59 PM - Forum: UserSpice 4.3 and Below - Replies (3)

We are about to begin testing a new UserSpice-based site. If we add users who use an external authentication system like Facebook or Google, will there by any problems if we later decide to blow that UserSpice database away and create a new one. I have a feeling that there will be times during the debugging of the site that it will be best to just start with a fresh database.

Will Facebook and Google complain when those users try to sign up "again"? Do we need to use new Facebook/Google API keys when we do this?


  After the installation of the 4.2 I get the following errors
Posted by: tsrinivas2406 - 07-26-2017, 10:07 AM - Forum: UserSpice 4.3 and Below - Replies (1)

On the Login.php page I am getting the following errors :

Notice: Trying to get property of non-object in C:\xampp\htdocs\UserSpice\users\includes\header.php on line 78

Notice: Trying to get property of non-object in C:\xampp\htdocs\UserSpice\users\includes\header.php on line 82

Notice: Trying to get property of non-object in C:\xampp\htdocs\UserSpice\users\includes\header.php on line 93

Notice: Trying to get property of non-object in C:\xampp\htdocs\UserSpice\users\includes\header.php on line 117

Notice: Trying to get property of non-object in C:\xampp\htdocs\UserSpice\users\includes\navigation.php on line 50

Login
Register
Help
Home

Notice: Trying to get property of non-object in C:\xampp\htdocs\UserSpice\users\login.php on line 41

Fatal error: Uncaught Error: Call to a member function count() on boolean in C:\xampp\htdocs\UserSpice\users\classes\User.php:67 Stack trace: #0 C:\xampp\htdocs\UserSpice\users\classes\User.php(112): User->find('admin') #1 C:\xampp\htdocs\UserSpice\users\login.php(77): User->loginEmail('admin', 'password', true) #2 {main} thrown in C:\xampp\htdocs\UserSpice\users\classes\User.php on line 67


  Can someone help me with the path
Posted by: fred27 - 07-24-2017, 09:08 AM - Forum: UserSpice 4.3 and Below - Replies (4)

Hello to everyone, I have a problem with the path, i have been looking around the forum but i can't find a solution.
can someone point in the right direction this is the problem.

Fatal error: require_once(): Failed opening required '/var/www/html/users/helpers/helpers.php' (include_path='.:') in /membri/uboat/users/init.php on line 22


  users/fb-callback.php
Posted by: firestorm - 07-17-2017, 08:49 AM - Forum: UserSpice 4.3 and Below - No Replies

made minor corrections, as it was a user registered but their full name was stored as first name, so this splits first name and last name and enters them into db correctly, also removed Token::generate(); and replaced with a new function, see readme file on the gist.

https://gist.github.com/Firestorm-Graphi...ddf46510a2


  includes/facebook_oauth.php
Posted by: firestorm - 07-17-2017, 07:35 AM - Forum: UserSpice 4.3 and Below - No Replies

noticed in the above file our app id isn't being used in the javascript, so have adapted the script for for that.

<pre>

Code:
$db=DB::getInstance();

$settingsQ=$db->query("SELECT * FROM settings");
$settings=$settingsQ->first();

$appID=$settings->fbid;
$secret=$settings->fbsecret;
$version=$settings->graph_ver;
$callback=$settings->fbcallback;
?>
<script>
  window.fbAsyncInit = function() {
    FB.init({
      //appId      : '256684718065631',
      appId      : <?=$appID?>,
      xfbml      : true,
      version    : 'v2.7'
    });
  };

  (function(d, s, id){
     var js, fjs = d.getElementsByTagName(s)[0];
     if (d.getElementById(id)) {return;}
     js = d.createElement(s); js.id = id;
     js.src = "//connect.facebook.net/en_US/sdk.js";
     fjs.parentNode.insertBefore(js, fjs);
   }(document, 'script', 'facebook-jssdk'));
</script>

<?php
if(!isset($_SESSION)){session_start();}
require_once("src/Facebook/autoload.php");
$fb = new Facebook\Facebook([
  'app_id' => $appID,
  'app_secret' => $secret,
  'default_graph_version' => $version,
  ]);

$helper = $fb->getRedirectLoginHelper();

$permissions = ['email']; // Optional permissions
$loginUrl = $helper->getLoginUrl($callback, $permissions);

echo '<a href="' . htmlspecialchars($loginUrl) . '"><img width="240" class="img-responsive pull-left" src="'
.TR_URL_ROOT.'users/images/facebook.png" alt="Facebook"/></a>';
</pre>


  Unit Testing
Posted by: karsen - 07-16-2017, 05:17 PM - Forum: UserSpice 4.3 and Below - No Replies

Has anyone done any unit testing for UserSpice? I've been refactoring my code and want to make tests for the US classes too but don't want to duplicate work if others have created some.


  google_helpers.php
Posted by: firestorm - 07-16-2017, 01:37 PM - Forum: UserSpice 4.3 and Below - No Replies

we seem to have two copies of google_helpers.php, one in users and one in helpers, which do we require or do we need both?, they both have same content.

also in the same file we are giving google an app name for codexworld.com, would prefer to name as site name so have done this in both files:
<pre>

Code:
$appName = $settings->site_name;
$gClient->setApplicationName($appName);
</pre>


  class Generated_Form
Posted by: faguss - 07-14-2017, 08:18 PM - Forum: Modifications and Hackery - No Replies

I've built for myself a form preprocessor. It's suited specifically to what I needed (and rather hacky) so I doubt it will be of much use to you. However, you can view it as an example of what's useful because I assume that you'll be making your own version.

It requires modified DB.php and Validate.php

Download (latest update:07.09.17). Copy files to your UserSpice folder and include the classes in init.php

There are 12 example scripts. Run SQL query from file in the archive to create tables for them.

[Image: ICUHvoO.png]