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

 
  Update Database from Javascript Function
Posted by: ptrh - 02-12-2018, 04:05 PM - Forum: UserSpice 4.3 and Below - Replies (6)

Hello!

Thank you UserSpice team for all the hard work you put in, people like myself are much appreciative!

Question: is it possible to call database functions (ex. $db->update) from Javascript? Does this involve AJAX requests? I'm new to the world of PHP so I could use some direction. The content I am including with UserSpice's user management runs via JS. There are points where I'd like certain JS functions to call $db functions.

Cheers,

Patrick


  Hello..
Posted by: brahm.pragya - 02-12-2018, 05:52 AM - Forum: New to UserSpice? - Replies (1)

Hello,
Nice to join the Forum Smile


  Not Acceptable bug
Posted by: brahm.pragya - 02-12-2018, 04:10 AM - Forum: UserSpice 4.3 and Below - Replies (8)

An appropriate representation of the requested resource /users/admin_verify.php could not be found on this server.

I m getting above message when I open user manage admin panel. The admin_verify.php exist in my directoty. In local system user admin panel working properly but in live this error comes.

Please give some solution.


  Terms and Conditions
Posted by: benjiboots42 - 02-11-2018, 02:23 AM - Forum: UserSpice 4.3 and Below - Replies (1)

Please can you someone explain how to turn off the terms and conditions part of the registration process, or say where the copy is located so that it can be edited?


  Validate Class matches not working properly with htmlentities.
Posted by: komodo - 02-09-2018, 09:03 PM - Forum: UserSpice 4.3 and Below - Replies (4)

Hello!

I recently strumbled upon a problem concerning the Validate.php Class
A user wanted to use the character & in a password, but it wouldn't let the password validate.
Turns out the matching option converted one & to

Code:
& a m p ;
while the other remained a normal &

$value got converted to
Code:
& a m p ;
$source[$rule_value] remained &
hence the missmatch.

[Image: bildschirmfoto2018-02hpqb5.png]

What would be a quick fix for this?
I would guess:
sanitize($source[$rule_value]);


  if Db->update fails what is returned?
Posted by: matthewra - 02-09-2018, 01:41 AM - Forum: UserSpice 4.3 and Below - Replies (2)

Hi, thanks for great system

if I want to use the $db class in an ajax called page

what can I include or copy to just have that class and no other page content/headers?


  Documentation section display and missing topics
Posted by: baljee - 02-08-2018, 06:47 AM - Forum: Documentation - Replies (1)

Hi i haven been using userspice for some time now and i really like the flexibility.

But since you have changed the documentation section i have the feeling documentation is missing. Or i can't find it. (The display is also a bit off).

Am i correct? I was looking for articles for effective customisation of the frontpage (want a different header etc) without editing the core users files.

Thanks, Baljé


  Patch 4310to4313
Posted by: KenHamby - 02-08-2018, 01:00 AM - Forum: UserSpice 4.3 and Below - Replies (7)

There seems to be a php file missing from the 4310-4313.zip patch - that or I am missing something fundamental somewhere Smile

When I run the patch on my functioning 4.3.12 site then try to access again, I get a warning and then a fatal error stemming from line 93 of the users/includes/header.php. The warning comes from the file not being located in the usersc/includes directory. The fatal comes when it's not found in any of the include paths.

The specific line causing the crash is:

require_once $abs_us_root.$us_url_root.'usersc/includes/security_headers.php

First crash, I just removed userspice then reinstalled via my hosts Softalicious installer. Reinstalled and then checked to make sure I had the fresh install working again then checked the includes directories and the original headers.php making the call. The security_headers.php was not in any of the directories after the reinstall. The 4.3.12 header.php also did not have a call to require the security_headers.php.



  problems using db->update
Posted by: s.farg - 02-07-2018, 08:14 PM - Forum: UserSpice 4.3 and Below - Replies (4)

Hi,

I'm new to web development, but in the last couple of days I learned a lot with the help of this forum and the documentations. Thanks!

Currently I'm encountering a problem when I try to use the $db->update() method. The table which I want to update is called u_schueler. The first column in my table is called 'id'. I want to update the column 'attestpflicht' and change the value from 0 to 1.

Here is a picture of the table u_schueler viewed with phpMyadmin: [Image: unbenanntavknv.jpg]

I'm using the following code:




<pre>

Code:
<?php
require_once 'users/init.php';

$i=1;
$fields = ['attestpflicht' => 1];
$db->update("u_schueler",$i,$fields);?>
</pre>





When I reload the .php page I don't get an error message but the database is not updated.

Do you have any suggestions?

Simon Smile

Edit: I tried the same with the "users" datatable but nothing happened either:
<pre>
Code:
$i=7;
$fields = [
  'logins' => 4];
$update = $db->update('users',$i,$fields);
</pre>


  write to second table during registration
Posted by: medtrans - 02-07-2018, 04:10 PM - Forum: UserSpice 4.3 and Below - Replies (1)

I watched your video on adding code to add userid to a second table during manual creation. Where is the code to insert a userid in second table when the user performs registration.

Thanks