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

 
  Customise Welcome Email
Posted by: Aaron - 03-02-2017, 03:28 AM - Forum: UserSpice 4.3 and Below - Replies (3)

Hey guys!

To preface - I'm a total php noob... Mainly a front end dev here who fiddles with php only every now and then. I've been using Usercake, and now Userspice, to build a secure container around a product/investment website our company runs so we can hand out logins for certain people we want to show the product to. So far I'm really enjoying the learning process.. It's a steep curve, but so far the software and the documentation here has been really good Smile

Now, I'm trying to extend a couple of things in the framework. So far, I've fiddled with the registration system so now when a user registers, it sends the admin an email asking to approve that member. Once the member is approved by the admin, they get an email notifying them that they can now log in.

However, I'm trying to get the initial approval notification email to display more information. Basically, I want the email that my admin recieves to show all the fields about that user: first/last name, username, company name, phone number etc... I can see that $fname; is queried and appended to the email easily enough, but the block of php in the _email_template_activated.php file (below) doesn't seem to be enough to fetch $lname;, $company, and the other custom fields I've added like phone and so forth...
Can someone please point out what I need to query to show these other values? I've been trying things like $results = $query->all(); which doesn't seem to work..

Thanks guys!

<pre>

Code:
<?php
$db = DB::getInstance();
$query = $db->query("SELECT * FROM email");
$results = $query->first();
?>
</pre>


  jQuery not defined
Posted by: aeh - 03-01-2017, 08:11 PM - Forum: UserSpice 4.3 and Below - Replies (16)

Registration with a validation error - checkbox not selected, existing email etc - prints

Code:
Notice: Undefined offset: 1 in C:\xampp\htdocs\demo\users\helpers\helpers.php on line 75
above the error. Chrome network tab shows jQuery is loaded (twice in 4.2), and console says
Code:
Uncaught ReferenceError: jQuery is not defined at join.php:98
. I've been using 4.1, but this also happens with a fresh 4.2 install.


  changing and adding a redirect path
Posted by: raven - 02-27-2017, 06:27 PM - Forum: UserSpice 4.3 and Below - Replies (20)

i like how the security redirects but i would like to change its path as well as add a few for other user classes eg users stay where there at but, managers would direct to a account page with aditional things on it like access buttons to other parts of the system with out them being visable to non manaagers

where is that located and how would i add classes to it for redirect


  Access forbidden!
Posted by: chandra.harrys@gmail.com - 02-27-2017, 08:13 AM - Forum: UserSpice 4.3 and Below - Replies (2)

Hi all,

I'am interested in Social Media login using Userspice. in my project i follow the instruction to add media soscial login into my login page... as it run smooth until i clicked link on it (google and facebook)

Below error is appeared:

Access forbidden! Error 403

here is my folder:

http://localhost/US42/users/includes/facebook_oauth.php

Please help me, what happen to my script.

Regards


  Minimum to access $settings array
Posted by: grumpy-gnome - 02-25-2017, 04:06 PM - Forum: UserSpice 4.3 and Below - Replies (3)

Sorry if this has been covered elsewhere...

I'm trying to access the $settings->site_offline element without including the headers and navigation php files because these mess up my page layouts (I don't use bootstrap but other HTML5/CSS templates).

Basically I want to isolate the php code to obtain the $settings array without invoking any US PHP files that will try and paint the screen...

I started to try and follow the various files, but ended up totally lost in the repeated "include"-ing of PHP code in the various helper libraries.

Is there a minimum set of PHP functions/methods that I can access without any presentation stuff being done? I love the UserSpice access model, I just don't want to always have the Bootstrap look and feel. I'm confident the bits are there, but some pointers to which to use would be great!

Thanks


  Folder "usersc"
Posted by: Kighlander - 02-25-2017, 08:28 AM - Forum: UserSpice 4.3 and Below - Replies (5)

Dear US Community.

My installation of US now works very fine. All basic functions I need are running correctly.

Now I want to modify many files which are located in the folder "users".

In the documentation you say I only have to copy the file to modify in the folder "usersc", an then it will load automaticly.

In my case I got only fatal errors, e.g. "init.php is missing" or when I copy the "init.php" in the "userc"-folder phe parser called "error in init.php"

For example:

I copied the file "edit_profile.php" in the folder "usersc", i get following message:

[Image: no_init_php.jpg]

and after copying the file "init.php" in the same folder this message is coming:

[Image: with_init_php.jpg]

Where must I fix the files, that the site is running correctly ?

Greets

Kighlander


  Stuck on Step 3 of Install
Posted by: DarrenH - 02-24-2017, 03:30 PM - Forum: UserSpice 4.3 and Below - Replies (33)

Hello,
I'm a PHP newbie, but have XAMPP installed and successfully running with SQL.

