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
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
Status Update 015 - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Status Update 015 (/showthread.php?tid=751)

Pages: 1 2 3


Status Update 015 - Brandin - 09-15-2017

Great - I'll get started on that...another thing - Pagnation is not showing up for me on admin_messages.php but I see the code. Anyone else?

Also: enable/disable cron is an option, "Active" in the crons table and even if we left is on by default, unless they have a cron job setup, it's not going to run the job so no worries around that - but I will still add it with an assumed value of 0 for active.


Status Update 015 - karsen - 09-15-2017

Actually, scratch that.. you CAN set them to inactive already! I hadn't played around with it yet XD

I believe you need a certain number of messages before the pagination shows up?


Status Update 015 - Brandin - 09-15-2017

I'm thinking that too - but I made enough threads for pagnation on messages.php - so it should match admin_messages.php eh?

Maybe something to do with this?
https://pasteboard.co/GKyn4BL.png


Status Update 015 - karsen - 09-15-2017

Got it. The DataTables script requires a well-formed html table. Since the number of TH and TD columns don't match, it can't grab the data. Adding one for TH column in the head will fix it:

Code:
<center><table id="paginate" class="table table-striped">
Code:
<thead>
Code:
<tr>
Code:
<th></th><th></th><th></th>
Code:
</tr>
Code:
</thead>

Edit: as a note, the pagination appears even if there's just 1 item!


Status Update 015 - Brandin - 09-15-2017

Great - thank you Karsen!

I added this to my branch while I do these updates.


Status Update 015 - Brandin - 09-15-2017

Is there a way we can use the User class in us_helpers?

There are some functions (e.g. deletion ones) that I want to call the logger from the function so it is handled on an individual ID basis, but I can't use user->data() related items as it was never declared...


Status Update 015 - karsen - 09-15-2017

Code:
function ...() {
Code:
global $user;
Code:
...
Code:
}

But I recommend instead passing the $user variable as a parameter, with a default of 0 or NULL.


Status Update 015 - Brandin - 09-15-2017

This would require modification of a lot of these functions - any issues with this do you think? I will end up heavily modifying us_helpers.

Also:
( ! ) Fatal error: Class 'PHPMailer' not found in C:\wamp64\www\43\users\helpers\helpers.php on line 134

And on email_settings.php - where do the $results come from???

And echouser is not echoing "Deleted" or "Unknown" anymore when no results are returned - I will look into this one just my own note.


Status Update 015 - Brandin - 09-16-2017

I removed the redirect on email_settings when there is no test post. However, we need to re-declare $results so we can get new data - I just need to know where to get that from.

I didn't get a chance to look at echouser.

This was a pretty big one, waiting for access to github so I can push my branch.

http://pasted.co/7ad62d73


Status Update 015 - Brandin - 09-16-2017

My branch is pushed

https://github.com/mudmin/UserSpice43dev/tree/Brandin-Branch