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

 
  4.1.6 Released
Posted by: mudmin - 10-16-2016, 02:55 PM - Forum: UserSpice 4.3 and Below - No Replies

I'm making this sticky until @PLB reminds me to unstick it 3 months from now.

I figured I'd start a little discussion here on a few things...

1. Why am I doing a major release and calling it 4.1.6 instead of building on 4.2?
The installed base of UserSpice 4.1 is huge. I'm trying to make painful upgrades few and far between. In my mind, the vast majority of projects built on 4.1 will not be upgraded to 5.0. I have projects built on 4.1 (and even 4.0) that work great for their intended purpose and it just won't be worth the hassle. 4.2 Alpha served to develop a model for getting multiple social login platforms to work with UserSpice and now that work has been cleaned up and put into US5. Rather than have a lot of existing users try to go from 4.1 to 4.2 to 5.0, I think the best course of action is to keep fully developing 4.1 and then when it is time, let people go straight to 5.0. 5.0 will most likely be one of those "delete your entire 'users' directory and run this database migration" updates. We will be obliterating everything inside the users folder, so it won't really matter which version of 4.1 you're on to do the upgrade. 4.2 is different enough that I believe it would have caused problems and caused a 3rd branch of our code base that we'd need to maintain. I hope that makes sense.

2. New features
Two of the most obvious new features are the defined places to put your custom functions and analytics snippets in the usersc/includes folder. If anyone has noticed that things have been quiet for the last month for me at UserSpice, it has been because I have been dog-fooding and developing a few projects based on UserSpice. It's been fantastic for me to see how "real" people use UserSpice and one of the great needs was an obvious place to put our own functions. There are a bunch of other things that need to be updated, but a lot of that will come out in 5.0. Since I was updating the us_helpers.php file already this seemed like as good of time as any to put out this update.

3. Redirect features
PLB has been toying with a few different redirect options. I'll let him chime in on some use cases, but one feature that is being tested is the idea that any time you push out a get variable err, that message will be sanitized and posted at the top of the page. Something like Redirect::to('yourpage.php?err=You+Have+Been+Redirected'); will flash You Have Been Redirected at the top of the page. This is a great way to pass things like success messages to pages after you've sent people away. After some feedback, I fully expect to make a 4.1.6b version that will clean this up a little bit more.

4. Full release downloads are now being pulled from github.
It has always annoyed me that github puts all the files in a userspice4-master folder. Why? I didn't ask it to do that. One of the many things that annoys me about github, but it's a small price to pay for hopefully not bringing down the site whenever I push a new release.


  Project structure
Posted by: lastnerve - 10-16-2016, 01:48 PM - Forum: UserSpice 4.3 and Below - Replies (6)

I luv UserSpice. I've already developed the pages for a new site and I want to use UserSpice for logins, security, etc. Is UserSpice meant to be used as a wrapper for all my web pages or should I use set_include_path to access it?


  Open Cart Database Merge?
Posted by: erekerendo - 10-14-2016, 11:31 AM - Forum: Modifications and Hackery - Replies (2)

I added the Open Cart e-commerce platform to my website. However it runs on a seperate database. I want to make it so that users can log into their user spice account and be automatically logged into their open cart account so they don't have to log in again to make a purchase.

If someone could walk me through doing this it would be appreciated.

P.S. I am using bluehost to host the site and filezilla to modify it if that matters at all.


  $userspice = A_OK;
Posted by: smugwimp - 10-10-2016, 01:06 PM - Forum: New to UserSpice? - Replies (1)

I like it. A lot.

Having a few issues, but they're all related to learning curve, I'm certain. Eventually I'll get my head around it. I'm used to PHP, but procedural, not PDO, so it's taking a minute.

Otherwise, I do a lot of stuff; Android, iOS, Arduino, xCode, Visual Studio... it's all pretty much some kind of 'C'. Getting into the Internet of things, and hope to build a fairly robust back end built on User Spice to manage it. Thus comes the issues, lol! But again, it's my first week.

I'll keep digging, and learning. Thanks for a great foundation.

Cheers!

-- Smug


  Undefined variable: us_url_root but path is showed correctly during installation
Posted by: HackerWolf - 10-10-2016, 12:46 PM - Forum: UserSpice 4.3 and Below - Replies (8)

Hi! I want to test userspice, but I'm getting the same error with this versione and even with 4.1. I install US into a subidir of my nginx root (html/enl is the subdir). During the installation process the path is correctly showed, but after installation is completed, I get the following error:
<pre>

Code:
Notice: Undefined variable: us_url_root in /home/webuser/www/hackerwolf.xyz/html/enl/users/init.php on line 22

Warning: require_once(/home/webuser/www/hackerwolf.xyz/html/enlusers/helpers/helpers.php): failed to open stream: No such file or directory in /home/webuser/www/hackerwolf.xyz/html/enl/users/init.php on line 22

Fatal error: require_once(): Failed opening required '/home/webuser/www/hackerwolf.xyz/html/enlusers/helpers/helpers.php' (include_path='.:/usr/share/php') in /home/webuser/www/hackerwolf.xyz/html/enl/users/init.php on line 22
</pre>


It's like a missing "/" somewhere not detected from the for loop in users/init.php but I can't figure out how to fix it. Any idea? Thanks in advance.

Nginx 1.11.3 w/ PHP 7.0.11


  Selecting and displaying data from a custom table
Posted by: Dan.ETD - 10-10-2016, 09:35 AM - Forum: Modifications and Hackery - Replies (1)

I have created a custom table in my database holding colour codes for distributors of my products.

I am trying to echo out the header and footer column using the following statement:
$db = DB::getInstance();
$customiseQ = $db->query("SELECT * FROM customise-distributor WHERE distributor = ". $parts[4] ."");
$customise = $customiseQ->first();

echo "Header Colour: ". $customise->header_colour ."";

Why is $customise->header_colour blank?


  Multiple level permisons
Posted by: picassoo - 10-08-2016, 09:51 AM - Forum: Documentation - Replies (1)

How can multiple permissions, permissions level ?

exmp:

id - name - location company - category level - other....

is it possible?


  rawurlencode
Posted by: Sebastian - 10-07-2016, 10:12 AM - Forum: UserSpice 4.3 and Below - No Replies

I've seen that you added

Code:
rawurlencode($email)
in several scripts like join.php or forgot_password.php. However, regarding my server settings etc., the email function in helpers.php cannot handle the
Code:
rawurlencode($email)
. Thus, what is working for me is simply to decode it in the email function:
Code:
$mail->addAddress(rawurldecode($to));
.


  custom.css
Posted by: Sebastian - 10-07-2016, 09:05 AM - Forum: UserSpice 4.3 and Below - Replies (2)

Hi,
I've upgraded to 4.1.5 (over all steps inbetween from 4.1). My database entries are from the fresh 4.1 install, maybe I've missed something? I'm not sure, but the database entry in tab settings: us_css3 should be ../usersc/css/custom.css and not ../users/css/custom.css, or?
Cheers,
Sebastian


  Get the latest inserted ID
Posted by: GePraxa - 10-06-2016, 12:45 AM - Forum: Documentation - Replies (3)

This is not working, as I have to?

<?php
if(isset($_POST['submit'])) {

$db = DB::getInstance();

$fields=array(
'var1' => $var1,
'var2' => $var2
);
if($db->insert('table',$fields)){
$yes[] = 'text';
}else{
$no[] = 'text';
}

$last_id = $db->lastId();
}
?>