THANK YOU for the install video! So many tech guides seem to omit little details presumably assuming that the little things are basic knowledge, but even tiny details often hang me up.

I'm on Step 3 of the install process, following along with the install video. But for some reason I get the error message "Database connection unsuccessful! Please try again", even though I followed steps 1 and 2 exactly.

I actually followed the install video (https://www.youtube.com/watch?v=ayQR95-V5hA) to the letter, right up to 1:55 where I can't continue because of the error.

So...is there some little detail that everyone takes for granted that a newbie like myself has inadvertently skipped? Some config setting? Some obscure incantation? Please note I followed the video above exactly.

Thanks very much for your time, D


  Join Page Redirection Pickle
Posted by: sbarbee - 02-23-2017, 01:20 PM - Forum: UserSpice 4.3 and Below - Replies (3)

I'm in a bit of a bind, and I can't quite figure what I did to get this way.

Here's the scenario: I created a real estate agent website to view videos, etc. Users can login, get info, etc.

Here's the problem: All the links to "Register" and "Forgot Password", are going straight to "login.php". There's a redirection trigger that I can't find. Or, at least it's not obvious.

I need another set of eyes to take a look. You can see what happens here -- http://media.allegiancetitle.com.

Go try and register and you'll see the problem.

Many thanks in advance and sorry if this is obvious and simple, and right in front of my face.
Also, I just recently applied 4.1.8b. Prior to that I was at 4.1.3. I have not tied to roll back, hoping it's not necessary.

Let me know any other supporting information you need.

SB


  added all kinds of new stuff still missed the header issue
Posted by: raven - 02-22-2017, 08:55 PM - Forum: UserSpice 4.3 and Below - Replies (3)

:p

i still had to add in several enters in the header code to space it down farenough so it wouldn't cover the stuff below it

idk why i have to do it am i the only one ? every time i have to do that strange


  Tutorial: UserSpice requirements
Posted by: JUG - 02-22-2017, 05:27 PM - Forum: Documentation - Replies (3)

UserSpice requirements and installation.

Since I haven't been able to find any resources how to configure my own server for UserSpice, I thought this could be helpful for somebody in the future.

Note: this tutorial was written for Debian 8
It will probably be okay with other distros too. Maybe some google searching if command is not found.

Note: this tutorial assumes, that you have installed working unix server.

Step 1: Install Apache
Apache is responsible for converting your machine into a web server. See What is Apache?

run # sudo apt-get install apache2

If you are configuring your server via SSH, you are probably not logged in as root. If you are not root, you will have to change some permissions, so you will have full access to default directory of your website. Default directory it is set to /var/www/html. If you would like to change default directory, just ask google. There are many versions of apache, so it is likely that my solution does not work for you. In my case I had to change file /etc/apache2/sites-available/000-default.conf.

Change permissions:
run # sudo adduser <username> www-data
where <username> is username of debian
run # sudo chown -R www-data:www-data /var/www
run # sudo chmod -R g+rwX /var/www

Step 2: LetsEncrypt
This step is optional, but since trend is going into TLS (What is TLS?), you will probably be better if you secure your website with encoding. If you are not running Debian, check installation instructions on LetsEncrypt Certbot.

Add this line

Code:
deb http://ftp.debian.org/debian jessie-backports main
to your sources.list (/etc/apt/sources.list)

run # sudo apt-get install python-certbot-apache -t jessie-backports
run # certbot --apache
Now follow instructions and select always redirect item when it prompts you.

Add this line
Code:
Redirect permanent / https://mysite.example.com/
to apache configuration file (/etc/apache2/sites-available/000-default.conf). This line must be added into between <VirtualHost *:80> tags.

run # sudo certbot renew --dry-run

If you encounter any errors with last command, check your IPv6 settings and google for solution.

Step 3: Install PHP
run # sudo apt-get install php5 libapache2-mod-php5

This will install PHP 5.6. If you would like to try PHP7 just google for solution.

Step 4: MySQL
run # sudo apt-get install mysql-server php5-mysql
run # sudo mysql_secure_installation

Setup will ask you few questions. If you already set password for root type "n" for the first question. All other questions you can answer with "y"

Step 5: PHPmyAdmin<strong>
run # apt-get install phpmyadmin

You will see the following questions:
  • Web server to reconfigure automatically: <-- apache2
  • Configure database for phpmyadmin with dbconfig-common?<-- Yes
  • Password of the database's administrative user: <-- Enter the MariaDB root password
  • MySQL application password for phpmyadmin: <-- Press enter, apt will create a random password automatically

Now open your web browser and navigate to mysite.com/phpmyadmin
Login with username root and password you set for MySQL.

From now on you can watch Dan's video about installing UserSpice. You can get it under Documentation/Installation and Setup on UserSpice website.