Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 480 online users. » 0 Member(s) | 478 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
|
|
|
Location of variable $copyright_message |
Posted by: actingrude - 12-08-2016, 08:36 AM - Forum: UserSpice 4.3 and Below
- Replies (2)
|
|
So this may be an absolutely disgustingly simple questions, but I am just playing around and beginning to use userspice for the first time and I wanted to change the copyright. I expected it to be within the database somewhere but I cannot seem to locate it. What is the best way to go about changing it?
Also is there a tutorial that I am missing on how to use the usersc file? I seem to running into an issue whenever I want to make small modifications to a page (such as adding a few lines of text to the login.php). I thought I remembered hearing or reading that I need simply copy the original over and make modifications but this ends up breaking the page and trying to load url//usersc/login.php,
Any help with either or both of these would be very appreciated.
I am very happy to have stumbled across this fantastic tool that will allow me to ditch the ridiculously convoluted userfrosting I was attempting to learn.
|
|
|
Running Update Query |
Posted by: Brandin - 12-03-2016, 09:31 PM - Forum: Off-topic Discussions
- Replies (32)
|
|
Hey!
I am using the UserSpice pages in many ways, and one of them is a migration tool. Basically, I have a list of categories, and if I migrate the category number to be another number, I also want to update all of the templates with that category number, to the new one. Currently, I am using the default function from the page that I just modified to my good, and I have this:
<pre>Code: //Update catnum
if ($number != $_POST['number']){
$number = Input::get("number");
$fields=array('number'=>$number);
$validation->check($_POST,array(
'number' => array(
'display' => 'Number',
'required' => true,
'min' => 1,
'max' => 3
)
));
if($validation->passed()){
$db->update('categories',$id,$fields);
$successes[] = "Sort Updated";
</pre>
But what I need to do is also update the table the new I have set.
If you could help with the function for this, I would be VERY appreciative
Thanks again!
|
|
|
navigation.php problems |
Posted by: Steve_Dickson - 12-03-2016, 08:46 PM - Forum: UserSpice 4.3 and Below
- No Replies
|
|
I certainly hope this is a bug and not just something silly I am doing. I have tried a dozen different configs so far an am still not getting anywhere. My problem is, I have edited usersc/navigation.php as follows;
===========================================
<div class="collapse navbar-collapse navbar-top-menu-collapse navbar-left"> <!-- Left navigation items -->
<ul class="nav navbar-nav ">
[*]<a>"><i class="fa fa-home"></i> Home</a>
<li class="dropdown"><a><i class="fa fa-wrench"></i> Your Details <b class="caret"></b></a>
<ul class="dropdown-menu">
[*]<a>./users/account.php"><i class="fa fa-user"></i> Your Details</a>
[*]<a>./users/profile.php"><i class="fa fa-building"></i> Company Details</a>
</ul>
</li>
<li class="dropdown"><a><i class="fa fa-print"></i> Your Reports <b class="caret"></b></a>
<ul class="dropdown-menu">
[*]<a>./sgl_customer.php"><i class="fa fa-history"></i> Scale History</a>
[*]<a>./client_files/index.php"><i class="fa fa-file"></i> Your Files</a>
</ul>
</li>
[*]<i class="fa fa-book"></i> Knowledgebase
</ul>
</div> <!-- End left navigation items -->
===========================================
So this all works great, until I select a non-US page and I lose the dropdown functionality. Any clues?
Thanks in advance.
|
|
|
Total Sum of Column |
Posted by: winterswolf - 11-29-2016, 11:56 PM - Forum: UserSpice 4.3 and Below
- Replies (3)
|
|
Hey guys,
So I think I am having a bit of a blonde moment. In one of my database tables I have a column that is numbers, I want to query this table and get the sum of all the numbers in this column.
I'm having trouble with mysql_fetch_array / mysql_fetch_assoc. Is there another way userspice handles this?
Here's my code so far:
Code: $usage = $db->query("SELECT SUM(month_usage) FROM devices");
Code: $row = mysql_fetch_assoc($usage);
Code: $sum = $row['month_usage'];
I think I am mixing up my queries because I am getting this error:
Quote:Warning: mysql_fetch_assoc() expects parameter 1 to be resource, object given in /#PATH#/dashboard.php on line 13
I have another version of this that uses mysql_fetch_array in a different manner, but that basically gives the same error.
Anyone got any ideas on where to go from here?
|
|
|
Changing Built in UserSpice Files |
Posted by: Brandin - 11-29-2016, 03:51 PM - Forum: Modifications and Hackery
- Replies (4)
|
|
Hey!
Currently I have kept track of any files I have made changes to, and I manually upgrade them and re-include my code. If I make the same file in usersc, will it always use that file first? E.g. navigation, header, and stuff like that.
Thanks.
|
|
|
Hi, Lets see where this get us. |
Posted by: Artafact - 11-29-2016, 09:24 AM - Forum: New to UserSpice?
- Replies (1)
|
|
Hello, My nickname is Artafact for various reasons of course
I am a web developer (mostly design at the moment) and I am going to take a look at this system, I like the simplicity of it.
Maybe making a plug-in or two just for the sake of it.
I am looking forward to it.
Kind regards
Artafact
|
|
|
How To Add Responsive Slideshow? |
Posted by: Trioxin - 11-29-2016, 01:48 AM - Forum: Modifications and Hackery
- Replies (1)
|
|
As you can see in the image I've embedded, I'm using the default design of userspice's front page and I'd like to put a sildeshow next to the "Welcome to site" area to the right of it so that it wraps to the next line responsive to a browser sizing down. If anyone has an example of that or can jsfiddle one I'd be very grateful.
Thanks
|
|
|
init.php |
Posted by: sqluser - 11-28-2016, 12:23 PM - Forum: UserSpice 4.3 and Below
- Replies (6)
|
|
Try to install a clean version on a new machine, see that there is a new version availabe, but it seems there is some data missing on the
Quote:users\init.php
file.
<pre>Code: // Set config
$GLOBALS['config'] = array(
'mysql' => array(
</pre>
After this there is no information more in my downloaded files. (42Beta)
What should be in this file.
|
|
|
Invalid Argument Foreach (Admin-pages) |
Posted by: winterswolf - 11-28-2016, 06:22 AM - Forum: UserSpice 4.3 and Below
- Replies (8)
|
|
Hey guys,
So having a weird issue, just popped up today and haven't noticed it before.
On admin-pages.php I am receiving the following error:
Quote:Warning: Invalid argument supplied for foreach() in /#PATH#/admin-pages.php on line 33
The code it's referring to is the part that lists all the php files:
Code: //Get list of php files for each $path
Code: foreach ($paths as $path){
Code: $rows=getPathPhpFiles($abs_us_root,$us_url_root,$path);
Code: foreach ($rows as $row){
As far as I know I haven't changed anything that would effect this, and as you can see in the screenshot, the page is working as intended. I can still manage all the pages and they are all listed properly. Anyone run in to this before?
|
|
|
|