Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
36eacf90
Commit
36eacf90
authored
Apr 23, 2014
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option for PM list page size
parent
7dbd2c0a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
qa-app-options.php
qa-include/qa-app-options.php
+1
-0
qa-lang-options.php
qa-include/qa-lang-options.php
+1
-0
qa-page-admin-default.php
qa-include/qa-page-admin-default.php
+5
-1
qa-page-messages.php
qa-include/qa-page-messages.php
+1
-1
No files found.
qa-include/qa-app-options.php
View file @
36eacf90
...
...
@@ -298,6 +298,7 @@
'page_size_ask_tags'
=>
5
,
'page_size_home'
=>
20
,
'page_size_hot_qs'
=>
20
,
'page_size_pms'
=>
10
,
'page_size_q_as'
=>
10
,
'page_size_qs'
=>
20
,
'page_size_related_qs'
=>
5
,
...
...
qa-include/qa-lang-options.php
View file @
36eacf90
...
...
@@ -163,6 +163,7 @@
'page_size_ask_tags'
=>
'Maximum tag hints to show:'
,
'page_size_home'
=>
'Length of Q&A page:'
,
'page_size_hot_qs'
=>
'Length of Hot! page:'
,
'page_size_pms'
=>
'Private messages per page:'
,
'page_size_q_as'
=>
'Maximum answers per page:'
,
'page_size_qs'
=>
'Length of Questions page:'
,
'page_size_related_qs'
=>
'Maximum related questions:'
,
...
...
qa-include/qa-page-admin-default.php
View file @
36eacf90
...
...
@@ -118,6 +118,7 @@
'page_size_ask_tags'
=>
'number'
,
'page_size_home'
=>
'number'
,
'page_size_hot_qs'
=>
'number'
,
'page_size_pms'
=>
'number'
,
'page_size_q_as'
=>
'number'
,
'page_size_qs'
=>
'number'
,
'page_size_related_qs'
=>
'number'
,
...
...
@@ -234,6 +235,7 @@
'page_size_ask_tags'
=>
QA_DB_RETRIEVE_QS_AS
,
'page_size_home'
=>
QA_DB_RETRIEVE_QS_AS
,
'page_size_hot_qs'
=>
QA_DB_RETRIEVE_QS_AS
,
'page_size_pms'
=>
QA_DB_RETRIEVE_MESSAGES
,
'page_size_qs'
=>
QA_DB_RETRIEVE_QS_AS
,
'page_size_related_qs'
=>
QA_DB_RETRIEVE_QS_AS
,
'page_size_search'
=>
QA_DB_RETRIEVE_QS_AS
,
...
...
@@ -255,6 +257,7 @@
'page_size_ask_tags'
=>
3
,
'page_size_home'
=>
1
,
'page_size_hot_qs'
=>
1
,
'page_size_pms'
=>
1
,
'page_size_q_as'
=>
1
,
'page_size_qs'
=>
1
,
'page_size_search'
=>
1
,
...
...
@@ -307,7 +310,7 @@
array_push
(
$showoptions
,
'show_custom_register'
,
'custom_register'
,
'show_notice_welcome'
,
'notice_welcome'
,
'show_custom_welcome'
,
'custom_welcome'
);
array_push
(
$showoptions
,
''
,
'allow_login_email_only'
,
'allow_change_usernames'
,
'allow_private_messages'
,
'show_message_history'
,
'allow_user_walls'
,
'page_size_wall'
,
''
,
'avatar_allow_gravatar'
);
array_push
(
$showoptions
,
''
,
'allow_login_email_only'
,
'allow_change_usernames'
,
'allow_private_messages'
,
'show_message_history'
,
'
page_size_pms'
,
'
allow_user_walls'
,
'page_size_wall'
,
''
,
'avatar_allow_gravatar'
);
if
(
qa_has_gd_image
())
array_push
(
$showoptions
,
'avatar_allow_upload'
,
'avatar_store_size'
,
'avatar_default_show'
);
...
...
@@ -333,6 +336,7 @@
if
(
!
QA_FINAL_EXTERNAL_USERS
)
$checkboxtodisplay
=
array_merge
(
$checkboxtodisplay
,
array
(
'page_size_pms'
=>
'option_allow_private_messages && option_show_message_history'
,
'page_size_wall'
=>
'option_allow_user_walls'
,
'avatar_profile_size'
=>
'option_avatar_allow_gravatar || option_avatar_allow_upload'
,
'avatar_users_size'
=>
'option_avatar_allow_gravatar || option_avatar_allow_upload'
,
...
...
qa-include/qa-page-messages.php
View file @
36eacf90
...
...
@@ -64,7 +64,7 @@
// Find the messages for this user
$start
=
qa_get_start
();
$pagesize
=
qa_opt
(
'page_size_
wall
'
);
$pagesize
=
qa_opt
(
'page_size_
pms
'
);
// get number of messages then actual messages for this page
$func
=
'qa_db_messages_'
.
$showBox
.
'_selectspec'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment