Welcome, Guest |
You have to register before you can post on our site.
|
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
|
|
|
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.
|
|
|
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 while the other remained a normal &
$value got converted to $source[$rule_value] remained &
hence the missmatch.
What would be a quick fix for this?
I would guess:
sanitize($source[$rule_value]);
|
|
|
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
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:
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
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>
|
|
|
|