Resource icon

Threads, posts and conversations per page [Paid] 2.0.4

Buy for $18.00

Truonglv

Staff member
Tech Support
truonglv submitted a new resource:

Threads, posts and conversations per page - Allow user set custom threads, posts and conversations per page

Description: Allow user set custom threads, posts and conversations per page

Options:
  • Set number of values threads per page
  • Set number of values posts per page
  • Set number of values conversations per page
  • Set number of values conversation messages per page
Permissions:
  • Allow user can set custom threads per page
  • Allow user can set custom posts per page
  • Allow user can set custom conversations per page
  • Allow user can set custom conversation...
Read more about this resource...
 

Truonglv

Staff member
Tech Support

Dave Upton

New Member
I think there is a bug for those who migrated from XF1.5.

When i'm in the user preferences pane and attempt to adjust any preferences, I get the below error,

Any ideas?

Ok, making some progress. Paging Truonglv - I think it's your code.

Code:
[21:40][[EMAIL][email protected][/EMAIL] community]# grep -rlw -e "dpp_custom_config" /home/nginx/domains/hometheaterforum.com/public/community/
/home/nginx/domains/hometheaterforum.com/public/community/src/addons/Truonglv/DiscussionsPerPage/XF/Entity/UserOption.php
/home/nginx/domains/hometheaterforum.com/public/community/src/addons/Truonglv/DiscussionsPerPage/XF/Pub/Controller/Account.php
/home/nginx/domains/hometheaterforum.com/public/community/src/addons/Truonglv/DiscussionsPerPage/Listener.php
/home/nginx/domains/hometheaterforum.com/public/community/src/addons/Truonglv/DiscussionsPerPage/Job/Migrate206.php
/home/nginx/domains/hometheaterforum.com/public/community/src/addons/Truonglv/DiscussionsPerPage/Setup.php
/home/nginx/domains/hometheaterforum.com/public/community/src/addons/Truonglv/DiscussionsPerPage/Callback.php
[21:43][[EMAIL][email protected][/EMAIL] community]#
[code]
 
Last edited:

Truonglv

Staff member
Tech Support
Dave Upton Hello do you see this column custom_messages in the table xf_user_option?
 

Truonglv

Staff member
Tech Support
Dave Upton Run these queries to fix it.

Code:
ALTER TABLE xf_user_option RENAME COLUMN custom_messages TO dpp_custom_config;
And make a job to migrate data.
Code:
INSERT IGNORE INTO `xf_job`
(unique_key, execute_class, execute_data, manual_execute, trigger_date)
VALUES
('dpp_migrate206', 'Truonglv\DiscussionsPerPage:Migrate206', 'a:0:{}', 0, 0)
 

Thread view new threads

Top