Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 487 online users. » 0 Member(s) | 485 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
|
|
|
Migrate to live server |
Posted by: chwzr - 04-30-2017, 07:14 AM - Forum: UserSpice 4.3 and Below
- Replies (4)
|
|
i developed my userspice page on a xampp, now im ready and i want to migrate to a live webserver running ubuntu and apache
i copied all files into the webroot and copied the database with phpmyadmin, and changed init.php to have sufficent sql credentials. but its not working it shows a blank page.
is there more to do to migrate to other server?
i could not find any information about moving a install.
|
|
|
Validation Class for Email Domain |
Posted by: Brandin - 04-29-2017, 02:45 PM - Forum: Modifications and Hackery
- Replies (1)
|
|
Hello,
Thoughts on how I can make a validation class in the Registration Form, and page to verify the user it using a email using x.domains? For the time being I will hard code them, and later on verify it against the DB, but if you think it is easier to use the DB in the first place, I will do that, maybe call it allow_domains?
I need to require my users to be using a domain such as example.com or example1.com or example2.com, but if they try to register with example3.com, since it is not in the list of allowed domains, it fails the registration, or the email change on the account.php page.
Thank you!
|
|
|
Auto-Assign Username |
Posted by: Brandin - 04-29-2017, 02:00 PM - Forum: Modifications and Hackery
- No Replies
|
|
Hello,
Don't want your users to pick their own usernames? Assign it yourself using these modifications!
The information below will assign a username of:
-First Initial Last Name, e.g. barsenault
-If that username exists, First Name, Last Initial, e.g. brandina
-If that username exists, email address of user
First, duplicate your to usersc folder so you do not modify a CORE file.
Remove the Code: $username = Input::get('username');
around Line 70 and add the following haste after the value:
https://hastebin.com/ukojoqexut.php
Remove the validation for username around line 84, so instead of the first line after 83 being username, the first line should be If you try to validate a non-field, it will fail.
Change Line 177 from: Code: 'username' => Input::get('username'),
To: Code: 'username' => $username,
In Code: users/views/_join.php
remove the Username label and input.
I recommend modifying the confirmation email or success page to include the users username, or advise them of the format (I recommend telling the user their username because it might not be in the format you provide them if the first format fails).
|
|
|
Dropdown box auto populates other input fields - Help |
Posted by: muhammedc - 04-29-2017, 01:55 PM - Forum: Modifications and Hackery
- Replies (17)
|
|
Hi
Consider this example - Do not qustion the merits, its just an example...
If you look at admin_users.php, there is a manually add user panel where there is a dropdown box for the permission group to choose when creating a new user...
Now, say I had another dropdown box which was autopopulated based on information from a table, much the same way the groups were autopopulated to the dropdown box. What I would like to achieve is as you select an option from the dropdown box, then based on your selection, say the name field and the surname field with autopopulate those text input boxes with information from the db based on the selection from the dropdown box, and if you choose another option from the dropdown box, then again the text fields will update with the correct data.
How would one achieve this?
|
|
|
email_test.php |
Posted by: Brandin - 04-29-2017, 01:18 PM - Forum: UserSpice 4.3 and Below
- No Replies
|
|
Hello,
email_test.php is broken. It redirects automatically to account.php, I am thinking maybe something to do with a permission issue? Can only the master account (1) visit this page? I have the master account disabled for security purposes, and use a secondary account as the primary admin. Can this be replicated? I have even made the page public and it doesn't work.
Thank you!
|
|
|
join.php |
Posted by: Brandin - 04-29-2017, 12:44 PM - Forum: UserSpice 4.3 and Below
- No Replies
|
|
Hello,
In the password requirements section, if you enter a password, meet the requirement of typed correctly twice, and remove one of both of the values in either fields, the "Correctly typed twice" line stays "black" instead of gray, after the green disappears.
Thank you.
|
|
|
initialize jquery with some js which require jquery |
Posted by: chwzr - 04-27-2017, 11:01 AM - Forum: UserSpice 4.3 and Below
- Replies (2)
|
|
i have added jquery in my header.php file under /usersc/includes
Code: <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
under this line i added a js library which depends on jquery loaded before.
Code: <script type="text/javascript" src="/usersc/js/myUIlib.min.js"></script>
the error console says "$ is not defined"
since there are 3 reasons this error could have: - 1. Your JavaScript file is not being properly loaded into your page
- 2. You have a botched version of jQuery. This could happen because someone edited the core file, or a plugin may have overwritten the $ variable.
- 3. You have JavaScript running before the page is fully loaded, and as such, before jQuery is fully loaded.
so i assume:
1. it is properly loaded as i can see in network analysis in firefox debug view
2. are there some plugins which override the $ variable?
3. i think my UIlib.min.js is loaded after jquery, i see it in network analysis so jquery should be finished before my UIlib.min.js is fired. or is there any other place to put those script?
i also see jquery is loaded twice? where is it loaded it should only loaded once in the header of the page(/usersc/includes/header.php) i think.
EDIT:
if i reference it in a blank content page both jquery and my myUIlib.js there are the same errors from the header, but on the page it is working. so what is wrong with the header ? is it loaded after the page content?
|
|
|
|