Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 469 online users. » 0 Member(s) | 468 Guest(s) Bing
|
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
|
|
|
using userspice to login to multiple platforms |
Posted by: luigi7890 - 01-16-2019, 12:40 PM - Forum: Documentation
- Replies (5)
|
|
Hello. I'm sorry, my English is not very good. I'm planning to build a site for my friends and community based on OSClass (classified listing software), Elgg (social media platform) and Moodle (teaching platform).
I'm interested in making a homepage in which you can login (userspice) only once, so you don't have to login on every other service. Please what is the documentation where I can learn how to manage that? I mean, how to modify the mentioned software.
Best regards.
|
|
|
Ecommerce / online shop with US |
Posted by: flo - 01-14-2019, 09:56 PM - Forum: Off-topic Discussions
- Replies (3)
|
|
Hey everyone!
After a couple of months its is great to come back to UserSpice and see everything that has changed and developed! I absolutely love this product and the community behind it
I have used UserSpice for a couple of small to midsized projects. Now I have a fairly big project, that is about to happen and I would really appreciate an honest opinion of some the experienced developers here!
I want to build an Ecommerce / online shop solution and the decision is basically between: Use UserSpice and build (at least all the "online shop modules" like payment options, shopping cart and so on) from the ground up or use an Ecommerce framework like Wordpress + WooCommerce or Symfony + Sylius to be closer to the online shop territory.
I feel like I would have to customise lots of things in those mentioned frameworks and it would take loads of time to get accustomed to how things are done there. But then on the other hand there is lots of stuff to program myself using UserSpice, which the other systems would already have in place.
How much word is it to implement things like a shopping cart, different payment solutions or a backend to manage orders in UserSpice? What do you guys think? Any ideas on what to use or any experience with similar projects?
Thanks in advance!
Best,
Flo
|
|
|
Authentication from external php page |
Posted by: RedBlob - 01-14-2019, 10:19 AM - Forum: UserSpice 4.4
- Replies (3)
|
|
Hello,
I'm trying to use US on a site that is already complete and currently uses a different password management system (made of php-mysql with standard code).
But I don't understand how to handle the new situation.
When I have to send the login form data through the classic
<form action="http://www.mysite.com/login.php" method="post"> ......... where should I direct my new request?
If I have to create a new php script what functions can I use to know if the visitor has correctly entered User and Password ?
Are there any guides to manage a site using US without its traditional interface but only by interacting at the php code level?
Thank you for your help!
Maurizio
|
|
|
DB-dynamic NavBar |
Posted by: zyan - 01-10-2019, 02:37 PM - Forum: UserSpice 4.4
- Replies (3)
|
|
Hello,
I am trying to build a dynamic NavBar depending on the permission level of the logged in user.
My first approach was something like:
PHP Code: $db = DB::getInstance(); $permission = $user->data()->permissions; //(Source: https://userspice.com/documentation-user-class/) if ($permission == "2") { // "2" means admin echo "<li><a href='overview.php'>Overview</a></li>"; }
But the problem is, that the list element doesn't even show up for the admin. When I echoed $permission it always showed "1" for all users I tried.
To me it looks like, that "$user->data()->permissions" outputs the permissions level of the user, that is necessary to access the current the page.
So when my page requires access level 1 and the admin has access levels 1 and 2, "$user->data()->permissions" outputs 1.
Does anyone know a solution or am I just on the wrong path?
PS: I started using UserSpice about a week ago and want to thank developers very much for this great tool!
|
|
|
db where var1=x AND var2=y AND var3=q |
Posted by: Ruud - 01-05-2019, 06:10 PM - Forum: UserSpice 4.4
- Replies (5)
|
|
I can't figure out how to solve a right query, what do I wrong?
sql query:
DELETE FROM `tbl_resource` WHERE (`ID_resource`=".$var1." AND `ID_veld`=".$var2." AND `type_resource`='P') LIMIT 1;
first try:
$db->delete("tbl_resource",
[ "AND",
["ID_resource","=",$db->result()[0]->ID_papo],
["ID_veld", "=", $lesblokId ],
["type_resource", "=", "P"]
]);
second try:
$db->delete("tbl_resource",
[ "AND",
[ "AND",[
["ID_resource","=",$db->result()[0]->ID_papo],
["ID_veld", "=", $lesblokId ]
],
["type_resource", "=", "P"]
]
]);
|
|
|
UserSpice 5 Folder Structure |
Posted by: Bogdan - 01-05-2019, 12:53 PM - Forum: UserSpice 5 - Roadmapping the Future
- Replies (1)
|
|
Folders Structure
Now we have only two root folders - users and usersc. The first is core, and the second is users customized. If we want to change something we need to copy files from core to custom folder and change it. I think, such solution looks rough. We need to implement MVC pattern.
In well-coded systems developer doesn't need to change core files. He using existing functions on front-end to generate static content and hooks to change something in admin panel. That's why I think, that WordPress folders structure is perfect (wp-admin and wp-includes is a core folders that never edit because it always updates, and wp-content - for a user's themes, plugins and content).
How I see UserSpice folders structure:
▣ core - CMS core files (api, cron, helpers ...).
▣ admin - back-end files needed for displaying admin panel.
▣ plugins - folder for plugins (dbman, demo, fileman ...).
▣ themes - main site templates (bs4, default, light ...).
▣ uploads - folder for user's content (avatars, images and others).
This structure is approximate, but it best description of separation core files from user edit content. If new update exist, it rewrite core folder, but don't touch for example user's template or plugin.
With such folders structure we able to create own folders, for example pages and get links like mysite.com/pages/myfile.php. The file content may look like this:
PHP Code: <?php theme_include('header'); ?>
<section class="content wrap"> <div class="container"> <div class="row"> <div class="col-md-12"> <h1><?php echo page_title(); ?></h1> <?php echo page_content(); ?> </div> </div> </div> </section>
<?php theme_include('footer'); ?>
We just include header and footer from theme, and main code is between this includes (code in example taken from Anchor CMS page.php file).
If someone has ideas about how folders structure must look, please comment.
|
|
|
US for mobile apps |
Posted by: Ruud - 01-02-2019, 06:07 PM - Forum: UserSpice 4.4
- Replies (4)
|
|
I will use US for creating a back-end application and also an App for customers.
Should I copy the include/header.php to header-app.php and change there jquery vs jquery.mobile ?
I only want the hamburger menu?
Are there some experiences how to do this?
Thanks a lot
|
|
|
|