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

 
  UserSpice 5.0 Release date
Posted by: benak - 07-06-2017, 06:32 PM - Forum: UserSpice 5 - Roadmapping the Future - Replies (12)

I am eagerly waiting for US5, when do you expect to release? 4.x is excellent but lacks pagination. I appreciate the good work you guys are doing, I love Userspice.


  HI, I am Geraldo Junior
Posted by: juniorghr - 07-05-2017, 04:32 PM - Forum: New to UserSpice? - Replies (1)

Hi everywhere!!!

I am Geraldo Junior, Brazilian and beginner in PHP programming. I accidentally found the UserSpice website and fell in love, it increases the chances of creating a clean and efficient code and allows me to save hours and hours of hard work! I hope to continue to use it throughout my career.


  Retrieving details from a Database to table
Posted by: sire - 07-05-2017, 05:26 AM - Forum: Documentation - Replies (20)

im trying to Retrieve details from customers Database and display a simple table
i spent a few weeks on trying to make it work with the standards for userspice
(thus im asking help)

Code:
<?php
Code:
$user = 'admin';
Code:
$pass = '1admin';
Code:
$db = new PDO( 'mysql:host=localhost;dbname=my_database', $user, $pass );
Code:
$sql = "SELECT * FROM customers";
Code:
$query = $db->prepare( $sql );
Code:
$query->execute();
Code:
$results = $query->fetchAll( PDO::FETCH_ASSOC );
Code:
?>


Code:
<table class="table">
Code:
<tr>
Code:
<th>ID</th>
Code:
<th>First Name</th>
Code:
<th>Surname</th>
Code:
<th>Address</th>
Code:
<th>Email</th>
Code:
</tr>
Code:
<?php foreach( $results as $row ){
Code:
echo "<tr><td>";
Code:
echo $row['id'];
Code:
echo "</td><td>";
Code:
echo $row['first_name'];
Code:
echo "</td><td>";
Code:
echo $row['surname'];
Code:
echo "</td><td>";
Code:
echo $row['address'];
Code:
echo "</td><td>";
Code:
echo $row['email'];
Code:
echo "</td>";
Code:
echo "</tr>";
Code:
}
Code:
?>
Code:
</table>


  Profile View
Posted by: faguss - 07-04-2017, 04:16 PM - Forum: Modifications and Hackery - No Replies

profile.php, view_all_users.php

EDIT: if you're using Brandin's Messaging System Mods then use these files instead.

  • Pages are linked by username rather than by id
  • Join and login dates are displayed
  • Bio font is normal size rather than huge
  • Google avatar is used and with consistent size
  • Added link to G+ profile
  • Added button to message user

By the way, could you pull something from Google as a bio rather than using "This is your bio"?


  admin_backup select all not working
Posted by: Brandin - 07-04-2017, 03:33 PM - Forum: UserSpice 4.3 and Below - No Replies

Unsure why - I didn't look into this, but here is the function I swapped it out for...

Replace the select all button in the headings with:

Code:
<input type="checkbox" id="checkall" value="1" onclick="checkCheckboxes(this.id, 'maindiv');" >

Add
Code:
id="maindiv"
to that div ~ line 498.

Add this haste of JS:
https://hastebin.com/qogabiheda.xml


  Title on admin_backup page
Posted by: Brandin - 07-04-2017, 03:17 PM - Forum: UserSpice 4.3 and Below - Replies (3)

Is "Page Permissions" - needs to be renamed...

Thank you!


  Line 28
Posted by: Brandin - 07-04-2017, 03:11 PM - Forum: UserSpice 4.3 and Below - No Replies

Hello,

You left

Code:
dump($currentPage);
in the update...

Thank you!


  Tomfoolery Addition
Posted by: jdmfarms - 07-03-2017, 08:01 PM - Forum: Modifications and Hackery - No Replies

Hello again. This is just a quick recommendation to add to the next patch or two.

On the tomfoolery.php file line 87, please consider changing it to the following:

Code:
<td><a href="http://abuseipdb.com/whois/<?=$m->ip?>" target="blank"><?=$m->ip?></a></td>

I did on my version just for ease of checking the ip out. If this document gets updated for other reasons during patches, it will require us to have to add it back unless you code it into it for us.

Also, thanks to you guys, I have my htaccess blocking spiders in certain directories which has slowed the tomfoolery down.

Thanks.


  < in Passwords
Posted by: Brandin - 07-03-2017, 06:33 PM - Forum: UserSpice 4.3 and Below - Replies (13)

Hello!

I have found out that

Code:
<
special character in the password fields on the registration form does not work...thoughts? I haven't tried
Code:
>
but need this fixed ASAP for a user.

Thank you!


  Adding more data to user profiles
Posted by: billchopher - 07-03-2017, 10:07 AM - Forum: Off-topic Discussions - Replies (1)

Is there a built in way to add more colums to a users profile? and then making that data editable by admin and only viewable and not editable by the user? Or does it have to be done by adding the colums to the database in the profile table in phpMyadmin and then writing all the php in the profile page?